1 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
3 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
5 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7 * include/grub/misc.h: Stop checking for APPLE_CC.
9 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
11 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
12 doesn't cause an infinite call loop.
14 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
16 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
19 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
21 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
23 * Makefile.in: Likewise.
25 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
29 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
33 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
37 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
39 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
41 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
43 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
45 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
46 in $(MAKEINFO) invocation. This makes it clear in output that
47 errors are being ignored.
49 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
51 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
53 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
54 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
55 * conf/i386-ieee1275.rmk: Likewise.
56 * conf/i386-pc.rmk: Likewise.
57 * conf/powerpc-ieee1275.rmk: Likewise.
58 * conf/sparc64-ieee1275.rmk: Likewise.
59 * conf/x86_64-efi.rmk: Likewise.
61 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
63 * util/grub-editenv.c (main): If only a command is given, use
64 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
65 (usage): FILENAME is now optional and has a default.
67 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
69 Improve grub-mkconfig performance when there are several menu
70 entries on a single filesystem.
72 * util/grub.d/10_linux.in (linux_entry): Cache the output of
73 prepare_grub_to_access_device.
74 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
75 * util/grub.d/30_os-prober.in: Likewise.
77 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
79 * util/grub.d/10_freebsd.in: Remove.
80 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
81 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
83 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
85 * docs/grub.cfg: Fix example usage of *BSD loaders.
87 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
89 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
90 grub_util_error() call.
92 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
94 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
95 `reserved_first_sector' member.
96 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
97 `reserved_first_sector' to 1.
98 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
99 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
100 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
101 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
102 filesystems which begin at first sector.
103 (options): New option --skip-fs-probe.
104 (main): Handle --skip-fs-probe and pass it to setup().
106 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
108 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
109 (memset): Fix function prototype.
111 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
112 2009-10-25 Vasily Averin <vvs@parallels.com>
114 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
115 `dirent.direntlen == 0'.
117 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
119 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
121 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
123 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
125 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
126 `__trampoline_setup' and `__ucmpdi2'.
127 * include/grub/powerpc/libgcc.h: Only export symbols for functions
128 that libgcc provides.
130 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
132 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
133 * include/grub/sparc64/libgcc.h (memset): Likewise.
134 * include/grub/misc.h (memset, memcmp): New function prototypes.
136 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
138 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
140 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
142 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
144 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
145 * docs/grub.cfg: Compensate for recent change in multiboot
146 loader (since 2009-08-14 it won't pass filename to payload).
147 * util/grub.d/10_hurd.in: Likewise.
149 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
151 * config.guess: Update to latest version from config git
153 * config.sub: Likewise.
155 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
157 Fix build on sparc64.
159 * configure.ac: Perform checks for libgcc symbols before
160 adding `-nostdlib' to LDFLAGS.
162 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
164 Let user specify OpenBSD root device.
166 * loader/i386/bsd.c (openbsd_root): New variable.
167 (openbsd_opts): New option 'root'.
168 (OPENBSD_ROOT_ARG): New macro.
169 (grub_openbsd_boot): Use 'openbsd_root'.
170 (grub_cmd_openbsd): Fill 'openbsd_root'.
172 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
174 * NEWS: Misc adjustments.
176 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
178 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
180 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
182 * configure.ac: Bump version to 1.97.
184 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
186 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
187 -mno-3dnow on x86 architectures. Some toolchains enable these
188 features by default, but they rely on registers that aren't enabled
189 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
191 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
193 Make entry text a bit more readable.
195 * util/grub.d/10_linux.in: Add `with' before `Linux'.
197 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
199 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
201 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
203 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
206 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
208 * configure.ac: Add missing dollar.
210 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
212 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
214 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
215 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
217 * include/grub/sparc64/libgcc.h: Likewise. Use
218 preprocessor conditionals.
220 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
222 * conf/common.rmk (grub-dumpbios): Remove rule.
223 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
224 * util/grub-dumpbios.in: Remove file.
226 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
228 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
229 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
231 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
232 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
235 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
236 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
237 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
238 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
241 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
243 * term/tparm.c: Switch to GPLv3.
245 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
247 * include/grub/i386/cpuid.h: Add header protection.
249 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
251 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
253 * include/grub/i386/cpuid.h: New file.
254 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
255 (has_longmode): Rename to ...
256 (grub_cpuid_has_longmode): ... this. Update all users. Remove
258 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
259 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
260 on a CPU that doesn't implement AMD64 instruction set.
262 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
264 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
265 that version.texi is rebuilt on version number changes.
267 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
269 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
272 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
274 * util/i386/pc/grub-install.in: Source
275 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
276 that the --grub-probe option will work.
277 * util/sparc64/ieee1275/grub-install.in: Likewise.
279 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
281 * configure.ac: Bump version to 1.97~beta4.
283 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
285 Resync grub-mkdevicemap in x86_64-efi.
287 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
288 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
291 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
293 * util/grub-editenv.c (create_envblk_file): Write new block with a
294 .new suffix and then rename it into place, to ensure atomic
297 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
299 Do not automatically install headers.
301 * Makefile.in (include_DATA): Remove. Update all users.
303 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
305 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
306 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
308 * util/osdetect.lua: Remove.
309 * script/lua/lauxlib.c: Likewise.
310 * script/lua/ldebug.c: Likewise.
311 * script/lua/grub_main.c: Likewise.
312 * script/lua/lauxlib.h: Likewise.
313 * script/lua/ldebug.h: Likewise.
314 * script/lua/ltablib.c: Likewise.
315 * script/lua/liolib.c: Likewise.
316 * script/lua/lstrlib.c: Likewise.
317 * script/lua/lualib.h: Likewise.
318 * script/lua/ldo.c: Likewise.
319 * script/lua/ldump.c: Likewise.
320 * script/lua/ldo.h: Likewise.
321 * script/lua/loslib.c: Likewise.
322 * script/lua/lundump.c: Likewise.
323 * script/lua/grub_lib.c: Likewise.
324 * script/lua/ldblib.c: Likewise.
325 * script/lua/lundump.h: Likewise.
326 * script/lua/lmem.c: Likewise.
327 * script/lua/grub_lib.h: Likewise.
328 * script/lua/lmathlib.c: Likewise.
329 * script/lua/lstate.c: Likewise.
330 * script/lua/ltm.c: Likewise.
331 * script/lua/lvm.c: Likewise.
332 * script/lua/lmem.h: Likewise.
333 * script/lua/lstate.h: Likewise.
334 * script/lua/ltm.h: Likewise.
335 * script/lua/ltable.c: Likewise.
336 * script/lua/lvm.h: Likewise.
337 * script/lua/llex.c: Likewise.
338 * script/lua/lgc.c: Likewise.
339 * script/lua/grub_lua.h: Likewise.
340 * script/lua/loadlib.c: Likewise.
341 * script/lua/lfunc.c: Likewise.
342 * script/lua/lopcodes.c: Likewise.
343 * script/lua/lparser.c: Likewise.
344 * script/lua/ltable.h: Likewise.
345 * script/lua/llex.h: Likewise.
346 * script/lua/lgc.h: Likewise.
347 * script/lua/lfunc.h: Likewise.
348 * script/lua/lbaselib.c: Likewise.
349 * script/lua/lopcodes.h: Likewise.
350 * script/lua/lparser.h: Likewise.
351 * script/lua/lzio.c: Likewise.
352 * script/lua/linit.c: Likewise.
353 * script/lua/lobject.c: Likewise.
354 * script/lua/llimits.h: Likewise.
355 * script/lua/lstring.c: Likewise.
356 * script/lua/lzio.h: Likewise.
357 * script/lua/lapi.c: Likewise.
358 * script/lua/lcode.c: Likewise.
359 * script/lua/lua.h: Likewise.
360 * script/lua/lobject.h: Likewise.
361 * script/lua/lstring.h: Likewise.
362 * script/lua/lapi.h: Likewise.
363 * script/lua/lcode.h: Likewise.
364 * script/lua/luaconf.h: Likewise.
366 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
368 * docs/grub.texi (Command-line and menu entry commands): Document
369 date and echo commands.
371 2009-09-24 Pavel Roskin <proski@gnu.org>
373 * include/grub/kernel.h (struct grub_module_header): Remove
374 `grub_module_header_types'. Make `type' unsigned. Make `size'
375 32-bit on all platforms.
376 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
377 8-bit field. Use grub_host_to_target32() for `size'.
378 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
379 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
380 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
382 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
384 Fix "lost keypress" bug in at_keyboard.
386 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
387 Checks for readyness of input buffer (without flushing it).
388 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
389 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
391 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
393 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
394 size check within GRUB_MACHINE_PCBIOS section.
396 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
398 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
400 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
401 KEYBOARD_ISREADY check.
402 (grub_at_keyboard_checkkey): Rename to ...
403 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
404 Remove gratuitous cast.
406 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
408 * configure.ac: Call AC_PROG_MKDIR_P.
409 * Makefile.in (docs/stamp-vti): Create docs directory. Create
410 version.texi in $(builddir) rather than $(srcdir).
411 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
412 to makeinfo's @include search path.
414 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
416 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
418 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
420 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
423 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
425 Build info documentation. Some code borrowed from Automake.
427 * configure.ac: Check for makeinfo.
428 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
429 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
431 (MOSTLYCLEANFILES): Add vti.tmp.
432 (docs/version.texi, docs/stamp-vti): Update automatically.
433 (docs/grub.info): Build info documentation. Use --force and ignore
435 (all-local): Add $(INFOS).
436 (install-local): Install info files.
437 (uninstall): Uninstall info files.
438 * docs/version.texi: Remove from revision control. This file is
439 automatically generated on build now.
440 * gendistlist.sh: Add `*.info'.
442 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
444 * kern/term.c: Fix indentation.
446 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
448 * util/hostdisk.c: Fix a comment.
450 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
452 Fix regression introduced in r2539.
454 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
457 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
459 * util/grub.d/30_os-prober.in: Don't throw away stderr from
460 os-prober. Under normal operation, it does not print anything to
461 stderr; if it does, we need to debug it, and throwing away stderr
462 makes that excessively difficult.
464 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
466 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
468 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
470 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
471 AC_LANG_PROGRAM from autoconf.
472 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
473 prototypes (fixes warning).
475 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
476 `--disable-werror' was used.
478 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
480 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
481 uninitialized `lastaddr'.
483 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
485 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
487 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
489 * commands/test.c (get_fileinfo): Return immediately if
492 2009-09-14 José MartÃnez <xosemp@gmail.com>
494 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
496 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
498 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
501 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
503 * configure.ac: Remove --enable-grub-pe2elf. Only build
504 grub-pe2elf when needed by the build system itself.
505 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
507 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
509 * configure.ac: Bump version to 1.97~beta3.
510 * docs/version.texi: Likewise.
512 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
514 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
515 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
517 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
518 (grub_linux_setup_video): ... to here (with some adjustments).
520 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
522 Fix memory corruption issue (spotted by Colin Watson).
524 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
525 causing returned size to be stored in an incorrect memory location.
526 Fix use of uninitialized value when storing the returned size.
528 2009-09-12 Yves Blusseau <blusseau@zetam.org>
530 Change clean rules to properly remove files
532 * genmk.rb: add new clean rules
533 * Makefile.in (clean): add the new targets
534 (mostlyclean): likewise
536 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
538 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
540 * fs/ntfs.c (init_file): Understand 64-bit sizes for
543 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
545 * configure.ac: Don't look for help2man when cross-compiling. Fixes
548 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
550 * util/grub-mkconfig.in: Make the created config mode 400 and
551 print a warning if it fails.
553 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
555 * util/grub.d/40_custom.in: Ask user to type custom entries below
556 comment, rather than below 'exec tail' line.
558 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
560 * util/grub.d/40_custom.in: Make sure that the explanatory text is
563 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
565 * util/grub.d/40_custom.in: Make it a little clearer how to use this
568 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
570 * docs/grub.cfg: Add an example menu entry for memtest86+.
572 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
574 * config.guess: Update to latest version from config git.
575 * config.sub: Likewise.
577 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
579 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
580 unknown-command case. Fixes bug #27320.
582 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
584 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
585 `help' if the command exists.
587 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
589 * INSTALL: Require GCC 4.1.3 or later.
591 2009-09-06 Yves Blusseau <blusseau@zetam.org>
593 * Makefile.in (RMKFILES): add i386-qemu.rmk
594 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
597 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
599 * util/grub-probe.c (probe): Comment out buggy codepath, which
600 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
601 should be re-enabled after 1.97.
603 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
605 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
608 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
610 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
611 unnecessary calls to grub_error.
613 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
615 * NEWS: Mention `keystatus' and Unicode fonts.
617 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
619 * configure.ac: Bump version to 1.97~beta2.
620 * docs/version.texi: Likewise.
622 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
624 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
625 containing unwind information in some cases where it previously did
626 not. Use -fno-dwarf2-cfi-asm if available to restore the old
627 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
630 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
632 Embedding loadenv module into grub-emu
634 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
636 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
637 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
638 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
639 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
640 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
641 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
643 2009-09-03 Magnus Granberg <zorry@ume.nu>
645 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
646 include -fPIE in the default specs.
647 * configure.ac: Check if pie_possible is yes and add -fno-PIE
650 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
652 * INSTALL: Note that GNU Bison 2.3 or later is required.
654 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
656 * kern/i386/pc/startup.S: Fix typo.
658 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
660 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
663 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
665 * docs/grub.texi (Naming convention): Describe one-based partition
667 (Device syntax): Likewise.
668 (File name syntax): Likewise.
669 (Block list syntax): Likewise.
670 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
672 (File name syntax): Likewise.
673 (Command-line and menu entry commands): Document acpi, blocklist,
674 crc, export, insmod, keystatus, ls, set, and unset commands.
676 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
678 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
679 to avoid implying that only one of --shift, --ctrl, or --alt may be
682 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
684 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
685 rather than comparing against S_IFREG, which will almost never work.
687 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
689 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
690 (write_blocklists): Likewise.
692 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
694 * script/lua/grub_lua.h (fputs): Supply a format string as the first
695 argument to grub_printf.
697 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
699 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
702 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
704 * kern/file.c (grub_file_read): Spelling fix
706 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
708 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
709 loading of headers in some cases.
711 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
713 * configure.ac: Bump version to 1.97~beta1.
714 * docs/version.texi: Likewise.
716 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
718 * include/grub/i386/xnu.h: Add license header.
719 include grub/err.h explicitly.
721 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
723 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
724 to `ufs' in the vfs.root.mountfrom kernel parameter.
726 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
728 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
730 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
731 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
733 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
736 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
738 * kern/file.c (grub_file_read): Check offset.
739 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
740 * fs/jfs.c (grub_jfs_read_file): Likewise.
741 * fs/ntfs.c (grub_ntfs_read): Likewise.
742 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
743 * fs/minix.c (grub_minix_read_file): Correct offset check.
744 * fs/ufs.c (grub_ufs_read_file): Likewise.
746 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
748 * term/i386/pc/console.c (bios_data_area): Cast
749 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
751 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
753 1-bit optimised blitters.
755 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
757 (grub_video_fbblit_replace_24bit_1bit): Likewise.
758 (grub_video_fbblit_replace_16bit_1bit): Likewise.
759 (grub_video_fbblit_replace_8bit_1bit): Likewise.
760 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
761 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
762 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
763 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
765 (grub_video_fbblit_replace_24bit_1bit): Likewise.
766 (grub_video_fbblit_replace_16bit_1bit): Likewise.
767 (grub_video_fbblit_replace_8bit_1bit): Likewise.
768 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
769 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
770 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
771 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
773 * video/video.c (grub_video_get_blit_format): Return
774 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
776 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
778 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
779 the first argument to grub_printf.
781 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
782 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
784 Add `getkeystatus' terminal method. Add a new `keystatus' command
787 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
788 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
789 modifier key bitmasks.
790 (struct grub_term_input): Add `getkeystatus' member.
791 (grub_getkeystatus): Add prototype.
792 * kern/term.c (grub_getkeystatus): New function.
794 * include/grub/i386/pc/memory.h
795 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
796 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
798 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
799 (grub_console_term_input): Set `getkeystatus' member.
800 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
802 (grub_usb_keyboard_getreport): Likewise.
803 (grub_usb_keyboard_checkkey): Likewise.
804 (grub_usb_keyboard_getkeystatus): New function.
805 (grub_usb_keyboard_term): Set `getkeystatus' member.
807 * commands/keystatus.c: New file.
808 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
809 (keystatus_mod_SOURCES): New variable.
810 (keystatus_mod_CFLAGS): Likewise.
811 (keystatus_mod_LDFLAGS): Likewise.
812 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
813 commands/keystatus.c.
814 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
815 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
816 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
818 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
819 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
821 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
823 Split befs.mod and afs.mod into *_be.mod and *.mod
825 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
826 (grub_fstest_SOURCES): Likewise.
827 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
828 (afs_be_mod_SOURCES): New variable.
829 (afs_be_mod_CFLAGS): Likewise.
830 (afs_be_mod_LDFLAGS): Likewise.
831 (befs_be_mod_SOURCES): Likewise.
832 (befs_be_mod_CFLAGS): Likewise.
833 (befs_be_mod_LDFLAGS): Likewise.
834 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
835 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
836 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
837 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
838 (grub_emu_SOURCES): Likewise.
839 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
840 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
841 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
842 * fs/afs_be.c: New file.
843 * fs/befs_be.c: New file.
844 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
845 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
846 (U16): Replaced with ...
847 (grub_afs_to_cpu16): ...this. All users updated.
848 (U32): Replaced with ...
849 (grub_afs_to_cpu32): ...this. All users updated.
850 (U64): Replaced with ...
851 (grub_afs_to_cpu64): ...this. All users updated.
852 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
853 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
854 (grub_afs_validate_sblock): Check only one endianness.
855 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
856 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
857 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
858 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
859 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
860 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
861 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
862 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
864 2009-08-26 Bean <bean123ch@gmail.com>
866 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
868 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
869 (grub_xfs_inode_block): Change return type to grub_uint64_t.
870 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
872 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
874 NetBSD memory map support.
876 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
877 (grub_netbsd_btinfo_mmap_header): New structure.
878 (grub_netbsd_btinfo_mmap_entry): Likewise.
879 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
881 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
883 Enable bsd.mod on coreboot.
885 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
886 (bsd_mod_SOURCES): New variable.
887 (bsd_mod_CFLAGS): Likewise.
888 (bsd_mod_LDFLAGS): Likewise.
889 (bsd_mod_ASFLAGS): Likewise.
890 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
891 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
893 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
895 Cleanup NetBSD root support.
897 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
901 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
903 * util/grub.d/00_header.in: Move check for the video backend of
904 gfxterm from here ...
905 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
906 a suitable video backend.
908 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
910 Fix breakage in grub-setup.
912 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
913 "msdos_partition_map".
915 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
917 Fix breakage in normal/auth.c.
919 * normal/auth.c (grub_iswordseparator): New function.
921 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
923 Authentication support.
925 * commands/password.c: New file.
926 * conf/common.rmk (pkglib_MODULES): Add password.mod.
927 (password_mod_SOURCES): New variable.
928 (password_mod_CFLAGS): Likewise.
929 (password_mod_LDFLAGS): Likewise.
930 (normal_mod_SOURCES): Add normal/auth.c.
931 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
933 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
934 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
935 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
936 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
937 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
938 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
939 * include/grub/auth.h: New file.
940 * include/grub/err.h (grub_err_t): New enum value
941 GRUB_ERR_ACCESS_DENIED.
942 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
944 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
945 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
947 * normal/auth.c: New file.
948 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
949 (grub_cmdline_run): Don't allow to go to command line without
951 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
952 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
953 menuentry without superuser rights.
954 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
955 user isn't a superuser.
957 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
959 Save space by inlining misc.c functions.
961 * kern/misc.c (grub_iswordseparator): Made static.
962 * kern/misc.c (grub_strcat): Moved from here ...
963 * include/grub/misc.h (grub_strcat): ... here. Inlined.
964 * kern/misc.c (grub_strncat): Moved from here ...
965 * include/grub/misc.h (grub_strncat): ... here. Inlined.
966 * kern/misc.c (grub_strcasecmp): Moved from here ...
967 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
968 * kern/misc.c (grub_strncasecmp): Moved from here ...
969 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
970 * kern/misc.c (grub_isalpha): Moved from here ...
971 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
972 * kern/misc.c (grub_isdigit): Moved from here ...
973 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
974 * kern/misc.c (grub_isgraph): Moved from here ...
975 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
976 * kern/misc.c (grub_tolower): Moved from here ...
977 * include/grub/misc.h (grub_tolower): ... here. Inlined.
979 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
981 * script/sh/function.c (grub_script_function_find): Cut error message
982 not to flood terminal.
983 * script/sh/lexer.c (grub_script_yylex): Remove command line length
985 * script/sh/script.c (grub_script_arg_add): Duplicate string.
987 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
989 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
990 `report' grub_uint8_t *.
991 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
992 Use a 50-millisecond timeout rather than just repeating
993 grub_usb_keyboard_getreport 50 times.
994 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
996 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
998 Rename *_partition_map to part_*
1000 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
1001 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
1002 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
1003 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
1005 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
1007 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
1008 * util/grub-probe.c (probe_partmap): Don't transform partition name
1011 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1013 Fix OpenBSD and NetBSD support.
1015 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
1016 memory address conflict.
1017 (OPENBSD_MMAP_ACPI): New definition.
1018 (OPENBSD_MMAP_NVS): Likewise.
1019 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
1020 and OPENBSD_MMAP_NVS.
1021 Add memory map terminator
1022 Explicit cast when calling grub_unix_real_boot.
1023 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
1025 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1027 Let user specify NetBSD root device.
1029 * loader/i386/bsd.c (netbsd_root): New variable.
1030 (netbsd_opts): New option 'root'.
1031 (NETBSD_ROOT_ARG): New macro.
1032 (grub_netbsd_boot): Use 'netbsd_root'.
1033 (grub_bsd_unload): Free 'netbsd_root'.
1034 (grub_cmd_netbsd): Fill 'netbsd_root'.
1036 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1038 Support for 64-bit NetBSD.
1040 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
1041 point when booting non-FreeBSD.
1043 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1045 Support --no-smp and --no-acpi for NetBSD.
1047 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
1048 (NETBSD_AB_NOACPI): Likewise.
1049 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
1050 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
1052 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1054 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
1056 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
1057 errors. Call grub_error when needed.
1059 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1061 * commands/search.c (search_fs): Try searching without autoload first.
1062 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
1063 filesystem module explicitly for faster booting.
1065 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1067 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
1069 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1071 * util/grub.d/30_os-prober.in: Disable os-prober if
1072 `GRUB_DISABLE_OS_PROBER' was set to true.
1074 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
1076 * partmap/pc.c: Rename to ...
1077 * partmap/msdos.c: ... this. Update all users.
1078 (grub_pc_partition_map): Rename to ...
1079 (grub_msdos_partition_map): ... this. Update all users.
1081 * parttool/pcpart.c: Rename to ...
1082 * parttool/msdospart.c: ... this. Update all users.
1084 * include/grub/pc_partition.h: Rename to ...
1085 * include/grub/msdos_partition.h: ... this. Update all users.
1086 (grub_pc_partition_bsd_entry): Rename to ...
1087 (grub_msdos_partition_bsd_entry): ... this. Update all users.
1088 (grub_pc_partition_disk_label): Rename to ...
1089 (grub_msdos_partition_disk_label): ... this. Update all users.
1090 (grub_pc_partition_entry): Rename to ...
1091 (grub_msdos_partition_entry): ... this. Update all users.
1092 (grub_pc_partition_mbr): Rename to ...
1093 (grub_msdos_partition_mbr): ... this. Update all users.
1094 (grub_pc_partition): Rename to ...
1095 (grub_msdos_partition): ... this. Update all users.
1096 (grub_pc_partition_is_empty): Rename to ...
1097 (grub_msdos_partition_is_empty): ... this. Update all users.
1098 (grub_pc_partition_is_extended): Rename to ...
1099 (grub_msdos_partition_is_extended): ... this. Update all users.
1100 (grub_pc_partition_is_bsd): Rename to ...
1101 (grub_msdos_partition_is_bsd): ... this. Update all users.
1103 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
1104 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
1105 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
1106 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
1107 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
1108 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
1109 (gpt_mod_LDFLAGS): Rename to ...
1110 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
1111 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
1112 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
1113 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
1114 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
1115 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
1116 (part_gpt_mod_LDFLAGS): ... this.
1117 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
1118 `pcpart.mod' to `msdospart.mod'.
1119 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
1121 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
1122 (msdospart_mod_LDFLAGS): ... this.
1124 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1126 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
1127 (openbsd_opts): Likewise.
1128 (netbsd_opts): Likewise.
1129 (freebsd_flags): Added 0 terminator.
1130 (openbsd_flags): Likewise.
1131 (netbsd_flags): Likewise.
1132 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
1133 (grub_cmd_freebsd): Transformed into extended command.
1134 (grub_cmd_openbsd): Likewise.
1135 (grub_cmd_netbsd): Likewise.
1136 (cmd_freebsd): Changed type to grub_extcmd_t.
1137 (cmd_openbsd): Likewise.
1138 (cmd_netbsd): Likewise.
1139 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
1140 grub_cmd_openbsd as extended commands.
1141 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
1142 cmd_netbsd and cmd_openbsd
1144 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1146 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
1148 2009-08-21 Pavel Roskin <proski@gnu.org>
1150 * Makefile.in (install-local): When checking if a file is in the
1151 build directory, use "test -e" to detect symlinks.
1153 * Makefile.in (install-local): Remove all files in
1154 $(DESTDIR)$(pkglibdir) before installing new files there.
1156 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1158 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
1161 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1163 * util/grub-mkconfig.in: Don't use gfxterm by default if not
1164 explicitly specified by the user.
1166 2009-08-18 Pavel Roskin <proski@gnu.org>
1168 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
1169 grub_uint8_t pointer for data.
1170 * include/grub/fbutil.h (struct grub_video_fbblit_info):
1172 * video/fb/fbutil.c: Remove unnecessary casts.
1174 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1178 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
1179 (grub_vbe_set_video_mode): Save active mode info
1180 only after setting the mode.
1181 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
1184 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1186 Rename variables for clarity.
1188 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
1189 (active_vbe_mode_info): ... this. All users updated.
1190 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
1192 (initial_mode): Rename to ...
1193 (initial_vbe_mode): ... this. All users updated.
1194 (mode_in_use): Rename to ..
1195 (vbe_mode_in_use): ... this. All users updated.
1196 (mode_list): Rename to ..
1197 (vbe_mode_list): ... this. All users updated.
1198 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
1199 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
1200 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
1201 'mode_list_size' to 'vbe_mode_list_size'.
1202 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
1203 'best_mode_info' to 'best_vbe_mode_info' and
1204 'best_mode' to 'best_vbe_mode'
1206 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1208 Remove duplicate grub_video_fb_get_video_ptr.
1210 * include/grub/fbutil.h (get_data_ptr): Rename to ...
1211 (grub_video_fb_get_video_ptr): ... this.
1212 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
1213 * video/fb/fbutil.c: Add comment about addressing.
1214 (get_data_ptr): Rename to ...
1215 (grub_video_fb_get_video_ptr): ... this. All users updated.
1216 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
1218 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1220 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
1221 grub_dprintf() that was just added.
1223 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1225 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
1226 (DEFAULT_VIDEO_MODE): Remove macros.
1227 (grub_linux_boot): Remove assumption that Linux has FB support,
1228 and use "text" as default video mode.
1230 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
1232 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
1234 * fs/fat.c (grub_fat_read_data): Likewise.
1236 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1238 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
1240 (grub_module): Likewise.
1242 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1244 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
1245 mbi->cmdline but free playground.
1247 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1249 Handle group offset on UFS1.
1251 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
1252 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
1254 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1256 Split ufs.mod into ufs1.mod and ufs2.mod.
1258 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
1259 (grub_fstest_SOURCES): Likewise.
1260 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
1261 (ufs_mod_SOURCES): Remove.
1262 (ufs_mod_CFLAGS): Likewise.
1263 (ufs_mod_LDFLAGS): Likewise.
1264 (ufs1_mod_SOURCES): New variable.
1265 (ufs1_mod_CFLAGS): Likewise.
1266 (ufs1_mod_LDFLAGS): Likewise.
1267 (ufs2_mod_SOURCES): New variable.
1268 (ufs2_mod_CFLAGS): Likewise.
1269 (ufs2_mod_LDFLAGS): Likewise.
1270 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
1271 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1273 (grub_emu_SOURCES): Likewise.
1274 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1275 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1276 (grub_setup_SOURCES): Likewise.
1277 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1278 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
1279 (grub_setup_SOURCES): Likewise.
1280 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1282 * fs/ufs2.c: New file.
1283 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
1285 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1289 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
1290 subsystem at the end.
1291 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
1292 (video_fb_mod_SOURCES): New variable.
1293 (video_fb_mod_CFLAGS): Likewise.
1294 (video_fb_mod_LDFLAGS): Likewise.
1295 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
1296 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
1297 * video/i386/pc/vbeblit.c: Moved from here ...
1298 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
1299 * video/i386/pc/vbefill.c: Moved from here ...
1300 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
1301 * video/i386/pc/vbeutil.c: Moved from here ...
1302 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
1303 * include/grub/i386/pc/vbeblit.h: Moved from here ...
1304 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
1305 * include/grub/i386/pc/vbefill.h: Moved from here ...
1306 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
1307 * include/grub/i386/pc/vbeutil.h: Moved from here ...
1308 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
1309 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
1310 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
1311 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
1312 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
1313 (grub_video_adapter): Added 'get_info_and_fini'.
1314 (grub_video_get_info_and_fini): New prototype.
1315 (grub_video_set_mode): make modestring const char *.
1316 * loader/i386/linux.c (grub_linux_setup_video): Use
1317 grub_video_get_info_and_fini.
1318 (grub_linux_boot): Move modesetting just before booting.
1319 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
1320 grub_video_get_info_and_fini.
1321 * video/i386/pc/vbe.c: Moved framebuffer part ...
1322 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
1323 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
1324 grub_video_fbstd_colors and grub_video_fb_set_palette.
1325 (grub_video_vbe_init): Clear 'framebuffer' variable and use
1327 (grub_video_vbe_fini): Use grub_video_fb_fini.
1328 (grub_video_vbe_setup): Use framebuffer.render_target instead of
1329 render_target and use grub_video_fb_set_active_render_target and
1330 grub_video_fb_set_palette.
1331 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
1332 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
1333 (grub_video_vbe_adapter): Use framebuffer.
1334 * video/video.c (grub_video_get_info_and_fini): New function.
1335 (grub_video_set_mode): Make modestring const char *.
1336 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
1337 values are already initialised.
1339 2009-08-14 Pavel Roskin <proski@gnu.org>
1341 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
1343 * boot/i386/pc/diskboot.S: Likewise.
1344 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
1345 sectors allow compilation on MacOSX.
1346 * conf/i386-pc.rmk: Enable unconditional compilation of
1349 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
1351 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
1352 * util/grub.d/00_header.in: Enter interruptible sleep if
1353 GRUB_HIDDEN_TIMEOUT is set.
1355 2009-08-13 Yves Blusseau <blusseau@zetam.org>
1357 * include/grub/symbol.h: Add the LOCAL macro.
1358 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
1361 2009-08-13 Pavel Roskin <proski@gnu.org>
1363 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
1364 any modern compilers we support.
1366 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
1367 Use local labels starting with "L_" so that Apple assembler
1368 knows they are local.
1370 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
1372 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
1373 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
1374 (bsd_kernel_types): ... this enum.
1376 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
1377 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
1378 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
1380 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
1381 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
1382 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
1385 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1387 * util/grub-dumpdevtree: Moved from here ...
1388 * util/i386/efi/grub-dumpdevtree: ... to here.
1389 (hexify): New function. Converts a string to its hex version.
1390 Generate hex versions of "efi" and "device-properties" by calling
1391 hexify() on the ASCII strings rather than by hardcoding numbers.
1393 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1395 * fs/jfs.c: Update copyright year.
1397 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1399 * util/grub.d/00_header.in: Fix a comment.
1400 * util/grub.d/10_linux.in: Likewise.
1401 * util/grub.d/10_windows.in: Likewise.
1402 * util/grub.d/10_hurd.in: Likewise.
1404 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1406 * util/grub-mkconfig.in: Allow the user to specify the used font
1409 2009-08-08 Pavel Roskin <proski@gnu.org>
1411 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
1412 available, xfs.mod needs it now.
1414 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
1415 the "g" modifier in sed when the intention is to strip something
1416 once. This fixes comparison of kernels with multiple dashes.
1418 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
1419 on it. Add missing space before closing bracket. Fix
1420 misleading formatting.
1422 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1424 * docs/grub.texi: Major overhaul. Remove all sections that are
1425 specific to GRUB Legacy, or mostly composed of Legacy-specific
1428 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1430 * docs/version.texi: New file. Provides version information for
1433 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1435 * docs/grub.texi: Update CVS information to SVN.
1436 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
1438 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1440 * util/grub-mkconfig.in: Remove a wrong `fi'.
1442 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1444 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
1445 (grub_jfs_uuid): New function.
1446 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
1448 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1450 * util/grub-mkconfig_lib.in (font_path): Move the functionality
1452 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
1453 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
1455 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1457 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
1458 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
1461 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
1462 not just "vmlinu[zx]".
1464 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
1467 * util/grub.d/10_linux.in (find_latest): Moved from here ...
1468 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
1471 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1473 * util/grub.d/10_freebsd.in: Use an absolute device path for
1474 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
1476 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
1478 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
1479 handling of multiple abstraction modules.
1481 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
1483 Fix a bug resulting in black screen when loading Linux using a
1486 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
1489 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
1490 (grub_vbe_bios_getset_dac_palette_width): New function.
1491 (grub_vbe_bios_get_dac_palette_width)
1492 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
1493 grub_vbe_bios_getset_dac_palette_width()).
1495 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
1496 check for return status.
1497 (grub_vbe_get_video_mode_info): When getting information for a packed
1498 mode (<= 8 bpp), obtain DAC palette width using
1499 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
1500 {red,green,blue}_mark_size.
1502 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
1504 * commands/search.c (options): Fix help output to match actual code.
1506 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1508 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
1511 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1513 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
1516 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1518 Support Apple partition map with sector size different from 512 bytes.
1520 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
1521 (apple_partition_map_iterate): Respect 'aheader.blocksize'
1522 and 'apart.partmap_size'.
1524 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1525 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
1529 * commands/i386/cpuid.c (options): New variable.
1530 (grub_cmd_cpuid): Return real error.
1531 (GRUB_MOD_INIT(cpuid)): Declare options.
1533 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
1535 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
1538 2009-07-31 Bean <bean123ch@gmail.com>
1540 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
1542 (grub_fshelp_node): Move inode field to the end.
1543 (grub_xfs_data): Remove inode field.
1544 (grub_xfs_inode_block): Calculate inode size using sblock.
1545 (grub_xfs_inode_offset): Likewise.
1546 (grub_xfs_read_inode): Calculate inode size using sblock.
1547 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
1548 (grub_xfs_iterate_dir): Calculate inode size using sblock.
1549 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
1550 to match inode size.
1551 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
1552 not accessible when data is null.
1553 (grub_xfs_open): Likewise.
1555 2009-07-31 Bean <bean123ch@gmail.com>
1557 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
1558 Don't change pv->disk if it's already set.
1560 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
1561 (grub_raid_register): ... here.
1562 (grub_raid_rescan): Removed.
1564 * include/grub/raid.h (grub_raid_rescan): Removed.
1566 * util/grub-fstest.c: Remove include file <grub/raid.h>.
1567 (fstest): Replace grub_raid_rescan with module fini function followed
1570 * util/grub-probe.c: Add include file <grub/raid.h>.
1571 (probe_raid_level): New function.
1572 (probe): Detect abstraction by walking the disk device, support two
1573 level of abstraction (LVM on RAID) when detecting partition map.
1575 2009-07-31 Pavel Roskin <proski@gnu.org>
1577 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
1578 to grub_zalloc(), it was erroneous.
1579 Reported by Bean <bean123ch@gmail.com>
1581 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
1583 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
1584 embedding zone, not only the first one.
1586 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
1588 * term/gfxterm.c (clear_char): New function.
1589 (grub_virtual_screen_setup): Use clear_char.
1590 (scroll_up): Likewise.
1591 (grub_virtual_screen_cls): Likewise.
1593 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
1595 * util/deviceiter.c (get_acceleraid_disk_name): New static
1597 (grub_util_iterate_devices): Handle Accelraid devices.
1598 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
1600 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
1602 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
1603 separator for the suggested gfxpayload string (';' collides with the
1604 parser and needs escaping).
1606 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
1608 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
1609 Clear direction flag before jumping to OS.
1610 (grub_multiboot2_real_boot): Likewise.
1612 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1614 * util/i386/pc/grub-install: Fix parsing of --disk-module
1617 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1619 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
1622 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
1624 * util/grub-mkconfig.in (package_version): New variable.
1625 Use it do display the version.
1627 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1629 * kern/file.c (grub_file_open): Revert to previous check with
1632 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1634 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
1635 from help line. It's out of sync with code.
1637 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1639 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
1640 entries on failed boot.
1642 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1644 * kern/file.c (grub_file_open): Fix an error check.
1646 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
1648 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
1649 partition map couldn't be identified.
1651 2009-07-23 Pavel Roskin <proski@gnu.org>
1653 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
1654 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
1655 case of little endian words becomes just an optimization.
1656 Respect const modifier.
1657 (md5_final): Use code that doesn't depend on endianness.
1659 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
1660 to avoid loss of upper bits if align is unsigned and shorter
1663 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1665 UUID support for UFS
1667 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
1668 (grub_ufs_uuid): New function.
1669 (grub_ufs_fs): add .uuid
1671 2009-07-21 Pavel Roskin <proski@gnu.org>
1673 * kern/dl.c (grub_dl_check_header): Make static.
1675 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
1677 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
1678 add drivemap for Vista. It breaks Windows 7.
1680 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1682 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
1685 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1689 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
1690 (grub_fstest_SOURCES): Likewise.
1691 (pkglib_MODULES): Add befs.mod.
1692 (befs_mod_SOURCES): New variable.
1693 (befs_mod_CFLAGS): Likewise.
1694 (befs_mod_LDFLAGS): Likewise.
1695 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
1696 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1697 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1698 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1699 (grub_setup_SOURCES): Likewise.
1700 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1701 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1702 (grub_setup_SOURCES): Likewise.
1703 * fs/befs.c: New file.
1704 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
1705 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
1706 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
1707 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
1708 (B_KEY_INDEX_ALIGN): New declaration.
1709 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
1710 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
1711 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
1712 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
1713 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
1714 (grub_afs_mount) [MODE_BFS]: Likewise.
1715 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
1716 (grub_afs_fs): Use GRUB_AFS_FSNAME
1717 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
1718 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
1719 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
1720 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
1722 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
1724 * util/getroot.c (find_root_device): Add support for MacOSX.
1725 * util/hostdisk.c: Likewise.
1727 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1729 * font/font.c (find_glyph): Check whether a font is present to avoid
1732 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
1734 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
1736 2009-07-20 Pavel Roskin <proski@gnu.org>
1738 * configure.ac: Trim excessively wordy excuses.
1740 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1742 Add symlink, mtime and label support to AtheFS.
1744 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
1745 (grub_afs_iterate_dir): Handle symlinks.
1746 (grub_afs_open): Use grub_afs_read_symlink.
1747 (grub_afs_dir): Likewise.
1749 (grub_afs_label): New function.
1750 (grub_afs_fs): Add grub_afs_label.
1751 (grub_afs_read_symlink): New function.
1753 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1757 * fs/afs.c: Fix comments style.
1758 (grub_afs_blockrun): Declare as packed.
1759 (grub_afs_datastream): Likewise.
1760 (grub_afs_bnode): Likewise.
1761 (grub_afs_btree): Likewise.
1762 (grub_afs_sblock): Likewise.
1763 Declare `name' as char.
1764 (grub_afs_inode): Declare as packed.
1765 Change void *vnode to grub_uint32_t unused.
1766 (grub_afs_iterate_dir): Check that key_size is positive.
1767 (grub_afs_mount): Don't read superblock twice.
1768 (grub_afs_dir): Don't free node in case of error,
1769 grub_fshelp_find_file already handles this.
1770 (grub_afs_open): Likewise.
1772 2009-07-19 Pavel Roskin <proski@gnu.org>
1774 * Makefile.in: Remove LIBLZO and enable_lzo.
1775 * conf/i386-pc.rmk: Remove lzo support.
1776 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
1777 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
1779 * kern/i386/pc/lzo1x.S: Remove.
1780 * kern/i386/pc/startup.S: Remove lzo support.
1781 * util/i386/pc/grub-mkimage.c: Likewise.
1783 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
1785 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
1786 * fs/xfs.c (grub_xfs_dir): Likewise.
1787 * fs/afs.c (grub_afs_dir): Likewise.
1788 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
1789 (grub_iso9660_open): Likewise.
1790 * fs/jfs.c (grub_jfs_open): Likewise.
1791 * fs/ext2.c (grub_ext2_dir): Likewise.
1792 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
1793 * script/sh/lexer.c (grub_script_yylex): Likewise.
1795 2009-07-16 Pavel Roskin <proski@gnu.org>
1797 * configure.ac: Never add "-c" to CFLAGS.
1799 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
1801 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
1802 grub_cv_cc_efiemu should be used.
1804 * configure.ac: Typo fixes.
1806 * kern/mm.c (grub_zalloc): New function.
1807 (grub_debug_zalloc): Likewise.
1808 * include/grub/mm.h: Declare grub_zalloc() and
1809 grub_debug_zalloc().
1810 * util/misc.c (grub_zalloc): New function.
1811 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
1812 instead of grub_malloc(), remove unneeded initializations.
1813 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
1814 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
1815 * commands/parttool.c (grub_cmd_parttool): Likewise.
1816 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
1817 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
1818 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
1819 * disk/usbms.c (grub_usbms_finddevs): Likewise.
1820 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
1821 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
1822 (grub_cmd_efiemu_pnvram): Likewise.
1823 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
1824 * fs/iso9660.c (grub_iso9660_mount): Likewise.
1825 (grub_iso9660_iterate_dir): Likewise.
1826 * fs/jfs.c (grub_jfs_opendir): Likewise.
1827 * fs/ntfs.c (list_file): Likewise.
1828 (grub_ntfs_mount): Likewise.
1829 * kern/disk.c (grub_disk_open): Likewise.
1830 * kern/dl.c (grub_dl_load_core): Likewise.
1831 * kern/elf.c (grub_elf_file): Likewise.
1832 * kern/env.c (grub_env_context_open): Likewise.
1833 (grub_env_set): Likewise.
1834 (grub_env_set_data_slot): Likewise.
1835 * kern/file.c (grub_file_open): Likewise.
1836 * kern/fs.c (grub_fs_blocklist_open): Likewise.
1837 * loader/i386/multiboot.c (grub_module): Likewise.
1838 * loader/xnu.c (grub_xnu_create_key): Likewise.
1839 (grub_xnu_create_value): Likewise.
1840 * normal/main.c (grub_normal_add_menu_entry): Likewise.
1841 (read_config_file): Likewise.
1842 * normal/menu_entry.c (make_screen): Likewise.
1843 * partmap/sun.c (sun_partition_map_iterate): Likewise.
1844 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
1845 * script/sh/script.c (grub_script_parse): Likewise.
1846 * video/bitmap.c (grub_video_bitmap_create): Likewise.
1847 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
1848 * video/readers/png.c (grub_png_output_byte): Likewise.
1849 (grub_video_reader_png): Likewise.
1851 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1853 Enable all targets that can be built by default
1855 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
1856 grub-mkfont and grub-fstest if they can be built
1858 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1860 Fix hang and segmentation fault in grub-emu-usb
1862 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
1863 * util/usb.c (grub_libusb_devices): likewise
1864 (grub_libusb_init): rename to ...
1865 (GRUB_MOD_INIT (libusb)):...this
1866 (grub_libusb_fini): rename to ..
1867 (GRUB_MOD_FINI (libusb)):...this
1868 * disk/usbms.c (grub_usbms_transfer): fix retry logic
1869 * include/grub/disk.h (grub_raid_init): removed, it's useless
1870 (grub_raid_fini): likewise
1871 (grub_lvm_init): likewise
1872 (grub_lvm_fini): likewise
1873 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
1876 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1880 * Makefile.in (LIBUSB): new macro
1881 * genmk.rb (Utility/print_tail): new method
1882 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
1883 (top level): call util.print_tail at the end.
1885 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1887 Make FreeBSD accept zpool.cache
1889 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
1890 type is /boot/zfs/zpool.cache
1892 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1896 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
1897 correct wrong typedef
1898 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
1900 2009-07-15 Pavel Roskin <proski@gnu.org>
1902 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
1903 * kern/disk.c (struct grub_disk_cache): Likewise.
1905 * commands/probe.c (options): Typo fix.
1907 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
1908 Increase to 0x5a to accommodate FAT32. Adjust other offsets
1910 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
1912 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
1913 the end of "Error" to make the message more readable.
1915 * boot/i386/pc/boot.S (kernel_segment): Remove.
1916 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
1919 * boot/i386/pc/boot.S (boot_version): Remove.
1920 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
1923 * include/grub/i386/pc/boot.h: Sort all offsets.
1924 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
1925 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
1926 * boot/i386/pc/boot.S: Assert location of every offset listed in
1927 include/grub/i386/pc/boot.h.
1929 2009-07-13 Pavel Roskin <proski@gnu.org>
1931 * include/grub/i386/coreboot/machine.h: Rename
1932 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
1933 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
1934 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
1936 * kern/dl.c: Force native word size to suppress warnings when
1939 * kern/device.c (grub_device_iterate): Change struct part_ent to
1940 hold the name, not a pointer to it. Use one grub_malloc() per
1941 partition, not two. Free partition_name if grub_malloc() fails.
1942 Set ents to NULL only before grub_partition_iterate() is called.
1944 2009-07-11 Bean <bean123ch@gmail.com>
1946 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
1949 2009-07-10 Bean <bean123ch@gmail.com>
1950 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
1952 * kern/ieee1275/openfw.c (grub_children_iterate)
1953 (grub_devalias_iterate): Fix size evaluation for property or path
1954 strings, which was broken since r2132.
1956 2009-07-07 Pavel Roskin <proski@gnu.org>
1958 * commands/search.c (search_file): Merge into ...
1959 (search_fs): ... this. Accept search type as argument.
1960 (grub_cmd_search): Pass search type to search_fs().
1962 * include/grub/util/console.h: New file.
1963 * util/console.c: Use it instead of grub/machine/console.h.
1964 * util/grub-emu.c: Likewise.
1966 * lib/arg.c (find_long_option): Remove.
1967 (find_long): Add `len' argument, make `s' const char *.
1968 (grub_arg_parse): Parse long options in place, not in a
1971 2009-07-06 Pavel Roskin <proski@gnu.org>
1973 * commands/search.c (search_fs): Fix potential NULL pointer
1976 * commands/search.c (search_fs): Replace QUID macro with quid_fn
1979 2009-07-06 Daniel Mierswa <impulze@impulze.org>
1981 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
1984 2009-07-05 Pavel Roskin <proski@gnu.org>
1986 * include/grub/i386/linux.h (struct linux_kernel_params):
1987 Restore padding3, it's still needed.
1989 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
1991 * util/osdetect.lua: Likewise.
1993 2009-07-05 Bean <bean123ch@gmail.com>
1995 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
1997 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
1998 (grub_lua_getenv): Likewise.
1999 (grub_lua_setenv): Likewise.
2000 (save_errno): New function.
2001 (push_result): Likewise.
2002 (grub_lua_enum_device): Likewise.
2003 (grub_lua_enum_file): Likewise.
2004 (grub_lua_file_open): Likewise.
2005 (grub_lua_file_close): Likewise.
2006 (grub_lua_file_seek): Likewise.
2007 (grub_lua_file_read): Likewise.
2008 (grub_lua_file_getline): Likewise.
2009 (grub_lua_file_getsize): Likewise.
2010 (grub_lua_file_getpos): Likewise.
2011 (grub_lua_file_eof): Likewise.
2012 (grub_lua_file_exist): Likewise.
2013 (grub_lua_add_menu): Likewise.
2015 * script/lua/grub_lua.h (isupper): New inline function.
2016 (islower): Likewise.
2017 (ispunct): Likewise.
2018 (isxdigit): Likewise.
2019 (strcspn): Change to normal function.
2020 (strpbkr): New function declaration.
2023 * script/lua/grub_main.c (scan_str): New function.
2024 (strcspn): Likewise.
2025 (strpbrk): Likewise.
2028 * script/lua/linit.c (lualibs): Enable the string library.
2030 * util/osdetect.lua: New file.
2032 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
2034 * include/grub/i386/linux.h (struct linux_kernel_params): Add
2035 `capabilities' member.
2037 2009-07-02 Pavel Roskin <proski@gnu.org>
2039 * genparttoollist.sh: Add missing newline at the end.
2041 2009-07-01 Pavel Roskin <proski@gnu.org>
2043 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
2045 * util/hostdisk.c (open_device): Remove `const' from
2046 `sysctl_size', as sysctlbyname() can change it (in this case it
2047 doesn't actually happen).
2049 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
2050 using signed long int constants.
2052 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
2053 constant to avoid a warning on FreeBSD.
2055 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
2058 * Makefile.in: Install include/grub/machine symlink.
2060 * Makefile.in: When installing symlinks, use "cp -fR", which
2061 works on FreeBSD and MacOSX.
2062 From Yves Blusseau <cl7m42e02@sneakemail.com>
2064 * kern/dl.c (grub_dl_resolve_symbol): Make static.
2065 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
2067 * util/misc.c: Move grub_reboot() and grub_halt() ...
2068 * util/grub-emu.c: ... here. Make main_env static.
2069 * include/grub/util/misc.h: Remove main_env.
2071 * kern/mm.c: Use correct format to print size_t.
2073 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
2074 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
2075 * kern/powerpc/dl.c: Likewise.
2076 * kern/sparc64/dl.c: Likewise.
2077 * kern/x86_64/dl.c: Likewise.
2079 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2081 Fix grub-emu build on sparc64-ieee1275.
2083 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
2084 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
2086 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2088 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
2089 (grub_reboot, grub_halt): New functions.
2091 * util/i386/pc/misc.c: Delete. Update all users.
2092 * util/sparc64/ieee1275/misc.c: Likewise.
2093 * util/powerpc/ieee1275/misc.c: Likewise.
2095 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2097 * conf/i386.rmk (setjmp_mod_SOURCES)
2098 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
2099 * conf/common.rmk (setjmp_mod_SOURCES)
2100 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
2101 to use $(target_cpu).
2102 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
2103 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
2104 * conf/powerpc-ieee1275.rmk: Likewise.
2105 * conf/sparc64-ieee1275.rmk: Likewise.
2107 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
2108 $(target_cpu) for kern/$(target_cpu)/dl.c.
2109 * conf/i386-efi.rmk: Likewise.
2110 * conf/i386-ieee1275.rmk: Likewise.
2111 * conf/x86_64-efi.rmk: Likewise.
2112 * conf/i386-coreboot.rmk: Likewise.
2113 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
2114 $(target_cpu) for kern/$(target_cpu)/dl.c and for
2115 kern/$(target_cpu)/cache.S.
2116 * conf/sparc64-ieee1275.rmk: Likewise.
2118 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2120 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
2121 type to `grub_uint8_t', and adjust `padding9' accordingly.
2123 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2125 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
2127 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
2128 assembly in final jump, using register constraints.
2130 (grub_linux_boot): For text mode, initialize `have_vga' using
2131 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
2133 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
2134 right before the final jump.
2136 Set `video_mode' to 0x3.
2138 Document initialization of `video_page', `video_mode' and
2141 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2143 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
2144 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
2145 and set GRUB_LINUX_FLAG_QUIET appropriately.
2147 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2149 Fix build on Debian / sparc.
2151 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
2153 2009-06-28 Pavel Roskin <proski@gnu.org>
2155 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
2158 * util/grub.d/10_linux.in: Match SUSE style initrd names.
2160 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2162 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
2165 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2169 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
2170 file can't be opened. grub_file_open() is already supposed to set
2171 grub_errno / grub_errmsg appropriately.
2172 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2174 2009-06-27 Pavel Roskin <proski@gnu.org>
2175 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2177 * include/grub/dl.h: Include grub/elf.h.
2178 (struct grub_dl): Add symtab field.
2179 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
2180 GRUB_MODULES_MACHINE_READONLY.
2181 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
2182 of the header for read-only modules.
2183 (grub_dl_unload): Free mod->symtab for read-only modules.
2184 * kern/i386/dl.c: Use mod->symtab.
2185 * kern/powerpc/dl.c: Likewise.
2186 * kern/sparc64/dl.c: Likewise.
2187 * kern/x86_64/dl.c: Likewise.
2189 * conf/i386-qemu.rmk: New file.
2190 * kern/i386/qemu/startup.S: Likewise.
2191 * kern/i386/qemu/mmap.c: Likewise.
2192 * boot/i386/qemu/boot.S: Likewise.
2193 * include/grub/i386/qemu/time.h: Likewise.
2194 * include/grub/i386/qemu/serial.h: Likewise.
2195 * include/grub/i386/qemu/kernel.h: Likewise.
2196 * include/grub/i386/qemu/console.h: Likewise.
2197 * include/grub/i386/qemu/boot.h: Likewise.
2198 * include/grub/i386/qemu/init.h: Likewise.
2199 * include/grub/i386/qemu/machine.h: Likewise.
2200 * include/grub/i386/qemu/loader.h: Likewise.
2201 * include/grub/i386/qemu/memory.h: Likewise.
2203 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
2204 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
2205 [qemu] (pkglib_IMAGES): Add `boot.img'.
2206 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
2207 [qemu] (boot_img_FORMAT): New variables.
2208 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
2209 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
2210 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
2211 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
2212 [qemu] (kernel_img_FORMAT): New variables.
2214 * configure.ac: Recognise `i386-qemu'.
2216 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
2217 (for no compression).
2218 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
2219 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
2220 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
2221 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
2224 2009-06-27 Pavel Roskin <proski@gnu.org>
2226 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
2228 * efiemu/prepare32.c: Likewise.
2229 * efiemu/prepare64.c: Likewise.
2231 2009-06-26 Pavel Roskin <proski@gnu.org>
2233 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
2234 * include/grub/elf.h: Define symbols without "32" or "64" based
2235 on GRUB_TARGET_WORDSIZE.
2236 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
2237 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
2239 * efiemu/loadcore64.c: Likewise.
2240 * loader/i386/bsd32.c: Likewise.
2241 * loader/i386/bsd64.c: Likewise.
2242 * kern/dl.c: Remove own ELF definitions.
2243 * util/i386/efi/grub-mkimage.c: Likewise.
2245 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
2247 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
2248 segment 0x0 unconditionally, because the reference generated by
2249 GAS is an absolute address.
2251 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2253 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
2254 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
2256 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2258 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
2259 indexes. Check for -f explicitly.
2260 (search_file): Improve error message.
2261 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
2263 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2265 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
2266 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
2268 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2270 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
2271 * conf/i386-ieee1275.rmk: Likewise.
2272 * conf/i386-coreboot.rmk: Likewise.
2274 * kern/i386/pc/startup.S (grub_stop): Remove function.
2275 * kern/i386/ieee1275/startup.S: Likewise.
2276 * kern/i386/coreboot/startup.S: Likewise.
2277 * kern/i386/misc.S (grub_stop): New function.
2279 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2281 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
2282 * kern/i386/realmode.S (real_to_prot): ... to here.
2284 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2286 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
2288 (kernel_elf_SOURCES): Rename to ...
2289 (kernel_img_SOURCES): ... this.
2290 (kernel_elf_HEADERS): Rename to ...
2291 (kernel_img_HEADERS): ... this. Update all users.
2292 (kernel_elf_ASFLAGS): Rename to ...
2293 (kernel_img_ASFLAGS): ... this.
2294 (kernel_elf_CFLAGS): Rename to ...
2295 (kernel_img_CFLAGS): ... this.
2296 (kernel_elf_LDFLAGS): Rename to ...
2297 (kernel_img_LDFLAGS): ... this.
2298 * conf/i386-coreboot.rmk: Likewise.
2299 * conf/powerpc-ieee1275.rmk: Likewise.
2301 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
2304 2009-06-21 Pavel Roskin <proski@gnu.org>
2306 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
2307 to match nested functions.
2308 * loader/sparc64/ieee1275/linux.c: Likewise.
2310 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
2312 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2314 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
2317 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2319 Fix asm file handling on ELF, and remove workarounds.
2321 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
2322 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
2323 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
2324 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
2326 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2328 Load BSD ELF modules
2330 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
2331 and loader/i386/bsd64.c
2332 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
2333 (FREEBSD_MODTYPE_ELF_MODULE): New definition
2334 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
2335 (grub_freebsd_load_elfmodule32): New declaration
2336 (grub_freebsd_load_elfmoduleobj64): Likewise
2337 (grub_freebsd_load_elf_meta32): Likewise
2338 (grub_freebsd_load_elf_meta64): Likewise
2339 (grub_freebsd_add_meta): Likewise
2340 (grub_freebsd_add_meta_module): Likewise
2341 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
2342 (grub_freebsd_add_meta_module): Likewise and move module-specific
2343 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
2344 (grub_cmd_freebsd): Add elf-kernel specific parts
2345 based on grub_freebsd_add_meta_module
2346 (grub_cmd_freebsd_module): Add type parsing moved from
2347 grub_freebsd_add_meta_module
2348 (grub_cmd_freebsd_module_elf): New function
2349 (cmd_freebsd_module_elf): New variable
2350 (GRUB_MOD_INIT): Register freebsd_module_elf
2351 * loader/i386/bsd32.c: New file
2352 * loader/i386/bsd64.c: Likewise
2353 * loader/i386/bsdXX.c: Likewise
2354 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
2355 (grub_elf64_load): Likewise
2356 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
2358 (grub_elf64_load_hook_t): Likewise
2360 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
2362 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
2364 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
2365 don't write a menu entry for recovery mode.
2367 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2369 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
2370 after it's no longer needed.
2372 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2374 * include/grub/i386/loader.h (grub_linux_prot_size)
2375 (grub_linux_tmp_addr, grub_linux_real_addr)
2376 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
2377 GRUB_MACHINE_PCBIOS.
2378 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
2379 common grub_util_info() call to ...
2380 (generate_image): ... here.
2381 Fix use of uninitialized memory, comparison of signed with
2382 unsigned integers and memory leak.
2383 Remove bogus module address message.
2385 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2387 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
2389 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
2391 2009-06-19 Pavel Roskin <proski@gnu.org>
2393 * configure.ac: Remove stray AC_MSG_CHECKING.
2395 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2397 * disk/scsi.c (grub_scsi_open): use continue instead of big if
2399 2009-06-18 Pavel Roskin <proski@gnu.org>
2401 * conf/common.rmk: Add fs_file.mod.
2402 * disk/fs_file.c: New file.
2403 * include/grub/disk.h (enum grub_disk_dev_id): Add
2404 GRUB_DISK_DEVICE_FILE_ID.
2406 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2408 Fix build with Apple's toolchain. Part 2
2410 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
2413 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2415 Fix build with Apple's toolchain. Part 1
2417 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
2419 * configure.ac: remove a leftover AC_MSG_RESULT
2420 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
2423 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2427 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
2428 (decomp_block): initialize ch
2429 use grub_memcpy instead of memcpy
2431 2009-06-17 Pavel Roskin <proski@gnu.org>
2433 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
2434 version, use declarations needed to use vga_text as the startup
2437 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
2438 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
2440 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
2441 and grub_at_keyboard_fini(), it's done on module load and
2444 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
2446 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
2447 file can't be found.
2448 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2450 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2452 Fix newline handling
2454 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
2455 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
2456 (grub_script_yylex): don't segfault on unterminated script
2457 newline terminates command and variable
2459 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2461 avoid double grub_adjust_range call. Bug reported by David Simner
2463 * kern/disk.c (grub_disk_write): change to raw disk access before
2466 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
2468 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
2469 spaces, for the benefit of help2man.
2470 * util/i386/efi/grub-mkimage.c (usage): Likewise.
2472 2009-06-16 Pavel Roskin <proski@gnu.org>
2474 * kern/i386/halt.c: Include grub/machine/init.h.
2475 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
2477 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
2479 * util/grub.d/30_os-prober.in: Use ${root} in the generated
2482 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
2484 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
2487 2009-06-16 Pavel Roskin <proski@gnu.org>
2489 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
2490 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
2491 save %dx, we only need %dl and we never change it.
2492 * boot/i386/pc/cdboot.S: Don't set the root drive.
2493 * boot/i386/pc/pxeboot.S: Likewise.
2494 * include/grub/i386/pc/boot.h: Remove
2495 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
2496 GRUB_BOOT_MACHINE_DRIVE_CHECK.
2497 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
2498 * kern/i386/pc/init.c (make_install_device): Remove references
2500 * kern/i386/pc/startup.S: Likewise.
2501 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
2503 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2507 * commands/xnu_uuid.c: new file
2508 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
2509 (xnu_uuid_mod_SOURCES): new variable
2510 (xnu_uuid_mod_CFLAGS): likewise
2511 (xnu_uuid_mod_LDFLAGS): likewise
2512 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2513 * conf/i386-ieee1275.rmk: likewise
2514 * conf/i386-pc.rmk: likewise
2515 * conf/powerpc-ieee1275.rmk: likewise
2516 * conf/sparc64-ieee1275.rmk: likewise
2517 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
2519 2009-06-16 Pavel Roskin <proski@gnu.org>
2521 * configure.ac: Avoid '==' in test command, it's not portable.
2523 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2527 * commands/probe.c: new file
2528 * conf/common.rmk (pkglib_MODULES): add probe.mod
2529 (probe_mod_SOURCES): new variable
2530 (probe_mod_CFLAGS): likewise
2531 (probe_mod_LDFLAGS): likewise
2532 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2533 * conf/i386-ieee1275.rmk: likewise
2534 * conf/i386-pc.rmk: likewise
2535 * conf/powerpc-ieee1275.rmk: likewise
2536 * conf/sparc64-ieee1275.rmk: likewise
2538 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2540 Fix handling of string like \"hello\" and "a
2543 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
2544 (grub_script_yylex): fix parsing of quoting, escaping and newline
2546 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2548 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
2551 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
2553 * util/grub-mkconfig.in: Fix parsing of --output option.
2555 2009-06-12 Pavel Roskin <proski@gnu.org>
2557 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
2558 genmk.rb don't need to be generated or installed.
2560 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
2562 * commands/i386/pc/drivemap_int13h.S: add more comments
2564 2009-06-11 Pavel Roskin <proski@gnu.org>
2566 * Makefile.in (uninstall): Uninstall manuals.
2568 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
2569 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
2570 and update-grub_lib in two places.
2571 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
2573 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
2576 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
2577 `entry_lo' to fix variable shadowing.
2579 2009-06-11 Christian Franke <franke@computer.org>
2581 * kern/misc.c (__enable_execute_stack): Add missing return type
2582 to prevent gcc warning.
2584 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2586 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
2588 2009-06-11 Pavel Roskin <proski@gnu.org>
2590 * Makefile.in: Don't rely on any scripts being executable.
2591 Always use $(SHELL) to run shell scripts.
2593 * configure.ac: Always define ___main if using -nostdlib. This
2594 fixes tests on Cygwin.
2596 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
2600 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
2601 is in bytes and not in blocks
2603 2009-06-11 Pavel Roskin <proski@gnu.org>
2605 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
2608 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2610 * util/grub.d/30_os-prober.in: Fix a comment. Source
2611 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
2612 to set the root device. Place drivemap command in the generated
2615 2009-06-11 Pavel Roskin <proski@gnu.org>
2617 * configure.ac: Remove host_m32. Issues with 64-bit utilities
2618 have long been resolved.
2620 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
2622 * util/grub.d/10_linux.in: Capitalise "Linux".
2624 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
2626 2009-06-11 Pavel Roskin <proski@gnu.org>
2628 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
2629 fix a gcc warning and ensure that the function won't ever exit.
2631 * kern/i386/ieee1275/init.c: Add missing prototype for
2634 * loader/ieee1275/multiboot2.c [__i386__]: Include
2635 grub/cpu/multiboot.h.
2637 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
2638 casts to short - they are not portable and cause warnings. Fix
2639 use of uninitialized values in input_buf. Use ARRAY_SIZE.
2641 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2645 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
2647 (grub_get_root_biosnumber_saved): new variable
2648 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
2649 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
2650 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
2651 %dx after the call if necessary
2652 * conf/common.rmk (pkglib_MODULES): remove boot.mod
2653 (boot_mod_SOURCES): remove
2654 (boot_mod_CFLAGS): remove
2655 (boot_mod_LDFLAGS): remove
2656 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
2657 (boot_mod_SOURCES): new variable
2658 (boot_mod_CFLAGS): likewise
2659 (boot_mod_LDFLAGS): likewise
2660 * conf/i386-efi.rmk: likewise
2661 * conf/i386-ieee1275.rmk: likewise
2662 * conf/i386-pc.rmk: likewise
2663 * conf/powerpc-ieee1275.rmk: likewise
2664 * conf/sparc64-ieee1275.rmk: likewise
2665 * conf/x86_64-efi.rmk: likewise
2666 * include/grub/i386/pc/biosnum.h: new file
2667 * lib/i386/pc/biosnum.c: likewise
2668 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
2669 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
2670 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
2672 2009-06-10 Pavel Roskin <proski@gnu.org>
2674 * io/gzio.c (test_header): Don't reuse one buffer for all data.
2675 Use separate variables. Read only the file size at the end, but
2676 not the checksum that we don't use.
2678 * kern/file.c (grub_file_read): Use void pointer for the buffer.
2681 * kern/ieee1275/openfw.c: Remove libc includes.
2682 * kern/ieee1275/cmain.c: Likewise.
2683 * include/grub/ieee1275/ieee1275.h: Likewise.
2685 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
2688 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2690 * Makefile.in: Remove all trailing whitespace.
2691 * conf/i386-pc.rmk: Likewise.
2692 * conf/powerpc-ieee1275.rmk: Likewise.
2693 * conf/sparc64-ieee1275.rmk: Likewise.
2694 * docs/grub.texi: Likewise.
2695 * docs/texinfo.tex: Likewise.
2696 * disk/fs_uuid.c: Likewise.
2697 * disk/lvm.c: Likewise.
2698 * disk/scsi.c: Likewise.
2699 * disk/ata.c: Likewise.
2700 * disk/ieee1275/ofdisk.c: Likewise.
2701 * disk/i386/pc/biosdisk.c: Likewise.
2702 * disk/host.c: Likewise.
2703 * disk/raid.c: Likewise.
2704 * disk/efi/efidisk.c: Likewise.
2705 * disk/usbms.c: Likewise.
2706 * disk/memdisk.c: Likewise.
2707 * disk/loopback.c: Likewise.
2708 * kern/powerpc/dl.c: Likewise.
2709 * kern/device.c: Likewise.
2710 * kern/dl.c: Likewise.
2711 * kern/sparc64/dl.c: Likewise.
2712 * kern/ieee1275/ieee1275.c: Likewise.
2713 * kern/term.c: Likewise.
2714 * kern/fs.c: Likewise.
2715 * kern/i386/dl.c: Likewise.
2716 * kern/i386/pc/startup.S: Likewise.
2717 * kern/i386/pc/init.c: Likewise.
2718 * kern/i386/pc/mmap.c: Likewise.
2719 * kern/i386/pc/lzo1x.S: Likewise.
2720 * kern/i386/ieee1275/init.c: Likewise.
2721 * kern/i386/realmode.S: Likewise.
2722 * kern/i386/tsc.c: Likewise.
2723 * kern/partition.c: Likewise.
2724 * kern/corecmd.c: Likewise.
2725 * kern/file.c: Likewise.
2726 * kern/efi/efi.c: Likewise.
2727 * kern/efi/init.c: Likewise.
2728 * kern/efi/mm.c: Likewise.
2729 * kern/main.c: Likewise.
2730 * kern/err.c: Likewise.
2731 * kern/env.c: Likewise.
2732 * kern/disk.c: Likewise.
2733 * kern/generic/millisleep.c: Likewise.
2734 * kern/generic/rtc_get_time_ms.c: Likewise.
2735 * kern/misc.c: Likewise.
2736 * kern/parser.c: Likewise.
2737 * genmk.rb: Likewise.
2738 * configure.ac: Likewise.
2739 * boot/i386/pc/diskboot.S: Likewise.
2740 * boot/i386/pc/pxeboot.S: Likewise.
2741 * boot/i386/pc/boot.S: Likewise.
2742 * boot/i386/pc/lnxboot.S: Likewise.
2743 * boot/i386/pc/cdboot.S: Likewise.
2744 * parttool/pcpart.c: Likewise.
2745 * video/readers/tga.c: Likewise.
2746 * video/video.c: Likewise.
2747 * video/bitmap.c: Likewise.
2748 * lib/envblk.c: Likewise.
2749 * lib/i386/setjmp.S: Likewise.
2750 * fs/xfs.c: Likewise.
2751 * fs/afs.c: Likewise.
2752 * fs/fat.c: Likewise.
2753 * fs/ntfs.c: Likewise.
2754 * fs/udf.c: Likewise.
2755 * fs/affs.c: Likewise.
2756 * fs/iso9660.c: Likewise.
2757 * fs/hfs.c: Likewise.
2758 * fs/fshelp.c: Likewise.
2759 * fs/ext2.c: Likewise.
2760 * fs/jfs.c: Likewise.
2761 * fs/reiserfs.c: Likewise.
2762 * fs/hfsplus.c: Likewise.
2763 * fs/minix.c: Likewise.
2764 * fs/cpio.c: Likewise.
2765 * fs/sfs.c: Likewise.
2766 * fs/ufs.c: Likewise.
2767 * efiemu/prepare.c: Likewise.
2768 * efiemu/loadcore_common.c: Likewise.
2769 * efiemu/runtime/efiemu.sh: Likewise.
2770 * efiemu/runtime/efiemu.S: Likewise.
2771 * efiemu/runtime/efiemu.c: Likewise.
2772 * efiemu/pnvram.c: Likewise.
2773 * efiemu/main.c: Likewise.
2774 * efiemu/i386/pc/cfgtables.c: Likewise.
2775 * efiemu/i386/loadcore64.c: Likewise.
2776 * efiemu/i386/loadcore32.c: Likewise.
2777 * efiemu/loadcore.c: Likewise.
2778 * efiemu/symbols.c: Likewise.
2779 * efiemu/mm.c: Likewise.
2780 * include/grub/autoefi.h: Likewise.
2781 * include/grub/datetime.h: Likewise.
2782 * include/grub/term.h: Likewise.
2783 * include/grub/hfs.h: Likewise.
2784 * include/grub/lvm.h: Likewise.
2785 * include/grub/i386/tsc.h: Likewise.
2786 * include/grub/i386/linux.h: Likewise.
2787 * include/grub/i386/xnu.h: Likewise.
2788 * include/grub/i386/efiemu.h: Likewise.
2789 * include/grub/i386/pc/biosdisk.h: Likewise.
2790 * include/grub/i386/pc/memory.h: Likewise.
2791 * include/grub/i386/pc/vbe.h: Likewise.
2792 * include/grub/parttool.h: Likewise.
2793 * include/grub/video.h: Likewise.
2794 * include/grub/memory.h: Likewise.
2795 * include/grub/fs.h: Likewise.
2796 * include/grub/partition.h: Likewise.
2797 * include/grub/xnu.h: Likewise.
2798 * include/grub/efi/api.h: Likewise.
2799 * include/grub/efi/pe32.h: Likewise.
2800 * include/grub/efi/memory.h: Likewise.
2801 * include/grub/multiboot.h: Likewise.
2802 * include/grub/usbdesc.h: Likewise.
2803 * include/grub/multiboot2.h: Likewise.
2804 * include/grub/acpi.h: Likewise.
2805 * include/grub/efiemu/efiemu.h: Likewise.
2806 * include/grub/disk.h: Likewise.
2807 * include/grub/ieee1275/ieee1275.h: Likewise.
2808 * include/grub/net.h: Likewise.
2809 * include/grub/machoload.h: Likewise.
2810 * include/grub/macho.h: Likewise.
2811 * include/multiboot.h: Likewise.
2812 * genmoddep.awk: Likewise.
2813 * normal/main.c: Likewise.
2814 * normal/menu_entry.c: Likewise.
2815 * normal/menu_viewer.c: Likewise.
2816 * normal/completion.c: Likewise.
2817 * normal/cmdline.c: Likewise.
2818 * normal/misc.c: Likewise.
2819 * normal/datetime.c: Likewise.
2820 * bus/usb/usbtrans.c: Likewise.
2821 * bus/usb/ohci.c: Likewise.
2822 * bus/usb/uhci.c: Likewise.
2823 * bus/usb/usb.c: Likewise.
2824 * mmap/efi/mmap.c: Likewise.
2825 * mmap/i386/pc/mmap_helper.S: Likewise.
2826 * mmap/i386/pc/mmap.c: Likewise.
2827 * mmap/i386/mmap.c: Likewise.
2828 * mmap/i386/uppermem.c: Likewise.
2829 * mmap/mmap.c: Likewise.
2830 * commands/acpi.c: Likewise.
2831 * commands/echo.c: Likewise.
2832 * commands/blocklist.c: Likewise.
2833 * commands/loadenv.c: Likewise.
2834 * commands/usbtest.c: Likewise.
2835 * commands/boot.c: Likewise.
2836 * commands/parttool.c: Likewise.
2837 * commands/search.c: Likewise.
2838 * commands/cat.c: Likewise.
2839 * commands/i386/pc/play.c: Likewise.
2840 * commands/i386/pc/drivemap.c: Likewise.
2841 * commands/i386/pc/vbeinfo.c: Likewise.
2842 * commands/i386/pc/acpi.c: Likewise.
2843 * commands/i386/pc/vbetest.c: Likewise.
2844 * commands/ls.c: Likewise.
2845 * commands/cmp.c: Likewise.
2846 * commands/test.c: Likewise.
2847 * commands/efi/acpi.c: Likewise.
2848 * commands/gptsync.c: Likewise.
2849 * commands/help.c: Likewise.
2850 * partmap/amiga.c: Likewise.
2851 * partmap/apple.c: Likewise.
2852 * partmap/acorn.c: Likewise.
2853 * partmap/pc.c: Likewise.
2854 * partmap/sun.c: Likewise.
2855 * partmap/gpt.c: Likewise.
2856 * script/sh/lexer.c: Likewise.
2857 * script/sh/function.c: Likewise.
2858 * font/font.c: Likewise.
2859 * font/font_cmd.c: Likewise.
2860 * loader/powerpc/ieee1275/linux.c: Likewise.
2861 * loader/efi/chainloader.c: Likewise.
2862 * loader/multiboot_loader.c: Likewise.
2863 * loader/macho.c: Likewise.
2864 * loader/i386/multiboot.c: Likewise.
2865 * loader/i386/linux.c: Likewise.
2866 * loader/i386/pc/linux.c: Likewise.
2867 * loader/i386/pc/multiboot2.c: Likewise.
2868 * loader/i386/pc/chainloader.c: Likewise.
2869 * loader/i386/pc/xnu.c: Likewise.
2870 * loader/i386/bsd_trampoline.S: Likewise.
2871 * loader/i386/efi/linux.c: Likewise.
2872 * loader/i386/multiboot_elfxx.c: Likewise.
2873 * loader/i386/bsd_helper.S: Likewise.
2874 * loader/i386/bsd.c: Likewise.
2875 * loader/i386/linux_trampoline.S: Likewise.
2876 * loader/i386/xnu_helper.S: Likewise.
2877 * loader/i386/xnu.c: Likewise.
2878 * loader/i386/bsd_pagetable.c: Likewise.
2879 * loader/i386/multiboot_helper.S: Likewise.
2880 * loader/xnu.c: Likewise.
2881 * loader/xnu_resume.c: Likewise.
2882 * io/gzio.c: Likewise.
2883 * term/efi/console.c: Likewise.
2884 * term/terminfo.c: Likewise.
2885 * term/ieee1275/ofconsole.c: Likewise.
2886 * term/i386/pc/serial.c: Likewise.
2887 * term/i386/pc/vesafb.c: Likewise.
2888 * term/i386/pc/vga.c: Likewise.
2889 * term/usb_keyboard.c: Likewise.
2890 * term/gfxterm.c: Likewise.
2891 * aclocal.m4: Likewise.
2892 * util/lvm.c: Likewise.
2893 * util/grub.d/30_os-prober.in: Likewise.
2894 * util/grub.d/10_hurd.in: Likewise.
2895 * util/console.c: Likewise.
2896 * util/grub-macho2img.c: Likewise.
2897 * util/grub-probe.c: Likewise.
2898 * util/hostfs.c: Likewise.
2899 * util/i386/pc/grub-mkimage.c: Likewise.
2900 * util/i386/pc/grub-setup.c: Likewise.
2901 * util/i386/efi/grub-mkimage.c: Likewise.
2902 * util/grub-mkconfig.in: Likewise.
2903 * util/raid.c: Likewise.
2904 * util/resolve.c: Likewise.
2905 * util/grub-mkdevicemap.c: Likewise.
2906 * util/grub-emu.c: Likewise.
2907 * util/getroot.c: Likewise.
2908 * util/hostdisk.c: Likewise.
2909 * util/usb.c: Likewise.
2910 * util/grub-editenv.c: Likewise.
2911 * util/misc.c: Likewise.
2913 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2915 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
2916 `genparttoollist.sh'.
2917 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
2918 Add `*.sh' to the list find searches for and change `mdate.sh'
2921 2009-06-10 Pavel Roskin <proski@gnu.org>
2923 * include/grub/multiboot2.h: Provide compatibility defines for
2925 * include/multiboot2.h: Include stdint.h only if needed, using
2927 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
2929 * loader/ieee1275/multiboot2.c: Likewise.
2930 * loader/multiboot2.c: Likewise.
2931 * loader/multiboot_loader.c: Likewise.
2933 * configure.ac: Use -nostdlib when probing for the target. It
2934 should not be required to have libc for the target.
2936 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
2937 they fail without libc headers for the target.
2938 * include/grub/powerpc/libgcc.h: Use weak attribute for all
2940 * include/grub/sparc64/libgcc.h: Likewise. Don't use
2941 preprocessor conditionals.
2943 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
2944 build system doesn't need to be aware of the tar.c internals.
2946 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
2948 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
2950 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
2952 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
2953 disk limit to 26 for IDE, Virtio, Xen and SCSI.
2955 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
2957 * util/i386/pc/grub-install.in: Change the error message if UUIDs
2958 aren't available if ata.mod gets used.
2960 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
2962 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
2963 initialising controller.
2964 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
2966 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2968 * util/i386/pc/grub-install.in: Add a parameter --disk-module
2969 to choose between ata and biosdisk module on i386-pc.
2971 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
2973 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
2974 Subclass and Programming Interface fields in terms of the 3 byte
2975 Class Code register.
2976 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
2978 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
2979 interface is OHCI. Add grub_dprintf for symmetry with
2981 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
2982 interface is UHCI. Add interf variable for programming
2983 interface. Print interface with class/subclass.
2985 * bus/usb/ohci.c: Set interf with correct field.
2987 * bus/usb/uhci.c: Remove unneeded doubled lines.
2988 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
2989 Remove whitespace inside comment.
2991 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
2993 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
2994 as fallback an equivalent option without depth.
2996 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2998 Not fail if unable to retrieve C/H/S on LBA disks
3000 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
3001 if unable to retrieve C/H/S on LBA disks
3003 2009-06-08 Pavel Roskin <proski@gnu.org>
3005 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
3008 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3010 * Makefile.in (uninstall): Remove all $lib_DATA files.
3012 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3014 Bugfix: install on partitionless device
3016 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
3019 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3021 * Makefile.in (uninstall): Remove all $include_DATA files.
3023 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3025 * commands/true.c: New file. Implement the true and false commands.
3026 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
3027 (true_mod_SOURCES): New variable.
3028 (true_mod_CFLAGS): Likewise.
3029 (true_mod_LDFLAGS): Likewise.
3031 2009-06-05 Colin D Bennett <colin@gibibit.com>
3033 Optimized font character lookup using binary search instead of linear
3034 search. Fonts now are required to have the character index ordered by
3037 * font/font.c (load_font_index): Verify that fonts have ordered
3039 (find_glyph): Use binary search instead of linear search to find a
3040 character in a font.
3042 2009-06-05 Michael Scherer <misc@mandriva.org>
3044 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
3045 uses case sensitive btree.
3046 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
3047 only for case insensitive filesystems.
3049 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3051 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
3052 * conf/common.rmk (search_mod_CFLAGS): likewise
3054 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3056 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
3057 compensate a compiler bug
3059 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3061 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
3064 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3066 Definitions for creating asm symbols with Apple's CC
3068 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
3069 [APPLE_CC] (VARIABLE): likewise
3071 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3073 Disable lnxboot.img when compiled
3076 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
3077 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
3078 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
3079 [! APPLE_CC] (CODE_LENG): skip
3080 [! APPLE_CC] (setup_sects): likewise
3081 [! APPLE_CC]: skip filling
3083 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3085 Address in trampolines based on 32-bit registers when compiled
3088 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
3090 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
3092 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3094 Avoid aliases when compiling with Apple's CC for PCBIOS machine
3096 * kern/misc.c [APPLE_CC] (memcpy): new function
3097 [APPLE_CC] (memmove): likewise
3098 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
3099 (memcpy): define alias conditionally on !APPLE_CC
3102 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
3103 APPLE_CC are defined
3104 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
3105 (grub_assert_fail): make prototype conditional
3107 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3109 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
3111 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
3113 (CLEANFILES): add grub-macho2img
3114 (grub_macho2img_SOURCES): new variable
3115 * kern/i386/pc/startup.S (bss_start): new variable
3117 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
3118 * util/grub-macho2img.c: new file
3120 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3122 Use objconv when compiling with Apple's CC
3124 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
3125 (efiemu64.o): likewise
3126 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
3127 when compiling with Apple's CC
3128 (efiemu64_s.o): likewise
3129 * configure.ac: check for objconv when compiling with Apple's CC
3130 * genmk.rb: use objconv for modules when compiled with Apple's CC
3132 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3134 Define segment as well as section when compiling with
3137 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
3138 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
3139 (efiemu_convert_pointer): likewise
3140 (efiemu_set_virtual_address_map): likewise
3141 (efiemu_convert_pointer): likewise
3142 (efiemu_getcrc32): likewise
3143 (init_crc32_table): likewise
3145 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
3146 (GRUB_MOD_DEP): likewise
3148 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3150 Allow a compilation without -mcmodel=large
3152 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
3153 when compiled without -mcmodel=large
3154 (filter_memory_map): remove memory post 4 GiB when compiled
3155 without -mcmodel=large
3156 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
3157 TARGET_CFLAGS when -mcmodel=large isn't supported
3159 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3161 Remove nested functions in efiemu core
3163 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
3165 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3167 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
3169 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
3171 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
3173 (grub_cpu_is_tsc_supported): likewise
3174 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
3176 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3178 Absolute addressing through constant with Apple's cc
3180 * kern/i386/pc/startup.S: Define necessary constants
3181 and address through it when using ABS with Apple's CC
3182 * boot/i386/pc/diskboot.S: likewise
3183 * boot/i386/pc/boot.S: likewise
3184 * boot/i386/pc/lnxboot.S: likewise
3185 * boot/i386/pc/cdboot.S: likewise
3186 * mmap/i386/pc/mmap_helper.S: likewise
3187 * commands/i386/pc/drivemap_int13h.S: likewise
3189 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3191 Check if compiler is apple cc
3193 * Makefile.in (ASFLAGS): new variable
3194 (TARGET_ASFLAGS): likewise
3195 (TARGET_MODULE_FORMAT): likewise
3196 (TARGET_APPLE_CC): likewise
3198 (TARGET_IMG_CFLAGS): likewise
3199 (TARGET_CPPFLAGS): add includedir
3200 * configure.ac: call grub_apple_cc and grub_apple_target_cc
3201 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
3202 Check for linker script only if compiler isn't Apple's CC
3203 (TARGET_MODULE_FORMAT): set
3204 (TARGET_APPLE_CC): likewise
3205 (TARGET_ASFLAGS): likewise
3207 Check for objcopy only if compiler isn't Apple's CC
3208 Check for BSS symbol only if compiler isn't Apple's CC
3209 * genmk.rb: adapt nm options if we use Apple's utils
3210 * aclocal.m4 (grub_apple_cc): new test
3211 (grub_apple_target_cc): likewise
3213 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3215 Simplify sed expressions and improve awk
3217 * Makefile.in (install-local): simplify sed expression
3218 * gencmdlist.sh: likewise
3219 * genmoddep.awk: avoid adding module as a dependency of itself
3221 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3223 Add missing start symbols
3225 * boot/i386/pc/boot.S: add start
3226 * boot/i386/pc/pxeboot.S: likewise
3228 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3230 Fix wrong assumptions with grub-mkimage on EFI
3232 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
3233 (relocate_addresses): consider both r_addend and value at offset
3234 (make_mods_section): zerofill modinfo and header
3235 (convert_elf): write prefix here
3237 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3239 Use .asciz instead of .string
3241 * i386/pc/diskboot.S: use .asciz instead of .string
3242 * i386/pc/boot.S: likewise
3243 * include/grub/dl.h (GRUB_MOD_DEP): likewise
3244 (GRUB_MOD_NAME): likewise
3246 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3250 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
3251 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
3252 (grub_video_setup): remove
3253 (grub_video_set_mode): new prototype
3254 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
3256 (linux_vesafb_res): compile only on PCBIOS
3257 (grub_linux_boot): support gfxpayload
3258 * loader/i386/pc/xnu.c (video_hook): new function
3259 (grub_xnu_set_video): support gfxpayload
3260 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
3261 (DEFAULT_VIDEO_HEIGHT): likewise
3262 (DEFAULT_VIDEO_FLAGS): likewise
3263 (DEFAULT_VIDEO_MODE): new definition
3264 (video_hook): new function
3265 (grub_gfxterm_init): use grub_video_set_mode
3266 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3268 * video/video.c (grub_video_setup): removed
3269 (grub_video_set_mode): new function based on grub_gfxterm_init and
3272 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3274 Avoid calling biosdisk in drivemap
3276 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
3277 (revparse_biosdisk): likewise
3278 (list_mappings): derive name from id directly
3279 (grub_cmd_drivemap): use tryparse_diskstring
3281 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3285 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
3286 (grub_lexer_param): add tokenonhold
3287 (grub_script_create_cmdline): remove cmdline. All callers updated
3288 (grub_script_function_create): make functionname
3289 grub_script_arg. All callers updated
3290 (grub_script_execute_argument_to_string): new prototype
3291 * kern/parser.c (state_transitions): reorder
3292 (grub_parser_cmdline_state): fix a bug and make more compact
3293 * script/sh/execute.c (grub_script_execute_argument_to_string):
3295 (grub_script_execute_cmdline): use new format
3296 * script/sh/function.c (grub_script_function_create): make functionname
3297 grub_script_arg. All callers updated
3298 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
3299 (grub_script_yylex): remove
3300 (grub_script_yylex2): renamed to ...
3301 (grub_script_yylex): ...renamed
3302 parse the expressions like a${b}c
3303 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
3304 (GRUB_PARSER_TOKEN_VAR): remove
3305 (GRUB_PARSER_TOKEN_NAME): likewise
3306 ("if"): declare as typeless
3308 ("function"): likewise
3313 (argument): likewise
3314 (script): accept empty scripts and make exit on error
3315 (arguments): use GRUB_PARSER_TOKEN_ARG
3316 (function): likewise
3317 (command): move error handling to script
3318 (menuentry): move grub_script_lexer_ref before
3319 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
3320 argument. All callers updated
3322 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3324 Prevent GRUB from probing floppies during boot.
3326 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
3327 * commands/search.c (options): Add --no-floppy.
3328 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
3329 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
3330 --no-floppy when searching for UUIDs.
3332 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3334 Simplify the code duplication in commands/search.c.
3336 * commands/search.c (search_label, search_fs_uuid): Merge into ...
3337 (search_fs): ... this. Update all users.
3339 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
3341 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
3343 2009-05-28 Pavel Roskin <proski@gnu.org>
3345 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
3346 Remove the original symlink explicitly.
3348 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
3349 just one slash. That's how grub_fshelp_find_file() does it.
3351 2009-05-26 Pavel Roskin <proski@gnu.org>
3353 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
3356 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
3359 2009-05-25 Christian Franke <franke@computer.org>
3361 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
3363 (grub_atapi_identify): Add wait after drive select.
3364 (grub_ata_identify): Do more strict status register check before
3365 calling grub_atapi_identify (). Suppress error message if status
3366 register is 0x00 after command failure. Add status register
3367 check after PIO read to avoid bogus identify due to stuck DRQ.
3368 Thanks to Pavel Roskin for testing.
3369 (grub_device_initialize): Remove unsafe status register check.
3370 Thanks to 'phcoder' for problem report and patch.
3371 Prevent sign extension in debug message.
3373 2009-05-23 Colin D Bennett <colin@gibibit.com>
3375 Cleaned up `include/grub/normal.h'. Grouped prototypes by
3376 definition file, and functions defined in `normal/menu.c' have had
3377 their prototypes moved to `include/grub/menu.h' for consistency.
3379 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
3381 (grub_menu_get_entry): Likewise.
3382 (grub_menu_get_timeout): Likewise.
3383 (grub_menu_set_timeout): Likewise.
3384 (grub_menu_execute_entry): Likewise.
3385 (grub_menu_execute_with_fallback): Likewise.
3386 (grub_menu_entry_run): Likewise.
3388 * include/grub/normal.h: Re-ordered and grouped function
3389 prototypes by file that the function is defined in.
3390 (grub_menu_execute_callback): Removed; moved to menu.h.
3391 (grub_menu_get_entry): Likewise.
3392 (grub_menu_get_timeout): Likewise.
3393 (grub_menu_set_timeout): Likewise.
3394 (grub_menu_execute_entry): Likewise.
3395 (grub_menu_execute_with_fallback): Likewise.
3396 (grub_menu_entry_run): Likewise.
3397 (grub_menu_addentry): Renamed from this ...
3398 (grub_normal_add_menu_entry): ... to this.
3400 * normal/main.c (grub_menu_addentry): Renamed from this ...
3401 (grub_normal_add_menu_entry): ... to this.
3403 * script/sh/execute.c (grub_script_execute_menuentry): Update
3404 reference to renamed grub_menu_addentry function.
3406 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
3408 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
3410 2009-05-22 Pavel Roskin <proski@gnu.org>
3412 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
3413 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
3414 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
3415 compiling for the i386 targets, but not for the utilities.
3417 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
3419 (grub_root_drive): Likewise.
3420 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
3422 (grub_root_drive): Change size to byte.
3423 (grub_start_addr): Remove.
3424 (grub_end_addr): Likewise.
3425 (grub_apm_bios_info): Likewise.
3427 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
3429 * normal/i386: Remove.
3430 * normal/powerpc: Likewise.
3431 * normal/sparc64: Likewise.
3432 * normal/x86_64: Likewise.
3434 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
3436 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
3437 * loader/i386/linux_trampoline.S: Fix indentation
3438 * loader/i386/xnu_helper.S: Likewise
3440 2009-05-18 Colin D Bennett <colin@gibibit.com>
3442 Display error messages when parsing a Lua statement fails.
3443 Previously, executing a syntactically invalid statement like
3444 ")foo" or "bar;" would silently fail.
3446 * script/lua/grub_main.c (handle_lua_error): New function.
3447 (grub_lua_parse_line): Improved reporting of Lua parser and
3450 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3452 Remove -Werror which causes build to fail on some systems
3454 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
3455 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
3456 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
3458 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3460 trampoline for linux on 64-bit platform
3462 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
3463 loader/i386/efi/linux_trampoline.S
3464 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
3466 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
3468 * loader/i386/linux_trampoline.S: moved here
3469 * loader/i386/efi/linux.c (allocate_pages): reserve space for
3471 (jumpvector): removed
3472 (grub_linux_trampoline_start): new declaration
3473 (grub_linux_trampoline_end): likewise
3474 (grub_linux_boot): use trampoline when on 64-bit platform
3475 * loader/i386/linux.c: likewise
3477 2009-05-16 Pavel Roskin <proski@gnu.org>
3479 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
3480 const to avoid a warning.
3481 (grub_lua_setenv): Likewise.
3482 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
3483 lmsg to fix a warning.
3485 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3487 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
3488 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3489 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
3490 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3491 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3492 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3493 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3494 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3496 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3498 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
3500 2009-05-16 Bean <bean123ch@gmail.com>
3502 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
3503 (lua_mod_SOURCES): New variable.
3504 (lua_mod_CFLAGS): Likewise.
3505 (lua_mod_LDFLAGS): Likewise.
3507 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
3508 (setjmp_mod_SOURCES): New variable.
3509 (setjmp_mod_CFLAGS): Likewise.
3510 (setjmp_LDFLAGS): Likewise.
3512 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
3513 (setjmp_mod_SOURCES): New variable.
3514 (setjmp_mod_CFLAGS): Likewise.
3515 (setjmp_LDFLAGS): Likewise.
3517 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3518 (setjmp_mod_SOURCES): New variable.
3519 (setjmp_mod_CFLAGS): Likewise.
3520 (setjmp_LDFLAGS): Likewise.
3522 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3523 (setjmp_mod_SOURCES): New variable.
3524 (setjmp_mod_CFLAGS): Likewise.
3525 (setjmp_LDFLAGS): Likewise.
3527 * normal/i386/setjmp.S: Moved from here ...
3528 * lib/i386/setjmp.S: ... Moved here
3529 * normal/x86_64/setjmp.S: Moved from here ...
3530 * lib/x86_64/setjmp.S: ... Moved here
3531 * normal/powerpc/setjmp.S: Moved from here ...
3532 * lib/powerpc/setjmp.S: ... Moved here
3533 * normal/sparc64/setjmp.S: Moved from here ...
3534 * lib/sparc64/setjmp.S: ... Moved here
3536 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
3537 returns_twice in mingw.
3539 * script/lua/grub_lib.c: New file.
3540 * script/lua/grub_lib.h: Likewise.
3541 * script/lua/grub_lua.h: Likewise.
3542 * script/lua/grub_main.c: Likewise.
3543 * script/lua/lapi.c: Likewise.
3544 * script/lua/lapi.h: Likewise.
3545 * script/lua/lauxlib.c: Likewise.
3546 * script/lua/lauxlib.h: Likewise.
3547 * script/lua/lbaselib.c: Likewise.
3548 * script/lua/lcode.c: Likewise.
3549 * script/lua/lcode.h: Likewise.
3550 * script/lua/ldblib.c: Likewise.
3551 * script/lua/ldebug.c: Likewise.
3552 * script/lua/ldebug.h: Likewise.
3553 * script/lua/ldo.c: Likewise.
3554 * script/lua/ldo.h: Likewise.
3555 * script/lua/ldump.c: Likewise.
3556 * script/lua/lfunc.c: Likewise.
3557 * script/lua/lfunc.h: Likewise.
3558 * script/lua/lgc.c: Likewise.
3559 * script/lua/lgc.h: Likewise.
3560 * script/lua/linit.c: Likewise.
3561 * script/lua/liolib.c: Likewise.
3562 * script/lua/llex.c: Likewise.
3563 * script/lua/llex.h: Likewise.
3564 * script/lua/llimits.h: Likewise.
3565 * script/lua/lmathlib.c: Likewise.
3566 * script/lua/lmem.c: Likewise.
3567 * script/lua/lmem.h: Likewise.
3568 * script/lua/loadlib.c: Likewise.
3569 * script/lua/lobject.c: Likewise.
3570 * script/lua/lobject.h: Likewise.
3571 * script/lua/lopcodes.c: Likewise.
3572 * script/lua/lopcodes.h: Likewise.
3573 * script/lua/loslib.c: Likewise.
3574 * script/lua/lparser.c: Likewise.
3575 * script/lua/lparser.h: Likewise.
3576 * script/lua/lstate.c: Likewise.
3577 * script/lua/lstate.h: Likewise.
3578 * script/lua/lstring.c: Likewise.
3579 * script/lua/lstring.h: Likewise.
3580 * script/lua/lstrlib.c: Likewise.
3581 * script/lua/ltable.c: Likewise.
3582 * script/lua/ltable.h: Likewise.
3583 * script/lua/ltablib.c: Likewise.
3584 * script/lua/ltm.c: Likewise.
3585 * script/lua/ltm.h: Likewise.
3586 * script/lua/lua.h: Likewise.
3587 * script/lua/luaconf.h: Likewise.
3588 * script/lua/lualib.h: Likewise.
3589 * script/lua/lundump.c: Likewise.
3590 * script/lua/lundump.h: Likewise.
3591 * script/lua/lvm.c: Likewise.
3592 * script/lua/lvm.h: Likewise.
3593 * script/lua/lzio.c: Likewise.
3594 * script/lua/lzio.h: Likewise.
3596 2009-05-16 Bean <bean123ch@gmail.com>
3598 * include/grub/kernel.h (grub_module_header_types): Add type
3601 * kern/main.c (grub_load_config): New function.
3602 (grub_main): Call grub_load_config to read boot config.
3604 * grub-mkimage (generate_image): New parameter config_path.
3605 (options): New option --config.
3606 (main): Parse --config option, and pass it to generate_image.
3608 2009-05-14 Christian Franke <franke@computer.org>
3610 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
3611 This fixes build on Cygwin.
3613 2009-05-14 Pavel Roskin <proski@gnu.org>
3615 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
3616 jump. This saves two bytes, so the typical case of 2 swapped
3617 drives would fit 32 bytes.
3619 2009-05-13 Pavel Roskin <proski@gnu.org>
3621 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
3622 grub_uint32_t to avoid a warning.
3624 * loader/i386/linux.c (allocate_pages): When assigning
3625 real_mode_mem, cast through grub_size_t to fix a warning. The
3626 code already makes sure that the value would fit a pointer.
3627 (grub_linux_setup_video): Cast render_target->data to
3628 grub_size_t to fix a warning.
3630 2009-05-13 Javier MartÃn <lordhabbit@gmail.com>
3632 * commands/i386/pc/drivemap.c: New file - implement drivemap
3634 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
3635 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
3637 2009-05-13 Pavel Roskin <proski@gnu.org>
3639 * util/i386/pc/grub-setup.c (setup): Remove unused variable
3640 embedding_area_exists.
3642 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
3644 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
3645 it easier to understand / work with.
3646 Improve warning messages for cases where there's no embedding area,
3647 or when it is too small (or core.img too large).
3649 2009-05-13 Pavel Roskin <proski@gnu.org>
3651 * loader/i386/pc/multiboot2.c: Add necessary includes for
3652 grub_multiboot2_real_boot().
3654 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
3655 PX record is always little-endian. We only need the lower 2
3658 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
3659 facilitate code reuse.
3660 (grub_cpio_mount): Use "struct head", not a char buffer. This
3661 fixes a warning reported by gcc 4.4.
3663 * kernel/disk.c (grub_disk_read): Use void pointer for the
3665 (grub_disk_write): Use const void pointer for the buffer.
3666 Adjust all callers. Remove unnecessary casts.
3668 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
3670 * util/i386/pc/grub-install.in: Update copyright year.
3672 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3676 * commands/gptsync.c: new file
3677 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
3678 (gptsync_mod_SOURCES): new variable
3679 (gptsync_mod_CFLAGS): likewise
3680 (gptsync_mod_LDFLAGS): likewise
3681 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
3683 (GRUB_PC_PARTITION_TYPE_HFS): likewise
3684 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
3685 * conf/i386-ieee1275.rmk: likewise
3686 * conf/i386-pc.rmk: likewise
3687 * conf/powerpc-ieee1275.rmk: likewise
3689 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3693 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
3694 (grub_dl_ref): likewise
3696 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
3698 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
3699 split in two functions (one for msdos and one for gpt).
3701 2009-05-08 Pavel Roskin <proski@gnu.org>
3703 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
3706 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
3707 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
3708 Initialize them with -1. Add sanity check for bad1. Eliminate
3711 2009-05-08 David S. Miller <davem@davemloft.net>
3713 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
3715 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
3717 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
3720 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
3722 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
3723 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
3725 2009-05-05 David S. Miller <davem@davemloft.net>
3727 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
3729 2009-05-05 Pavel Roskin <proski@gnu.org>
3731 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
3732 of grub_dl_ref() and grub_dl_unref().
3733 * commands/parttool.c: Remove preprocessor conditionals around
3734 grub_dl_ref() and grub_dl_unref().
3735 * fs/affs.c: Likewise.
3736 * fs/afs.c: Likewise.
3737 * fs/cpio.c: Likewise.
3738 * fs/ext2.c: Likewise.
3739 * fs/fat.c: Likewise.
3740 * fs/hfs.c: Likewise.
3741 * fs/hfsplus.c: Likewise.
3742 * fs/iso9660.c: Likewise.
3743 * fs/jfs.c: Likewise.
3744 * fs/minix.c: Likewise.
3745 * fs/ntfs.c: Likewise.
3746 * fs/reiserfs.c: Likewise.
3747 * fs/sfs.c: Likewise.
3748 * fs/udf.c: Likewise.
3749 * fs/ufs.c: Likewise.
3750 * fs/xfs.c: Likewise.
3751 * include/grub/dl.h: Likewise.
3752 * loader/xnu.c: Likewise.
3754 2009-05-04 Pavel Roskin <proski@gnu.org>
3756 * commands/acpi.c: Remove unused variable my_mod.
3757 * partmap/amiga.c: Likewise.
3758 * partmap/apple.c: Likewise.
3759 * partmap/gpt.c: Likewise.
3760 * partmap/pc.c: Likewise.
3761 * partmap/sun.c: Likewise.
3762 * term/gfxterm.c: Likewise.
3763 * term/i386/pc/vesafb.c: Likewise.
3764 * term/i386/pc/vga.c: Likewise.
3766 2009-05-04 David S. Miller <davem@davemloft.net>
3768 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
3769 pointer args to grub_ieee1275_get_property().
3771 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
3773 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
3774 devices, and do not traverse down under controller nodes.
3776 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
3777 (grub_ofdisk_open): Use it to un-escape "," characters.
3778 * kern/disk.c (find_part_sep): New.
3779 (grub_disk_open): Use it to find the first non-escaped ','
3780 character in the disk name.
3781 * util/ieee1275/devicemap.c (escape_of_path): New.
3782 (grub_util_emit_devicemap_entry): Use it.
3783 * util/sparc64/ieee1275/grub-install.in: Update script to
3784 strip partition specifiers properly by not triggering on
3785 '\' escaped ',' characters.
3787 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3789 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
3791 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
3793 (linux_vesafb_modes): Add a lot of additional modes to the list (based
3794 on documentation from Wikipedia).
3796 2009-05-04 Pavel Roskin <proski@gnu.org>
3798 * disk/ata.c: Spelling fixes.
3799 * disk/raid.c: Likewise.
3800 * disk/usbms.c: Likewise.
3801 * disk/dmraid_nvidia.c: Likewise.
3802 * kern/ieee1275/openfw.c: Likewise.
3803 * kern/ieee1275/init.c: Likewise.
3804 * kern/ieee1275/cmain.c: Likewise.
3805 * boot/i386/pc/cdboot.S: Likewise.
3806 * video/readers/png.c: Likewise.
3807 * video/i386/pc/vbe.c: Likewise.
3808 * fs/udf.c: Likewise.
3809 * fs/hfs.c: Likewise.
3810 * fs/reiserfs.c: Likewise.
3811 * efiemu/runtime/efiemu.c: Likewise.
3812 * efiemu/main.c: Likewise.
3813 * efiemu/mm.c: Likewise.
3814 * include/grub/elf.h: Likewise.
3815 * include/grub/xnu.h: Likewise.
3816 * include/grub/usbdesc.h: Likewise.
3817 * include/grub/usb.h: Likewise.
3818 * include/grub/script_sh.h: Likewise.
3819 * include/grub/lib/LzmaEnc.h: Likewise.
3820 * include/grub/efiemu/efiemu.h: Likewise.
3821 * include/grub/command.h: Likewise.
3822 * normal/menu.c: Likewise.
3823 * normal/main.c: Likewise.
3824 * normal/datetime.c: Likewise.
3825 * bus/usb/uhci.c: Likewise.
3826 * mmap/i386/uppermem.c: Likewise.
3827 * mmap/mmap.c: Likewise.
3828 * commands/acpi.c: Likewise.
3829 * commands/test.c: Likewise.
3830 * partmap/apple.c: Likewise.
3831 * font/font.c: Likewise.
3832 * loader/sparc64/ieee1275/linux.c: Likewise.
3833 * loader/macho.c: Likewise.
3834 * loader/i386/bsd_trampoline.S: Likewise.
3835 * loader/i386/bsd.c: Likewise.
3836 * loader/xnu.c: Likewise.
3837 * term/i386/pc/vesafb.c: Likewise.
3838 * term/usb_keyboard.c: Likewise.
3839 * util/resolve.c: Likewise.
3840 * util/getroot.c: Likewise.
3842 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3844 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
3846 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3848 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
3851 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3853 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
3854 parameter only available on BIOS.
3856 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3858 Removed wrong semicolon in declaration
3860 * grub/misc.h (grub_dprintf): remove semicolon
3862 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3864 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
3865 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
3866 is done by grub_cmd_linux() now).
3867 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
3868 restore video to text mode.
3869 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
3870 indicates lack of "vga=" parameter. "vga=0" is mapped to
3871 `GRUB_LINUX_VID_MODE_NORMAL'.
3873 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3875 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
3876 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
3877 and `normal/script.c'. Add `kern/rescue_reader.c',
3878 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
3879 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
3880 `grub_script.tab.c'.
3882 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3883 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
3884 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3885 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
3886 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3888 * Makefile.in: Remove duplicated 2008 in Copyright line.
3890 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3892 * util/misc.c (grub_util_warn): New function. Emits a warning
3894 * include/grub/util/misc.h (grub_util_warn): New declaration.
3896 * util/i386/pc/grub-install.in: Understand --force and pass it down
3899 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
3901 (setup): Improve error messages and add warnings when requested to
3902 install in odd layouts. Refuse to install using blocklists unless
3905 2009-05-04 martin f. krafft <madduck@madduck.net>
3907 * disk/raid.c (grub_raid_scan_device): Improve debug message.
3909 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3911 Updated copyright year
3913 * fs/hfsplus.c: updated copyright year
3915 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3919 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
3920 in the space previously used by unused3
3921 (grub_hfsplus_uuid): new function
3922 (grub_hfsplus_fs): added uuid field
3924 2009-05-03 Pavel Roskin <proski@gnu.org>
3926 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
3927 suppress warnings. It's no longer needed.
3928 * disk/host.c: Likewise.
3929 * disk/ata_pthru.c: Likewise.
3930 * disk/loopback.c: Likewise.
3931 * hook/datehook.c: Likewise.
3932 * parttool/pcpart.c: Likewise.
3933 * fs/i386/pc/pxe.c: Likewise.
3934 * fs/ntfscomp.c: Likewise.
3935 * efiemu/main.c: Likewise.
3936 * mmap/mmap.c: Likewise.
3937 * commands/crc.c: Likewise.
3938 * commands/hexdump.c: Likewise.
3939 * commands/hdparm.c: Likewise.
3940 * commands/acpi.c: Likewise.
3941 * commands/echo.c: Likewise.
3942 * commands/minicmd.c: Likewise.
3943 * commands/blocklist.c: Likewise.
3944 * commands/memrw.c: Likewise.
3945 * commands/loadenv.c: Likewise.
3946 * commands/usbtest.c: Likewise.
3947 * commands/lsmmap.c: Likewise.
3948 * commands/boot.c: Likewise.
3949 * commands/parttool.c: Likewise.
3950 * commands/configfile.c: Likewise.
3951 * commands/search.c: Likewise.
3952 * commands/ieee1275/suspend.c: Likewise.
3953 * commands/cat.c: Likewise.
3954 * commands/i386/pc/pxecmd.c: Likewise.
3955 * commands/i386/pc/play.c: Likewise.
3956 * commands/i386/pc/halt.c: Likewise.
3957 * commands/i386/pc/vbeinfo.c: Likewise.
3958 * commands/i386/pc/vbetest.c: Likewise.
3959 * commands/lspci.c: Likewise.
3960 * commands/date.c: Likewise.
3961 * commands/handler.c: Likewise.
3962 * commands/ls.c: Likewise.
3963 * commands/test.c: Likewise.
3964 * commands/cmp.c: Likewise.
3965 * commands/efi/loadbios.c: Likewise.
3966 * commands/efi/fixvideo.c: Likewise.
3967 * commands/halt.c: Likewise.
3968 * commands/help.c: Likewise.
3969 * commands/reboot.c: Likewise.
3970 * hello/hello.c: Likewise.
3971 * script/sh/main.c: Likewise.
3972 * loader/xnu.c: Likewise.
3973 * term/terminfo.c: Likewise.
3974 * term/i386/pc/serial.c: Likewise.
3975 * term/usb_keyboard.c: Likewise.
3977 2009-05-03 David S. Miller <davem@davemloft.net>
3979 * normal/menu.c: Include grub/parser.h
3981 2009-05-03 Pavel Roskin <proski@gnu.org>
3983 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
3985 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
3986 Suggested by Javier MartÃn <lordhabbit@gmail.com>
3988 * util/i386/pc/grub-mkrescue.in: Allow for the case when
3989 efiemu??.o doesn't exist.
3990 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
3993 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
3995 FreeBSD 64-bit support
3997 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
3998 and loader/i386/bsd_trampoline.S
3999 (bsd_mod_ASFLAGS): new variable
4000 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
4001 (FREEBSD_MODTYPE_KERNEL64): likewise
4002 (grub_bsd64_trampoline_start): likewise
4003 (grub_bsd64_trampoline_end): likewise
4004 (grub_bsd64_trampoline_selfjump): likewise
4005 (grub_bsd64_trampoline_gdt): likewise
4006 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
4007 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
4008 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
4009 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
4010 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4012 * loader/i386/bsd_pagetable.c: new file
4013 * loader/i386/bsd_trampoline.S: likewise
4014 * loader/i386/bsd.c (ALIGN_QWORD): new macro
4015 (ALIGN_VAR): likewise
4016 (entry_hi): new variable
4017 (kern_end_mdofs): likewise
4018 (is_64bit): likewise
4019 (grub_freebsd_add_meta): use ALIGN_VAR
4020 (grub_e820_mmap): new declaration
4021 (grub_freebsd_add_mmap): new function
4022 (grub_freebsd_add_meta_module): support 64 bit kernels
4023 (grub_freebsd_list_modules): use ALIGN_VAR
4024 (gdt_descriptor): new declaration
4025 (grub_freebsd_boot): support 64 bit kernels
4026 (grub_bsd_elf64_hook): new function
4027 (grub_bsd_load_elf): support elf64
4029 2009-05-03 Bean <bean123ch@gmail.com>
4031 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
4032 after we get the result of if statement.
4034 2009-05-03 Bean <bean123ch@gmail.com>
4036 * Makefile.in (enable_efiemu): New variable.
4038 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
4040 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
4042 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
4043 path, add -mno-red-zone option.
4044 (efiemu64_s.o): Likewise.
4045 (efiemu64.o): Use macro $^ for source file.
4047 * configure.ac (--enable-efiemu): New option.
4049 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4053 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
4054 (pkglib_MODULES): add xnu.mod
4055 (xnu_mod_SOURCES): new variable
4056 (xnu_mod_CFLAGS): likewise
4057 (xnu_mod_LDFLAGS): likewise
4058 (xnu_mod_ASFLAGS): likewise
4059 * conf/i386-pc.rmk: likewise
4060 * conf/x86_64-efi.rmk: likewise
4061 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
4063 * include/grub/i386/macho.h: new file
4064 * include/grub/i386/xnu.h: likewise
4065 * include/grub/macho.h: likewise
4066 * include/grub/machoload.h: likewise
4067 * include/grub/x86_64/macho.h: likewise
4068 * include/grub/x86_64/xnu.h: likewise
4069 * include/grub/xnu.h: likewise
4070 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
4071 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
4072 * loader/i386/efi/xnu.c: new file
4073 * loader/i386/pc/xnu.c: likewise
4074 * loader/i386/xnu.c: likewise
4075 * loader/i386/xnu_helper.S: likewise
4076 * loader/macho.c: likewise
4077 * loader/xnu.c: likewise
4078 * loader/xnu_resume.c: likewise
4079 * util/grub-dumpdevtree: likewise
4080 * include/grub/i386/pit.h: include grub/err.h
4081 (grub_pit_wait): export
4082 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
4084 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4088 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
4089 _linux_efi, linux_efi.
4090 new files in grub-emu
4091 new targets efiemu32.o and efiemu64.o
4092 * loader/linux_normal_efiemu.c: likewise
4093 * loader/i386/efi/linux.c: added preliminary efiemu support
4094 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
4096 * include/grub/autoefi.h: new file
4097 * include/grub/i386/efiemu.h: likewise
4098 * include/grub/i386/pc/efiemu.h: likewise
4099 * include/grub/efi/api.h: add LL suffix when necessary
4100 new definitions relating to tables
4101 * include/grub/efiemu/efiemu.h: new file
4102 * include/grub/efiemu/runtime.h: likewise
4103 * efiemu/prepare.c: likewise
4104 * efiemu/loadcore_common.c: likewise
4105 * efiemu/loadcore64.c: likewise
4106 * efiemu/runtime/efiemu.sh: likewise
4107 * efiemu/runtime/efiemu.S: likewise
4108 * efiemu/runtime/efiemu.c: likewise
4109 * efiemu/runtime/config.h: likewise
4110 * efiemu/prepare32.c: likewise
4111 * efiemu/main.c: likewise
4112 * efiemu/modules/pnvram.c: likewise
4113 * efiemu/modules/i386: likewise
4114 * efiemu/modules/i386/pc: likewise
4115 * efiemu/modules/acpi.c: likewise
4116 * efiemu/i386/pc/cfgtables.c: likewise
4117 * efiemu/i386/loadcore64.c: likewise
4118 * efiemu/i386/loadcore32.c: likewise
4119 * efiemu/prepare64.c: likewise
4120 * efiemu/loadcore.c: likewise
4121 * efiemu/symbols.c: likewise
4122 * efiemu/mm.c: likewise
4123 * efiemu/loadcore32.c: likewise
4125 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4129 * commands/acpi.c: new file
4130 * commands/i386/pc/acpi.c: likewise
4131 * commands/efi/acpi.c: likewise
4132 * include/grub/acpi.h: likewise
4133 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
4134 (acpi_mod_SOURCES): new variable
4135 (acpi_mod_CFLAGS): likewise
4136 (acpi_mod_LDFLAGS): likewise
4137 * conf/i386-efi.rmk: likewise
4138 * conf/x86_64-efi.rmk: likewise
4140 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4142 Missing part from mmap patch
4144 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
4145 (grub_mmap_unregister)
4146 (grub_mmap_free_and_unregister): use grub_mmap_register
4148 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4152 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
4153 * loader/i386/linux.c (find_mmap_size): likewise
4154 (allocate_pages): likewise
4155 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
4156 (grub_fill_multiboot_mmap): likewise
4157 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
4158 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
4159 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
4160 (OPENBSD_MMAP_RESERVED): likewise
4161 * include/grub/i386/pc/memory.h: include grub/memory.h
4162 (grub_lower_mem): removed
4163 (grub_upper_mem): likewise
4164 (GRUB_MACHINE_MEMORY_ACPI): new definition
4165 (GRUB_MACHINE_MEMORY_NVS): likewise
4166 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
4167 (GRUB_MACHINE_MEMORY_HOLE): likewise
4168 (grub_machine_mmap_register): likewise
4169 (grub_machine_mmap_unregister): likewise
4170 (grub_machine_get_upper): likewise
4171 (grub_machine_get_lower): likewise
4172 (grub_machine_get_post64): likewise
4173 * include/grub/i386/efi/memory.h: new file
4174 * include/grub/x86_64/efi/memory.h: likewise
4175 * include/grub/efi/memory.h: likewise
4176 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
4177 (mmap_mod_SOURCES): new variable
4178 (mmap_mod_LDFLAGS): likewise
4179 (mmap_mod_ASFLAGS): likewise
4180 * conf/i386-coreboot.rmk: likewise
4181 * conf/i386-ieee1275.rmk: likewise
4182 * conf/i386-efi.rmk: likewise
4183 * conf/x86_64-efi.rmk: likewise
4184 * include/grub/types.h (UINT_TO_PTR): new macro
4185 (PTR_TO_UINT32): likewise
4186 (PTR_TO_UINT64): likewise
4187 * include/grub/memory.h: new file
4188 * mmap/i386/pc/mmap.c: likewise
4189 * mmap/i386/pc/mmap_helper.S: likewise
4190 * mmap/i386/uppermem.c: likewise
4191 * mmap/mmap.c: likewise
4192 * mmap/efi/mmap.c: likewise
4193 * kern/i386/coreboot/init.c (grub_machine_init): don't use
4195 * kern/i386/pc/init.c (grub_lower_mem): removed variable
4196 (grub_upper_mem): likewise
4197 (grub_machine_init): don't use grub_upper_mem,
4198 make grub_lower_mem local
4199 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
4200 grub_mmap_iterate and grub_mmap_get_upper
4201 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
4203 2009-05-02 Bean <bean123ch@gmail.com>
4205 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
4207 (pkglib_MODULES): Add normal.mod and sh.mod.
4208 (normal_SOURCES): New variable.
4209 (normal_mod_CFLAGS): Likewise.
4210 (normal_mod_LDFLAGS): Likewise.
4211 (sh_mod_SOURCES): Likewise.
4212 (sh_mod_CFLAGS): Likewise.
4213 (sh_mod_LDFLAGS): Likewise.
4215 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
4216 script/sh/lexer.c_DEPENDENCIES.
4217 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
4218 kern/rescue_reader.c and kern/rescue_parser.c.
4219 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
4220 (grub_emu_SOURCES): Change source files.
4221 (pkglib_MODULES): Remove normal.mod.
4222 (normal_SOURCES): Removed.
4223 (normal_mod_CFLAGS): Likewise.
4224 (normal_mod_LDFLAGS): Likewise.
4225 * conf/i386-coreboot.rmk: Likewise.
4226 * conf/i386-efi.rmk: Likewise.
4227 * conf/i386-ieee1276.rmk: Likewise.
4228 * conf/powerpc-ieee1275.rmk: Likewise.
4229 * conf/sparc64-ieee1275.rmk: Likewise.
4230 * conf/x86_64-efi.rmk: Likewise.
4232 * include/grub/command.h (grub_command_execute): New inline function.
4234 * include/grub/menu.h (grub_menu_entry): Removed commands field.
4236 * include/grub/normal.h: Remove <grub/setjmp.h>.
4237 (grub_fs_module_list): Moved to normal/autofs.c.
4238 (grub_exit_env): Removed.
4239 (grub_command_execute): Likewise.
4240 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
4242 (read_command_list): New function declaration.
4243 (read_fs_list): Likewise.
4245 * include/parser.h: Include <grub/reader.h>.
4246 (grub_parser_split_cmdline): Change type of getline parameter.
4247 (grub_parser): New structure.
4248 (grub_parser_class): New variable.
4249 (grub_parser_execute): New function declaration.
4250 (grub_register_rescue_parser): Likewise.
4251 (grub_parser_register): New inline function.
4252 (grub_parser_unregister): Likewise.
4253 (grub_parser_get_current): Likewise.
4254 (grub_parser_set_current): Likewise.
4256 * include/grub/reader.h: New file.
4257 * kern/reader.c: Likewise.
4258 * kern/rescue_parser.c: Likewise.
4259 * kern/rescue_reader.c: Likewise.
4260 * normal/autofs.c: Likewise.
4261 * normal/dyncmd.c: Likewise.
4263 * include/grub/rescue.h: Removed.
4264 * normal/command.h: Likewise.
4266 * include/grub/script.h: Moved to ...
4267 * include/grub/script_sh.h: ... Moved here.
4268 * normal/execute.c: Moved to ...
4269 * script/sh/execute.c: ... Moved here.
4270 * normal/function.c: Moved to ...
4271 * script/sh/function.c: ... Moved here.
4272 * normal/lexer.c: Moved to ...
4273 * script/sh/lexer.c: ... Moved here.
4274 * normal/parser.y: Moved to ...
4275 * script/sh/parser.y: ... Moved here.
4276 * normal/script.c: Moved to ...
4277 * script/sh/script.c: ... Moved here.
4279 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
4281 (grub_exit_env): Removed.
4282 (fs_module_list): Moved to normal/autofs.c.
4283 (grub_file_getline): Don't handle comment here.
4284 (free_menu): Skip removed field entry->commands.
4285 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
4287 (read_config_file): Removed nested parameter, change getline function.
4288 (grub_enter_normal_mode): Removed.
4289 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
4290 (read_command_list): Likewise.
4291 (autoload_fs_module): Moved to normal/autofs.c.
4292 (read_fs_list): Likewise.
4293 (reader_nested): New variable.
4294 (grub_normal_execute): Run parser.sh to switch to sh parser.
4295 (grub_cmd_rescue): Removed.
4296 (cmd_normal): Removed.
4297 (grub_cmd_normal): Unregister itself at the beginning. Don't register
4299 (grub_cmdline_run): New function.
4300 (grub_normal_reader_init): Likewise.
4301 (grub_normal_read_line): Likewise.
4302 (grub_env_write_pager): Likewise.
4303 (cmdline): New variable.
4304 (grub_normal_reader): Likewise.
4305 (GRUB_MOD_INIT): Register normal reader and set as current, register
4306 pager hook, register normal command with grub_register_command_prio,
4307 so that it won't show up in command.lst.
4308 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
4309 grub_fs_autoload_hook.
4311 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
4312 (grub_menu_execute_entry): Replace grub_script_execute with
4313 grub_parser_execute, change parameter to grub_command_execute.
4315 * normal/menu_text.c: Remove <grub/script.h>.
4317 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
4318 and <grub/parser.h>.
4319 (run): Change editor_getline to use new parser interface. Change
4320 parameter to grub_command_execute.
4322 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
4323 <grub/reader.h> and <grub/parser.h>.
4324 (grub_load_normal_mode): Execute normal command.
4325 (grub_main): Call grub_register_core_commands,
4326 grub_register_rescue_parser and grub_register_rescue_reader, use
4327 grub_reader_loop to enter input loop.
4329 * kern/parser.c (grub_parser_split_cmdline): Change type of
4331 (grub_parser_class): New variable.
4332 (grub_parser_execute): New function.
4334 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
4335 * loader/multiboot2.c: Likewise.
4336 * loader/sparc64/ieee1275/linux.c: Likewise.
4338 * util/grub-emu.c (read_command_list): New dummy function.
4340 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4342 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
4343 count to 16 for CCISS and IDA.
4345 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4347 * normal/menu_text.c (grub_wait_after_message): Print a newline
4348 after waiting for user input.
4350 * loader/i386/linux.c: Include `<grub/normal.h>'.
4351 (grub_cmd_linux): Improve the error message about `ask' mode, by
4352 waiting for user input so it's not missed (we can do this, since
4353 user requested interaction).
4355 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4357 Added missing lst to grub-mkrescue
4359 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
4360 and ${input_dir}/parttool.lst
4362 2009-04-30 David S. Miller <davem@davemloft.net>
4364 * util/hostdisk.c (device_is_wholedisk): New function.
4365 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
4366 zero only if device_is_wholedisk() returns true.
4368 * util/hostdisk.c (convert_system_partition_to_system_disk):
4369 Handle virtual disk devices named /dev/vdiskX as found on sparc
4372 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
4373 lettered partition specifier is found, convert to numbered.
4375 2009-04-29 David S. Miller <davem@davemloft.net>
4377 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
4378 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4380 * normal/command.c: Add missing newline at end of file.
4382 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
4384 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
4385 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
4386 grub_ofdisk_read): Likewise, and deal similarly with the fact that
4387 ihandles have a 32-bit type but need to be stored in a "void *".
4389 2009-04-28 Pavel Roskin <proski@gnu.org>
4391 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
4392 not disk. Adjust all dependencies.
4393 (grub_fs_uuid_close): Use grub_device_close(), not
4396 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
4397 parent's partition, don't copy it by reference, as it gets freed
4400 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4402 Preboot hooks support
4404 * commands/boot.c (struct grub_preboot_t): new declaration
4405 (preboots_head): new variable
4406 (preboots_tail): likewise
4407 (grub_loader_register_preboot_hook): new function
4408 (grub_loader_unregister_preboot_hook): likewise
4409 (grub_loader_set): launch preboot hooks
4410 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
4411 (grub_loader_register_preboot_hook): new declaration
4412 (grub_loader_unregister_preboot_hook): likewise
4414 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4418 * disk/scsi.c (grub_scsi_open): added missing cast when
4419 calling grub_dprintf
4421 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4423 Bug and warning fixes
4425 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
4427 * commands/test.c (test_parse): fixed bug with file tests and corrected
4428 declaration of find_file
4430 2009-04-26 Pavel Roskin <proski@gnu.org>
4432 * Makefile.in: Don't install empty manual pages if help2man is
4433 missing. Use help2man option for output, not shell redirection.
4435 2009-04-26 David S. Miller <davem@davemloft.net>
4437 * util/grub-mkdevicemap.c (make_device_map): Add missing
4438 NESTED_FUNC_ATTR to process_device().
4440 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4444 * commands/test.c: rewritten to use bash-like test
4446 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4448 Parttool autoloading and improvements
4450 * Makefile.in (pkglib_DATA): add parttool.lst
4451 (parttool.lst): new target
4452 * genmk.rb: generate parttool-*
4453 (CLEANFILES): add #{parttool}
4454 (PARTTOOLFILES): new variable
4455 * genparttoollist.sh: new file
4456 * parttool/pcpart.c (grub_pcpart_boot): more feedback
4457 (grub_pcpart_type): likewise
4458 * commands/parttool.c (helpmsg): new variable
4459 (grub_cmd_parttool): output help if not enough arguments are supplied
4461 (GRUB_MOD_INIT(parttool)): use helpmsg
4463 2009-04-24 David S. Miller <davem@davemloft.net>
4465 Avoiding opening same device multiple times in device iterator.
4467 * kern/device.c: (grub_device_iterate): Define struct part_ent,
4468 and use it to build a list of partitions in iterate_disk() and
4469 iterate_partition().
4471 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
4474 * disk/ieee1275/nand.c (grub_nand_iterate): Return
4475 grub_devalias_iterate() result instead of unconditional 0.
4476 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
4477 Also, capture hook return value, either directly or via
4478 grub_children_iterate(), and propagate to caller.
4479 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
4480 grub_children_iterate): Return value is now 'int' instead of
4482 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
4483 like a proper iterator, stopping when hooks return non-zero.
4484 (grub_devalias_iterate): Likewise.
4486 2009-04-23 David S. Miller <davem@davemloft.net>
4488 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
4490 2009-04-22 David S. Miller <davem@davemloft.net>
4492 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
4493 is larger than address_cells, use that value for address_cells too.
4495 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
4496 IEEE1275_MAX_PATH_LEN): Define.
4497 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
4498 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
4499 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
4500 'devtype'. Explicitly NULL terminate devalias expansion.
4502 * util/sparc64/ieee1275/misc.c: New file.
4503 * util/sparc64/ieee1275/grub-setup.c: New file.
4504 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
4505 * util/sparc64/ieee1275/grub-mkimage.c: New file.
4506 * util/sparc64/ieee1275/grub-install.in: New file.
4507 * util/ieee1275/ofpath.c: New file.
4508 * util/ieee1275/devicemap.c: New file.
4509 * util/devicemap.c: New file.
4510 * util/deviceiter.c: New file.
4511 * kern/sparc64/ieee1275/init.c: New file.
4512 * include/grub/util/ofpath.h: New file.
4513 * include/grub/util/deviceiter.h: New file.
4514 * util/grub-mkdevicemap.c: Include deviceiter.h.
4515 Implement using grub_util_emit_devicemap_entry and
4516 grub_util_iterate_devices.
4517 * conf/i386-corebook.rmk: Build util/deviceiter.c and
4518 util/devicemap.c into grub-mkdevicemap
4519 * conf/i386-efi.rmk: Likewise.
4520 * conf/i386-ieee1275.rmk: Likewise.
4521 * conf/i386-pc.rmk: Likewise.
4522 * conf/powerpc-ieee1275.rmk: Likewise.
4523 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
4524 images and installation utilities. Build kernel as image
4525 instead of as elf binary. Use common rules as much as possible.
4527 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4529 Correct GPT definition
4531 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4534 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
4536 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
4538 2009-04-19 David S. Miller <davem@davemloft.net>
4540 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
4541 (grub_rescue_cmd_linux): Rename to...
4542 (grub_cmd_linux): and fix prototype.
4543 (grub_rescue_cmd_initrd): Rename to...
4544 (grub_cmd_initrd): and fix prototype.
4545 (cmd_linux, cmd_initrd): New.
4546 (GRUB_MOD_INIT(linux)): Use grub_register_command().
4547 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
4549 2009-04-17 Pavel Roskin <proski@gnu.org>
4551 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
4553 (grub_ohci_transfer): Likewise.
4555 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
4557 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
4558 return without a value. Fix inconsistent indentation.
4560 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
4561 match struct grub_fs.
4563 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
4564 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
4565 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
4566 * commands/lspci.c (grub_lspci_iter): Likewise.
4568 2009-04-16 Bean <bean123ch@gmail.com>
4570 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
4573 2009-04-15 Pavel Roskin <proski@gnu.org>
4575 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
4576 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
4577 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
4580 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4582 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
4583 that no multiple data or metadata areas are supported and `Unknown
4586 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4588 Move loader out of the kernel
4590 * kern/loader.c: moved to ...
4591 * commands/boot.c: ... moved here
4592 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
4593 * commands/boot.c (grub_cmd_boot): moved here. All users updated
4594 * include/grub/kernel.h (grub_machine_fini): export
4595 * include/grub/loader.h (grub_loader_is_loaded): update declaration
4596 (grub_loader_set): likewise
4597 (grub_loader_unset): likewise
4598 (grub_loader_boot): likewise
4599 * conf/common.rmk: new module boot.mod
4600 (pkglib_MODULES): add boot.mod
4601 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
4602 (grub_emu_SOURCES): likewise
4603 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
4604 (grub_emu_SOURCES): likewise
4605 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
4606 (grub_emu_SOURCES): likewise
4607 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
4608 (grub_emu_SOURCES): likewise
4609 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
4610 (grub_emu_SOURCES): likewise
4611 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
4612 (grub_emu_SOURCES): likewise
4613 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
4614 (grub_emu_SOURCES): likewise
4616 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4618 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
4620 * kern/misc.c (grub_itoa): Removed function
4621 (grub_ltoa): likewise
4622 (grub_vsprintf): use grub_lltoa
4624 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4628 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
4629 * conf/i386-coreboot.rmk: likewise
4630 * conf/i386-ieee1275.rmk: likewise
4631 * conf/powerpc-ieee1275.rmk: likewise
4633 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4635 * INSTALL: Add that `./autogen.sh' needs to be run before
4638 2009-04-14 Bean <bean123ch@gmail.com>
4640 * Makefile.in (pkglib_DATA): Add handler.lst.
4641 (handler.lst): New rule.
4643 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
4644 * conf/i386-coreboot.rmk: Likewise.
4645 * conf/i386-ieee1275.rmk: Likewise.
4646 * conf/i386-efi.rmk: Likewise.
4647 * conf/x86_64-efi.rmk: Likewise.
4648 * conf/powerpc-ieee1275.rmk: Likewise.
4649 * conf/sparc64-ieee1275.rmk: Likewise.
4651 * genhandlerlist.sh: New file.
4653 * genmk.rb: Add rules to generate handler.lst.
4655 * include/grub/normal.h (grub_file_getline): New function definition.
4656 (read_handler_list): Likewise.
4657 (free_handler_list): Likewise.
4659 * include/grub/term.h (grub_term_register_input): Add name parameter
4660 for auto generation of handler.lst.
4661 (grub_term_register_output): Likewise.
4663 * normal/handler.c: New file.
4665 * normal/main.c (get_line): Renamed to grub_file_getline.
4666 (read_config_file): Use the newly renamed grub_file_getline.
4667 (read_command_list): Likewise.
4668 (read_fs_list): Likewise.
4669 (grub_normal_execute): Call read_handler_list to parse handler.lst.
4670 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
4672 * term/efi/console.c (grub_console_init): Add name parameter for auto
4673 generation of handler.lst.
4674 * term/gfxterm.c: Likewise.
4675 * term/i386/pc/at_keyboard.c: Likewise.
4676 * term/i386/pc/console.c: Likewise.
4677 * term/i386/pc/serial.c: Likewise.
4678 * term/i386/pc/vesafb.c: Likewise.
4679 * term/i386/pc/vga.c: Likewise.
4680 * term/i386/pc/vga_text.c: Likewise.
4681 * term/ieee1275/ofconsole.c: Likewise.
4682 * term/usb_keyboard.c: Likewise.
4684 2009-04-14 Bean <bean123ch@gmail.com>
4686 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
4687 properly with null character.
4689 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4691 * configure: Remove.
4692 * config.h.in: Likewise.
4693 * stamp-h.in: Likewise.
4694 * DISTLIST: Likewise.
4695 * conf/common.mk: Likewise.
4696 * conf/i386-coreboot.mk: Likewise.
4697 * conf/i386-efi.mk: Likewise.
4698 * conf/i386-ieee1275.mk: Likewise.
4699 * conf/i386.mk: Likewise.
4700 * conf/i386-pc.mk: Likewise.
4701 * conf/powerpc-ieee1275.mk: Likewise.
4702 * conf/sparc64-ieee1275.mk: Likewise.
4703 * conf/x86_64-efi.mk: Likewise.
4705 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
4708 2009-04-14 John Stanley <jpsinthemix@verizon.net>
4709 David S. Miller <davem@davemloft.net>
4711 * util/hostdisk.c (make_device_name): Fix buffer length
4714 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4716 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
4717 <sys/param.h> and <sys/sysctl.h>.
4718 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
4719 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
4720 opening the device and reset them afterwards.
4722 2009-04-13 Pavel Roskin <proski@gnu.org>
4724 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
4725 Reported by John Stanley <jpsinthemix@verizon.net>
4727 2009-04-13 Robert Millan <rmh@aybabtu.com>
4729 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
4730 that name for menuentries when appropriate.
4732 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4734 * util/grub.d/10_freebsd.in: Add a missing `fi'.
4736 2009-04-13 Robert Millan <rmh@aybabtu.com>
4738 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
4739 to Linux, simply abort telling the user it's no longer supported.
4741 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4743 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
4744 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
4745 `freebsd_loadenv' only when devices.hints exist.
4747 2009-04-13 Pavel Roskin <proski@gnu.org>
4749 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
4751 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4753 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
4755 (grub_drive): Likewise.
4757 2009-04-13 David S. Miller <davem@davemloft.net>
4759 * kern/sparc64/ieee1275/ieee1275.c: New file.
4760 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
4761 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
4762 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
4763 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
4764 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
4765 grub_ieee1275_alloc_physmem): Declare new exported functions.
4767 * include/grub/sparc64/ieee1275/loader.h: New file.
4768 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4769 * include/grub/sparc64/kernel.h: Likewise.
4770 * loader/sparc64/ieee1275/linux.c: Likewise.
4772 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
4773 (grub_fstest_SOURCES): Likewise.
4775 * util/hostdisk.c (make_device_name): Do not make any assumptions
4776 about the length of drive names.
4778 * kern/dl.c (grub_dl_load_file): Close file immediately when
4779 we are done using it.
4781 2009-04-12 David S. Miller <davem@davemloft.net>
4783 * kern/misc.c (grub_ltoa): Fix cast when handling negative
4784 values. Noticed by Pavel Roskin.
4786 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
4789 * genmk.rb: Add more flexible image type specification, also
4790 pass --strip-unneeded to objcopy.
4791 * conf/i386-pc.rmk: Use *_FORMAT.
4792 * conf/i386-pc.mk: Rebuilt.
4794 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
4795 (OFDISK_HASH_SZ): Define.
4796 (ofdisk_hash): New hash table.
4797 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
4798 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
4799 instead of device phandle which is not unique.
4801 * kern/sparc64/ieee1275/init.c: Delete, replace with...
4802 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
4803 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
4804 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
4805 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
4806 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
4807 GRUB_KERNEL_MACHINE_DATA_END): Define.
4808 (grub_kernel_image_size, grub_total_module_size): Declare.
4810 2009-04-12 Pavel Roskin <proski@gnu.org>
4812 * configure.ac: Change the logic when we check for target tools.
4813 Do it when the target is specified and it's different from the
4814 specified value of the host.
4816 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
4818 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
4819 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
4820 GNU/kFreeBSD. Check if a device is a character device. Use
4821 DIOCGMEDIASIZE to get the size.
4822 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
4823 support for GNU/kFreeBSD.
4824 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
4825 is a character device instead of a block device. Add support for
4826 FreeBSD device names.
4828 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
4829 is a character device instead of a block device.
4831 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
4832 is a character device instead of a block device.
4834 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
4836 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
4837 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
4838 FreeBSD. Check if a device is a character device. Use
4839 DIOCGMEDIASIZE to get the size.
4840 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
4841 support for FreeBSD.
4842 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
4843 is a character device instead of a block device. Add support for
4844 FreeBSD device names.
4846 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
4847 a character device instead of a block device.
4848 (grub_util_check_char_device): New function.
4850 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
4851 a character device instead of a block device.
4853 * include/grub/util/getroot.h (grub_util_check_char_device): New
4856 2009-04-11 David S. Miller <davem@davemloft.net>
4858 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
4860 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
4861 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
4862 function, if present.
4863 (__bswapdi2): Likewise.
4865 * include/grub/sparc64/ieee1275/boot.h: New file.
4866 * boot/sparc64/ieee1275/boot.S: Likewise.
4867 * boot/sparc64/ieee1275/diskboot.S: Likewise.
4869 * kern/misc.c (grub_ltoa): New function.
4870 (grub_vsprintf): Use it to format 'long' integers.
4872 2009-04-10 David S. Miller <davem@davemloft.net>
4874 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
4875 slots are of type grub_ieee1275_cell_t.
4876 (grub_nand_read): Likewise.
4877 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
4878 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
4879 macros are used to compare values in arg/ret block of the call.
4880 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
4881 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
4882 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
4883 grub_ieee1275_instance_to_path, grub_ieee1275_write,
4884 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
4885 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
4886 grub_ieee1275_close, grub_ieee1275_set_property,
4887 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
4888 grub_ieee1275_cell_t.
4889 * kern/ieee1275/openfw.c (grub_map): Likewise.
4890 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
4891 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
4893 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
4894 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
4895 (grub_devalias_iterate): Likewise.
4897 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4901 * fs/ufs.c (INODE_NBLOCKS): new definition
4902 (struct grub_ufs_dirent): added fields for non-BSD dirents
4903 (grub_ufs_get_file_block): fixed double indirect handling
4904 (grub_ufs_lookup_symlink): use more robust way to determine whether
4906 (grub_ufs_find_file): support for non-BSD dirents
4907 (grub_ufs_dir): support for non-BSD dirents
4909 2009-04-10 Bean <bean123ch@gnail.com>
4911 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
4912 attribute, otherwise the size would be wrong for i386 platform.
4914 * include/grub/pci.h (grub_pci_read_word): New inline function.
4915 (grub_pci_read_byte): Likewise.
4916 (grub_pci_write): Likewise.
4917 (grub_pci_write_word): Likewise.
4918 (grub_pci_write_byte): Likewise.
4920 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
4922 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
4923 (find_framebuf): Scan pci to locate the frame buffer address.
4925 * commands/efi/fixvideo.c: New file.
4927 * commands/efi/loadbios.c: Likewise.
4929 * commands/memrw.c: Likewise.
4931 * util/grub-dumpbios.in: Likewise.
4933 * conf/common.rmk (grub-dumpbios): New utility.
4934 (pkglib_MODULES): New module memrw.mod.
4935 (memrw_mod_SOURCE): New macro.
4936 (memrw_mod_CFLAGS): Likewise.
4937 (memrw_mod_LDFLAGS): Likewise.
4939 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
4941 (loadbios_mod_SOURCE): New macro.
4942 (loadbios_mod_CFLAGS): Likewise.
4943 (loadbios_mod_LDFLAGS): Likewise.
4944 (fixvideo_mod_SOURCE): Likewise.
4945 (fixvideo_mod_CFLAGS): Likewise.
4946 (fixvideo_mod_LDFLAGS): Likewise.
4948 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
4950 (loadbios_mod_SOURCE): New macro.
4951 (loadbios_mod_CFLAGS): Likewise.
4952 (loadbios_mod_LDFLAGS): Likewise.
4953 (fixvideo_mod_SOURCE): Likewise.
4954 (fixvideo_mod_CFLAGS): Likewise.
4955 (fixvideo_mod_LDFLAGS): Likewise.
4957 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
4959 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
4961 2009-04-07 David S. Miller <davem@davemloft.net>
4963 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
4964 support for R_SPARC_OLO10 relocations. Fix compile warning for
4965 R_SPARC_WDISP30 case.
4966 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
4968 2009-04-06 Pavel Roskin <proski@gnu.org>
4970 * include/grub/misc.h (ARRAY_SIZE): New macro.
4971 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
4973 * loader/i386/linux.c (allocate_pages): Use free_pages().
4974 (grub_linux_unload): Don't use free_pages().
4975 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
4976 wrong index. Treat all other modes as text modes.
4977 (grub_cmd_linux): Initialize vid_mode unconditionally to
4978 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
4980 * commands/help.c (print_command_help): Use cmd->prio, not
4981 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
4983 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4987 * parttool/pcpart.c: new file
4988 * commands/parttool.c: likewise
4989 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
4990 (parttool_mod_SOURCES): new variable
4991 (parttool_mod_CFLAGS): likewise
4992 (parttool_mod_LDFLAGS): likewise
4993 (pcpart_mod_SOURCES): likewise
4994 (pcpart_mod_CFLAGS): likewise
4995 (pcpart_mod_LDFLAGS): likewise
4996 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
4997 and parttool/pcpart.c
4998 * conf/i386-efi.rmk: likewise
4999 * conf/i386-ieee1275.rmk: likewise
5000 * conf/i386-pc.rmk: likewise
5001 * conf/powerpc-ieee1275.rmk: likewise
5002 * conf/sparc64-ieee1275.rmk: likewise
5003 * conf/x86_64-ieee1275.rmk: likewise
5005 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5007 Support for mtime and further expandability of dir command
5009 * include/grub/lib/datetime.h: moved to ...
5010 * include/grub/datetime.h: ... moved here and added
5011 declaration of grub_unixtime2datetime. All users updated
5012 * include/grub/fs.h: new syntax for dir and mtime functions in
5014 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
5015 and GRUB_FSHELP_FLAGS_MASK
5016 * commands/ls.c (grub_ls_list_files): Write mtime in long format
5017 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
5018 (grub_ext2_mtime): new function
5019 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
5020 (grub_hfsplus_mtime): new function
5021 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
5022 (GRUB_UFS_ATTR_FILE): likewise
5023 (GRUB_UFS_ATTR_LNK): likewise
5024 (struct grub_ufs_sblock): new fields mtime
5025 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
5027 (grub_ufs_dir): mtime support
5028 (grub_ufs_mtime): new function
5029 * fs/affs.c (grub_affs_dir): use new dir syntax
5030 * fs/afs.c (grub_afs_dir): likewise
5031 * fs/cpio.c (grub_cpio_dir): likewise
5032 * fs/fat.c (grub_fat_find_dir): likewise
5033 * fs/hfs.c (grub_hfs_dir): likewise
5034 * fs/iso9660.c (grub_iso9660_dir): likewise
5035 * fs/jfs.c (grub_jfs_dir): likewise
5036 * fs/minix.c (grub_minix_dir): likewise
5037 * fs/ntfs.c (grub_ntfs_dir): likewise
5038 * fs/reiserfs.c (grub_reiserfs_dir): likewise
5039 * fs/sfs.c (grub_sfs_dir): likewise
5040 * fs/xfs.c (grub_xfs_dir): likewise
5041 * util/hostfs.c (grub_hostfs_dir): likewise
5042 * lib/datetime.c: moved to ...
5043 * normal/datetime.c: ... moved here
5044 (grub_unixtime2datetime): new function
5045 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
5046 * normal/completion.c (iterate_dir): use new dir syntax
5047 * normal/misc.c (grub_normal_print_device_info): tell the
5048 last modification time of a volume
5049 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
5050 * conf/common.rmk: added lib/datetime.c to ls.mod
5051 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
5052 (normal_mod_SOURCES): likewise
5053 (datetime_mod_SOURCES): Removed lib/datetime.c
5054 * conf/i386-efi.rmk: likewise
5055 * conf/i386-ieee1275.rmk: likewise
5056 * conf/i386-pc.rmk: likewise
5057 * conf/powerpc-ieee1275.rmk: likewise
5058 * conf/sparc64-ieee1275.rmk: likewise
5059 * conf/x86_64-efi.rmk: likewise
5061 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5063 Trim trailing spaces in FAT label and support mtools-like labels
5065 * fs/fat.c (grub_fat_iterate_dir): New function based
5066 on grub_fat_find_dir
5067 (grub_fat_find_dir): use grub_fat_iterate_dir
5068 (grub_fat_label): likewise
5070 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5072 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
5074 remove extraneous kernel_elf_HEADERS
5076 2009-04-04 Bean <bean123ch@gnail.com>
5078 * include/grub/util/misc.h: Add dummy function fsync for mingw.
5080 * util/misc.c: Likewise.
5082 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
5084 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
5085 instead of grub_printf.
5087 2009-04-03 Robert Millan <rmh@aybabtu.com>
5089 * loader/i386/linux.c (grub_linux_setup_video): Fill
5090 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
5091 values from `mode info' structure instead of hardcoded
5094 2009-04-01 Pavel Roskin <proski@gnu.org>
5096 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
5098 * genmk.rb: Likewise.
5099 * configure.ac: Likewise.
5101 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
5103 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
5104 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
5106 2009-04-01 David S. Miller <davem@davemloft.net>
5108 * normal/sparc64/setjmp.S: Fix setjmp implementation.
5109 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5110 (grub_setjmp): Mark with 'returns_twice' attribute.
5111 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
5112 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
5113 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
5115 2009-04-01 Robert Millan <rmh@aybabtu.com>
5117 Reapply fix from 2008-07-28 which was accidentally reverted; also
5118 perform the same fix to a similar check in same function.
5120 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
5121 with the same number are found, just use issue a warning with
5122 grub_dprintf(), as this error has been reported to be non-fatal.
5124 2009-03-31 Pavel Roskin <proski@gnu.org>
5126 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
5127 for cross-compilation.
5129 2009-03-30 Robert Millan <rmh@aybabtu.com>
5131 Fix i386-ieee1275 build.
5133 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
5136 2009-03-30 Pavel Roskin <proski@gnu.org>
5138 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
5139 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
5140 zero-terminated, rely only on the strlen value. Fix comparison
5141 of strings differing in length.
5143 2009-03-30 Robert Millan <rmh@aybabtu.com>
5145 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
5146 checking for abi version. Improve error messages on BIOS to notify
5147 user about `linux16' command.
5149 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5153 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
5154 in case of collision
5155 * disk/scsi.c (grub_scsi_open): free scsi in case of error
5157 2009-03-29 Robert Millan <rmh@aybabtu.com>
5159 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
5160 set `vid_mode' accordingly.
5161 (grub_linux_boot): Process `vid_mode' and set video mode.
5163 2009-03-29 Robert Millan <rmh@aybabtu.com>
5165 * util/grub.d/10_linux.in (linux_entry): New function.
5166 Factorize generation of Linux boot entries.
5168 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
5170 Make the format of Environment Block plain text. The boot loader
5171 part is not tested well yet.
5173 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
5176 (usage): Remove "info" and "clear". Add "unset". Update the
5177 description of "set", as this does not delete variables any
5179 (create_envblk_file): Complete rewrite.
5180 (open_envblk_file): Likewise.
5181 (cmd_info): Removed.
5182 (cmd_list): Likewise.
5183 (cmd_set): Likewise.
5184 (cmd_clear): Likewise.
5185 (list_variables): New function.
5186 (write_envblk): Likewise.
5187 (set_variables): Likewise.
5188 (unset_variables): Likewise.
5189 (main): Complete rewrite.
5191 * commands/loadenv.c (buffer): Removed.
5193 (open_envblk_file): New function.
5194 (read_envblk_file): Complete rewrite.
5195 (grub_cmd_load_env): Likewise.
5196 (grub_cmd_list_env): Likewise.
5197 (struct blocklist): New struct.
5198 (free_blocklists): New function.
5199 (check_blocklists): Likewise.
5200 (write_blocklists): Likewise.
5201 (grub_cmd_save_env): Complete rewrite.
5203 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
5204 a plain text signature.
5205 (GRUB_ENVBLK_MAXLEN): Removed.
5206 (struct grub_envblk): Complete rewrite.
5207 (grub_envblk_find): Removed.
5208 (grub_envblk_insert): Likewise.
5209 (grub_envblk_open): New prototype.
5210 (grub_envblk_set): Likewise.
5211 (grub_envblk_delete): Put const to VALUE.
5212 (grub_envblk_iterate): Put const to NAME and VALUE.
5213 (grub_envblk_close): New prototype.
5214 (grub_envblk_buffer): New inline function.
5215 (grub_envblk_size): Likewise.
5217 * lib/envblk.c: Include grub/mm.h.
5218 (grub_env_find): Removed.
5219 (grub_envblk_open): New function.
5220 (grub_envblk_close): Likewise.
5221 (escaped_value_len): Likewise.
5222 (find_next_line): Likewise.
5223 (grub_envblk_insert): Removed.
5224 (grub_envblk_set): New function.
5225 (grub_envblk_delete): Complete rewrite.
5226 (grub_envblk_iterate): Likewise.
5228 2009-03-28 Robert Millan <rmh@aybabtu.com>
5230 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
5231 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
5232 variables. Use 16-bit loader.
5233 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
5235 * kern/i386/loader.S (grub_linux_boot): Rename to ...
5236 (grub_linux16_boot): ... this. Update all users.
5237 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
5238 (grub_linux_boot): ... this. Update all users.
5240 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
5241 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
5242 commands to `linux16' and `initrd16'.
5243 (GRUB_MOD_FINI(linux)): Rename to ...
5244 (GRUB_MOD_FINI(linux16)): ... this.
5246 2009-03-24 Pavel Roskin <proski@gnu.org>
5248 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
5249 not just for compilation.
5251 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
5253 Move multiboot helper out of kernel
5255 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
5256 `loader/i386/multiboot_helper.S'.
5257 * conf/i386-coreboot.rmk: Likewise
5258 * conf/i386-ieee1275.rmk: Likewise
5260 * kern/i386/loader.S: Move multiboot helpers from here...
5261 * loader/i386/multiboot_helper.S: ...moved here
5262 * include/grub/i386/loader.h: Move declarations of multiboot
5263 helpers from here...
5264 * include/grub/i386/multiboot.h: ...moved here
5265 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
5267 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5269 * kern/env.c (grub_env_context_open): Added an argument to specify
5270 whether a new context inherits exported variables from current
5271 one. This is useful when making a sandbox to interpret a config
5273 All callers updated.
5275 * include/grub/env.h (grub_env_context_open): Updated the prototype.
5277 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5279 * kern/env.c (grub_env_context_close): Fix memory leaks.
5281 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5283 * normal/main.c (grub_normal_execute): Added an argument
5284 BATCH to specify if an interactive interface should be provided
5285 after reading a config file.
5286 All callers updated.
5287 (read_command_list): Prevent being executed twice.
5288 (read_fs_list): Likewise.
5290 * include/grub/normal.h (grub_normal_execute): Updated the
5293 2009-03-22 Pavel Roskin <proski@gno.org>
5295 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
5297 * kern/i386/pc/startup.S: Likewise.
5298 * kern/i386/efi/startup.S: Likewise.
5299 * kern/i386/ieee1275/startup.S: Likewise.
5300 * kern/i386/coreboot/startup.S: Likewise.
5301 * kern/x86_64/efi/startup.S: Likewise.
5303 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
5304 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
5305 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
5307 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
5309 Bugfixes in multiboot for bugs uncovered by solaris kernel.
5311 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
5313 Use vaddr of correct segment for entry_point.
5315 2009-03-21 Bean <bean123ch@gmail.com>
5317 * commands/blocklist.c: Add include file <grub/command.h>, remove
5318 <grub/normal.h> and <grub/arg.h>.
5319 (grub_cmd_blocklist): Use the new command interface.
5320 (GRUB_MOD_INIT): Likewise.
5321 (GRUB_MOD_FINI): Likewise.
5322 * commands/boot.c: Likewise.
5323 * commands/cat.c: Likewise.
5324 * commands/cmp.c: Likewise.
5325 * commands/configfile.c: Likewise.
5326 * commands/crc.c: Likewise.
5327 * commands/echo.c: Likewise.
5328 * commands/halt.c: Likewise.
5329 * commands/handler.c: Likewise.
5330 * commands/hdparm.c: Likewise.
5331 * commands/help.c: Likewise.
5332 * commands/hexdump.c: Likewise.
5333 * commands/loadenv.c: Likewise.
5334 * commands/ls.c: Likewise.
5335 * commands/lsmmap.c: Likewise.
5336 * commands/lspci.c: Likewise.
5337 * commands/loadenv.c: Likewise.
5338 * commands/read.c: Likewise.
5339 * commands/reboot.c: Likewise.
5340 * commands/search.c: Likewise.
5341 * commands/sleep.c: Likewise.
5342 * commands/test.c: Likewise.
5343 * commands/usbtest.c: Likewise.
5344 * commands/videotest.c: Likewise.
5345 * commands/i386/cpuid.c: Likewise.
5346 * commands/i386/pc/halt.c: Likewise.
5347 * commands/i386/pc/play.c: Likewise.
5348 * commands/i386/pc/pxecmd.c: Likewise.
5349 * commands/i386/pc/vbeinfo.c: Likewise.
5350 * commands/i386/pc/vbetest.c: Likewise.
5351 * commands/ieee1275/suspend.c: Likewise.
5352 * disk/loopback.c: Likewise.
5353 * font/font_cmd.c: Likewise.
5354 * hello/hello.c: Likewise.
5355 * loader/efi/appleloader.c: Likewise.
5356 * loader/efi/chainloader.c: Likewise.
5357 * loader/i386/bsd.c: Likewise.
5358 * loader/i386/efi/linux.c: Likewise.
5359 * loader/i386/ieee1275/linux.c: Likewise.
5360 * loader/i386/linux.c: Likewise.
5361 * loader/i386/pc/chainloader.c: Likewise.
5362 * loader/i386/pc/linux.c: Likewise.
5363 * loader/powerpc/ieee1275/linux.c: Likewise.
5364 * loader/multiboot_loader.c: Likewise.
5365 * term/gfxterm.c: Likewise.
5366 * term/i386/pc/serial.c: Likewise.
5367 * term/terminfo.c: Likewise.
5369 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
5370 * term/i386/pc/vga.c: Likewise.
5371 * video/readers/jpeg.c: Likewise.
5372 * video/readers/png.c: Likewise.
5373 * video/readers/tga.c: Likewise.
5375 * util/grub-fstest (cmd_loopback): Removed.
5376 (cmd_blocklist): Likewise.
5378 (grub_register_command): Likewise.
5379 (grub_unregister_command): Likewise.
5380 (execute_command): Use grub_command_find to locate command and execute
5383 * include/grub/efi/chainloader.h: Removed.
5384 * loader/efi/chainloader_normal.c: Likewise.
5385 * loader/i386/bsd_normal.c: Likewise.
5386 * loader/i386/pc/chainloader_normal.c: Likewise.
5387 * loader/i386/pc/multiboot_normal.c: Likewise.
5388 * loader/linux_normal.c: Likewise.
5389 * loader/multiboot_loader_normal.c: Likewise.
5390 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
5392 * gencmdlist.sh: Scan new registration command grub_register_extcmd
5393 and grub_register_command_p1.
5395 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
5396 kern/command.c, lib/arg.c and commands/extcmd.c.
5397 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
5398 (minicmd_mod_SOURCES): New variable.
5399 (minicmd_mod_CFLAGS): Likewise.
5400 (minicmd_mod_LDFLAGS): Likewise.
5401 (extcmd_mod_SOURCES): Likewise.
5402 (extcmd_mod_CFLAGS): Likewise.
5403 (extcmd_mod_LDFLAGS): Likewise.
5404 (boot_mod_SOURCES): Removed.
5405 (boot_mod_CFLAGS): Likewise.
5406 (boot_mod_LDFLAGS): Likewise.
5408 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
5410 (kernel_img_HEADERS): Add command.h.
5411 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
5412 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
5414 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
5415 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
5416 remove the corresponding normal mode command.
5417 (normal_mod_SOURCES): Remove normal/arg.c.
5418 * conf/i386-coreboot.rmk: Likewise.
5419 * conf/i386-efi.rmk: Likewise.
5420 * conf/i386-ieee1275.rmk: Likewise.
5421 * conf/powerpc-ieee1275.rmk: Likewise.
5422 * conf/x86_64-efi.rmk: Likewise.
5424 * include/grub/arg.h: Move from here ...
5425 * include/grub/lib/arg.h: ... to here.
5427 * normal/arg.c: Move from here ...
5428 * lib/arg.c: ... to here.
5430 * commands/extcmd.c: New file.
5431 * commands/minicmd.c: Likewise.
5432 * include/grub/command.h: Likewise.
5433 * include/grub/extcmd.h: Likewise.
5434 * kern/command.c: Likewise.
5435 * kern/corecmd.c: Likewise.
5437 * kern/list.c (grub_list_iterate): Return int instead of void.
5438 (grub_list_insert): New function.
5439 (grub_prio_list_insert): Likewise.
5441 * kern/rescue.c (grub_rescue_command): Removed.
5442 (grub_rescue_command_list): Likewise.
5443 (grub_rescue_register_command): Likewise.
5444 (grub_rescue_unregister_command): Likewise.
5445 (grub_rescue_cmd_boot): Move to minicmd.c
5446 (grub_rescue_cmd_help): Likewise.
5447 (grub_rescue_cmd_info): Likewise.
5448 (grub_rescue_cmd_boot): Likewise.
5449 (grub_rescue_cmd_testload): Likewise.
5450 (grub_rescue_cmd_dump): Likewise.
5451 (grub_rescue_cmd_rmmod): Likewise.
5452 (grub_rescue_cmd_lsmod): Likewise.
5453 (grub_rescue_cmd_exit): Likewise.
5454 (grub_rescue_print_devices): Moved to corecmd.c.
5455 (grub_rescue_print_files): Likewise.
5456 (grub_rescue_cmd_ls): Likewise.
5457 (grub_rescue_cmd_insmod): Likewise.
5458 (grub_rescue_cmd_set): Likewise.
5459 (grub_rescue_cmd_unset): Likewise.
5460 (attempt_normal_mode): Use grub_command_find to get normal module.
5461 (grub_enter_rescue_mode): Use grub_register_core_commands to register
5462 commands, remove grub_rescue_register_command calls.
5464 * normal/command.c (grub_register_command): Removed.
5465 (grub_unregister_command): Likewise.
5466 (grub_command_find): Likewise.
5467 (grub_iterate_commands): Likewise.
5468 (rescue_command): Likewise.
5469 (export_command): Moved to corecmd.c.
5470 (set_command): Removed.
5471 (unset_command): Likewise.
5472 (insmod_command): Likewise.
5473 (rmmod_command): Likewise.
5474 (lsmod_command): Likewise.
5475 (grub_command_init): Likewise.
5477 * normal/completion.c (iterate_command): Use cmd->prio to check for
5479 (complete_arguments): Use grub_extcmd_t structure to find options.
5480 (grub_normal_do_completion): Change function grub_iterate_commands to
5481 grub_command_iterate.
5483 * normal/execute.c (grub_script_execute_cmd): No need to parse
5486 * normal/main.c (grub_dyncmd_dispatcher): New function.
5487 (read_command_list): Register unload commands as dyncmd.
5488 (grub_cmd_normal): Use new command interface, register rescue,
5489 unregister normal at entry, register normal, unregister rescue at exit.
5491 * include/grub/list.h (grub_list_test_t): New type.
5492 (grub_list_iterate): Return int instead of void.
5493 (grub_list_insert): New function.
5494 (GRUB_AS_NAMED_LIST_P): New macro.
5495 (GRUB_AS_PRIO_LIST): Likewise.
5496 (GRUB_AS_PRIO_LIST_P): Likewise.
5497 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
5498 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
5499 (grub_prio_list): New structure.
5500 (grub_prio_list_insert): New function.
5501 (grub_prio_list_remove): New inline function.
5503 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
5504 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
5505 (GRUB_COMMAND_FLAG_MENU): Likewise.
5506 (GRUB_COMMAND_FLAG_BOTH): Likewise.
5507 (GRUB_COMMAND_FLAG_TITLE): Likewise.
5508 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
5509 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
5510 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
5511 (grub_command): Likewise.
5512 (grub_register_command): Likewise.
5513 (grub_command_find): Likewise.
5514 (grub_iterate_commands): Likewise.
5515 (grub_command_init): Likewise.
5516 (grub_arg_parse): Likewise.
5517 (grub_arg_show_help): Likewise.
5519 * include/grub/rescue.h (grub_rescue_register_command): Removed.
5520 (grub_rescue_unregister_command): Likewise.
5522 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
5523 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
5524 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
5526 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
5527 grub_rescue_cmd_initrd.
5528 * include/grub/i386/loader.h: Likewise.
5529 * include/grub/x86_64/loader.h: Likewise.
5531 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
5533 2009-03-21 Bean <bean123ch@gmail.com>
5535 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
5536 instead of stat in mingw environment.
5538 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
5540 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
5542 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
5545 2009-03-21 Bean <bean123ch@gmail.com>
5547 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
5550 2009-03-18 Michel Dänzer <michel@daenzer.net>
5552 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
5553 checking inode flags for EXT4_EXTENTS_FLAG.
5555 2009-03-18 Robert Millan <rmh@aybabtu.com>
5557 * loader/i386/linux.c: Include `<grub/video.h>' and
5558 `<grub/i386/pc/vbe.h>'..
5559 (grub_linux_setup_video): New function. Loosely based on the EFI one.
5560 (grub_linux32_boot): Attempt to configure video settings with
5561 grub_linux_setup_video().
5562 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
5563 to avoid grub_console_fini() which would step out of graphical mode
5566 2009-03-14 Robert Millan <rmh@aybabtu.com>
5568 Fix build on powerpc.
5569 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
5571 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
5573 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
5574 background image command.
5576 2009-03-12 Colin D Bennett <colin@gibibit.com>
5578 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
5579 (grub_gfxterm_putchar): Extract pairs of identical calls to
5580 draw_cursor out of conditional blocks.
5582 2009-03-11 Pavel Roskin <proski@gnu.org>
5584 * fs/hfs.c (grub_hfs_strncasecmp): New function.
5585 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
5587 2009-03-11 Robert Millan <rmh@aybabtu.com>
5589 * loader/i386/multiboot_elfxx.c
5590 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
5592 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
5594 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
5597 2009-03-11 Robert Millan <rmh@aybabtu.com>
5599 * loader/i386/multiboot.c (code_size): New variable.
5600 (grub_multiboot): Define offsets by adding to `code_size' rather
5601 than subtracting from `grub_multiboot_payload_size'. Provide
5602 4-byte alignment to MBI and others by increasing
5603 `boot_loader_name_length' appropriately.
5605 * loader/i386/multiboot_elfxx.c
5606 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
5608 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
5610 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
5613 2009-03-08 Robert Millan <rmh@aybabtu.com>
5615 Make loader/i386/linux.c usable on i386-pc again.
5617 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
5619 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
5622 2009-03-07 Bean <bean123ch@gmail.com>
5624 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
5627 2009-03-06 Robert Millan <rmh@aybabtu.com>
5629 Fix display issue on terminals with screen size other than 80x25
5630 (e.g. gfxterm with resolution higher than 640x480).
5632 * normal/main.c (grub_normal_init_page): Display title text in a
5633 position relative to the center of the terminal instead of relying
5634 on a hardcoded offset.
5636 2009-03-04 Robert Millan <rmh@aybabtu.com>
5638 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
5641 * Makefile.in (host_kernel): New variable.
5642 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
5643 scripts instead of just the windows one.
5644 * configure.ac: Initialize and AC_SUBST `host_kernel'.
5646 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5648 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
5650 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5651 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5652 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5653 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5654 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5655 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5657 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5659 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
5660 or if there's no space for the disk label and print the partition number on a
5663 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5665 * util/misc.c: Include <time.h>.
5666 (grub_millisleep): New function.
5668 2009-03-04 Bean <bean123ch@gmail.com>
5670 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
5671 another option -mno-red-zone.
5673 * commands/handler.c: Change module description.
5675 * kern/handler.c: Add missing space at the end of description line.
5677 * kern/list.c: Likewise.
5679 2009-03-03 Robert Millan <rmh@aybabtu.com>
5681 Move more components to the relocation area, and fix mbi pointer
5682 handling to use the destination rather than the origin (thanks to
5683 Vladimir Serbinenko for spotting).
5685 * loader/i386/multiboot.c (mbi_dest): New variable.
5686 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
5687 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
5690 2009-03-01 Bean <bean123ch@gmail.com>
5692 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
5693 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
5694 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
5695 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
5697 * loader/i386/efi/linux.c (acpi_guid): New variable.
5698 (acpi_guid): Likewise.
5699 (EBDA_SEG_ADDR): New constant.
5700 (LOW_MEM_ADDR): Likewise.
5701 (FAKE_EBDA_SEG): Likewise.
5702 (fake_bios_data): New function.
5703 (grub_linux_boot): Call fake_bios_data.
5705 2009-03-01 Bean <bean123ch@gmail.com>
5707 * commands/terminal.c: Removed.
5709 * commands/handler.c: New file.
5711 * include/grub/list.h: Likewise.
5713 * include/grub/handler.h: Likewise.
5715 * kern/list.c: Likewise.
5717 * kern/handler.c: Likewise.
5719 * kern/term.h: Include header file <grub/handler.h>.
5720 (grub_term_input): Move next field to the beginning.
5721 (grub_term_output): Likewise.
5722 (grub_term_input_class): New variable.
5723 (grub_term_output_class): Likewise.
5724 (grub_term_register_input): Changed to inline function.
5725 (grub_term_register_output): Likewise.
5726 (grub_term_unregister_input): Likewise.
5727 (grub_term_unregister_output): Likewise.
5728 (grub_term_set_current_input): Likewise.
5729 (grub_term_set_current_output): Likewise.
5730 (grub_term_get_current_input): Likewise.
5731 (grub_term_get_current_output): Likewise.
5732 (grub_term_iterate_input): Removed.
5733 (grub_term_iterate_output): Likewise.
5735 * kern/term.c (grub_term_list_input): Removed.
5736 (grub_term_list_output): Likewise.
5737 (grub_term_input_class): New variable.
5738 (grub_term_output_class): Likewise.
5739 (grub_cur_term_input): Change variable as macro.
5740 (grub_cur_term_output): Likewise.
5741 (grub_term_register_input): Removed.
5742 (grub_term_register_output): Likewise.
5743 (grub_term_unregister_input): Likewise.
5744 (grub_term_unregister_output): Likewise.
5745 (grub_term_set_current_input): Likewise.
5746 (grub_term_set_current_output): Likewise.
5747 (grub_term_iterate_input): Likewise.
5748 (grub_term_iterate_output): Likewise.
5749 (grub_term_get_current_input): Likewise.
5750 (grub_term_get_current_output): Likewise.
5752 * util/grub-editenv.c: Include header file <grub/handler.h>.
5753 (grub_term_get_current_input): Removed.
5754 (grub_term_get_current_output): Likewise.
5755 (grub_term_input_class): New variable.
5756 (grub_term_output_class): Likewise.
5758 * util/grub-fstest.c (grub_term_get_current_input): Removed.
5759 (grub_term_get_current_output): Likewise.
5760 (grub_term_input_class): New variable.
5761 (grub_term_output_class): Likewise.
5763 * util/grub-probe.c (grub_term_get_current_input): Removed.
5764 (grub_term_get_current_output): Likewise.
5765 (grub_term_input_class): New variable.
5766 (grub_term_output_class): Likewise.
5768 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
5769 (grub_term_get_current_output): Likewise.
5770 (grub_term_input_class): New variable.
5771 (grub_term_output_class): Likewise.
5773 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
5774 (terminal_mod_SOURCES): Likewise.
5775 (terminal_mod_CFLAGS): Likewise.
5776 (terminal_mod_LDFLAGS): Likewise.
5778 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
5780 (kernel_img_SOURCES): Add list.c and handler.c.
5781 (kernel_img_HEADERS): Add list.h and handler.h.
5783 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5785 (kernel_mod_SOURCES): Add list.c and handler.c.
5786 (kernel_mod_HEADERS): Add list.h and handler.h.
5788 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
5790 (kernel_elf_SOURCES): Add list.c and handler.c.
5791 (kernel_elf_HEADERS): Add list.h and handler.h.
5793 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5795 (kernel_elf_SOURCES): Add list.c and handler.c.
5796 (kernel_elf_HEADERS): Add list.h and handler.h.
5798 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5800 (kernel_mod_SOURCES): Add list.c and handler.c.
5801 (kernel_mod_HEADERS): Add list.h and handler.h.
5803 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5805 (kernel_elf_SOURCES): Add list.c and handler.c.
5806 (kernel_elf_HEADERS): Add list.h and handler.h.
5808 2009-02-27 Robert Millan <rmh@aybabtu.com>
5810 Factorize elf32 / elf64 code in Multiboot loader. This will
5811 prevent it from getting out of sync again.
5813 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
5814 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
5815 grub_multiboot_load_elf64): Move from here ...
5816 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
5817 grub_multiboot_load_elf): ... to here (new file).
5819 2009-02-27 Robert Millan <rmh@aybabtu.com>
5821 * util/grub.d/10_linux.in: Rename "single-user mode" to
5824 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5826 Don't leak in SCSI code.
5827 * disk/scsi.c (grub_scsi_close): free `scsi'.
5829 2009-02-27 Robert Millan <rmh@aybabtu.com>
5831 * loader/i386/pc/multiboot.c: Move from here ...
5832 * loader/i386/multiboot.c: ... to here. Update all users.
5834 2009-02-27 Robert Millan <rmh@aybabtu.com>
5836 Patch from Alexandre Bique <bique.alexandre@gmail.com>
5837 * util/i386/pc/grub-setup.c (setup): Fix directory path.
5839 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
5841 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
5844 2009-02-27 Robert Millan <rmh@aybabtu.com>
5846 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
5847 `0x' qualifier as 0 when base is specified as parameter).
5849 2009-02-24 Bean <bean123ch@gmail.com>
5851 * configure.ac: Check for -mcmodel=large in x86_64 target.
5853 * include/grub/efi/api.h (efi_call_10): New macro.
5854 (efi_wrap_10): New function.
5856 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
5857 (GRUB_PE32_REL_BASED_HIGH): Likewise.
5858 (GRUB_PE32_REL_BASED_LOW): Likewise.
5859 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
5860 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
5861 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
5862 (GRUB_PE32_REL_BASED_SECTION): Likewise.
5863 (GRUB_PE32_REL_BASED_REL): Likewise.
5864 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
5865 (GRUB_PE32_REL_BASED_DIR64): Likewise.
5866 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
5868 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
5871 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
5872 (efi_wrap_10): New function.
5874 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
5876 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
5877 MB/MBP model (NV chipset).
5878 (devdata_devs): Add devpath_5 to the list.
5880 * load/i386/efi/linux.c (video_base): Remove variable.
5881 (RGB_MASK): New macro.
5882 (RGB_MAGIC): Likewise.
5883 (LINE_MIN): Likewise.
5884 (LINE_MAX): Likewise.
5885 (FBTEST_STEP): Likewise.
5886 (FBTEST_COUNT): Likewise.
5887 (fb_list): New variable.
5888 (grub_find_video_card): Remove function.
5889 (find_framebuf): New function.
5890 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
5893 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
5896 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
5898 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
5900 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
5903 2009-02-22 Robert Millan <rmh@aybabtu.com>
5905 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
5906 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
5907 in our relocation, instead of using it directly from heap. Also
5908 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
5910 2009-02-21 Robert Millan <rmh@aybabtu.com>
5912 Implement USB keyboard support (based on patch by Marco Gerards)
5914 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
5915 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
5916 (usb_keyboard_mod_LDFLAGS): New variables.
5918 * term/usb_keyboard.c: New file.
5920 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
5922 Corrected wrong declaration
5924 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
5926 2009-02-14 Christian Franke <franke@computer.org>
5928 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
5929 (grub_lspci_iter): Print class code and programming interface byte.
5931 2009-02-14 Christian Franke <franke@computer.org>
5933 * gendistlist.sh: Ignore `.svn' directories.
5935 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
5937 * fs/fat.c: Add 2009 to Copyright line.
5939 2009-02-14 Christian Franke <franke@computer.org>
5941 * commands/hdparm.c: New file. Provides `hdparm' command
5942 which sends ATA commands via grub_disk_ata_pass_through ().
5944 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
5946 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
5947 and <grub/cpu/io.h> to include/grub/ata.h.
5948 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
5949 (GRUB_CDROM_SECTOR_SIZE): Remove.
5950 (GRUB_ATA_*): Move to include/grub/ata.h.
5951 (GRUB_ATAPI_*): Likewise.
5952 (enum grub_ata_commands): Likewise.
5953 (enum grub_ata_timeout_milliseconds): Likewise.
5954 (struct grub_ata_device): Likewise.
5955 (grub_ata_regset): Likewise.
5956 (grub_ata_regget): Likewise.
5957 (grub_ata_regset2): Likewise.
5958 (grub_ata_regget2): Likewise.
5959 (grub_ata_check_ready): Likewise.
5960 (grub_ata_wait_not_busy): Remove static, exported in
5962 (grub_ata_wait_drq): Likewise.
5963 (grub_ata_pio_read): Likewise.
5965 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
5966 function for hdparm.mod.
5968 * include/grub/ata.h: New file, contains declarations from
5970 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
5972 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
5973 (grub_disk_ata_pass_through): New exported variable.
5975 * kern/disk.c (grub_disk_ata_pass_through): New variable.
5977 2009-02-13 Colin D Bennett <colin@gibibit.com>
5979 Support multiple fallback entries, and provide an API to support
5980 executing default+fallback menu entries. Renamed the `terminal' menu
5983 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
5984 variable declaration.
5985 (grub_menu_execute_callback): New structure declaration.
5986 (grub_menu_execute_callback_t): New typedef.
5987 (grub_menu_execute_with_fallback): New function declaration.
5988 (grub_menu_get_entry): Likewise.
5989 (grub_menu_get_timeout): Likewise.
5990 (grub_menu_set_timeout): Likewise.
5992 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
5994 * normal/menu.c (grub_wait_after_message): Moved to
5995 `normal/menu_text.c'.
5996 (draw_border): Likewise.
5997 (print_message): Likewise.
5998 (print_entry): Likewise.
5999 (print_entries): Likewise.
6000 (grub_menu_init_page): Likewise.
6001 (get_entry_number): Likewise.
6002 (print_timeout): Likewise.
6003 (run_menu): Likewise.
6004 (grub_menu_execute_entry): Likewise.
6005 (show_text_menu): Likewise.
6006 (get_and_remove_first_entry_number): New function.
6007 (grub_menu_execute_with_fallback): Likewise.
6008 (get_entry): Renamed to ...
6009 (grub_menu_get_entry): .. this and made it global.
6010 (get_timeout): Renamed to ...
6011 (grub_menu_get_timeout): ... this and made it global.
6012 (set_timeout): Renamed to ...
6013 (grub_menu_set_timeout): ... this and made it global.
6014 (grub_normal_terminal_menu_viewer): Renamed to ...
6015 (grub_normal_text_menu_viewer): ... this.
6017 * normal/menu_text.c: New file. Extracted text-menu-specific code
6020 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
6021 (normal_mod_SOURCES): Likewise.
6023 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6024 (normal_mod_SOURCES): Likewise.
6026 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6027 (normal_mod_SOURCES): Likewise.
6029 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
6030 (normal_mod_SOURCES): Likewise.
6032 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6033 (normal_mod_SOURCES): Likewise.
6035 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6036 (normal_mod_SOURCES): Likewise.
6038 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6039 (normal_mod_SOURCES): Likewise.
6041 2009-02-11 Robert Millan <rmh@aybabtu.com>
6043 * util/grub.d/00_header.in: Update old reference to `font' command.
6045 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
6047 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
6049 Based on patch from Javier MartÃn.
6051 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6053 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
6054 to avoid false positives with FAT.
6055 (grub_fstest_SOURCES): Likewise.
6056 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6057 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6058 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6059 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6060 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6061 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6063 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6065 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6066 bpb.version_specific.fat12_or_fat16.fstype and
6067 bpb.version_specific.fat32.fstype.
6069 2009-02-08 Robert Millan <rmh@aybabtu.com>
6071 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
6073 2009-02-08 Robert Millan <rmh@aybabtu.com>
6075 * Makefile.in (host_os, host_cpu): New variables.
6076 (target_os): Remove. Update all users.
6078 2009-02-08 Marco Gerards <marco@gnu.org>
6080 * Makefile.in (enable_grub_emu_usb): New variable.
6081 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
6082 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
6083 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
6084 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
6085 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
6086 `usbtest.mod' and `usbms.mod'.
6087 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
6088 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
6089 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
6090 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
6091 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
6094 * disk/usbms.c: New file.
6096 * include/grub/usb.h: Likewise.
6098 * include/grub/usbtrans.h: Likewise.
6100 * include/grub/usbdesc.h: Likewise.
6102 * bus/usb/usbtrans.c: Likewise.
6104 * bus/usb/ohci.c: Likewise.
6106 * bus/usb/uhci.c: Likewise.
6108 * bus/usb/usbhub.c: Likewise.
6110 * bus/usb/usb.c: Likewise.
6112 * commands/usbtest.c: Likewise.
6114 * util/usb.c: Likewise.
6116 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
6118 * configure.ac: Test for libusb presence.
6120 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
6122 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
6124 * kern/mm.c: Add more comments.
6126 2009-02-08 Robert Millan <rmh@aybabtu.com>
6128 Patch from Javier MartÃn.
6129 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
6130 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
6132 2009-02-08 Robert Millan <rmh@aybabtu.com>
6134 * fs/cpio.c: Split tar functionality to ...
6135 * fs/tar.c: ... here (new file). Update all users.
6137 2009-02-07 Robert Millan <rmh@aybabtu.com>
6139 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
6140 backward-incompatible features.
6142 Based on patch from Javier MartÃn, with some adjustments.
6144 2009-02-07 Michael Scherer <misc@mandriva.org>
6146 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
6148 2009-02-07 Robert Millan <rmh@aybabtu.com>
6150 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
6151 position of `disk/lvm.c' to ensure grub_init_all() always picks it
6152 after the RAID stuff.
6154 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
6156 Fixes problem when running vbetest command as reported by
6157 Vladimir Serbinenko <phcoder@gmail.com>.
6159 * (grub_vbe_set_video_mode): Fixed problem with text modes.
6161 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
6163 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
6164 /dev/md/NpN style mdraid devices.
6166 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6168 * util/unifont2pff.rb: Remove.
6170 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6172 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
6175 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6177 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
6178 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6179 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6180 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6181 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6182 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6183 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6185 2009-02-02 Christian Franke <franke@computer.org>
6187 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
6189 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
6191 * INSTALL: Note that we now require at least autoconf 2.59 and
6192 that LZO is optional.
6194 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6196 Base on patch on bug #24154 created by Tomas Tintera
6199 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
6201 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6203 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
6204 <bero@arklinux.org>.
6206 * normal/parser.y (script_init): Add missing semicolon.
6208 2009-01-31 Colin D Bennett <colin@gibibit.com>
6210 * normal/main.c: Add include to grub/menu_viewer.h.
6211 (free_menu_entry_classes): Added.
6212 (grub_normal_menu_addentry): Added class property handling.
6213 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
6214 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
6216 * normal/menu_viewer.c: New file.
6218 * normal/menu.c (run_menu_entry): Renamed to ...
6219 (grub_menu_execute_entry): ... this and made it as global.
6220 (grub_menu_run): Renamed to ...
6221 (show_text_menu): ... this and made it local.
6222 (show_text_menu): Adapt to new function names.
6223 (grub_normal_terminal_menu_viewer): New global variable.
6225 * include/grub/menu.h: New file.
6227 * include/grub/menu_viewer.h: New file.
6229 * include/grub/normal.h: Added include to grub/menu.h.
6230 (grub_menu_entry): Moved to include/grub/menu.h.
6231 (grub_menu_entry_t): Likewise.
6232 (grub_menu): Likewise.
6233 (grub_menu_t): Likewise.
6234 (grub_normal_terminal_menu_viewer): Added.
6235 (grub_menu_execute_entry): Likewise.
6236 (grub_menu_run): Removed.
6238 * DISTLIST: Added include/grub/menu.h.
6239 Added include/grub/menu_viewer.h.
6240 Added normal/menu_viewer.c.
6242 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
6244 * normal/execute.c (grub_script_execute_menuentry): Changed to use
6245 arglist for menutitle arguments.
6247 * normal/main.c (grub_normal_menu_addentry): Likewise.
6249 * normal/parser.y (menuentry): Likewise.
6251 * normal/script.c (grub_script_create_cmdmenu): Likewise.
6253 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
6254 (grub_script_create_cmdmenu): Likewise.
6256 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
6258 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
6261 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
6263 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
6265 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
6267 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6269 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6271 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6273 2009-01-30 Christian Franke <franke@computer.org>
6275 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
6276 in option help text.
6278 2009-01-27 Pavel Roskin <proski@gnu.org>
6280 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
6282 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6284 * commands/lsmmap.c: Add include to grub/machine/memory.h.
6286 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
6288 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
6289 unregister function.
6291 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6293 * disk/scsi.c (grub_scsi_read): Fix sign problem.
6295 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
6297 * util/grub-mkfont.c (usage): Fix typo.
6299 * util/elf/grub-mkimage.c (load_modules): Fix warning.
6301 2009-01-26 Daniel Mierswa <impulze@impulze.org>
6303 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
6305 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
6307 * kern/misc.c (grub_strcasecmp): New function.
6308 (grub_strcasecmp): Use grub_size_t instead of int for length.
6310 * include/grub/misc.h: Update function prototypes.
6312 2009-01-26 Robert Millan <rmh@aybabtu.com>
6314 * configure.ac: Fix cross-compilation check.
6316 2009-01-22 Christian Franke <franke@computer.org>
6318 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
6319 (precision) digit string. Allow `.format2' without `format1' (width).
6320 Limit input chars for `%s' output to `format2' if specified. This is
6321 compatible with standard printf ().
6323 2009-01-22 Christian Franke <franke@computer.org>
6325 * disk/ata.c (grub_ata_wait_status): Replace by ...
6326 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
6327 other status bits may be invalid while BSY is asserted.
6328 (grub_ata_check_ready): New function.
6329 (grub_ata_cmd): Removed.
6330 (grub_ata_wait_drq): New function.
6331 (grub_ata_strncpy): Remove inline.
6332 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
6333 and error check now done by grub_ata_wait_drq ().
6334 (grub_ata_pio_write): Likewise.
6335 (grub_atapi_identify): Set DEV before check for !BSY. Use
6336 grub_ata_wait_drq () to wait for data.
6337 (grub_ata_device_initialize): Add status register check to
6338 detect missing SATA slave devices. Add debug messages.
6339 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
6340 (grub_atapi_packet): Set DEV before check for !BSY. Replace
6341 transfer loop by grub_ata_pio_write ().
6342 (grub_ata_identify): Set DEV before check for !BSY. Use
6343 grub_ata_wait_drq () to wait for data.
6344 (grub_ata_setaddress): Set DEV before check for !BSY.
6345 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
6346 read/write in one loop. Fix invalid command on write. Fix incomplete
6347 command on (size % batch) == 0. Add missing error check after write of
6348 last block. Add debug messages.
6349 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
6351 2009-01-19 Christian Franke <franke@computer.org>
6353 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
6354 (GRUB_ATAPI_IREASON_*): Likewise.
6355 (grub_ata_pio_write): Fix timeout error return.
6356 (grub_atapi_identify): Add grub_ata_wait () after cmd.
6357 (grub_atapi_wait_drq): New function.
6358 (grub_atapi_packet): New parameter `size'.
6359 Use grub_atapi_wait_drq () and direct write instead of
6360 grub_ata_pio_write ().
6361 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
6362 reads the number of bytes requested by the device for each DRQ
6364 (grub_atapi_write): Remove old implementation, return not
6365 implemented instead.
6367 2009-01-19 Christian Franke <franke@computer.org>
6369 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
6370 of 512 to calculate data size.
6371 (grub_scsi_read12): Likewise.
6372 (grub_scsi_write10): Likewise.
6373 (grub_scsi_write12): Likewise.
6374 (grub_scsi_read): Adjust size according to blocksize.
6375 Add checks for invalid blocksize and unaligned transfer.
6377 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
6379 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
6381 * term/gfxterm.c (write_char): Fix background rendering for wide
6384 2009-01-19 Robert Millan <rmh@aybabtu.com>
6386 * config.guess: Update to latest version from config git.
6387 * config.sub: Likewise.
6389 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
6391 * Makefile.in: Change font compilation to use new grub-mkfont instead
6394 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
6395 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6396 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6397 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6398 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6399 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6400 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6401 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6402 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6404 2009-01-16 Christian Franke <franke@computer.org>
6406 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
6407 (enum grub_ata_timeout_milliseconds): New enum.
6408 (grub_ata_wait_status): Add parameter milliseconds.
6409 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
6410 recovery from timed-out commands.
6411 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
6412 return grub_errno instead of REG_ERROR.
6413 (grub_ata_pio_write): Add parameter milliseconds.
6414 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
6415 Pass milliseconds to grub_ata_wait_status () and
6416 grub_ata_pio_read ().
6417 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
6418 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
6419 grub_ata_wait_status (). Fix IDENTIFY timeout check.
6420 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
6421 It is not suitable for device detection, because DEV bit is ignored,
6422 the command may run too long, and not all devices set the signature
6424 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
6425 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
6426 Fix device selection, DEV bit must be set first to address the registers
6427 of the correct device.
6428 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
6429 grub_ata_pio_read/write ().
6430 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
6431 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
6433 2009-01-13 Carles Pina i Estany <carles@pina.cat>
6435 * util/grub-editenv.c (main): Use fseeko(), not fseek().
6437 2009-01-13 Bean <bean123ch@gmail.com>
6439 * util/grub-mkfont.c (write_font): forget to remove some debug code.
6441 2009-01-13 Bean <bean123ch@gmail.com>
6443 * Makefile.in: (enable_grub_mkfont): New variable.
6444 (freetype_cflags): Likewise.
6445 (freetype_libs): Likewise.
6447 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
6448 (grub_mkfont_SOURCES): New variable.
6449 (grub_mkfont_CFLAGS): Likewise.
6450 (grub_mkfont_LDFLAGS): Likewise.
6452 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
6453 library if `--enable-grub-mkfont' is requested.
6454 (enable_grub_mkfont): New variable.
6455 (freetype_cflags): Likewise.
6456 (freetype_libs): Likewise.
6458 * util/grub-mkfont.c: New file.
6460 2009-01-12 Christian Franke <franke@computer.org>
6462 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
6463 mode check. Fix setting of compat_use[].
6465 2009-01-10 Robert Millan <rmh@aybabtu.com>
6467 Update a few copyright years which we forgot to do in 2008 (only for
6468 files whose changes made in 2008 were copyright-significant)
6470 * Makefile.in: Add 2008 to Copyright line.
6471 * disk/ieee1275/ofdisk.c: Likewise.
6472 * disk/efi/efidisk.c: Likewise.
6473 * kern/dl.c: Likewise.
6474 * kern/sparc64/ieee1275/init.c: Likewise.
6475 * kern/mm.c: Likewise.
6476 * kern/efi/mm.c: Likewise.
6477 * boot/i386/pc/boot.S: Likewise.
6478 * genfslist.sh: Likewise.
6479 * fs/iso9660.c: Likewise.
6480 * fs/hfs.c: Likewise.
6481 * fs/jfs.c: Likewise.
6482 * fs/minix.c: Likewise.
6483 * fs/ufs.c: Likewise.
6484 * gensymlist.sh.in: Likewise.
6485 * genkernsyms.sh.in: Likewise.
6486 * include/grub/misc.h: Likewise.
6487 * include/grub/types.h: Likewise.
6488 * include/grub/symbol.h: Likewise.
6489 * include/grub/elf.h: Likewise.
6490 * include/grub/kernel.h: Likewise.
6491 * include/grub/disk.h: Likewise.
6492 * include/grub/dl.h: Likewise.
6493 * include/grub/i386/linux.h: Likewise.
6494 * include/grub/i386/pc/biosdisk.h: Likewise.
6495 * include/grub/efi/api.h: Likewise.
6496 * include/grub/efi/pe32.h: Likewise.
6497 * include/grub/util/misc.h: Likewise.
6498 * normal/execute.c: Likewise.
6499 * normal/arg.c: Likewise.
6500 * normal/completion.c: Likewise.
6501 * normal/lexer.c: Likewise.
6502 * normal/parser.y: Likewise.
6503 * normal/misc.c: Likewise.
6504 * commands/i386/pc/vbeinfo.c: Likewise.
6505 * commands/hexdump.c: Likewise.
6506 * commands/terminal.c: Likewise.
6507 * commands/ls.c: Likewise.
6508 * commands/help.c: Likewise.
6509 * partmap/pc.c: Likewise.
6510 * loader/efi/chainloader.c: Likewise.
6511 * loader/multiboot_loader.c: Likewise.
6512 * loader/i386/pc/multiboot2.c: Likewise.
6513 * term/efi/console.c: Likewise.
6514 * term/i386/pc/serial.c: Likewise.
6515 * util/lvm.c: Likewise.
6516 * util/console.c: Likewise.
6517 * util/i386/efi/grub-mkimage.c: Likewise.
6518 * util/raid.c: Likewise.
6520 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
6522 * commands/videotest.c: Removed include to grub/machine/memory.h.
6524 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
6525 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
6526 (video_mod_SOURCES): Removed.
6527 (video_mod_CFLAGS): Likewise.
6528 (video_mod_LDFLAGS): Likewise.
6529 (gfxterm_mod_SOURCES): Likewise.
6530 (gfxterm_mod_CFLAGS): Likewise.
6531 (gfxterm_mod_LDFLAGS): Likewise.
6532 (videotest_mod_SOURCES): Likewise.
6533 (videotest_mod_CFLAGS): Likewise.
6534 (videotest_mod_LDFLAGS): Likewise.
6535 (bitmap_mod_SOURCES): Likewise.
6536 (bitmap_mod_CFLAGS): Likewise.
6537 (bitmap_mod_LDFLAGS): Likewise.
6538 (tga_mod_SOURCES): Likewise.
6539 (tga_mod_CFLAGS): Likewise.
6540 (tga_mod_LDFLAGS): Likewise.
6541 (jpeg_mod_SOURCES): Likewise.
6542 (jpeg_mod_CFLAGS): Likewise.
6543 (jpeg_mod_LDFLAGS): Likewise.
6544 (png_mod_SOURCES): Likewise.
6545 (png_mod_CFLAGS): Likewise.
6546 (png_mod_LDFLAGS): Likewise.
6548 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
6549 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
6550 (video_mod_SOURCES): Added.
6551 (video_mod_CFLAGS): Likewise.
6552 (video_mod_LDFLAGS): Likewise.
6553 (videotest_mod_SOURCES): Likewise.
6554 (videotest_mod_CFLAGS): Likewise.
6555 (videotest_mod_LDFLAGS): Likewise.
6556 (bitmap_mod_SOURCES): Likewise.
6557 (bitmap_mod_CFLAGS): Likewise.
6558 (bitmap_mod_LDFLAGS): Likewise.
6559 (tga_mod_SOURCES): Likewise.
6560 (tga_mod_CFLAGS): Likewise.
6561 (tga_mod_LDFLAGS): Likewise.
6562 (jpeg_mod_SOURCES): Likewise.
6563 (jpeg_mod_CFLAGS): Likewise.
6564 (jpeg_mod_LDFLAGS): Likewise.
6565 (png_mod_SOURCES): Likewise.
6566 (png_mod_CFLAGS): Likewise.
6567 (png_mod_LDFLAGS): Likewise.
6568 (gfxterm_mod_SOURCES): Likewise.
6569 (gfxterm_mod_CFLAGS): Likewise.
6570 (gfxterm_mod_LDFLAGS): Likewise.
6572 * term/gfxterm.c: Removed include to grub/machine/memory.h,
6573 grub/machine/console.h.
6575 2009-01-04 Jerone Young <jerone@gmail.com>
6577 Make on screen instructions clearer
6579 Based on patch created by Jidanni <jidanni@jidanni.org>
6581 * normal/menu.c: print clearer instructions on the screen
6583 2009-01-02 Colin D Bennett <colin@gibibit.com>
6587 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
6588 build system and fixed gfxterm.c to work with different sized fonts.
6590 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
6592 * configure: Re-generated.
6594 * DISTLIST: Removed font/manager.c.
6596 Added font/font_cmd.c.
6598 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
6601 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
6603 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
6605 * kern/term.c: Changed users of grub_utf8_to_ucs4.
6607 * normal/menu.c: Likewise.
6609 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
6610 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
6612 * include/grub/font.h: Replaced with new file.
6614 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
6615 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
6616 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
6617 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
6618 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
6619 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
6620 fg_red, fg_green, fg_blue, fg_alpha.
6621 (grub_video_adapter): Removed blit_glyph.
6622 (grub_video_blit_glyph): Removed.
6624 * font/manager.c: Removed file.
6626 * font/font.c: New file.
6628 * font/font_cmd.c: Likewise.
6630 * video/video.c (grub_video_blit_glyph): Removed.
6632 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
6633 (grub_video_vbe_map_rgba): Likewise.
6634 (grub_video_vbe_unmap_color_int): Likewise.
6635 (grub_video_vbe_blit_glyph): Removed.
6636 (grub_video_vbe_adapter): Removed blit_glyph.
6638 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
6639 (get_pixel): Likewise.
6640 (set_pixel): Likewise.
6642 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
6644 * term/gfxterm.c: Adapted to new font engine.
6646 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
6648 * term/i386/pc/vga.c: Likewise.
6650 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
6652 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6654 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6656 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6658 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6660 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6662 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6664 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6666 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6668 * util/grub.d/00_header.in: Changed to use new loadfont command.
6670 * util/grub-mkconfig_lib.in: Changed font extension.
6672 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
6674 * util/getroot.c (grub_util_get_grub_dev): Add support for
6675 /dev/md/dNNpNN style partitionable mdraid devices.
6677 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
6679 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
6680 at a time limit of the PXE TFTP API correctly.
6681 (grub_pxefs_close): Likewise.
6683 2008-11-29 Robert Millan <rmh@aybabtu.com>
6685 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
6686 grub_ata_device_initialize() calls.
6688 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
6690 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
6692 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
6694 2008-11-28 Robert Millan <rmh@aybabtu.com>
6696 Fix build on powerpc-ieee1275. Based on patch created by
6697 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
6698 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
6699 `kern/ieee1275/mmap.c'.
6700 * include/grub/powerpc/ieee1275/memory.h: New file.
6702 Provide grub-install on coreboot.
6703 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
6704 (grub_install_SOURCES): New variable.
6705 * util/i386/pc/grub-install.in: Add a few condition checks to make it
6708 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
6710 * util/grub-fstest.c (grub_term_get_current_input): Change return type
6711 to `grub_term_input_t'.
6712 (grub_term_get_current_output): Change return type to
6713 `grub_term_output_t'.
6715 2008-11-22 Robert Millan <rmh@aybabtu.com>
6717 Fix breakage on coreboot due to declaration mismatch.
6718 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
6719 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
6720 grub_vga_text_cls().
6722 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
6723 comments. Avoid copying one more byte than necessary (just in case).
6725 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
6726 to 0x200000 (avoids trouble with some OFW implementations, and matches
6727 with the one in Yaboot).
6728 Reported by Manoel Abranches
6730 2008-11-20 Robert Millan <rmh@aybabtu.com>
6732 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
6733 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
6735 * util/grub-mkconfig_lib.in (grub_warn): New function.
6736 (convert_system_path_to_grub_path): Use grub_warn() when issuing
6737 warnings, to obtain consistent formatting.
6738 * util/grub.d/00_header.in: Likewise.
6739 * util/update-grub_lib.in: Likewise.
6741 * loader/i386/linux.c (allocate_pages): Fix a warning.
6742 Move comment text to `#error' stanza.
6744 Harmonize ieee1275's grub_available_iterate() with the generic
6745 grub_machine_mmap_iterate() interface (fixes a recently-introduced
6746 build problem on i386-ieee1275):
6747 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
6748 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
6749 parameter `type'. Update all users of this function.
6750 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
6751 `kern/ieee1275/mmap.c'.
6752 * kern/ieee1275/init.c
6753 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
6755 (grub_machine_mmap_iterate): ... this.
6756 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
6757 return type to `grub_err_t'. Update all implementations of this
6759 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
6762 Add `lsmmap' command (lists firmware-provided memory map):
6763 * commands/lsmmap.c: New file.
6764 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
6765 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
6767 * conf/powerpc-ieee1275.rmk: Likewise.
6768 * conf/i386-coreboot.rmk: Likewise.
6769 * conf/i386-ieee1275.rmk: Likewise.
6771 2008-11-19 Robert Millan <rmh@aybabtu.com>
6773 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
6774 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
6775 constraints to initrd allocation (based on code from
6776 loader/i386/pc/linux.c). Without them, initrd was allocated too high
6777 for Linux to find it.
6779 2008-11-14 Robert Millan <rmh@aybabtu.com>
6781 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
6782 order to cope with duplicate slashes.
6784 2008-11-14 Robert Millan <rmh@aybabtu.com>
6786 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
6787 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
6788 don't want to mess with lower memory, because it is used in the Linux
6791 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
6792 an appropriate place in lower memory, between 0x10000 and 0x90000,
6793 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
6794 is in our heap (probably as a result of it being corrupted during
6795 decompression). Add #error instance with comment to explain why this
6796 loader isn't currently usable on PC/BIOS.
6798 2008-11-14 Robert Millan <rmh@aybabtu.com>
6800 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
6801 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
6803 2008-11-12 Robert Millan <rmh@aybabtu.com>
6805 Make loader/i386/linux.c buildable on i386-pc (although disabled).
6807 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
6808 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
6810 * include/grub/i386/pc/memory.h: ... to here.
6812 2008-11-12 Robert Millan <rmh@aybabtu.com>
6814 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
6817 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
6818 (grub_console_cur_color, grub_console_real_putchar)
6819 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6820 (grub_console_setcolorstate, grub_console_setcolor)
6821 (grub_console_getcolor): Move from here ...
6822 * include/grub/i386/vga_common.h: ... to here (new file).
6824 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
6825 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
6827 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
6828 `<grub/i386/vga_common.h>'.
6830 2008-11-12 Robert Millan <rmh@aybabtu.com>
6832 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
6833 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
6834 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
6836 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6837 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
6839 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
6840 grub_console_init() with call to grub_vga_text_init().
6841 (grub_machine_fini): Replace call to
6842 grub_console_fini() with call to grub_vga_text_fini() and
6843 grub_at_keyboard_fini().
6845 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
6846 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6847 (grub_console_setcolorstate, grub_console_setcolor)
6848 (grub_console_getcolor): New function prototypes.
6850 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
6851 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
6852 (grub_vga_text_setcursor): Static-ize.
6853 (grub_vga_text_term): New structure.
6854 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
6856 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
6857 (grub_console_cur_color, grub_console_standard_color)
6858 (grub_console_normal_color, grub_console_highlight_color)
6859 (map_char, grub_console_putchar, grub_console_getcharwidth)
6860 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
6861 (grub_console_getcolor): Move from here ...
6862 * term/i386/vga_common.c: ... to here (same function names).
6864 2008-11-12 Robert Millan <rmh@aybabtu.com>
6866 Use newly-added Multiboot support in coreboot.
6868 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6869 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
6871 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
6872 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
6873 (codestart): Store the MBI in `startup_multiboot_info' when we're
6874 being loaded using Multiboot.
6876 * kern/i386/coreboot/init.c (grub_machine_init): Move
6877 grub_at_keyboard_init() call to beginning of function (useful for
6878 debugging). Call grub_machine_mmap_init() before attempting to use
6879 grub_machine_mmap_iterate().
6880 (grub_lower_mem, grub_upper_mem): Move from here ...
6881 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
6884 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
6887 2008-11-12 Robert Millan <rmh@aybabtu.com>
6889 Fix a regression introduced by the at_keyboard.mod split. Because
6890 some terminals are default on some platforms and non-default on
6891 others, the first terminal being registered determines which is
6892 going to be default.
6894 * kern/term.c (grub_term_register_input): If this is the first
6895 terminal being registered, set it as the current one.
6896 (grub_term_register_output): Likewise.
6898 * term/efi/console.c (grub_console_init): Do not call
6899 grub_term_set_current_output() or grub_term_set_current_input().
6900 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
6901 * term/i386/pc/console.c (grub_console_init): Likewise.
6902 (grub_console_fini): Do not call grub_term_set_current_input()
6903 (but leave grub_term_set_current_output() to restore text mode).
6905 2008-11-10 Robert Millan <rmh@aybabtu.com>
6907 * util/grub.d/00_header.in: Add backward compatibility check for
6908 versions of terminal.mod that don't understand `terminal_input' or
6911 2008-11-09 Robert Millan <rmh@aybabtu.com>
6913 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
6914 `terminal_input' / `terminal_output', not `terminal'.
6916 2008-11-08 Robert Millan <rmh@aybabtu.com>
6918 * Makefile.in (include_DATA): Fix srcdir=. assumption.
6919 (DISTCLEANFILES): Add `build_env.mk'.
6921 2008-11-08 Robert Millan <rmh@aybabtu.com>
6923 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
6924 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
6925 members. Update all users.
6926 * util/console.c (grub_ncurses_term): Split in ...
6927 (grub_ncurses_term_input): ... this, and ...
6928 (grub_ncurses_term_output): ... this. Update all users.
6929 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
6931 2008-11-08 Robert Millan <rmh@aybabtu.com>
6933 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
6934 (PKGDATA): Add $(pkgdata_SRCDIR).
6935 (pkglib_BUILDDIR): New variable.
6936 (pkgdata_SRCDIR): New variable.
6937 (build_env.mk): New target.
6938 (include_DATA): New variable.
6939 (install-local): Install $(include_DATA) files in $(includedir).
6941 2008-11-07 Pavel Roskin <proski@gnu.org>
6943 * gendistlist.sh: Use C locale for sorting to ensure consistent
6944 output on all systems.
6946 * util/grub.d/00_header.in: Remove incorrect space before
6949 2008-11-07 Robert Millan <rmh@aybabtu.com>
6951 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
6953 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
6954 * loader/multiboot_loader.c (find_multi_boot2_header): New function
6955 (based on find_multi_boot1_header).
6956 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
6957 using find_multi_boot2_header(), and abort if neither Multiboot or
6958 Multiboot headers were found.
6960 2008-11-07 Robert Millan <rmh@aybabtu.com>
6962 Modularize at_keyboard.mod:
6964 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
6965 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
6966 (at_keyboard_mod_LDFLAGS): New variables.
6968 Actual terminal split:
6970 * include/grub/term.h (struct grub_term): Split in ...
6971 (struct grub_term_input): ... this, and ...
6972 (struct grub_term_output): ... this. Update all users.
6973 (grub_term_set_current): Split in ...
6974 (grub_term_set_current_input): ... this, and ...
6975 (grub_term_set_current_output): ... this.
6976 (grub_term_get_current): Split in ...
6977 (grub_term_get_current_input): ... this, and ...
6978 (grub_term_get_current_output): ... this.
6979 (grub_term_register): Split in ...
6980 (grub_term_register_input): ... this, and ...
6981 (grub_term_register_output): ... this.
6982 (grub_term_unregister): Split in ...
6983 (grub_term_unregister_input): ... this, and ...
6984 (grub_term_unregister_output): ... this.
6985 (grub_term_iterate): Split in ...
6986 (grub_term_iterate_input): ... this, and ...
6987 (grub_term_iterate_output): ... this.
6989 * kern/term.c (grub_term_list): Split in ...
6990 (grub_term_list_input): ... this, and ...
6991 (grub_term_list_output): ... this. Update all users.
6992 (grub_cur_term): Split in ...
6993 (grub_cur_term_input): ... this, and ...
6994 (grub_cur_term_output): ... this. Update all users.
6995 (grub_term_set_current): Split in ...
6996 (grub_term_set_current_input): ... this, and ...
6997 (grub_term_set_current_output): ... this.
6998 (grub_term_get_current): Split in ...
6999 (grub_term_get_current_input): ... this, and ...
7000 (grub_term_get_current_output): ... this.
7001 (grub_term_register): Split in ...
7002 (grub_term_register_input): ... this, and ...
7003 (grub_term_register_output): ... this.
7004 (grub_term_unregister): Split in ...
7005 (grub_term_unregister_input): ... this, and ...
7006 (grub_term_unregister_output): ... this.
7007 (grub_term_iterate): Split in ...
7008 (grub_term_iterate_input): ... this, and ...
7009 (grub_term_iterate_output): ... this.
7011 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
7012 a check for input and one for output (and only attempt to get keys
7013 from user when input works).
7015 * util/grub-probe.c (grub_term_get_current): Split in ...
7016 (grub_term_get_current_input): ... this, and ...
7017 (grub_term_get_current_output): ... this.
7018 * util/grub-fstest.c: Likewise.
7019 * util/i386/pc/grub-setup.c: Likewise.
7020 * util/grub-editenv.c: Likewise.
7022 Portability adjustments:
7024 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
7025 `term/i386/pc/at_keyboard.c'.
7026 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
7027 grub_keyboard_controller_init() (now handled by terminal .init).
7028 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
7029 grub_at_keyboard_init().
7030 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
7031 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
7032 at_keyboard.mod via input terminal interface).
7033 * include/grub/i386/coreboot/console.h: Convert into a stub for
7034 `<grub/i386/pc/console.h>'.
7036 Migrate full terminals to new API:
7038 * term/efi/console.c (grub_console_term): Split into ...
7039 (grub_console_term_input): ... this, and ...
7040 (grub_console_term_output): ... this. Update all users.
7041 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
7042 (grub_ofconsole_init): Split into ...
7043 (grub_ofconsole_init_input): ... this, and ...
7044 (grub_ofconsole_init_output): ... this.
7045 (grub_ofconsole_term): Split into ...
7046 (grub_ofconsole_term_input): ... this, and ...
7047 (grub_ofconsole_term_output): ... this. Update all users.
7048 * term/i386/pc/serial.c (grub_serial_term): Split into ...
7049 (grub_serial_term_input): ... this, and ...
7050 (grub_serial_term_output): ... this. Update all users.
7051 * term/i386/pc/console.c (grub_console_term): Split into ...
7052 (grub_console_term_input): ... this, and ...
7053 (grub_console_term_output): ... this. Update all users.
7054 (grub_console_term_input): Only enable it on PC/BIOS platform.
7055 (grub_console_init): Remove grub_keyboard_controller_init() call.
7057 Migrate input terminals to new API:
7059 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
7060 `i386' and `i386/pc' to enable build on x86_64 (this driver is
7061 i386-specific anyway).
7062 (grub_console_checkkey): Rename to ...
7063 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
7065 (grub_keyboard_controller_orig): New variable.
7066 (grub_console_getkey): Rename to ...
7067 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
7069 (grub_keyboard_controller_init): Static-ize. Save original
7070 controller value so that it can be restored ...
7071 (grub_keyboard_controller_fini): ... here (new function).
7072 (grub_at_keyboard_term): New structure.
7073 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
7076 Migrate output terminals to new API:
7078 * term/i386/pc/vga.c (grub_vga_term): Change type to
7079 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7080 members. Update all users.
7081 * term/gfxterm.c (grub_video_term): Change type to
7082 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7083 members. Update all users.
7084 * include/grub/i386/pc/console.h (grub_console_checkkey)
7085 (grub_console_getkey): Do not export (no longer needed by gfxterm,
7088 Migrate `terminal' command and userland tools to new API:
7090 * commands/terminal.c (grub_cmd_terminal): Split into ...
7091 (grub_cmd_terminal_input): ... this, and ...
7092 (grub_cmd_terminal_output): ... this.
7093 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
7094 `terminal_input' and `terminal_output'.
7095 * util/grub.d/00_header.in: Adjust `terminal' calls to new
7096 `terminal_input' / `terminal_output' API.
7097 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
7098 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
7099 provided ${GRUB_TERMINAL}, convert it).
7101 2008-11-04 Robert Millan <rmh@aybabtu.com>
7103 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
7105 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
7107 2008-11-03 Bean <bean123ch@gmail.com>
7109 * kern/elf.c (grub_elf32_load): Revert to previous code.
7110 (grub_elf64_load): Likewise.
7112 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
7114 2008-11-01 Robert Millan <rmh@aybabtu.com>
7116 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
7117 (TARGET_CPPFLAGS): Likewise.
7118 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
7120 2008-11-01 Carles Pina i Estany <carles@pina.cat>
7122 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
7124 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7126 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
7127 addition of objects until the code is not going to be able to fail.
7129 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7131 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
7132 (add a missing NULL check, and correct them by moving the pointer
7133 operations after the actual check).
7135 2008-10-29 Robert Millan <rmh@aybabtu.com>
7137 * util/i386/pc/grub-install.in: Handle empty string as output from
7138 make_system_path_relative_to_its_root().
7140 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
7142 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
7143 circular metadata worst case scenario. If the metadata is circular
7144 then copy the wrap in place.
7145 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
7146 project lib/format_text/layout.h
7147 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
7149 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7151 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
7153 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7155 * util/update-grub_lib.in: Mention filename in warning message.
7157 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7159 * NEWS: Update for rename of update-grub to grub-mkconfig.
7161 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7163 * util/update-grub_lib.in: Copy to ...
7164 * util/grub-mkconfig_lib.in: ... this. Update all users.
7165 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
7166 * util/update-grub.in: Rename to ...
7167 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
7168 option. Add `--output' option to allow users to specify the generated
7169 configuration file. Default to stdout.
7170 (update_grub_dir): Rename to ...
7171 (grub_mkconfig_dir): ... this.
7172 (grub_cfg): Default to an empty string.
7173 * conf/common.rmk (update-grub): Rename to ...
7174 (grub-mkconfig): ... this.
7175 (update-grub_lib): Copy to ...
7176 (grub-mkconfig_lib): ... this.
7177 (update-grub_SCRIPTS): Copy to ...
7178 (grub-mkconfig_SCRIPTS): ... this. Update all users.
7179 (update-grub_DATA): Rename to ...
7180 (grub-mkconfig_DATA): ... this.
7182 2008-09-28 Robert Millan <rmh@aybabtu.com>
7184 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
7185 to `modified'. Add the real `created' field.
7186 (grub_iso9660_uuid): Use `modified' rather than `created' for
7187 constructing the UUID.
7189 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
7191 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
7192 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
7194 2008-09-28 Bean <bean123ch@gmail.com>
7196 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
7197 Thanks to Christian Franke for finding this bug.
7199 2008-09-25 Robert Millan <rmh@aybabtu.com>
7201 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
7202 instances of grub_util_get_disk_name() (see previous commit).
7204 2008-09-25 Robert Millan <rmh@aybabtu.com>
7206 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
7207 `util/i386/get_disk_name.c'.
7208 * conf/i386-efi.rmk: Likewise.
7209 * conf/x86_64-efi.rmk: Likewise.
7210 * conf/i386-coreboot.rmk: Likewise.
7211 * conf/i386-ieee1275.rmk: Likewise.
7212 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
7213 `util/ieee1275/get_disk_name.c'.
7214 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
7215 * util/ieee1275/get_disk_name.c: Remove file.
7216 * util/i386/get_disk_name.c: Remove file.
7217 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
7218 "hd%d" for device.map entries, rather than using
7219 grub_util_get_disk_name().
7221 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7223 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
7225 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
7227 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7229 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
7231 (GRUB_TERM_PPAGE): Changed to 0x4900.
7233 2008-09-24 Robert Millan <rmh@aybabtu.com>
7235 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
7236 macros (they were i386-pc specific).
7237 * include/grub/sparc64/ieee1275/console.h: Likewise.
7238 * include/grub/efi/console.h: Likewise.
7240 2008-09-22 Bean <bean123ch@gmail.com>
7242 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
7243 resident and in attribute list.
7245 * include/grub/ntfs.h (BMP_LEN): Removed.
7247 2008-09-22 Bean <bean123ch@gmail.com>
7249 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
7250 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
7252 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
7253 error occurs, as grub_disk_open will call grub_disk_close, which will
7254 call p->close (scsi).
7256 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7258 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
7259 (AC_PREREQ): Bumped to 2.59.
7260 (AC_TRY_COMPILE): Replace obsolete macro with ...
7261 (AC_COMPILE_IFELSE): ... this.
7262 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
7263 (AC_LINK_IFELSE): ... this.
7265 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7267 * autogen.sh: Add a call to `gendistlist.sh'.
7269 2008-09-19 Christian Franke <franke@computer.org>
7271 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
7272 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
7273 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
7274 Export __enable_execute_stack() to modules.
7275 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
7278 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7280 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
7283 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7285 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7286 #include <grub/util/hostdisk.h>.
7288 2008-09-08 Robert Millan <rmh@aybabtu.com>
7290 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
7291 segments when their filesz is zero (grub_file_read() interprets
7292 zero-size as "read until EOF", which results in memory corruption).
7293 Use `lowest_segment' rather than 0 for calculating the current
7294 segment load address.
7296 2008-09-08 Robert Millan <rmh@aybabtu.com>
7298 * util/hostdisk.c (open_device): Replace a grub_util_info() call
7299 with grub_dprintf("hostdisk", ...), as it was so verbose that it
7300 clobbered useful information.
7302 2008-09-08 Robert Millan <rmh@aybabtu.com>
7304 * include/grub/util/biosdisk.h: Move to ...
7305 * include/grub/util/hostdisk.h: ... here. Update all users.
7306 * util/biosdisk.c: Move to ...
7307 * util/hostdisk.c: ... here. Update all users.
7309 2008-09-07 Robert Millan <rmh@aybabtu.com>
7311 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
7313 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
7314 and length can be stored directly in the `mbi->mmap_addr' and
7315 `mbi->mmap_length' struct fields.
7317 2008-09-07 Robert Millan <rmh@aybabtu.com>
7319 * conf/i386.rmk: New file. Provides declaration for building
7321 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
7322 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
7324 Include `conf/i386.mk'.
7325 * conf/i386-efi.rmk: Likewise.
7326 * conf/x86_64-efi.rmk: Likewise.
7327 * conf/i386-coreboot.rmk: Likewise.
7328 * conf/i386-ieee1275.rmk: Likewise.
7330 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
7332 Based on patch created by Colin D Bennett <colin@gibibit.com>.
7333 Adds optimization support for BGR based modes.
7335 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
7336 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7337 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7338 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7339 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7340 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7341 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7342 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7343 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7344 (grub_video_i386_vbeblit_index_index): Likewise.
7345 (grub_video_i386_vbeblit_replace_directN): Added.
7346 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7347 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7348 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7349 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7350 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7351 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7352 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7353 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7354 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7355 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7356 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7357 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7358 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7360 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
7361 (grub_video_i386_vbefill_R8G8B8): Likewise.
7362 (grub_video_i386_vbefill_index): Likewise.
7363 (grub_video_i386_vbefill_direct32): Added.
7364 (grub_video_i386_vbefill_direct24): Likewise.
7365 (grub_video_i386_vbefill_direct16): Likewise.
7366 (grub_video_i386_vbefill_direct8): Likewise.
7368 * include/grub/video.h (grub_video_blit_format): Removed
7369 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
7370 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
7371 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
7372 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
7373 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
7375 * video/video.c (grub_video_get_blit_format): Updated to use new
7376 blit formats. Added handling for 16 bit color modes.
7378 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
7380 (common_blitter): Updated to use new blitters.
7382 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
7384 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7385 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7386 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7387 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7388 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7389 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7390 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7391 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7392 (grub_video_i386_vbeblit_index_index): Likewise.
7393 (grub_video_i386_vbeblit_replace_directN): Added.
7394 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7395 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7396 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7397 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7398 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7399 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7400 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7401 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7402 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7403 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7404 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7405 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7406 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7408 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
7409 (grub_video_i386_vbefill_R8G8B8): Likewise.
7410 (grub_video_i386_vbefill_index): Likewise.
7411 (grub_video_i386_vbefill_direct32): Added.
7412 (grub_video_i386_vbefill_direct24): Likewise.
7413 (grub_video_i386_vbefill_direct16): Likewise.
7414 (grub_video_i386_vbefill_direct8): Likewise.
7416 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
7419 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
7422 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
7425 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
7428 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7430 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
7433 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7435 * fs/iso9660.c (grub_iso9660_date): New structure.
7436 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
7437 (grub_iso9660_uuid): New function.
7439 2008-09-05 Bean <bean123ch@gmail.com>
7441 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
7443 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
7444 insensitive bit for names in Win32 and Win32 & DOS namespace.
7446 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
7448 * include/grub/types.h (LONG_MAX): Likewise.
7450 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7452 * util/getroot.c: Include <config.h>.
7453 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
7454 add support for /dev/md/N devices and handle LVM double dash escaping.
7456 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7458 * config.guess: Update to latest version from config git.
7459 * config.sub: Likewise.
7461 2008-09-03 Robert Millan <rmh@aybabtu.com>
7463 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
7464 `disk->total_sectors'.
7466 2008-09-01 Colin D Bennett <colin@gibibit.com>
7468 * include/grub/normal.h: Fixed incorrect comment for
7469 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
7471 2008-09-01 Colin D Bennett <colin@gibibit.com>
7473 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
7474 values with defines.
7476 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
7477 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
7478 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
7479 (GRUB_VBE_MODEATTR_COLOR): Likewise.
7480 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
7481 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
7482 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
7483 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
7484 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
7485 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
7486 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
7487 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
7488 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
7489 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
7490 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
7491 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
7492 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
7493 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
7494 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
7496 2008-08-31 Robert Millan <rmh@aybabtu.com>
7498 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
7500 (grub_multiboot): Fix a few warnings.
7502 2008-08-31 Robert Millan <rmh@aybabtu.com>
7504 * loader/i386/pc/multiboot.c: Update comment not to say that
7505 boot_device support is unimplemented.
7507 2008-08-31 Robert Millan <rmh@aybabtu.com>
7509 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
7510 or memory map support are unimplemented.
7512 2008-08-31 Colin D Bennett <colin@gibibit.com>
7514 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
7516 2008-08-31 Colin D Bennett <colin@gibibit.com>
7518 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
7519 total video memory in 'vbeinfo' output; show color format details for
7522 2008-08-30 Pavel Roskin <proski@gnu.org>
7524 * util/genmoddep.c: Remove for real this time.
7525 * DISTLIST: Remove util/genmoddep.c.
7527 2008-08-30 Robert Millan <rmh@aybabtu.com>
7529 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
7530 as required by Multiboot spec (it was already 4-byte aligned, but
7533 2008-08-29 Pavel Roskin <proski@gnu.org>
7535 * kern/powerpc/ieee1275/crt0.S: Rename to ...
7536 * kern/powerpc/ieee1275/startup.S: ... this.
7537 * conf/powerpc-ieee1275.rmk: Adjust for the above.
7538 * DISTLIST: Likewise.
7540 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
7541 grub/cpu/kernel.h. Add start label for consistency with other
7542 platforms. Add grub_prefix immediately after start. Add jump
7543 to the code after grub_prefix.
7544 * include/grub/powerpc/kernel.h: Provide valid values for
7545 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
7547 2008-08-29 Bean <bean123ch@gmail.com>
7549 * configure.ac: Change host_os to cygwin for mingw.
7550 (asprintf): New check for function.
7552 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
7553 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
7555 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
7556 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
7557 sync, sleep and grub_util_get_disk_size for mingw.
7559 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
7560 to get size in mingw.
7561 (open_device): Use flag O_BINARY if it's defined.
7562 (find_root_device): Add dummy code for mingw.
7564 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
7565 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
7566 (get_scsi_disk_name): Return 0 for mingw.
7568 * util/hostfs.c: #include <grub/util/misc.h>.
7569 (grub_hostfs_open): Use "rb" flag to open file, use
7570 grub_util_get_disk_size to get disk size for mingw.
7572 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
7573 (asprintf): New function if HAVE_ASPRINTF is not set.
7574 (sync): New function for mingw.
7576 (grub_util_get_disk_size): Likewise.
7578 2008-08-28 Pavel Roskin <proski@gnu.org>
7580 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7583 2008-08-28 Robert Millan <rmh@aybabtu.com>
7585 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
7587 2008-08-28 Robert Millan <rmh@aybabtu.com>
7589 Change find_grub_drive() syntax so it doesn't prevent it from
7590 detecting NULL names as errors.
7592 * util/biosdisk.c (find_grub_drive): Move free slot search code
7594 (find_free_slot): ... to here.
7595 (read_device_map): Use find_free_slot() to search for free slots.
7597 2008-08-27 Marco Gerards <marco@gnu.org>
7599 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
7600 (scsi_mod_SOURCES): New variable.
7601 (scsi_mod_CFLAGS): Likewise
7602 (scsi_mod_LDFLAGS): Likewise.
7604 * disk/scsi.c: New file.
7606 * include/grub/scsi.h: Likewise.
7608 * include/grub/scsicmd.h: Likewise.
7610 * disk/ata.c: Include <grub/scsi.h>.
7611 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
7613 (grub_ata_iterate): Skip ATAPI devices.
7614 (grub_ata_open): Only handle ATAPI devices.
7615 (struct grub_atapi_read): Removed.
7616 (grub_atapi_readsector): Likewise.
7617 (grub_ata_read): No longer handle ATAPI devices.
7618 (grub_ata_write): Likewise.
7619 (grub_atapi_iterate): New function.
7620 (grub_atapi_read): Likewise.
7621 (grub_atapi_write): Likewise.
7622 (grub_atapi_open): Likewise.
7623 (grub_atapi_close): Likewise.
7624 (grub_atapi_dev): New variable.
7625 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
7626 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
7628 * include/grub/disk.h (enum grub_disk_dev_id): Add
7629 `GRUB_DISK_DEVICE_SCSI_ID'.
7631 2008-08-26 Robert Millan <rmh@aybabtu.com>
7633 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
7634 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
7637 2008-08-23 Bean <bean123ch@gmail.com>
7639 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
7640 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7641 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
7642 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
7644 (raid5rec_mod_SOURCES): New macro.
7645 (raid5rec_mod_CFLAGS): Likewise.
7646 (raid5rec_mod_LDFLAGS): Likewise.
7647 (raid6rec_mod_SOURCES): Likewise.
7648 (raid6rec_mod_CFLAGS): Likewise.
7649 (raid6rec_mod_LDFLAGS): Likewise.
7650 (mdraid_mod_SOURCES): Likewise.
7651 (mdraid_mod_CFLAGS): Likewise.
7652 (mdraid_mod_LDFLAGS): Likewise.
7653 (dm_nv_mod_SOURCES): Likewise.
7654 (dm_nv_mod_CFLAGS): Likewise.
7655 (dm_nv_mod_LDFLAGS): Likewise.
7657 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
7658 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7659 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7661 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
7662 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7664 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7666 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7668 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7670 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7672 * disk/raid5_recover.c: New file.
7674 * disk/raid6_recover.c: Likewise.
7676 * disk/mdraid_linux.c: Likewise.
7678 * disk/dmraid_nvidia.c: Likewise.
7680 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
7683 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
7684 calculate the size of raid device.
7685 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
7686 different layout of raid5.
7687 (grub_raid_scan_device): Remove code specific to mdraid.
7688 (grub_raid_list): New variable.
7689 (free_array): New function.
7690 (grub_raid_register): Likewise.
7691 (grub_raid_unregister): Likewise.
7692 (grub_raid_rescan): Likewise.
7693 (GRUB_MOD_INIT): Don't iterate device here.
7694 (GRUB_MOD_FINI): Use free_array to release resource.
7696 * include/grub/raid.h: Remove macro and structure specific to mdraid.
7697 (grub_raid5_recover_func_t): New function variable type.
7698 (grub_raid6_recover_func_t): Likewise.
7699 (grub_raid5_recover_func): New variable.
7700 (grub_raid6_recover_func): Likewise.
7701 (grub_raid_register): New function.
7702 (grub_raid_unregister): Likewise.
7703 (grub_raid_rescan): Likewise.
7704 (grub_raid_block_xor): Likewise.
7706 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
7707 (CMD_CRC): New macro.
7709 (read_file): Handle device as well as file.
7710 (cmd_crc): New function.
7711 (fstest): Handle multiple disks.
7712 (options): Remove part, raw and long, add root and diskcount.
7713 (usage): Add crc, remove -p, -r, -l, add -r and -c.
7714 (main): Find the first non option entry and ignore subsequent options,
7715 add handling for the new options, support multiple disks.
7717 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
7719 2008-08-23 Bean <bean123ch@gmail.com>
7721 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
7723 * genfslist.sh: Ignore kernel.mod.
7725 * genpartmaplist.sh: Likewise.
7727 2008-08-23 Robert Millan <rmh@aybabtu.com>
7729 * util/getroot.c (find_root_device): Skip anything that starts with
7730 a dot, not just directories. This avoids things like /dev/.tmp.md0.
7732 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
7734 * util/update-grub.in (GRUB_GFXMODE): Export variable.
7735 * util/grub.d/00_header.in: Allow the administrator to change default
7736 gfxmode via ${GRUB_GFXMODE}.
7738 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
7740 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
7742 2008-08-21 Robert Millan <rmh@aybabtu.com>
7744 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
7746 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
7747 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
7749 2008-08-20 Carles Pina i Estany <carles@pina.cat>
7751 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
7752 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
7754 2008-08-19 Robert Millan <rmh@aybabtu.com>
7756 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
7757 (struct grub_virtual_screen): Remove `cursor_color'.
7758 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
7760 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
7762 2008-08-18 Robert Millan <rmh@aybabtu.com>
7764 Unify (identical) linux_normal.c files.
7765 * loader/i386/efi/linux_normal.c: Move from here ...
7766 * loader/linux_normal.c: ... to here. Update all users.
7767 * loader/i386/pc/linux_normal.c: Delete. Update all users.
7768 * loader/i386/ieee1275/linux_normal.c: Likewise.
7770 2008-08-18 Robert Millan <rmh@aybabtu.com>
7772 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
7773 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
7774 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
7775 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
7776 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
7778 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
7779 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
7780 (GRUB_LINUX_CL_END_OFFSET): ... to here.
7781 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
7782 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
7783 (GRUB_EFI_CL_END_OFFSET): Rename to ...
7784 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
7785 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
7786 Initialize `params->video_cursor_x' and `params->video_cursor_y'
7787 portably using grub_getxy().
7788 Replace `-EFI' with `-bzImage' in boot message.
7790 2008-08-17 Robert Millan <rmh@aybabtu.com>
7792 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
7794 2008-08-17 Robert Millan <rmh@aybabtu.com>
7796 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
7798 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
7799 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
7800 (grub_machine_mmap_iterate): New function declaration.
7801 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
7803 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
7806 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
7807 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
7808 Move e820 parsing from here ...
7809 * kern/i386/pc/mmap.c: New file.
7810 (grub_machine_mmap_iterate): ... to here.
7812 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
7813 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
7814 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
7815 (grub_available_iterate): Redeclare to return `void', and redeclare
7816 its hook to use grub_uint64_t as addr and size parameters, and rename
7818 (grub_machine_mmap_iterate): ... this. Update all users.
7820 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
7821 to make it more readable. Rename to ...
7822 (grub_machine_mmap_iterate): ... this.
7824 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
7825 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
7826 (grub_multiboot): Allocate an extra region after the payload, and fill
7827 it with a Multiboot memory map. Adjust a.out loader to calculate size
7828 with the extra space.
7829 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
7830 with the extra space.
7832 2008-08-17 Carles Pina i Estany <carles@pina.cat>
7834 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
7836 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
7838 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
7839 mdate-sh to the list `find' searches for.
7840 * DISTLIST: Regenerated.
7842 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
7844 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
7845 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
7846 genmoddep.awk, gensymlist.sh.in.
7847 (DISTDIRS): Add bus, docs, hook, lib.
7848 * DISTLIST: Regenerated.
7849 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
7851 2008-08-16 Robert Millan <rmh@aybabtu.com>
7853 * disk/raid.c (grub_raid_init): Handle/report errors set by
7854 grub_device_iterate().
7855 * disk/lvm.c (grub_lvm_init): Likewise.
7857 2008-08-15 Bean <bean123ch@gmail.com>
7859 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7861 (datetime_mod_SOURCES): New macro.
7862 (datetime_mod_CFLAGS): Likewise.
7863 (datetime_mod_LDFLAGS): Likewise.
7864 (date_mod_SOURCES): Likewise.
7865 (date_mod_CFLAGS): Likewise.
7866 (date_mod_LDFLAGS): Likewise.
7867 (datehook_mod_SOURCES): Likewise.
7868 (datehook_mod_CFLAGS): Likewise.
7869 (datehook_mod_LDFLAGS): Likewise.
7871 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7873 (datetime_mod_SOURCES): New macro.
7874 (datetime_mod_CFLAGS): Likewise.
7875 (datetime_mod_LDFLAGS): Likewise.
7876 (date_mod_SOURCES): Likewise.
7877 (date_mod_CFLAGS): Likewise.
7878 (date_mod_LDFLAGS): Likewise.
7879 (datehook_mod_SOURCES): Likewise.
7880 (datehook_mod_CFLAGS): Likewise.
7881 (datehook_mod_LDFLAGS): Likewise.
7883 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7885 (datetime_mod_SOURCES): New macro.
7886 (datetime_mod_CFLAGS): Likewise.
7887 (datetime_mod_LDFLAGS): Likewise.
7888 (date_mod_SOURCES): Likewise.
7889 (date_mod_CFLAGS): Likewise.
7890 (date_mod_LDFLAGS): Likewise.
7891 (datehook_mod_SOURCES): Likewise.
7892 (datehook_mod_CFLAGS): Likewise.
7893 (datehook_mod_LDFLAGS): Likewise.
7895 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7897 (datetime_mod_SOURCES): New macro.
7898 (datetime_mod_CFLAGS): Likewise.
7899 (datetime_mod_LDFLAGS): Likewise.
7900 (date_mod_SOURCES): Likewise.
7901 (date_mod_CFLAGS): Likewise.
7902 (date_mod_LDFLAGS): Likewise.
7903 (datehook_mod_SOURCES): Likewise.
7904 (datehook_mod_CFLAGS): Likewise.
7905 (datehook_mod_LDFLAGS): Likewise.
7907 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7909 (datetime_mod_SOURCES): New macro.
7910 (datetime_mod_CFLAGS): Likewise.
7911 (datetime_mod_LDFLAGS): Likewise.
7912 (date_mod_SOURCES): Likewise.
7913 (date_mod_CFLAGS): Likewise.
7914 (date_mod_LDFLAGS): Likewise.
7915 (datehook_mod_SOURCES): Likewise.
7916 (datehook_mod_CFLAGS): Likewise.
7917 (datehook_mod_LDFLAGS): Likewise.
7919 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
7921 * commands/date.c: New file.
7923 * hook/datehook.c: Likewise.
7925 * include/grub/lib/datetime.h: Likewise.
7927 * include/grub/i386/cmos.h: Likewise.
7929 * lib/datetime.c: Likewise.
7931 * lib/i386/datetime.c: Likewise.
7933 * lib/efi/datetime.c: Likewise.
7935 2008-08-14 Robert Millan <rmh@aybabtu.com>
7937 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
7938 (grub_mkelfimage_SOURCES): New variable.
7939 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
7941 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
7942 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
7943 * conf/powerpc-ieee1275.rmk: Likewise.
7944 * conf/i386-ieee1275.rmk: Likewise.
7946 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
7947 * kern/i386/coreboot/init.c: Likewise.
7949 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
7950 with `<grub/cpu/kernel.h>'.
7951 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
7953 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
7954 * kern/i386/coreboot/startup.S: Likewise.
7956 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
7957 (GRUB_MOD_GAP): Remove.
7958 * include/grub/powerpc/kernel.h: New file.
7959 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
7960 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
7961 * include/grub/i386/kernel.h: New file.
7962 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
7963 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
7964 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
7966 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
7968 Use --directory when invoking grub_mkimage.
7970 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
7971 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
7972 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
7973 and GRUB_KERNEL_CPU_PREFIX.
7975 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
7977 * include/grub/err.h (grub_err_printf): New function prototype.
7978 * util/misc.c (grub_err_printf): New function.
7979 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
7981 * kern/err.c (grub_print_error): Use grub_err_printf.
7983 2008-08-13 Robert Millan <rmh@aybabtu.com>
7985 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
7987 2008-08-13 Robert Millan <rmh@aybabtu.com>
7989 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
7992 2008-08-12 Robert Millan <rmh@aybabtu.com>
7994 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
7995 of the relocation code from here ...
7996 (grub_multiboot): ... to here.
7997 (forward_relocator, backward_relocator): Move from here ...
7998 * kern/i386/loader.S (grub_multiboot_forward_relocator)
7999 (grub_multiboot_backward_relocator): ... to here.
8000 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
8001 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
8002 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
8003 (grub_multiboot_forward_relocator_end)
8004 (grub_multiboot_backward_relocator)
8005 (grub_multiboot_backward_relocator_end): New variables.
8007 2008-08-12 Bean <bean123ch@gmail.com>
8009 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
8011 2008-08-11 Robert Millan <rmh@aybabtu.com>
8013 * kern/i386/linuxbios/startup.S: Move from here ...
8014 * kern/i386/coreboot/startup.S: ... to here.
8016 * kern/i386/linuxbios/init.c: Move from here ...
8017 * kern/i386/coreboot/init.c: ... to here.
8019 * kern/i386/linuxbios/table.c: Move from here ...
8020 * kern/i386/coreboot/mmap.c: ... to here.
8022 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
8024 2008-08-11 Robert Millan <rmh@aybabtu.com>
8026 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
8027 errors. Leave it to the upper layer to handle them.
8029 2008-08-09 Christian Franke <franke@computer.org>
8031 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
8032 * conf/common.rmk: Install `grub-pe2elf' only if requested.
8033 Install `grub.d/10_windows' only on Cygwin.
8034 * configure.ac: Add subst of `target_os'.
8035 Check `target_os' also before setting TARGET_OBJ2ELF.
8036 Add `--enable-grub-pe2elf'.
8038 2008-08-08 Robert Millan <rmh@aybabtu.com>
8040 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8041 (grub_last_time): Change type to grub_uint64_t.
8042 (grub_disk_open): Migrate code from to using grub_get_time_ms().
8043 (grub_disk_close): Likewise.
8045 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8046 (run_menu): Migrate code from to using grub_get_time_ms().
8048 * util/misc.c (grub_get_time_ms): New function.
8050 2008-08-08 Marco Gerards <marco@gnu.org>
8052 * disk/ata.c (grub_ata_regget): Change return type to
8054 (grub_ata_regget2): Likewise.
8055 (grub_ata_wait_status): New function.
8056 (grub_ata_wait_busy): Removed function, updated all users to use
8057 `grub_ata_wait_status'.
8058 (grub_ata_wait_drq): Likewise.
8059 (grub_ata_cmd): New function.
8060 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
8062 (grub_ata_pio_write): Add error handling.
8063 (grub_atapi_identify): Likewise.
8064 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
8066 (grub_ata_identify): Use `grub_ata_cmd' and improve error
8067 handling. Actually use the detected registers. Reorder the
8068 detection logic such that it is easier to read.
8069 (grub_ata_pciinit): Do not assign the same ID to each controller.
8070 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
8072 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
8074 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
8076 2008-08-08 Marco Gerards <marco@gnu.org>
8080 2008-08-07 Bean <bean123ch@gmail.com>
8082 * include/grub/x86_64/pci.h: New file.
8084 2008-08-07 Christian Franke <franke@computer.org>
8086 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
8087 (TIMER2_GATE): Likewise.
8088 (grub_pit_wait): Add enable/disable of the timer2 gate
8089 bit of port 0x61. This fixes a possible infinite loop.
8091 2008-08-07 Bean <bean123ch@gmail.com>
8093 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
8094 kern/i386/tsc.c and kern/i386/pit.c.
8096 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
8099 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
8102 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
8104 2008-08-07 Bean <bean123ch@gmail.com>
8106 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
8108 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
8110 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
8111 multiple inclusion. Add #include <grub/types.h>.
8113 2008-08-06 Christian Franke <franke@computer.org>
8115 * conf/common.rmk: Build and install `10_windows'.
8116 * util/grub.d/10_windows.in: New script.
8118 2008-08-06 Pavel Roskin <proski@gnu.org>
8120 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
8122 2008-08-06 Robert Millan <rmh@aybabtu.com>
8124 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
8125 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
8127 2008-08-06 Bean <bean123ch@gmail.com>
8129 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
8130 (grub_pxefs_fs_int): Remove dummy definition.
8131 (grub_pxefs_open): Use data->block_size to store the current block
8133 (grub_pxefs_read): Use block size stored in data->block_size. As the
8134 value of grub_pxe_blksize can be changed after the file is opened.
8136 2008-08-06 Bean <bean123ch@gmail.com>
8138 * fs/i386/pc/pxe.c (curr_file): new variable.
8139 (grub_pxefs_open): Simply the handling of pxe file system. Don't
8140 require the dummy internal file system anymore.
8141 (grub_pxefs_read): Removed.
8142 (grub_pxefs_close): Likewise.
8143 (grub_pxefs_fs_int): Likewise.
8144 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
8145 connection when we switch file.
8146 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
8148 2008-08-06 Robert Millan <rmh@aybabtu.com>
8150 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
8152 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
8153 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
8155 * kern/i386/halt.c: New file.
8156 * kern/i386/reboot.c: Likewise.
8157 * include/grub/i386/reboot.h: Likewise.
8158 * include/grub/i386/halt.h: Likewise.
8160 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
8161 Include `<grub/cpu/halt.h>'.
8162 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
8163 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
8165 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
8166 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
8167 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
8168 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
8169 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
8170 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
8172 * include/grub/i386/at_keyboard.h: ... to here.
8174 2008-08-05 Robert Millan <rmh@aybabtu.com>
8176 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
8177 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
8178 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
8179 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8180 `kern/generic/millisleep.c'.
8182 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
8183 instead of grub_get_rtc().
8184 (grub_tsc_init): Initialize `tsc_boot_time'.
8186 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
8187 (grub_machine_init): Use grub_tsc_init() rather than
8188 installing an RTC-based handler via grub_install_get_time_ms().
8190 * kern/i386/pit.c: New file.
8191 * include/grub/i386/pit.h: Likewise.
8193 2008-08-05 Bean <bean123ch@gmail.com>
8195 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
8197 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
8198 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
8199 (pxe_mod_SOURCES): New macro.
8200 (pxe_mod_CFLAGS): Likewise.
8201 (pxe_mod_LDFLAGS): Likewise.
8202 (pxecmd_mod_SOURCES): Likewise.
8203 (pxecmd_mod_CFLAGS): Likewise.
8204 (pxecmd_mod_LDFLAGS): Likewise.
8206 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
8207 (grub_pxe_call): Likewise.
8209 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
8211 * commands/i386/pc/pxecmd.c: New file.
8213 * fs/i386/pc/pxe.c: Likewise.
8215 * include/grub/i386/pc/pxe.h: Likewise.
8217 2008-08-05 Bean <bean123ch@gmail.com>
8219 * util/console.c (grub_console_cur_color): New variable.
8220 (grub_console_standard_color): Likewise.
8221 (grub_console_normal_color): Likewise.
8222 (grub_console_highlight_color): Likewise.
8223 (color_map): Likewise.
8224 (use_color): Likewise.
8225 (NUM_COLORS): New macro.
8226 (grub_ncurses_setcolorstate): Handle color properly.
8227 (grub_ncurses_setcolor): Don't change color here, just remember the
8228 settings, color will be set in grub_ncurses_setcolorstate.
8229 (grub_ncurses_getcolor): New function.
8230 (grub_ncurses_init): Initialize color pairs.
8231 (grub_ncurses_term): New member grub_ncurses_getcolor.
8233 2008-08-05 Colin D Bennett <colin@gibibit.com>
8235 High resolution timer support. Implemented for x86 CPUs using TSC.
8236 Extracted generic grub_millisleep() so it's linked in only as needed.
8237 This requires a Pentium compatible CPU; if the RDTSC instruction is
8238 not supported, then it falls back on the generic grub_get_time_ms()
8239 implementation that uses the machine's RTC.
8241 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
8242 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8243 `kern/generic/millisleep.c'.
8245 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
8246 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
8248 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
8249 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
8251 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8253 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
8254 `kern/generic/millisleep.c'.
8256 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8258 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
8260 * kern/generic/rtc_get_time_ms.c: New file.
8262 * kern/generic/millisleep.c: New file.
8264 * kern/misc.c: Don't include
8265 <kern/time.h> anymore.
8266 (grub_millisleep_generic): Removed.
8268 * commands/sleep.c (grub_interruptible_millisleep): Uses
8269 grub_get_time_ms() instead of grub_get_rtc().
8271 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
8273 (grub_cpu_is_cpuid_supported): New inline function.
8274 (grub_cpu_is_tsc_supported): New inline function.
8275 (grub_tsc_init): New function prototype.
8276 (grub_tsc_get_time_ms): New function prototype.
8278 * kern/i386/tsc.c (grub_get_time_ms): New file.
8280 * include/grub/time.h: Include <grub/types.h.
8281 (grub_millisleep_generic): Removed.
8282 (grub_get_time_ms): New prototype.
8283 (grub_install_get_time_ms): New prototype.
8284 (grub_rtc_get_time_ms): New prototype.
8286 * kern/time.c (grub_get_time_ms): New function.
8287 (grub_install_get_time_ms): New function.
8289 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
8290 <grub/time.h> anymore.
8291 (grub_millisleep): Removed.
8292 (grub_machine_init): Call grub_tsc_init.
8294 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
8295 get_time_ms() implementation.
8297 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
8298 (ieee1275_get_time_ms): New function.
8299 (grub_machine_init): Install get_time_ms() implementation.
8301 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
8302 (grub_machine_init): Call grub_tsc_init().
8303 (grub_millisleep): Removed.
8305 * kern/ieee1275/init.c (grub_millisleep): Removed.
8306 (grub_machine_init): Install ieee1275_get_time_ms()
8308 (ieee1275_get_time_ms): New function.
8309 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
8312 2008-08-05 Marco Gerards <marco@gnu.org>
8314 * disk/ata.c: Include <grub/pci.h>.
8315 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
8316 (grub_ata_initialize): Rewritten.
8317 (grub_ata_device_initialize): New function.
8319 2008-08-04 Pavel Roskin <proski@gnu.org>
8321 * kern/main.c: Include grub/mm.h.
8323 2008-08-04 Robert Millan <rmh@aybabtu.com>
8325 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
8326 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
8327 corruption problem).
8329 2008-08-04 Robert Millan <rmh@aybabtu.com>
8331 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
8332 warnings introduced in my last commit.
8334 2008-08-03 Robert Millan <rmh@aybabtu.com>
8336 Make PCI available on all i386 architectures.
8338 * include/grub/i386/pc/pci.h: Move from here ...
8339 * include/grub/i386/pci.h: ... to here.
8341 * include/grub/i386/pc/pci.h: Remove.
8342 * include/grub/i386/efi/pci.h: Remove.
8343 * include/grub/x86_64/efi/pci.h: Remove.
8345 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
8348 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
8349 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
8350 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
8352 * conf/i386-ieee1275.rmk: Likewise.
8354 2008-08-03 Robert Millan <rmh@aybabtu.com>
8356 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
8357 (grub_console_setcursor): Make it possible to set cursor off.
8359 2008-08-03 Robert Millan <rmh@aybabtu.com>
8361 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
8362 of modules instead of assuming which platform provides what.
8363 * util/update-grub.in: Likewise.
8365 2008-08-03 Robert Millan <rmh@aybabtu.com>
8367 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
8368 instead of `grub_install_dos_part' to determine whether a drive needs
8369 to be prepended to prefix (`grub_install_dos_part' is not reliable,
8370 because it can be overridden when loading GRUB via Multiboot).
8372 2008-08-02 Robert Millan <rmh@aybabtu.com>
8374 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
8376 2008-08-02 Robert Millan <rmh@aybabtu.com>
8378 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
8379 of informational grub_dprintf() calls.
8381 2008-08-02 Robert Millan <rmh@aybabtu.com>
8383 * disk/memdisk.c (memdisk_size): Don't initialize.
8384 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
8386 * include/grub/i386/pc/kernel.h
8387 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
8388 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
8389 (grub_memdisk_image_size, grub_arch_memdisk_addr)
8390 (grub_arch_memdisk_size): Remove.
8392 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
8393 field (was only used to transfer a constant). Add `type' field to
8394 support multiple module types.
8395 (grub_module_iterate): New function.
8397 * kern/device.c (grub_device_open): Do not hide error messages
8398 when grub_disk_open() fails. Use grub_print_error() instead.
8400 * kern/i386/pc/init.c (grub_arch_modules_addr)
8401 (grub_arch_memdisk_size): Remove functions.
8402 (grub_arch_modules_addr): Return the module address in high memory
8403 (now that it isn't copied anymore).
8405 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
8406 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
8407 decompression routine (grub_total_module_size already includes that
8408 now). Don't copy modules back to low memory.
8410 * kern/main.c: Include `<grub/mm.h>'.
8411 (grub_load_modules): Split out (and use) ...
8412 (grub_module_iterate): ... this function, which iterates through
8413 module objects and runs a hook.
8414 Comment out grub_mm_init_region() call, as it would cause non-ELF
8415 modules to be overwritten.
8417 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
8418 the memdisk image in its own region, make it part of the module list.
8419 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
8420 (main): Parse --memdisk|-m option, and pass user-provided path as
8421 parameter to generate_image().
8422 (add_segments): Pass `memdisk_path' down to load_modules().
8423 (load_modules): Embed memdisk image in module section when requested.
8424 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
8425 `header.type' instead of `header.offset'.
8427 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
8428 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
8429 (memdisk_mod_LDFLAGS): New variables.
8430 * conf/i386-coreboot.rmk: Likewise.
8431 * conf/i386-ieee1275.rmk: Likewise.
8433 2008-08-02 Robert Millan <rmh@aybabtu.com>
8435 * loader/i386/pc/multiboot.c (playground, forward_relocator)
8436 (backward_relocator): New variables. Used to allocate and relocate
8437 the payload, respectively.
8438 (grub_multiboot_load_elf32): Load into heap instead of requested
8439 address, install the appropriate relocator code in each bound of
8440 the payload, and set the entry point such that
8441 grub_multiboot_real_boot() will jump to one of them.
8443 * kern/i386/loader.S (grub_multiboot_payload_size)
8444 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8445 (grub_multiboot_payload_entry_offset): New variables.
8446 (grub_multiboot_real_boot): Set cpu context to what the relocator
8447 expects, and jump to the relocator instead of the payload.
8449 * include/grub/i386/loader.h (grub_multiboot_payload_size)
8450 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8451 (grub_multiboot_payload_entry_offset): Export.
8453 2008-08-01 Bean <bean123ch@gmail.com>
8455 * normal/menu_entry.c (editor_getline): Don't return the original
8456 string as result, as it will be released by lexer once it has done
8459 2008-08-01 Robert Millan <rmh@aybabtu.com>
8461 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
8462 within menuentries, not before them.
8463 util/grub.d/10_hurd.in: Likewise.
8465 2008-08-01 Bean <bean123ch@gmail.com>
8467 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
8468 (bufio_mod_SOURCES): New macro.
8469 (bufio_mod_CFLAGS): Likewise.
8470 (bufio_mod_LDFLAGS): Likewise.
8472 * include/grub/bufio.h: New file.
8474 * io/bufio.c: Likewise.
8476 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
8477 (grub_video_reader_png): Use grub_buffile_open to open file.
8479 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
8480 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
8482 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
8483 (grub_video_reader_tga): Use grub_buffile_open to open file.
8485 * font/manager.c: Include <grub/bufio.h>.
8486 (add_font): Use grub_buffile_open to open file.
8488 2008-07-31 Robert Millan <rmh@aybabtu.com>
8490 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
8491 ELF segments, use a macro for arbitrarily accessing any of them instead
8492 of preparing a pointer that allows access to one at a time.
8493 (grub_multiboot_load_elf64): Likewise.
8495 2008-07-31 Bean <bean123ch@gmail.com>
8497 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
8498 GRUB_KERNEL_MACHINE_DATA_END.
8500 2008-07-30 Robert Millan <rmh@aybabtu.com>
8502 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
8503 Increase from 0x50 to 0x60.
8504 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
8505 use UUIDs to identify the root drive for them. If that's not
8507 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
8508 check, for cross-disk installs.
8510 2008-07-30 Robert Millan <rmh@aybabtu.com>
8512 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
8513 is non-empty, use it to set the `prefix' environment variable instead
8514 of the usual approach.
8515 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
8516 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
8517 environment variable instead of dummy make_install_device().
8519 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
8520 (start): Insert a data section, with `grub_prefix' variable.
8521 * kern/i386/linuxbios/startup.S: Likewise.
8523 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
8524 New variable reference.
8525 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
8526 New macro. Defines offset of `grub_prefix' within startup.S (relative
8528 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
8529 section within startup.S (relative to `start').
8530 * include/grub/i386/coreboot/kernel.h: Likewise.
8532 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
8533 Overwrite grub_prefix with its contents, at the beginning of the
8535 (main): Understand -p|--prefix.
8537 2008-07-30 Robert Millan <rmh@aybabtu.com>
8539 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
8541 2008-07-30 Robert Millan <rmh@aybabtu.com>
8543 * term/i386/pc/vga_text.c (grub_console_cls): Use
8544 grub_console_gotoxy() to go back to beginning of the screen.
8545 Found by Patrick Georgi <patrick.georgi@coresystems.de>
8547 2008-07-29 Christian Franke <franke@computer.org>
8549 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
8550 Add conversion of emulated mount points on Cygwin.
8552 2008-07-29 Christian Franke <franke@computer.org>
8554 * util/update-grub.in: Add a check for admin
8556 Remove old `grub.cfg.new' before creation.
8557 Add `-f' to `mv' to handle the different filesystem
8558 semantics of Windows.
8560 2008-07-29 Bean <bean123ch@gmail.com>
8562 * normal/main.c (get_line): Fix buffer overflow bug.
8564 2008-07-28 Robert Millan <rmh@aybabtu.com>
8566 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
8567 (struct grub_apple_header): New struct. Describes the layout of
8569 (apple_partition_map_iterate): Check the header magic as well as the
8570 partition magic (which was already being checked).
8572 2008-07-28 Pavel Roskin <proski@gnu.org>
8574 * genmk.rb: Add a warning to the beginning of the output that
8575 it's a generated file and should not be edited.
8577 2008-07-28 Robert Millan <rmh@aybabtu.com>
8579 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
8580 with the same number are found, just use issue a warning with
8581 grub_dprintf(), as this error has been reported to be non-fatal.
8583 2008-07-27 Robert Millan <rmh@aybabtu.com>
8585 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
8588 2008-07-27 Bean <bean123ch@gmail.com>
8590 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
8591 (grub_fat_find_dir): Ignore case when comparing filename.
8593 2008-07-27 Bean <bean123ch@gmail.com>
8595 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
8596 smallino, as it's more descriptive, and i8count can be confused with
8597 the other field count.
8598 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
8601 2008-07-27 Bean <bean123ch@gmail.com>
8603 * commands/crc.c: New file.
8605 * lib/crc.c: Likewise.
8607 * include/grub/lib/crc.h: Likewise.
8609 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
8611 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
8612 (hexdump): Move this function to ...
8614 * lib/hexdump.c: ... here.
8616 * include/grub/hexdump.h: Renamed to ...
8618 * include/grub/lib/hexdump.h: ... this.
8620 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
8622 * util/grub-editenv.c: Likewise.
8624 * include/envblk.h: Renamed to ...
8626 * include/lib/envblk.h: ... this.
8628 * util/envblk.c: Renamed to ...
8630 * lib/envblk.c: ... this.
8632 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
8634 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
8635 (pkglib_MODULES): Add crc.mod.
8636 (hexdump_mod_SOURCES): Add lib/hexdump.c.
8637 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
8638 (crc_mod_SOURCES): New macro.
8639 (crc_mod_CFLAGS): Likewise.
8640 (crc_mod_LDFLAGS): Likewise.
8642 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
8644 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8646 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8650 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8652 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
8654 * commands/help.c: Include <grub/term.h>.
8655 (TERM_WIDTH): Removed. Updated all users.
8657 2008-07-27 Pavel Roskin <proski@gnu.org>
8659 * util/getroot.c (find_root_device): Rephrase a comment to avoid
8660 spurious warnings about a comment within a comment.
8662 2008-07-25 Robert Millan <rmh@aybabtu.com>
8664 * util/getroot.c (find_root_device): Skip devices that match
8665 /dev/dm-[0-9]. This lets the real device be found for any type of
8666 abstraction (LVM, EVMS, RAID..).
8667 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
8668 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
8669 device is found first, find_root_device() will now skip it.
8671 2008-07-24 Pavel Roskin <proski@gnu.org>
8673 * include/grub/types.h: Use __builtin_bswap32() and
8674 __builtin_bswap64() with gcc 4.3 and newer.
8676 2008-07-24 Christian Franke <franke@computer.org>
8678 * util/i386/pc/grub-install.in: If `--debug' is specified,
8679 pass `--verbose' to grub-setup.
8680 Abort script if make_system_path_relative_to_its_root() fails.
8682 2008-07-24 Bean <bean123ch@gmail.com>
8684 * configure.ac: Fixed a bug caused by the previous cygwin patch,
8685 variable `target_platform' should be `platform'.
8687 2008-07-24 Bean <bean123ch@gmail.com>
8689 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
8690 (grub_png_init_fixed_block): New function.
8691 (grub_png_decode_image_data): Handle fixed huffman code compression.
8693 2008-07-24 Bean <bean123ch@gmail.com>
8695 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
8696 (grub_pe2elf_SOURCES): New macro.
8697 (CLEANFILES): Add grub-pe2elf.
8699 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
8700 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
8701 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
8702 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
8703 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
8704 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
8705 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
8706 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
8707 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
8708 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
8709 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
8710 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
8711 (GRUB_PE32_DT_FUNCTION): Likewise.
8712 (GRUB_PE32_REL_I386_DIR32): Likewise.
8713 (GRUB_PE32_REL_I386_REL32): Likewise.
8714 (grub_pe32_symbol): New structure.
8715 (grub_pe32_reloc): Likewise.
8717 * util/grub-pe2elf.c: New file.
8719 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
8720 start symbol in non pc platform.
8722 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
8724 The following patches are from Christian Franke.
8726 * include/grub/dl.h: Remove .previous, gas supports this only
8729 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
8730 Remove .type, gas supports this only for ELF format.
8732 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
8733 nullbytes in symbol table. This fixes an infinite loop if table is
8736 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
8737 TARGET_IMG_LDFLAGS and EXEEXT.
8739 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
8740 TARGET_IMG_LDFLAGS_AC.
8741 (grub_CHECK_STACK_ARG_PROBE): New function.
8743 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
8745 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
8747 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
8748 to set TARGET_IMG_LD* accordingly.
8749 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
8750 Add call to grub_CHECK_STACK_ARG_PROBE.
8751 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
8753 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
8755 * genmk.rb: Add EXEEXT to CLEANFILES.
8757 2008-07-23 Robert Millan <rmh@aybabtu.com>
8759 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
8760 define the codes for arrows and lines used for the menu).
8761 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
8764 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
8765 fonts, because the latter are too slow.
8767 2008-07-21 Bean <bean123ch@gmail.com>
8769 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
8770 a20. Run keyboard test last, as it will cause macbook to halt.
8772 2008-07-18 Pavel Roskin <proski@gnu.org>
8774 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
8775 load foreign architecture modules correctly anyway. Keep
8776 support for loading host architecture modules, whether we
8777 compile them or not.
8779 2008-07-17 Pavel Roskin <proski@gnu.org>
8781 * configure.ac: Use -m32 or -m64 regardless of whether we had to
8782 change target_cpu. The compiler default can mismatch target_cpu
8785 * disk/efi/efidisk.c: Fix format warnings on x86_64.
8786 * kern/efi/efi.c: Likewise.
8788 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
8789 target compiler is functional.
8790 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
8793 * configure.ac: Default to efi platform for x86_64-apple. Allow
8794 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
8795 adjustments from the rest, only do them if target is not
8796 explicitly given. Merge other adjustments with the final sanity
8797 check. Remove an extraneous check for supported CPU. Be
8798 specific which CPU and which platform is not supported.
8800 * configure.ac: Default to pc platform for x86_64.
8802 2008-07-17 Robert Millan <rmh@aybabtu.com>
8804 Partial LinuxBIOS -> Coreboot rename.
8806 * conf/i386-linuxbios.rmk: Renamed to ...
8807 * conf/i386-coreboot.rmk: ... this.
8808 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
8809 * configure.ac: Accept "coreboot" as input platform (but maintain
8810 compatibility with "linuxbios").
8811 * include/grub/i386/linuxbios: Renamed to ...
8812 * include/grub/i386/coreboot: ... this.
8814 2008-07-17 Bean <bean123ch@gmail.com>
8816 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
8817 (appleldr_mod_SOURCE): New variable.
8818 (appleldr_mod_CFLAGS): Likewise.
8819 (appleldr_mod_LDFLAGS): Likewise.
8820 (pci_mod_SOURCES): Likewise.
8821 (pci_mod_CFLAGS): Likewise.
8822 (pci_mod_LDFLAGS): Likewise.
8823 (lspci_mod_SOURCES): Likewise.
8824 (lspci_mod_CFLAGS): Likewise.
8825 (lspci_mod_LDFLAGS): Likewise.
8827 * conf/x86_64-efi.rmk: New file.
8829 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
8831 (grub_efidisk_write): Likewise.
8833 * include/efi/api.h (efi_call_0): New macro.
8834 (efi_call_1): Likewise.
8835 (efi_call_2): Likewise.
8836 (efi_call_3): Likewise.
8837 (efi_call_4): Likewise.
8838 (efi_call_5): Likewise.
8839 (efi_call_6): Likewise.
8841 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
8842 grub_rescue_cmd_chainloader.
8844 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
8845 (grub_pe32_optional_header): Change some fields based on i386 or
8847 (GRUB_PE32_PE32_MAGIC): Likewise.
8849 * include/grub/efi/uga_draw.h: New file.
8851 * include/grub/elf.h (STN_ABS): New constant.
8852 (R_X86_64_NONE): Relocation constant for x86_64.
8853 (R_X86_64_64): Likewise.
8854 (R_X86_64_PC32): Likewise.
8855 (R_X86_64_GOT32): Likewise.
8856 (R_X86_64_PLT32): Likewise.
8857 (R_X86_64_COPY): Likewise.
8858 (R_X86_64_GLOB_DAT): Likewise.
8859 (R_X86_64_JUMP_SLOT): Likewise.
8860 (R_X86_64_RELATIVE): Likewise.
8861 (R_X86_64_GOTPCREL): Likewise.
8862 (R_X86_64_32): Likewise.
8863 (R_X86_64_32S): Likewise.
8864 (R_X86_64_16): Likewise.
8865 (R_X86_64_PC16): Likewise.
8866 (R_X86_64_8): Likewise.
8867 (R_X86_64_PC8): Likewise.
8869 * include/grub/i386/efi/pci.h: New file.
8871 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
8872 Change it value based on platform.
8873 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
8874 (GRUB_E820_RAM): Likewise.
8875 (GRUB_E820_RESERVED): Likewise.
8876 (GRUB_E820_ACPI): Likewise.
8877 (GRUB_E820_NVS): Likewise.
8878 (GRUB_E820_EXEC_CODE): Likewise.
8879 (GRUB_E820_MAX_ENTRY): Likewise.
8880 (grub_e820_mmap): New structure.
8881 (linux_kernel_header): Change the efi field according to different
8882 kernel version, also field from linux_kernel_header.
8884 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
8886 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
8887 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
8888 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
8889 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
8890 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
8891 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
8892 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
8893 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
8894 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
8895 (GRUB_PCI_ADDR_IO_MASK): Likewise.
8897 * include/grub/x86_64/efi/kernel.h: New file.
8899 * include/grub/x86_64/efi/loader.h: Likewise.
8901 * include/grub/x86_64/efi/machine.h: Likewise.
8903 * include/grub/x86_64/efi/pci.h: Likewise.
8905 * include/grub/x86_64/efi/time.h: Likewise.
8907 * include/grub/x86_64/linux.h: Likewise.
8909 * include/grub/x86_64/setjmp.h: Likewise.
8911 * include/grub/x86_64/time.h: Likewise.
8913 * include/grub/x86_64/types.h: Likewise.
8915 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
8916 GRUB_TARGET_SIZEOF_VOID_P.
8918 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
8919 (grub_efi_locate_handle): Likewise.
8920 (grub_efi_open_protocol): Likewise.
8921 (grub_efi_set_text_mode): Likewise.
8922 (grub_efi_stall): Likewise.
8923 (grub_exit): Likewise.
8924 (grub_reboot): Likewise.
8925 (grub_halt): Likewise.
8926 (grub_efi_exit_boot_services): Likewise.
8927 (grub_get_rtc): Likewise.
8929 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
8930 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
8931 (grub_efi_allocate_pages): Wrap efi calls.
8932 (grub_efi_free_pages): Wrap efi calls.
8933 (grub_efi_get_memory_map): Wrap efi calls.
8935 * kern/x86_64/dl.c: New file.
8937 * kern/x86_64/efi/callwrap.S: Likewise.
8939 * kern/x86_64/efi/startup.S: Likewise.
8941 * loader/efi/appleloader.c: Likewise.
8943 * loader/efi/chainloader.c (cmdline): New variable.
8944 (grub_chainloader_unload): Wrap efi calls.
8945 (grub_chainloader_boot): Likewise.
8946 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
8949 * loader/efi/chainloader_normal.c (chainloader_command):
8950 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
8953 * loader/i386/efi/linux.c (allocate_pages): Change allocation
8955 (grub_e820_add_region): New function.
8956 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
8958 (grub_find_video_card): New function.
8959 (grub_linux_setup_video): New function.
8960 (grub_rescue_cmd_linux): Probe for video information.
8962 * normal/x86_64/setjmp.S: New file.
8964 * term/efi/console.c (map_char): New function.
8965 (grub_console_putchar): Map unicode char.
8966 (grub_console_checkkey): Wrap efi calls.
8967 (grub_console_getkey): Likewise.
8968 (grub_console_getwh): Likewise.
8969 (grub_console_gotoxy): Likewise.
8970 (grub_console_cls): Likewise.
8971 (grub_console_setcolorstate): Likewise.
8972 (grub_console_setcursor): Likewise.
8974 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
8976 2008-07-16 Pavel Roskin <proski@gnu.org>
8978 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
8981 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
8982 pointer, not an integer. This fixes a warning and prevents
8983 precision loss on 64-bit systems.
8984 (relocate_addresses): Remove unneeded cast.
8986 2008-07-15 Pavel Roskin <proski@gnu.org>
8988 * kern/i386/ieee1275/init.c: Include grub/cache.h.
8990 * term/ieee1275/ofconsole.c: Disable code unused on i386.
8992 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
8993 Fix comparison between signed and unsigned.
8995 * include/grub/i386/ieee1275/console.h: Declare
8996 grub_console_init() and grub_console_fini().
8998 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
8999 It's empty and unused.
9001 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
9002 beginning to avoid warnings with some compilers.
9004 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
9005 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
9007 2008-07-14 Pavel Roskin <proski@gnu.org>
9009 * kern/env.c (grub_register_variable_hook): Don't copy empty
9010 string, it leaks memory. Pass "" to grub_env_set(), it should
9011 handle constant strings.
9013 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
9014 * commands/cmp.c (grub_cmd_cmp): Likewise.
9015 * kern/dl.c (grub_dl_flush_cache): Likewise.
9016 (grub_dl_load_core): Likewise.
9017 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
9018 (grub_elf64_load_phdrs): Likewise.
9020 2008-07-13 Pavel Roskin <proski@gnu.org>
9022 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
9023 between signed and unsigned.
9024 (LzmaEnc_Finish): Fix warning about an unused parameter.
9026 2008-07-13 Bean <bean123ch@gmail.com>
9028 * Makefile.in (enable_lzo): New rule.
9030 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
9032 * configure.ac (ENABLE_LZO): New option --enable-lzo.
9034 * boot/i386/pc/lnxboot.S: #include <config.h>.
9036 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
9037 its value according to the compression algorithm used, lzo or lzma.
9039 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
9040 compression algorithm according to configure macro.
9042 * kern/i386/pc/startup.S (codestart): Likewise.
9044 * kern/i386/pc/lzma_decode.S: New file.
9046 * include/grub/lib/LzFind.h: Likewise.
9048 * include/grub/lib/LzHash.h: Likewise.
9050 * include/grub/lib/LzmaDec.h: Likewise.
9052 * include/grub/lib/LzmaEnc.h: Likewise.
9054 * include/grub/lib/LzmaTypes.h: Likewise.
9056 * lib/LzFind.c: Likewise.
9058 * lib/LzmaDec.c: Likewise.
9060 * lib/LzmaEnc.c: Likewise.
9062 2008-07-13 Bean <bean123ch@gmail.com>
9064 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
9065 (grub_ext4_extent_header): New structure.
9066 (grub_ext4_extent): Likewise.
9067 (grub_ext4_extent_idx): Likewise.
9068 (grub_ext4_find_leaf): New function.
9069 (grub_ext2_read_block): Handle extents.
9071 2008-07-12 Robert Millan <rmh@aybabtu.com>
9073 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
9075 2008-07-11 Robert Millan <rmh@aybabtu.com>
9077 * util/grub.d/40_custom.in: New file. Example on how to add custom
9078 entries to /etc/grub.d.
9079 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
9080 40_custom (implicitly, by merging all the grub.d rules).
9082 2008-07-11 Pavel Roskin <proski@gnu.org>
9084 * commands/read.c (grub_getline): Fix invalid memory access.
9085 Don't add newline to the variable value.
9087 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
9088 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
9089 (serial_hw_get_port): Check validity of the port number.
9090 (grub_cmd_serial): Check return value of serial_hw_get_port().
9092 2008-07-07 Pavel Roskin <proski@gnu.org>
9094 * boot/i386/pc/diskboot.S (notification_string): Replace
9095 "Loading kernel" with just "loading". This is shorter, less
9096 confusing and saves a few bytes for possible future changes.
9098 2008-07-05 Pavel Roskin <proski@gnu.org>
9100 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
9101 size for ATAPI devices, they are undefined. Output sector
9102 number in decimal form.
9104 * disk/ata.c: Use named constants for status bits.
9106 2008-07-04 Pavel Roskin <proski@gnu.org>
9108 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
9109 grub_addr_t before casting it to the void pointer to fix a
9110 warning. Non-addressable regions are discarded earlier.
9111 (grub_arch_modules_addr): Cast _end to grub_addr_t.
9112 * kern/i386/linuxbios/table.c: Include grub/misc.h.
9113 (check_signature): Don't shadow table_header.
9114 (grub_linuxbios_table_iterate): Cast numeric constants to
9115 grub_linuxbios_table_header_t.
9116 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
9119 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
9122 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
9123 pointer, which can cause warnings. Support 64-bit addresses.
9125 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
9126 of sizeof(long). This fixes PowerPC image generation on x86_64.
9128 2008-07-04 Robert Millan <rmh@aybabtu.com>
9130 This fixes a performance issue when pc & gpt partmap iterators
9131 didn't abort iteration even after our hook found what it was
9132 looking for (often causing expensive probes of non-existent drives).
9134 Some callers relied on previous buggy behaviour, since they would
9135 raise an error when their own hooks caused early abortion of its
9138 * kern/device.c (grub_device_open): Improve error message.
9139 * disk/lvm.c (grub_lvm_open): Likewise.
9140 * disk/raid.c (grub_raid_open): Likewise.
9142 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
9143 when hook requests it, independently of grub_errno.
9144 (pc_partition_map_probe): Do not fail when find_func() caused
9145 early abortion of pc_partition_map_iterate().
9147 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
9148 when hook requests it, independently of grub_errno.
9149 (gpt_partition_map_probe): Do not fail when find_func() caused
9150 early abortion of gpt_partition_map_iterate().
9152 * kern/partition.c (grub_partition_iterate): Abort parent iteration
9153 when hook requests it, independently of grub_errno. Do not fail when
9154 part_map_iterate_hook() caused early abortion of p->iterate().
9156 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
9157 when grub_partition_iterate() returned with non-zero.
9159 2008-07-03 Pavel Roskin <proski@gnu.org>
9161 * disk/ata.c (grub_ata_pio_write): Check status before writing,
9162 like we do in grub_ata_pio_read().
9163 (grub_ata_readwrite): Always write individual sectors. Fix the
9164 sector count for the remainder.
9165 (grub_ata_write): Enable writing to ATA devices. Correctly
9166 report error for ATAPI devices.
9168 2008-07-02 Pavel Roskin <proski@gnu.org>
9170 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
9173 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
9174 for every read sector, we already increment it for the whole
9175 batch. This fixes reading more than 256 sectors at once.
9177 * util/grub-editenv.c (cmd_info): Cast argument to long
9178 explicitly. ptrdiff_t reduces to int on i386.
9180 * util/grub-editenv.c (main): Be specific which parameter is
9183 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
9184 (memdisk): Make memdisk_orig_addr a pointer.
9186 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
9187 for file offsets, use grub_off_t instead. Fix printf format
9190 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
9191 there. Real unexpected warnings should not drown in the noise
9192 about known problems.
9194 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
9195 grub_disk_addr_t for memory addresses.
9197 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
9198 explicitly to fix a warning.
9200 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
9202 * Makefile.in (MODULE_LDFLAGS): New variable.
9203 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
9204 the linker accepts --build-id=none.
9205 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
9207 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
9209 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
9210 those in Linux XFS code. Provide a way to access 64-bit parent
9212 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
9213 the end of struct grub_xfs_dir_header.
9215 2008-07-02 Bean <bean123ch@gmail.com>
9217 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
9218 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9219 and GRUB_IEEE1275_FLAG_NO_ANSI.
9221 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
9222 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9223 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
9225 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
9226 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
9228 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
9229 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
9231 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
9232 esc sequence on non ANSI terminal.
9233 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
9235 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
9238 2008-07-02 Bean <bean123ch@gmail.com>
9240 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
9241 (grub_editenv_SOURCES): New variable.
9242 (pkglib_MODULES): Add loadenv.mod.
9243 (loadenv_mod_SOURCES): New variable.
9244 (loadenv_mod_CFLAGS): Likewise.
9245 (loadenv_mod_LDFLAGS): Likewise.
9247 * include/grub/envblk.h: New file.
9249 * util/envblk.c: New file.
9251 * util/grub-editenv.c: New file.
9253 * commands/loadenv.c: New file.
9255 2008-07-01 Pavel Roskin <proski@gnu.org>
9257 * include/multiboot2.h (struct multiboot_tag_module): Use char,
9258 not unsigned char. This fixes warnings and is consistent with
9261 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
9263 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
9265 * term/tparm.c (analyze): Always set *popcount.
9267 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
9268 cast to fix a warning.
9270 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
9271 cast to suppress a warning.
9273 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
9274 grub_fshelp_read_file() expects.
9276 * fs/fat.c: Fix UUID calculation on big-endian systems. We
9277 write uuid as a 32-bit value in CPU byte order, so declare and
9280 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
9281 long if the format specifier expects it.
9282 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
9283 * partmap/pc.c (pc_partition_map_iterate): Likewise.
9284 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
9285 long to fix a warning.
9286 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
9287 grub_dprintf() arguments to fix warnings.
9289 2008-06-30 Pavel Roskin <proski@gnu.org>
9291 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
9292 install_bsd_part immediately before core.img is embedded or
9293 modified on disk. This fixes core.img verification if core.img
9296 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
9297 core_path to calculate the blocklist.
9298 Patch from Javier MartÃn <lordhabbit@gmail.com>
9300 2008-06-29 Robert Millan <rmh@aybabtu.com>
9302 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
9303 block to disk block.
9304 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
9305 Patch from Niels Böhm <bitbucket@arcor.de>
9307 2008-06-29 Robert Millan <rmh@aybabtu.com>
9309 * util/update-grub_lib.in (font_path): Search for fonts in
9310 /boot/grub first, which is more likely to be readable (we aren't
9311 deciding where fonts live, just looking for them).
9313 2008-06-26 Pavel Roskin <proski@gnu.org>
9315 * util/biosdisk.c (read_device_map): Don't leave dead map
9316 entries for devices failing stat() check.
9318 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
9319 core_path_dev for the core.img path on the target device.
9321 2008-06-26 Robert Millan <rmh@aybabtu.com>
9323 * disk/fs_uuid.c: New file.
9324 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
9325 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
9326 (fs_uuid_mod_LDFLAGS): New variables.
9327 * include/grub/disk.h (grub_disk_dev_id): Add
9328 `GRUB_DISK_DEVICE_UUID_ID'.
9329 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
9330 implement iterate().
9332 2008-06-26 Robert Millan <rmh@aybabtu.com>
9334 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
9335 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
9336 Linux image includes no initrd.
9338 2008-06-21 Javier MartÃn <lordhabbit@gmail.com>
9340 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
9341 call to resolve the core image location that effectively appended the
9344 2008-06-21 Robert Millan <rmh@aybabtu.com>
9346 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
9349 * util/grub.d/10_hurd.in: ... to here ...
9350 * util/grub.d/10_linux.in: ... and here.
9352 2008-06-19 Robert Millan <rmh@aybabtu.com>
9354 * kern/main.c (grub_main): Export `prefix' variable immediately
9355 after it has been set by grub_machine_set_prefix().
9357 2008-06-19 Robert Millan <rmh@aybabtu.com>
9359 * commands/search.c (search_label, search_fs_uuid, search_file): Print
9360 search result when not saving to variable, not the other way around.
9361 When saving to variable, abort iteration as soon as a match is found.
9363 2008-06-19 Robert Millan <rmh@aybabtu.com>
9365 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
9366 check for partition that provides /boot/grub. Its logic is flawed,
9367 as it prevents prepare_grub_to_access_device() from being called
9370 2008-06-19 Robert Millan <rmh@aybabtu.com>
9372 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
9373 "insmod" command directly when abstraction modules are needed,
9374 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
9375 since it had already been processed).
9377 2008-06-19 Pavel Roskin <proski@gnu.org>
9379 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
9380 changed. This is needed in case GRUB_LIBDIR changes.
9381 * conf/i386-ieee1275.rmk: Likewise.
9382 * conf/i386-linuxbios.rmk: Likewise.
9383 * conf/i386-pc.rmk: Likewise.
9384 * conf/powerpc-ieee1275.rmk: Likewise.
9386 2008-06-18 Pavel Roskin <proski@gnu.org>
9388 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
9389 kernel_elf_symlist.c to symlist.c for consistency with other
9390 architectures. Update all users.
9391 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9393 2008-06-18 Robert Millan <rmh@aybabtu.com>
9395 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
9398 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
9399 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
9400 a RAID device, run setup() for all members independently on whether
9401 LVM abstraction is being used.
9402 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
9403 If grub-mkimage has set `*install_dos_part == -2', don't override this
9405 Perform *install_dos_part adjustments independently on whether
9406 we're embedding or not.
9407 Clarify error message when image is too big for embedding.
9408 Remove duplicate *install_dos_part stanza.
9410 2008-06-17 Robert Millan <rmh@aybabtu.com>
9412 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
9413 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
9415 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
9416 values in grub_ofconsole_normal_color and
9417 grub_ofconsole_highlight_color (they're not directly related to
9418 background and foreground).
9419 (grub_ofconsole_setcolorstate): Extract background and foreground
9420 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
9422 2008-06-17 Robert Millan <rmh@aybabtu.com>
9424 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
9425 /boot/grub for the check in last commit, not /boot (they could be
9426 different partitions).
9428 2008-06-16 Robert Millan <rmh@aybabtu.com>
9430 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
9431 asked to setup access for the same partition that provides /boot,
9432 don't bother using UUIDs since our root already has the value we
9435 2008-06-16 Robert Millan <rmh@aybabtu.com>
9437 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
9439 Patch from Sven Mueller <sven@debian.org>.
9441 2008-06-16 Robert Millan <rmh@aybabtu.com>
9443 * util/update-grub.in: Check for $EUID instead of $UID.
9444 Reported by Vincent Zweije.
9446 2008-06-16 Bean <bean123ch@gmail.com>
9448 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
9449 (grub_ext2_read_block): Likewise.
9450 (grub_ext2_read_inode): Likewise.
9451 (grub_ext2_mount): Likewise.
9452 (grub_ext2_close): Likewise.
9453 (grub_ext3_get_journal): Removed.
9455 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
9456 (grub_reiserfs_read_symlink): Likewise.
9457 (grub_reiserfs_mount): Likewise.
9458 (grub_reiserfs_open): Likewise.
9459 (grub_reiserfs_read): Likewise.
9460 (grub_reiserfs_close): Likewise.
9461 (grub_reiserfs_get_journal): Removed.
9463 * fs/fshelp.c (grub_fshelp_read): Removed.
9464 (grub_fshelp_map_block): Likewise.
9466 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
9467 (grub_fshelp_journal): Likewise.
9468 (grub_fshelp_read): Likewise.
9469 (grub_fshelp_map_block): Likewise.
9471 2008-06-16 Pavel Roskin <proski@gnu.org>
9473 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
9474 floating point anymore.
9475 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
9477 2008-06-15 Pavel Roskin <proski@gnu.org>
9479 * commands/ls.c (grub_ls_list_files): Use integer calculations
9480 for human readable format, avoid floating point use.
9481 * kern/misc.c (grub_ftoa): Remove.
9482 (grub_vsprintf): Remove floating point support.
9484 2008-06-15 Robert Millan <rmh@aybabtu.com>
9486 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
9488 Reported by Max Vozeler.
9490 2008-06-15 Robert Millan <rmh@aybabtu.com>
9492 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
9493 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
9495 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
9496 the beginning of the prefix.
9498 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
9499 It is assumed that if we have a memdisk, grub-mkimage has set
9500 grub_prefix to include the "(memdisk)" drive in it.
9502 2008-06-15 Robert Millan <rmh@aybabtu.com>
9504 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
9505 Initialize keyboard controller after registering the terminal, so that
9506 grub_printf() can be called from grub_keyboard_controller_init().
9508 2008-06-15 Robert Millan <rmh@aybabtu.com>
9510 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
9511 extent-btree which is written as big endian on disk.
9512 Reported by Alain Greppin <al@chilibi.org>.
9514 2008-06-14 Robert Millan <rmh@aybabtu.com>
9516 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
9517 * util/i386/pc/grub-install.in (modules): Likewise.
9519 2008-06-13 Pavel Roskin <proski@gnu.org>
9521 * commands/ls.c (grub_ls_list_files): Fix format warnings.
9523 2008-06-13 Bean <bean123ch@gmail.com>
9525 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
9527 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
9529 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
9530 to indicate sparse block.
9532 2008-06-12 Pavel Roskin <proski@gnu.org>
9534 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
9535 number, grub_fshelp_read() does it for us.
9537 * fs/fshelp.c (grub_fshelp_read): New function. Implement
9538 linear disk read with journal translation.
9539 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
9540 * include/grub/fshelp.h: Declare grub_fshelp_read().
9542 2008-06-09 Pavel Roskin <proski@gnu.org>
9544 * fs/minix.c (grub_minix_mount): Handle error reading
9547 2008-06-08 Robert Millan <rmh@aybabtu.com>
9549 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
9550 don't append the RAID prefix afterwards.
9551 Reported by Clint Adams.
9553 2008-06-08 Robert Millan <rmh@aybabtu.com>
9555 Based on description from Pavel:
9556 * kern/disk.c (grub_disk_check_range): Rename to ...
9557 (grub_disk_adjust_range): ... this. Add a comment explaining the
9558 tasks performed by this function.
9560 2008-06-08 Robert Millan <rmh@aybabtu.com>
9562 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
9563 `num_serial' (for consistency with other variables).
9564 (struct grub_ntfs_data): Add `uuid' member.
9565 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
9566 (grub_ntfs_uuid): New function.
9567 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
9569 2008-06-07 Pavel Roskin <proski@gnu.org>
9571 * util/biosdisk.c (open_device): Revert last change to the
9572 function, it broke installation. The sector needs to be
9573 different dependent on which device is opened.
9575 2008-06-06 Robert Millan <rmh@aybabtu.com>
9577 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
9578 rest of GRUB, and breakage doesn't happen if its value were modified.
9580 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
9581 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
9582 a constant (same value).
9583 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
9584 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
9586 2008-06-06 Robert Millan <rmh@aybabtu.com>
9588 * util/biosdisk.c (open_device): Do not modify sector offset when
9589 accessing a partition. kern/disk.c already handles this for us.
9591 2008-06-06 Robert Millan <rmh@aybabtu.com>
9593 * util/grub-emu.c (grub_machine_init): Move code in this function from
9595 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
9596 segfault in case grub_printf() is called).
9598 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
9599 grub_probe. Update all users not to explicitly add it again.
9600 (grub_device): New variable; contains corresponding device for grubdir.
9601 (fs_module, partmap_module, devabstraction_module): Pass
9602 `--device ${grub_device}' to grub_probe to avoid traversing /dev
9605 2008-06-05 Robert Millan <rmh@aybabtu.com>
9607 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
9608 is found, print it (same layout as with labels).
9610 2008-06-04 Robert Millan <rmh@aybabtu.com>
9612 * util/biosdisk.c (get_drive): Rename to ...
9613 (find_grub_drive): ... this. Update all users.
9615 (get_os_disk): Rename to ...
9616 (convert_system_partition_to_system_disk): ... this. Update all users.
9618 (find_drive): Rename to ...
9619 (find_system_device): ... this. Update all users.
9621 2008-06-04 Robert Millan <rmh@aybabtu.com>
9623 * util/biosdisk.c (get_os_disk): Handle IDA devices.
9624 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9625 (make_device_map): Likewise.
9627 2008-06-01 Robert Millan <rmh@aybabtu.com>
9629 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
9630 before dereferencing it.
9632 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
9633 union with fat12/fat16-specific ones. Add some new fields, including
9634 `num_serial' for both versions.
9635 (struct grub_fat_data): Add `uuid' member.
9636 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
9637 names. Initialize `data->uuid' using `num_serial'.
9638 (grub_fat_uuid): New function.
9639 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
9641 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
9642 (grub_reiserfs_uuid): New function.
9643 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
9646 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
9647 (grub_xfs_uuid): New function.
9648 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
9650 2008-06-01 Robert Millan <rmh@aybabtu.com>
9652 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
9653 code that is backward compatible with pre-uuid search command.
9655 2008-05-31 Robert Millan <rmh@aybabtu.com>
9657 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
9658 floppies after everything else, to ensure floppy drive isn't accessed
9659 unnecessarily (patch from Bean).
9661 2008-05-31 Robert Millan <rmh@aybabtu.com>
9663 * commands/search.c (search_label, search_fs_uuid, search_file): Do
9664 not print device names when we were asked to set a variable.
9666 2008-05-31 Robert Millan <rmh@aybabtu.com>
9668 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
9669 using "cursor-on" and "cursor-off" commands (understood at least by
9670 the Open Firmware flavour on OLPC).
9672 2008-05-31 Michael Gorven <michael@gorven.za.net>
9674 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
9675 on and off sequences.
9677 2008-05-31 Robert Millan <rmh@aybabtu.com>
9679 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
9680 * util/update-grub.in: Likewise.
9682 2008-05-30 Pavel Roskin <proski@gnu.org>
9684 * util/biosdisk.c (linux_find_partition): Simplify logic and
9685 make the code more universal. Keep special processing for
9686 devfs, but use a simple rule for all other devices. If the
9687 device ends with a number, append 'p' and the partition number.
9688 Otherwise, append only the partition number.
9690 2008-05-30 Robert Millan <rmh@aybabtu.com>
9692 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
9693 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
9694 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
9695 the `root' parameter to Linux.
9697 2008-05-30 Robert Millan <rmh@aybabtu.com>
9699 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
9700 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
9701 --fs_uuid with --fs-uuid.
9702 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
9703 all filesystems support them).
9705 2008-05-30 Robert Millan <rmh@aybabtu.com>
9707 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
9708 grub_printf() flags, since we're printing in units of 2 bytes.
9710 2008-05-30 Robert Millan <rmh@aybabtu.com>
9712 * util/grub.d/00_header.in: Remove obsolete comment referencing
9713 convert_system_path_to_grub_path().
9714 * util/update-grub.in: Likewise.
9715 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
9716 (convert_system_path_to_grub_path): Add a warning message explaining
9717 that this function is deprecated. Rely on is_path_readable_by_grub()
9718 for the readability checks.
9719 (font_path): Use is_path_readable_by_grub() for the readability
9720 check rather than convert_system_path_to_grub_path().
9722 2008-05-30 Robert Millan <rmh@aybabtu.com>
9724 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
9725 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
9726 converting it first.
9727 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
9728 grub.cfg for access to font file, and afterwards call it again to set
9731 2008-05-30 Robert Millan <rmh@aybabtu.com>
9733 * commands/search.c (options): Add --fs_uuid option.
9734 (search_fs_uuid): New function.
9735 (grub_cmd_search): Fix --set argument passing.
9736 Use search_fs_uuid() when requested via --fs_uuid.
9737 (grub_search_init): Update help message.
9738 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
9739 and redeclare it as an array of 16-bit words.
9740 (grub_ext2_uuid): New function.
9741 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
9742 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
9743 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
9744 (GRUB_DEVICE_BOOT_UUID): New variables.
9745 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
9746 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
9748 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
9749 just assume `root' variable has the right value.
9750 * util/grub.d/10_linux.in: Likewise.
9751 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
9753 (main): Recognise `-t fs_uuid' argument.
9755 2008-05-30 Robert Millan <rmh@aybabtu.com>
9757 * util/biosdisk.c (map): Redefine structure to hold information
9758 about GRUB drive name.
9759 (get_drive): Reimplement without assuming (and verifying) BIOS-like
9761 (call_hook): Remove.
9762 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
9763 member. Assume drive has partitions.
9764 (grub_util_biosdisk_open): Access device names via `.device' struct
9766 (open_device): Likewise.
9767 (find_drive): Likewise.
9768 (read_device_map): Adjust map[] usage to match the new struct
9769 definition. Don't check for duplicates (still possible, but not cheap
9771 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
9772 (make_device_name): Remove assumption of BIOS-like drive names.
9774 2008-05-30 Pavel Roskin <proski@gnu.org>
9776 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
9777 compiling execute.c doesn't need grub_script.tab.h anymore.
9778 (normal/command.c_DEPENDENCIES): Likewise.
9779 (normal/function.c_DEPENDENCIES): Likewise.
9780 * conf/i386-ieee1275.rmk: Likewise.
9781 * conf/i386-linuxbios.rmk: Likewise.
9782 * conf/i386-pc.rmk: Likewise.
9783 * conf/powerpc-ieee1275.rmk: Likewise.
9784 * conf/sparc64-ieee1275.rmk: Likewise.
9786 2008-05-29 Pavel Roskin <proski@gnu.org>
9788 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
9789 when scanning metadata for volume group name.
9791 * include/grub/script.h: Don't include grub_script.tab.h. It's
9792 a generated file, which may only be included from the files with
9793 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
9794 use union YYSTYPE, as the later allows forward declaration.
9795 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
9797 2008-05-29 Robert Millan <rmh@aybabtu.com>
9799 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
9800 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
9801 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
9802 (grub_console_checkkey): Add grub_dprintf() call to report unknown
9805 2008-05-29 Robert Millan <rmh@aybabtu.com>
9807 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
9808 control key combinations.
9810 2008-05-29 Robert Millan <rmh@aybabtu.com>
9812 * util/powerpc/ieee1275/grub-install.in: Move from here ...
9813 * util/ieee1275/grub-install.in: ... to here.
9814 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
9815 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
9816 (grub_install_SOURCES): Likewise.
9818 2008-05-29 Robert Millan <rmh@aybabtu.com>
9820 * fs/affs.c: Update copyright year.
9821 * fs/ext2.c: Likewise.
9822 * fs/fshelp.c: Likewise.
9823 * fs/hfsplus.c: Likewise.
9824 * fs/ntfs.c: Likewise.
9825 * fs/xfs.c: Likewise.
9826 * include/grub/fshelp.h: Likewise.
9827 * util/grub-mkdevicemap.c: Likewise.
9829 2008-05-28 Robert Millan <rmh@aybabtu.com>
9831 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
9832 might need to be fatfs to support some firmware implementations
9835 2008-05-28 Robert Millan <rmh@aybabtu.com>
9837 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
9839 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9840 (make_device_map): Likewise.
9842 2008-05-20 Bean <bean123ch@gmail.com>
9844 * fs/fshelp.c (grub_fshelp_map_block): New function.
9845 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
9846 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
9848 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
9849 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
9850 (grub_fshelp_journal): New structure.
9851 (grub_fshelp_map_block): New function prototype.
9852 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
9853 (grub_fshelp_map_block): Likewise.
9855 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
9856 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
9857 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
9858 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
9859 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
9860 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
9861 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
9862 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
9863 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
9864 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
9865 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
9866 (grub_ext2_sblock): New members for journal support.
9867 (grub_ext3_journal_header): New structure.
9868 (grub_ext3_journal_revoke_header): Likewise.
9869 (grub_ext3_journal_block_tag): Likewise.
9870 (grub_ext3_journal_sblock): Likewise.
9871 (grub_fshelp_node): New members logfile and journal.
9872 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
9873 grub_fshelp_map_block to get real block number.
9874 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
9876 (grub_ext2_read_inode): Likewise.
9877 (grub_ext3_get_journal): New function.
9878 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
9879 (grub_ext2_close): Release memory used by journal.
9881 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
9882 (REISERFS_MAGIC_DESC_BLOCK): New macro.
9883 (grub_reiserfs_transaction_header): Renamed to
9884 grub_reiserfs_description_block, replace field data with real_blocks.
9885 (grub_reiserfs_commit_block): New structure.
9886 (grub_reiserfs_data): New member journal.
9887 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
9889 (grub_reiserfs_read_symlink): Likewise.
9890 (grub_reiserfs_iterate_dir): Likewise.
9891 (grub_reiserfs_open): Likewise.
9892 (grub_reiserfs_read): Likewise.
9893 (grub_reiserfs_get_journal): New function.
9894 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
9895 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
9896 using grub_reiserfs_get_journal.
9897 (grub_reiserfs_close): Release memory used by journal.
9899 * fs/affs.c (grub_affs_read_block): Change block type to
9900 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
9902 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
9904 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
9906 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
9908 * fs/udf.c (grub_udf_read_block): Change block type to
9909 grub_disk_addr_t. Use type cast to avoid warning.
9911 * fs/xfs.c (grub_xfs_read_block): Likewise.
9913 2008-05-16 Christian Franke <franke@computer.org>
9915 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
9916 to ensure that break with ESC will always work.
9917 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
9918 Remove ESC from keyboard queue.
9920 2008-05-16 Christian Franke <franke@computer.org>
9922 * util/biosdisk.c: [__CYGWIN__] Add includes.
9923 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
9924 (get_os_disk): Move variable declarations to OS specific
9925 parts to avoid warning.
9926 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
9927 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
9928 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
9930 * util/getroot.c: [__CYGWIN__] Add includes.
9931 (strip_extra_slashes): Fix "/" case.
9932 [__CYGWIN__] (get_win32_path): New function.
9933 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
9934 [__CYGWIN__] (find_root_device): Disable.
9935 [__CYGWIN__] (get_bootsec_serial): New function.
9936 [__CYGWIN__] (find_cygwin_root_device): Likewise.
9937 [__linux__] (grub_guess_root_device): Add early returns to simplify
9939 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
9940 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
9941 check for Linux only.
9943 2008-05-15 Bean <bean123ch@gmail.com>
9945 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
9946 keyboard hang problem in apple's intel mac.
9948 2008-05-09 Robert Millan <rmh@aybabtu.com>
9950 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
9952 * util/grub-mkdevicemap.c (get_virtio_disk_name)
9953 (make_device_map): Likewise.
9954 Reported by Aurelien Jarno <aurel32@debian.org>
9956 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
9958 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
9959 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
9960 (make_device_map): Output entries for xvd type disks.
9962 2008-05-07 Robert Millan <rmh@aybabtu.com>
9964 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
9966 * util/grub-mkdevicemap.c (get_cciss_disk_name)
9967 (make_device_map): Likewise.
9968 Reported by Roland Dreier <rdreier@cisco.com>
9970 2008-05-07 Robert Millan <rmh@aybabtu.com>
9972 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
9973 grub_strstr() call. Correct a few mistakes in failure path handling.
9975 2008-05-06 Robert Millan <rmh@aybabtu.com>
9977 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
9978 Do not print a trailing slash (therefore, the root directory is an
9980 (convert_system_path_to_grub_path): Do not remove trailing slash
9981 from make_system_path_relative_to_its_root() output.
9983 * util/i386/pc/grub-install.in: Add trailing slash to output from
9984 make_system_path_relative_to_its_root().
9986 2008-05-06 Robert Millan <rmh@aybabtu.com>
9988 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
9989 ensures that output lines aren't intermangled with those sent to
9990 stderr (via grub_util_info()).
9991 * util/grub-probe.c (grub_refresh): Likewise.
9992 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
9994 2008-05-05 Christian Franke <franke@computer.org>
9996 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
9997 Add Cygwin device names.
9998 (get_ide_disk_name) [__CYGWIN__]: Likewise.
9999 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
10000 (check_device): Return error instead of success on empty name.
10001 (make_device_map): Move label inside linux specific code to
10002 prevent compiler warning.
10004 2008-04-30 Robert Millan <rmh@aybabtu.com>
10006 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
10007 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
10009 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
10011 2008-04-29 Robert Millan <rmh@aybabtu.com>
10013 * docs/grub.cfg: New file (example GRUB configuration).
10015 2008-04-26 Robert Millan <rmh@aybabtu.com>
10017 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
10018 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
10019 and `disk/ieee1275/nand.c'.
10021 2008-04-25 Bean <bean123ch@gmail.com>
10023 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
10026 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
10027 change the buffer size to 4096 for cdrom device.
10029 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
10031 (_linux_mod_SOURCES): New variable.
10032 (_linux_mod_CFLAGS): Likewise.
10033 (_linux_mod_LDFLAGS): Likewise.
10034 (linux_mod_SOURCES): Likewise.
10035 (linux_mod_CFLAGS): Likewise.
10036 (linux_mod_LDFLAGS): Likewise.
10037 (nand_mod_SOURCES): Likewise.
10038 (nand_mod_CFLAGS): Likewise.
10039 (nand_mod_LDFLAGS): Likewise.
10041 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
10042 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
10043 type property. (nand device in olpc don't have this property)
10045 * include/grub/disk.h (grub_disk_dev_id): New macro
10046 GRUB_DISK_DEVICE_NAND_ID.
10048 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
10049 function prototype.
10050 (grub_rescue_cmd_initrd): Likewise.
10052 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
10053 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
10054 ofw_cif_handler and ofw_idt, adjust padding number.
10056 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
10057 GRUB_MACHINE_IEEE1275 is defined.
10059 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
10060 Use NESTED_FUNC_ATTR attribute on the hook parameter.
10062 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
10063 on nested function heap_init.
10064 (grub_upper_mem): New variable for i386-ieee1275.
10065 (grub_get_extended_memory): New function for i386-ieee1275.
10066 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
10068 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
10069 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
10072 * loader/i386/ieee1275/linux.c: New file.
10074 * loader/i386/ieee1275/linux_normal.c: New file.
10076 * disk/ieee1275/nand.c: New file.
10078 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
10080 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
10082 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
10084 2008-04-18 Robert Millan <rmh@aybabtu.com>
10086 Restructures early code path on ieee1275 to unify grub_main() as
10087 the first C function that is executed in every platform.
10089 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
10090 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
10092 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
10093 * kern/ieee1275/cmain.c (cmain): Rename to ...
10094 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
10095 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
10098 2008-04-18 Robert Millan <rmh@aybabtu.com>
10100 * util/update-grub.in: Fix syntax error when setting
10101 `GRUB_PRELOAD_MODULES'.
10102 Reported by Stephane Chazelas <stephane@artesyncp.com>
10104 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
10106 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
10107 section into account, newer toolchains generate unique build ids
10108 * configure.ac: remove the test for --build-id=none acceptance,
10109 we want build ids to be preserved
10110 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
10111 far from other sections don't cause the raw binary images grow
10114 2008-04-15 Robert Millan <rmh@aybabtu.com>
10116 * disk/lvm.c: Update copyright year.
10117 * kern/misc.c: Likewise.
10119 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10121 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
10122 there is no memory left for physical volume name.
10124 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10126 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
10127 volume name mapping to support bigger than 9 character names properly.
10129 2008-04-13 Robert Millan <rmh@aybabtu.com>
10131 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
10132 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
10134 2008-04-13 Christian Franke <franke@computer.org>
10136 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
10137 to create a floppy emulation boot CD when non emulation mode
10139 Enable Joliet CD filesystem extension.
10141 2008-04-13 Robert Millan <rmh@aybabtu.com>
10143 * kern/misc.c (grub_strncat): Fix off-by-one error.
10144 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
10146 * kern/env.c (grub_env_context_close): Clear current context, not
10148 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
10150 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
10152 2008-04-13 Robert Millan <rmh@aybabtu.com>
10154 Improve robustness when handling LVM.
10156 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
10157 (and leave `*p' unmodified).
10158 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
10160 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
10161 iterating through it.
10162 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
10164 (grub_lvm_scan_device): Check the return value (and fail gracefully
10165 when due) on each grub_lvm_getvalue() or grub_strstr() call.
10166 Don't assume `vg->pvs != NULL' when iterating through it.
10168 2008-04-13 Robert Millan <rmh@aybabtu.com>
10170 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
10171 * genmk.rb (partmap): New variable.
10172 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
10173 (#{partmap}): New target rule.
10174 * genpartmaplist.sh: New file.
10175 * Makefile.in (pkglib_DATA): Add partmap.lst.
10176 (partmap.lst): New target rule.
10177 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
10178 modules (including all partition maps), instead of preloading them.
10180 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
10182 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
10183 `linux-boot-prober' (if installed) to detect other operating
10184 systems which are installed on the computer and add them to
10186 * conf/common.rmk: Build and install 30_os-prober.
10188 2008-04-12 Robert Millan <rmh@aybabtu.com>
10190 * kern/powerpc/ieee1275/init.c: Move from here ...
10191 * kern/ieee1275/init.c: ... to here. Update all users.
10193 * kern/powerpc/ieee1275/cmain.c: Move from here ...
10194 * kern/ieee1275/cmain.c: ... to here. Update all users.
10196 * kern/powerpc/ieee1275/openfw.c: Move from here ...
10197 * kern/ieee1275/openfw.c: ... to here. Update all users.
10199 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
10200 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
10202 2008-04-10 Pavel Roskin <proski@gnu.org>
10204 * configure.ac: Always use "_cv_" in cache variables for
10205 compatibility with Autoconf 2.62.
10207 2008-04-07 Robert Millan <rmh@aybabtu.com>
10209 Revert grub/machine/init.h addition by Pavel (since it breaks on
10210 i386-ieee1275 and others):
10211 * util/i386/pc/misc.c: Remove grub/machine/init.h.
10212 * util/powerpc/ieee1275/misc.c: Likewise.
10214 2008-04-07 Robert Millan <rmh@aybabtu.com>
10216 * util/grub-probe.c (probe): Improve error message.
10218 2008-04-07 Robert Millan <rmh@aybabtu.com>
10220 * util/biosdisk.c (read_device_map): Skip devices that don't exist
10221 (this prevents the presence of a bogus entry from ruining the whole
10224 2008-04-06 Pavel Roskin <proski@gnu.org>
10226 * util/biosdisk.c: Include grub/util/biosdisk.h.
10227 * util/grub-fstest.c (execute_command): Make static.
10228 * util/grub-mkdevicemap.c (check_device): Likewise.
10229 * util/i386/pc/misc.c: Include grub/machine/init.h.
10230 * util/powerpc/ieee1275/misc.c: Likewise.
10231 * util/lvm.c: Include grub/util/lvm.h.
10232 * util/misc.c: Include grub/kernel.h, grub/misc.h and
10234 * util/raid.c: Include grub/util/raid.h.
10235 (grub_util_getdiskname): Make static.
10237 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
10238 grub_hostfs_fini(), as they are called from grub_init_all() and
10239 grub_fini_all() respectively. This fixes an infinite loop in
10240 grub-fstest due to double registration of hostfs.
10241 Reported by Christian Franke <Christian.Franke@t-online.de>
10243 2008-04-05 Pavel Roskin <proski@gnu.org>
10245 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
10246 all 8 functions. Otherwise, probe function 0 only.
10248 2008-04-04 Pavel Roskin <proski@gnu.org>
10250 * commands/lspci.c (grub_lspci_iter): Print the bus number
10253 * commands/lspci.c (grub_pci_classes): Fix typos.
10254 (grub_lspci_iter): Don't print func twice. Print vendor ID
10255 before device ID, as it's normally done.
10257 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
10258 Fix signedness warnings.
10259 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
10261 * util/ieee1275/get_disk_name.c: Include config.h so that
10262 _GNU_SOURCE is defined and getline() is declared. Mark an
10263 unused argument as such. Fix a signedness warning.
10265 2008-04-02 Pavel Roskin <proski@gnu.org>
10267 * genkernsyms.sh.in: Use more robust assignments for CC and
10268 srcdir. Quote srcdir.
10269 * gensymlist.sh.in: Likewise. Assert at the compile time that
10270 the symbol table is not empty.
10272 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
10273 * fs/cpio.c (grub_cpio_read): Likewise.
10275 2008-04-01 Pavel Roskin <proski@gnu.org>
10277 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
10278 * disk/host.c (grub_host_open): Likewise.
10279 * disk/loopback.c (grub_loopback_open): Likewise.
10280 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
10281 disk->id as in disk/host.c, not a multi-character constant.
10283 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
10284 later is obsolete, potentially dangerous and sets a bad example.
10285 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
10286 * util/misc.c (grub_util_get_image_size): Likewise.
10288 * disk/loopback.c (options): Improve help for "--partitions".
10290 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
10291 options to align them with the short options, e.g. "echo -e".
10293 2008-03-31 Bean <bean123ch@gmail.com>
10295 * video/reader/png.c (grub_png_data): New member is_16bit and
10297 (grub_png_decode_image_header): Detect 16 bit png image.
10298 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
10299 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
10300 (grub_video_reader_png): Release memory occupied by image_data.
10302 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
10304 (grub_nfs_mount): Skip the test for sector per cluster.
10306 * include/grub/ntfs.h (MAX_SPC): Removed.
10308 2008-03-31 Bean <bean123ch@gmail.com>
10310 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
10311 (grub_probe_SOURCES): Add fs/afs.c.
10312 (grub_fstest_SOURCES): Likewise.
10313 (afs_mod_SOURCES): New variable.
10314 (afs_mod_CFLAGS): Likewise.
10315 (afs_mod_LDFLAGS): Likewise.
10317 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
10318 (grub_emu_SOURCES): Likewise.
10320 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10322 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10324 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10326 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10328 * fs/afs.c: New file.
10330 2008-03-30 Pavel Roskin <proski@gnu.org>
10332 * disk/host.c: Include grub/misc.h to fix a warning.
10333 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
10334 warnings about implicit declarations.
10336 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
10338 * include/grub/i386/loader.h: Change declaration of
10339 grub_linux_boot() to match what grub_loader_set() expects.
10340 * util/getroot.c (grub_guess_root_device): Return const char* to
10342 * util/grub-probe.c (probe): Fix a warning about uninitialized
10343 abstraction_name variable.
10344 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
10345 second argument as unused to fix a warning.
10347 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
10348 missing grub_error() call.
10350 * util/update-grub_lib.in: Define datarootdir, since Autoconf
10351 2.60 and newer uses it to define datadir.
10353 * commands/sleep.c: Fix warning about implicit declaration.
10354 * disk/memdisk.c: Likewise.
10355 * loader/aout.c: Likewise.
10356 * loader/i386/bsd_normal.c: Likewise.
10357 * util/grub-probe.c: Likewise.
10359 * commands/i386/cpuid.c (has_longmode): Make static.
10360 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
10361 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
10363 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
10364 GDT. This is more robust, as %ds can change.
10365 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
10366 calling real_to_prot().
10367 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
10369 2008-03-28 Pavel Roskin <proski@gnu.org>
10371 * kern/i386/pc/startup.S: Assert that uncompressed functions
10372 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
10373 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
10374 code, as they push parts of the code (error handlers) beyond
10375 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
10376 code as correctness and size.
10378 2008-03-28 Pavel Roskin <proski@gnu.org>
10380 * kern/i386/pc/startup.S
10381 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
10382 data block address to the real mode, keep offset minimal. This
10383 works around a bug in AWARD BIOS on old Athlon systems, which
10384 makes CD detection hang.
10386 2008-03-26 Pavel Roskin <proski@gnu.org>
10388 * normal/color.c (grub_parse_color_name_pair): Make `name' a
10390 * include/grub/normal.h: Add grub_parse_color_name_pair()
10393 2008-03-24 Bean <bean123ch@gmail.com>
10395 * disk/i386/pc/biosdisk.c (cd_start): Removed.
10396 (cd_count): Removed.
10397 (cd_drive): New variable.
10398 (grub_biosdisk_get_drive): Don't check for (cdN) device.
10399 (grub_biosdisk_call_hook): Likewise.
10400 (grub_biosdisk_iterate): Change cdrom detection method.
10401 (grub_biosdisk_open): Replace cd_start with cd_drive.
10402 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
10403 detect cdrom device.
10405 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
10407 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
10408 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
10409 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
10410 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
10411 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
10412 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
10413 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
10414 (grub_biosdisk_cdrp): New structure.
10415 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
10417 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
10419 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
10422 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
10425 2008-03-20 Robert Millan <rmh@aybabtu.com>
10427 Remove 2 TiB limit in ata.mod.
10428 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
10429 (grub_ata_dumpinfo): Print sector count with 0x%llx.
10430 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
10431 grub_uint64_t instead of grub_uint32_t.
10433 2008-03-05 Bean <bean123ch@gmail.com>
10435 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
10436 (grub_multiboot): Set boot device.
10438 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
10440 2008-03-02 Bean <bean123ch@gmail.com>
10442 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
10445 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
10447 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
10450 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
10453 * docs/fdl.texi: New file.
10455 * docs/mdate-sh: New file. Copied from gnulib.
10456 * docs/texinfo.tex: Likewise.
10458 * config.guess: Updated from gnulib.
10459 * install-sh: Likewise.
10461 2008-02-28 Robert Millan <rmh@aybabtu.com>
10463 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
10464 (aout_mod_SOURCES): New variable.
10465 (aout_mod_CFLAGS): Likewise.
10466 (aout_mod_LDFLAGS): Likewise.
10468 * conf/i386-ieee1275.rmk: Likewise.
10470 2008-02-28 Robert Millan <rmh@aybabtu.com>
10472 * util/update-grub.in: Reorganise terminal validity check. Accept
10473 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
10474 Based on suggestion by Franklin PIAT.
10476 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
10478 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
10480 * util/getroot.c (grub_util_check_block_device): New function that
10481 returns the given argument if it is a block device and returns NULL else.
10482 * util/grub-probe.c (argument_is_device): New variable.
10483 (probe): Promote device_name from a variable to an argument. Receive
10484 device_name from grub_util_check_block_device() if path is NULL and from
10485 grub_guess_root_device() else. Do not free() device_name anymore.
10486 (options): Introduce new parameter '-d, --device'.
10487 (main): Add description of the new parameter to the help screen.
10488 Rename path variable to argument. Set argument_is_device if the '-d'
10489 option is given. Pass argument to probe() depending on
10490 argument_is_device.
10492 2008-02-24 Bean <bean123ch@gmail.com>
10494 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
10495 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
10496 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
10497 (GRUB_ISO9660_VOLDESC_PART): Likewise.
10498 (GRUB_ISO9660_VOLDESC_END): Likewise.
10499 (grub_iso9660_primary_voldesc): New member escape.
10500 (grub_iso9660_data): New member joliet.
10501 (grub_iso9660_convert_string): New function.
10502 (grub_iso9660_mount): Detect joliet extension.
10503 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
10504 (grub_iso9660_iso9660_label): Likewise.
10506 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
10507 (grub_setup_SOURCES): Add fs/udf.c.
10508 (grub_fstest_SOURCES): Likewise.
10509 (udf_mod_SOURCES): New variable.
10510 (udf_mod_CFLAGS): Likewise.
10511 (udf_mod_LDFLAGS): Likewise.
10513 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
10514 (grub_emu_SOURCES): Likewise.
10516 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10518 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10520 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10522 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10524 * fs/udf.c: New file.
10526 2008-02-24 Robert Millan <rmh@aybabtu.com>
10528 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
10529 (normal/lexer.c_DEPENDENCIES): New variables.
10530 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10531 (normal/lexer.c_DEPENDENCIES): Likewise.
10532 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
10533 (normal/lexer.c_DEPENDENCIES): Likewise.
10534 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
10535 (normal/lexer.c_DEPENDENCIES): Likewise.
10536 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10537 (normal/lexer.c_DEPENDENCIES): Likewise.
10538 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10539 (normal/lexer.c_DEPENDENCIES): Likewise.
10541 2008-02-23 Robert Millan <rmh@aybabtu.com>
10543 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
10544 since they were intended to be in hex. This didn't break previously
10545 because of a bug in gpt_partition_map_iterate() (see below).
10547 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
10548 when checking the validity of GPT header.
10549 Remove `partno', since it always provides the same information as `i'.
10551 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
10553 * include/grub/efi/time.h: Fix a wrong comment.
10555 2008-02-19 Pavel Roskin <proski@gnu.org>
10557 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
10560 2008-02-19 Bean <bean123ch@gmail.com>
10562 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
10563 (aout_mod_SOURCES): New variable.
10564 (aout_mod_CFLAGS): Likewise.
10565 (aout_mod_LDFLAGS): Likewise.
10566 (_bsd_mod_SOURCES): New variable.
10567 (_bsd_mod_CFLAGS): Likewise.
10568 (_bsd_mod_LDFLAGS): Likewise.
10569 (bsd_mod_SOURCES): New variable.
10570 (bsd_mod_CFLAGS): Likewise.
10571 (bsd_mod_LDFLAGS): Likewise.
10573 * include/grub/aout.h: New file.
10575 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
10577 * include/grub/i386/bsd.h: New file.
10579 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
10582 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
10583 function is called, so that it's possible to change it inside the hook.
10584 (grub_elf64_load): Likewise.
10585 (grub_elf_file): Don't close the file if elf header is not found.
10586 (grub_elf_close): Close the file if grub_elf_file fails (The new
10587 grub_elf_file won't close it).
10588 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
10589 (grub_elf64_size): Likewise.
10591 * kern/i386/loader.S (grub_unix_real_boot): New function.
10593 * loader/aout.c: New file.
10595 * loader/i386/bsd.c: New file.
10597 * loader/i386/bsd_normal.c: New file.
10599 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
10601 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
10602 can test other formats.
10604 2008-02-19 Robert Millan <rmh@aybabtu.com>
10606 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
10607 (grub_gpt_partition_type_empty): Redefine with macro from
10608 `<grub/gpt_partition.h>'.
10609 (gpt_partition_map_iterate): Adjust partition type comparison.
10611 Export `entry' as partmap-specific `part.data' struct.
10612 (grub_gpt_header, grub_gpt_partentry): Move from here ...
10614 * include/grub/gpt_partition.h (grub_gpt_header)
10615 (grub_gpt_partentry): ... to here (new file).
10617 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
10619 (grub_gpt_partition_type_bios_boot): New const variable, defined
10620 with macro from `<grub/gpt_partition.h>'.
10622 (setup): Replace `first_start' with `embed_region', which keeps
10623 track of the embed region (and is partmap-agnostic).
10625 Replace find_first_partition_start() with find_usable_region(),
10626 which finds a usable region for embedding using partmap-specific
10627 knowledge (supports PC/MSDOS and GPT).
10629 Fix all assumptions that the embed region start at sector 1, using
10630 `embed_region.start' from now on. Similarly, use `embed_region.end'
10631 rather than `first_start' to calculate available size.
10633 In grub_util_info() message, replace "into after the MBR" with an
10634 indication of the specific sector our embed region starts at.
10636 2008-02-19 Robert Millan <rmh@aybabtu.com>
10638 * DISTLIST: Replace `commands/ieee1275/halt.c' and
10639 `commands/ieee1275/reboot.c' with `commands/halt.c' and
10640 `commands/reboot.c'.
10641 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10642 (halt_mod_SOURCES): Likewise.
10643 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10644 (halt_mod_SOURCES): Likewise.
10646 2008-02-17 Christian Franke <franke@computer.org>
10648 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
10650 2008-02-17 Robert Millan <rmh@aybabtu.com>
10652 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10653 set `first_start' to 0 for non-PC/MSDOS partition maps.
10655 2008-02-16 Robert Millan <rmh@aybabtu.com>
10657 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10658 do not assume partition map is PC/MSDOS before performing checks that
10659 are specific to that layout.
10661 2008-02-13 Robert Millan <rmh@aybabtu.com>
10663 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
10664 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
10665 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
10667 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
10669 * configure.ac: Only a cosmetic change on the handling of
10670 -fno-stack-protector.
10672 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
10674 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
10675 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
10677 (grub_install_SOURCES): Add halt.mod and reboot.mod.
10678 (halt_mod_SOURCES): New variable.
10679 (halt_mod_CFLAGS): Likewise.
10680 (halt_mod_LDFLAGS): Likewise.
10681 (reboot_mod_SOURCES): Likewise.
10682 (reboot_mod_CFLAGS): Likewise.
10683 (reboot_mod_LDFLAGS): Likewise.
10685 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
10686 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
10688 (halt_mod_SOURCES): Likewise.
10689 (reboot_mod_SOURCES): Likewise.
10691 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
10692 commands/i386/pc/reboot.c by commands/reboot.c.
10693 (reboot_mod_SOURCES): Likewise.
10695 * commands/i386/pc/reboot.c: merge this file ...
10697 * commands/ieee1275/reboot.c: ... and this file ...
10699 * commands/reboot.c: ... to this file.
10700 Add some precompiler directive to include the correct header for
10703 * commands/ieee1275/halt.c: move this file ...
10705 * commands/halt.c: ... to here.
10706 Add some precompiler directive to include the correct header for
10709 * include/grub/efi/efi.h (grub_reboot): New function declaration.
10710 (grub_halt): Likewise.
10712 * kern/efi/efi.c (grub_reboot): New function.
10713 (grub_halt): Likewise.
10715 2008-02-12 Robert Millan <rmh@aybabtu.com>
10717 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
10718 /dev (like it is done for /dev/mapper). This doesn't provide support
10719 for EVMS, but at least it is now easy to identify the problem when it
10722 2008-02-11 Robert Millan <rmh@aybabtu.com>
10724 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
10725 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
10726 comparing it with -1, not 0.
10728 2008-02-10 Robert Millan <rmh@aybabtu.com>
10730 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
10732 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10733 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10735 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
10736 `disk/lvm.c' to the end of the list.
10737 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10738 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10740 2008-02-10 Robert Millan <rmh@aybabtu.com>
10742 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
10743 grub_print_error() instead. This will let user know why we're entering
10745 Based on suggestions from Sam Morris.
10747 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
10749 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
10750 on remaining N args, instead of "--" arg N times.
10752 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
10754 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
10755 (fill_with_default_glyph): Changed to use unknown_glyph for fill
10756 pattern for unknown glyphs.
10758 2008-02-09 Robert Millan <rmh@aybabtu.com>
10760 * configure.ac: Probe for `help2man'.
10761 * Makefile.in (builddir): New variable.
10762 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
10763 or otherwise add a few flags/options to it.
10764 (install-local): For every executable utility or script that is
10765 installed, invoke $(HELP2MAN) to install a manpage based on --help
10768 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
10769 that it doesn't prevent --help from working in build tree.
10771 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
10772 with `bug-grub@gnu.org'.
10773 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
10774 * util/update-grub.in (usage): New function.
10775 Implement proper argument check, with support for --help and --version
10776 (as well as existing -y).
10778 2008-02-09 Christian Franke <franke@computer.org>
10780 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
10781 avoid overwriting previous output.
10782 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
10784 2008-02-09 Robert Millan <rmh@aybabtu.com>
10786 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
10789 2008-02-09 Robert Millan <rmh@aybabtu.com>
10791 * commands/sleep.c: New file.
10792 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
10793 (sleep_mod_SOURCES): New variable.
10794 (sleep_mod_CFLAGS): Likewise.
10795 (sleep_mod_LDFLAGS): Likewise.
10797 2008-02-09 Robert Millan <rmh@aybabtu.com>
10799 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
10800 situations in which we can deduce the RAID size and the superblock
10803 2008-02-09 Robert Millan <rmh@aybabtu.com>
10805 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
10806 and return a grub_diskmemberlist_t composed of LVM physical volumes.
10807 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
10809 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
10810 and return a grub_diskmemberlist_t composed of physical array members.
10811 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
10813 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
10815 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
10816 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
10817 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
10819 * util/grub-probe.c (probe): Move partmap probing code from here ...
10820 (probe_partmap): ... to here.
10821 (probe): Use probe_partmap() once for the disk we're probing, and
10822 additionally, when such disk contains a memberlist() struct member,
10823 once for each disk that is contained in the structure returned by
10826 2008-02-09 Robert Millan <rmh@aybabtu.com>
10828 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
10829 environment variable to 'all' in order to obtain debug output from
10831 * util/i386/pc/grub-setup.c (main): Likewise.
10833 2008-02-08 Robert Millan <rmh@aybabtu.com>
10835 * disk/raid.c (grub_raid_scan_device): Check for
10836 `array->device[sb.this_disk.number]' rather than for
10837 `array->device[sb.this_disk.number]->name', since the latter is not
10838 guaranteed to be accessible.
10840 2008-02-08 Robert Millan <rmh@aybabtu.com>
10842 * disk/raid.c: Update copyright.
10843 * fs/cpio.c: Likewise.
10844 * include/grub/raid.h: Likewise.
10845 * loader/i386/pc/multiboot.c: Likewise.
10846 * util/hostfs.c: Likewise.
10848 2008-02-08 Robert Millan <rmh@aybabtu.com>
10850 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
10851 to a grub_disk_t array.
10852 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
10854 (grub_raid_scan_device): Replace `device[x].name' accesses with
10855 `device[x]->name'. Simplify initialization of `array->device[x]'.
10857 2008-02-08 Robert Millan <rmh@aybabtu.com>
10859 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
10860 grub_dprintf() calls.
10861 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
10864 2008-02-07 Christian Franke <franke@computer.org>
10866 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
10867 instead of fseek and ftell to support large files.
10868 (grub_hostfs_read): Likewise.
10870 2008-02-07 Robert Millan <rmh@aybabtu.com>
10872 Patch from Jeroen Dekkers.
10873 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
10874 failure, since successfully reading all array members might not be
10877 2008-02-06 Robert Millan <rmh@aybabtu.com>
10879 * util/grub-probe.c (probe): Simplify partmap probing (with the
10880 assumption that the first word up to the underscore equals to
10883 2008-02-06 Christian Franke <franke@computer.org>
10885 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
10886 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
10887 last block of a cpio or tar stream.
10888 Check for "TRAILER!!!" instead of any empty data
10889 block to detect last block of a cpio stream.
10890 (grub_cpio_dir): Fix constness of variable np.
10891 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
10892 cpio or tar trailer is detected. This fixes a crash
10893 on open of a non existing file.
10895 2008-02-05 Bean <bean123ch@gmail.com>
10897 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
10899 (grub_multiboot_load_elf64): Likewise.
10900 (grub_multiboot): Initialize mbi structure.
10902 * util/grub-fstest.c: Don't include unused header file script.h.
10904 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
10906 (grub_fstest_SOURCES): Likewise.
10908 2008-02-05 Robert Millan <rmh@aybabtu.com>
10910 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
10911 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
10912 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
10913 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
10915 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
10916 (translation_table): Replace hardcoded values with macros
10917 provided by `<grub/term.h>'.
10919 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
10920 (keyboard_map): Correct/add a few values, with macros provided
10921 by `<grub/term.h>'.
10922 (keyboard_map_shift): Zero values that don't differ from their
10923 `keyboard_map' equivalents.
10924 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
10925 Discard the second scan code that is always sent by Caps lock.
10926 Only use `keyboard_map_shift' when it provides a non-zero value,
10927 otherwise fallback to `keyboard_map'.
10929 2008-02-04 Bean <bean123ch@gmail.com>
10931 * Makefile.in (enable_grub_fstest): New variable.
10933 * conf/common.rmk (grub_fstest_init.lst): New rule.
10934 (grub_fstest_init.h): Likewise.
10935 (grub_fstest_init.c): Likewise.
10936 (util/grub-fstest.c_DEPENDENCIES): New variable.
10937 (grub_fstest_SOURCES): Likewise.
10939 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
10941 * util/grub-fstest.c: New file.
10943 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10945 Make grub-setup handle a separate root device.
10947 * util/i386/pc/grub-setup.c (setup): Always open the root device,
10948 so that the root device can be compared with the destination
10950 When embedding the core image, if the root and destination devices
10951 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
10953 When not embedding, set ROOT_DRIVE to 0xFF.
10955 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10957 Add support for having a grub directory in a different drive. This
10958 is still only the data handling part.
10960 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
10961 (codestart): Save %dh in GRUB_ROOT_DRIVE.
10962 (grub_root_drive): New variable.
10964 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
10965 instead of GRUB_BOOT_DRIVE to construct a device name. Set
10966 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
10969 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
10971 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
10973 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
10975 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
10976 is bogus, because PXE booting does not specify any drive
10979 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
10980 am not sure if this is really correct.
10982 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
10983 is always identical to the boot drive when booting from a CD.
10985 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
10987 (root_drive): New variable.
10988 (real_start): Unconditionally set %dh to ROOT_DRIVE.
10989 (setup_sectors): Push %dx right after popping it, because %dh will
10991 (copy_buffer): Restore %dx.
10993 2008-02-03 Robert Millan <rmh@aybabtu.com>
10995 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
10996 use `cdboot.img' for cdrom images.
10998 2008-02-03 Robert Millan <rmh@aybabtu.com>
11000 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
11001 only setup gfxterm when `font' command has succeeded.
11003 2008-02-03 Robert Millan <rmh@aybabtu.com>
11005 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
11006 (grub_rescue_cmd_multiboot_loader)
11007 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
11009 2008-02-03 Pavel Roskin <proski@gnu.org>
11011 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
11012 %edx and %esi from stack only after grub_gate_a20() is called.
11013 grub_gate_a20() clobbers %edx.
11015 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11017 * configure.ac (AC_INIT): Bumped to 1.96.
11019 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
11020 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
11021 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
11022 video/readers/png.c.
11024 2008-02-03 Bean <bean123ch@gmail.com>
11026 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
11027 (cdboot_img_SOURCES): New variable.
11028 (cdboot_img_ASFLAGS): New variable.
11029 (cdboot_img_LDFLAGS): New variable.
11031 * boot/i386/pc/cdboot.S: New file.
11033 * disk/i386/pc/biosdisk.c (cd_start): New variable.
11034 (cd_count): Likewise.
11035 (grub_biosdisk_get_drive): Add support for cd device.
11036 (grub_biosdisk_call_hook): Likewise.
11037 (grub_biosdisk_iterate): Likewise.
11038 (grub_biosdisk_open): Likewise.
11039 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
11040 (grub_biosdisk_rw): Support reading from cd device.
11041 (GRUB_MOD_INIT): Iterate cd devices.
11043 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
11044 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
11045 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
11047 * kern/i386/pc/init.c (make_install_device): Check for cd device.
11049 2008-02-02 Robert Millan <rmh@aybabtu.com>
11051 * commands/read.c: New file.
11052 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
11053 (read_mod_SOURCES): New variable.
11054 (read_mod_CFLAGS): Likewise.
11055 (read_mod_LDFLAGS): Likewise.
11057 2008-02-02 Robert Millan <rmh@aybabtu.com>
11059 * normal/main.c (grub_normal_execute): Check for `menu->size' when
11060 determining whether menu has to be displayed.
11062 2008-02-02 Marco Gerards <marco@gnu.org>
11064 * bus/pci.c: New file.
11066 * include/grub/pci.h: Likewise.
11068 * include/grub/i386/pc/pci.h: Likewise.
11070 * commands/lspci.c: Likewise.
11072 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
11074 (pci_mod_SOURCES): New variable.
11075 (pci_mod_CFLAGS): Likewise.
11076 (pci_mod_LDFLAGS): Likewise.
11077 (lspci_mod_SOURCES): Likewise.
11078 (lspci_mod_CFLAGS): Likewise.
11079 (lspci_mod_LDFLAGS): Likewise.
11081 2008-02-02 Bean <bean123ch@gmail.com>
11083 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
11084 (grub_ufs_get_file_block): Fix indirect block calculation problem.
11086 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
11087 (grub_xfs_btree_node): New structure.
11088 (grub_xfs_btree_root): New structure.
11089 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
11090 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
11091 (GRUB_XFS_EXTENT_BLOCK): Likewise.
11092 (GRUB_XFS_EXTENT_SIZE): Likewise.
11093 (grub_xfs_read_block): Support btree format type.
11094 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
11095 Use directory block as basic unit.
11097 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
11099 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
11100 __attribute__ ((__regparm__ (1))).
11102 2008-02-01 Robert Millan <rmh@aybabtu.com>
11104 Correct a mistake in previous commit.
11106 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
11108 (normal/command.c_DEPENDENCIES): New variable.
11110 2008-02-01 Robert Millan <rmh@aybabtu.com>
11112 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
11114 (normal/command.c_DEPENDENCIES): New variable.
11115 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
11116 * conf/i386-ieee1275.rmk: Likewise.
11117 * conf/i386-linuxbios.rmk: Likewise.
11118 * conf/i386-pc.rmk: Likewise.
11119 * conf/sparc64-ieee1275.rmk: Likewise.
11120 * conf/powerpc-ieee1275.rmk: Likewise.
11121 (grub_emu_SOURCES): Add `fs/fshelp.c'.
11123 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
11125 2008-02-01 Robert Millan <rmh@aybabtu.com>
11127 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
11128 call at beginning of function.
11130 2008-01-31 Pavel Roskin <proski@gnu.org>
11132 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
11133 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
11134 (grub_mkrescue_SOURCES): Likewise.
11135 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
11137 2008-01-30 Robert Millan <rmh@aybabtu.com>
11139 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
11140 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
11141 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
11142 (grub_probe_SOURCES): ... to here.
11144 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
11145 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
11146 * conf/i386-ieee1275.rmk: Likewise.
11147 * conf/i386-linuxbios.rmk: Likewise.
11148 * conf/powerpc-ieee1275.rmk: Likewise.
11150 2008-01-30 Tristan Gingold <gingold@free.fr>
11152 * kern/rescue.c: Silently accept empty lines.
11154 2008-01-29 Bean <bean123ch@gmail.com>
11156 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
11157 (real_code_2): Code cleanup and change comment style.
11158 (move_memory): Avoid using 32-bit address mode.
11160 2008-01-29 Bean <bean123ch@gmail.com>
11162 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
11163 (png_mod_SOURCES): New variable.
11164 (png_mod_CFLAGS): Likewise.
11165 (png_mod_LDFLAGS): Likewise.
11167 * video/readers/png.c: New file.
11169 2008-01-28 Robert Millan <rmh@aybabtu.com>
11171 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
11172 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
11173 `ifndef GRUB_MOD_GAP' hack.
11174 * util/elf/grub-mkimage.c (add_segments): Likewise.
11176 2008-01-27 Robert Millan <rmh@aybabtu.com>
11178 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
11179 `GRUB_MOD_GAP' for platforms in which it's not defined.
11180 * util/elf/grub-mkimage.c (add_segments): Likewise.
11182 2008-01-27 Robert Millan <rmh@aybabtu.com>
11184 Get grub-emu to build again (including parallel builds).
11186 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
11188 (util/grub-emu.c_DEPENDENCIES): ... this, ...
11189 (normal/execute.c_DEPENDENCIES): ... this, ...
11190 (grub-emu_DEPENDENCIES): ... and this.
11192 * conf/i386-efi.rmk: Likewise.
11193 * conf/i386-linuxbios.rmk: Likewise.
11194 * conf/i386-ieee1275.rmk: Likewise.
11195 * conf/powerpc-ieee1275.rmk: Likewise.
11196 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
11198 2008-01-27 Robert Millan <rmh@aybabtu.com>
11200 * NEWS: Add a few items.
11202 2008-01-27 Robert Millan <rmh@aybabtu.com>
11204 Fix parallel builds with grub-emu. Based on earlier commit for
11205 grub-probe and grub-setup.
11207 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11208 (util/grub-emu.c_DEPENDENCIES): ... this.
11209 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11210 (util/grub-emu.c_DEPENDENCIES): ... this.
11211 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11212 (util/grub-emu.c_DEPENDENCIES): ... this.
11213 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11214 (util/grub-emu.c_DEPENDENCIES): ... this.
11215 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11216 (util/grub-emu.c_DEPENDENCIES): ... this.
11218 2008-01-27 Pavel Roskin <proski@gnu.org>
11220 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
11221 to create a gap between _end and the modules added to the image
11222 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
11223 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
11224 * util/elf/grub-mkimage.c (add_segments): Likewise.
11226 2008-01-26 Pavel Roskin <proski@gnu.org>
11228 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
11229 just return an error.
11231 2008-01-26 Bean <bean123ch@gmail.com>
11233 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
11234 (grub_reiserfs_get_item): Save offset of the next item.
11235 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
11237 2008-01-25 Robert Millan <rmh@aybabtu.com>
11239 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
11240 make all filesystem sources appear together (possibly fixing omissions
11242 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11243 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11244 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11245 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11247 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
11249 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
11250 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11251 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
11252 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11254 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
11255 (probe): Add a sanity check to make sure of our ability to read
11256 requested files when probing for filesystem type.
11258 * genmk.rb: Update copyright year (2007).
11260 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
11261 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
11262 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
11263 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
11264 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
11265 : Remove function prototypes.
11267 2008-01-25 Robert Millan <rmh@aybabtu.com>
11269 Revert my previous commits (based on wrong assumption of how grub_errno
11272 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
11273 * kern/file.c (grub_file_open): Likewise.
11275 2008-01-24 Pavel Roskin <proski@gnu.org>
11277 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
11278 that hang if GRUB tries to setup colors.
11279 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
11280 colors for firmwares that don't support it.
11281 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
11282 Recognize Open Hack'Ware, set flags to work around its
11285 2008-01-24 Robert Millan <rmh@aybabtu.com>
11287 * kern/file.c (grub_file_open): Do not account previous failures of
11288 unrelated functions when grub_errno is checked for.
11289 Reported by Oleg Strikov.
11291 2008-01-24 Bean <bean123ch@gmail.com>
11293 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
11294 (grub_ufs_sblock): New member volume name.
11295 (grub_ufs_find_file): Fix string copy bug.
11296 (grub_ufs_label): Implement this function properly.
11298 * fs/hfs.c (grub_hfs_cnid_type): New enum.
11299 (grub_hfs_iterate_records): Use the correct file number for extents
11300 and catalog file. Fix problem in next index calculation.
11301 (grub_hfs_find_node): Replace recursive function call with loop.
11302 (grub_hfs_iterate_dir): Replace recursive function call with loop.
11304 2008-01-23 Robert Millan <rmh@aybabtu.com>
11306 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
11307 `<grub/symbol.h>' and `<grub/multiboot.h>'.
11308 (grub_multiboot2_real_boot): New function prototype.
11310 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
11311 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
11313 * kern/i386/ieee1275/init.c (grub_os_area_addr)
11314 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
11316 2008-01-23 Robert Millan <rmh@aybabtu.com>
11318 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
11319 #ifdef'ed out grub_printf().
11321 2008-01-23 Robert Millan <rmh@aybabtu.com>
11323 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
11324 grub_dprintf calls, since they make "debug=all" mode unusable.
11325 (grub_console_checkkey): Likewise.
11327 2008-01-23 Robert Millan <rmh@aybabtu.com>
11329 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
11330 `term/i386/pc/at_keyboard.c'.
11331 (pkglib_MODULES): Add `serial.mod'.
11332 (serial_mod_SOURCES): New variable.
11333 (serial_mod_CFLAGS): Likewise.
11334 (serial_mod_LDFLAGS): Likewise.
11336 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
11337 `<grub/powerpc/ieee1275/console.h>'.
11338 (grub_keyboard_controller_init): New function prototype.
11339 (grub_console_checkkey): Likewise.
11340 (grub_console_getkey): Likewise.
11342 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
11345 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
11346 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
11348 2008-01-23 Robert Millan <rmh@aybabtu.com>
11350 * kern/i386/pc/init.c (make_install_device): When memdisk image is
11351 present, "(memdisk)/boot/grub" becomes the default prefix.
11353 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
11354 a memdisk tarball with all the modules. Add --overlay=DIR option that
11355 allows users to overlay additional files into the image.
11357 2008-01-23 Robert Millan <rmh@aybabtu.com>
11359 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
11360 and `machine/memory.h'.
11361 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
11362 (_multiboot_mod_SOURCES): New variable.
11363 (_multiboot_mod_CFLAGS): Likewise.
11364 (_multiboot_mod_LDFLAGS): Likewise.
11365 (multiboot_mod_SOURCES): Likewise.
11366 (multiboot_mod_CFLAGS): Likewise.
11367 (multiboot_mod_LDFLAGS): Likewise.
11369 * include/grub/i386/ieee1275/loader.h: New file.
11371 * include/grub/i386/ieee1275/machine.h: Likewise.
11373 * include/grub/i386/ieee1275/memory.h: Likewise.
11375 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
11376 variable declaration.
11377 (grub_os_area_size): Likewise.
11379 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
11380 (grub_lower_mem, grub_upper_mem): New variables.
11381 (grub_stop_floppy): New function (just to make
11382 grub_multiboot2_real_boot() happy).
11384 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
11385 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
11386 (grub_stop): New function.
11387 Include `"../realmode.S"' and `"../loader.S"'.
11389 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
11390 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
11392 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
11393 rely on grub_multiboot2_real_boot() for final boot.
11395 2008-01-22 Robert Millan <rmh@aybabtu.com>
11397 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
11398 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
11399 device that doesn't look like an SD card.
11400 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
11401 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
11402 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
11403 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
11406 2008-01-22 Robert Millan <rmh@aybabtu.com>
11408 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
11409 avoid claiming over our own code.
11411 2008-01-22 Bean <bean123ch@gmail.com>
11413 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
11414 (jpeg_mod_SOURCES): New variable.
11415 (jpeg_mod_CFLAGS): Likewise.
11416 (jpeg_mod_LDFLAGS): Likewise.
11418 * video/readers/jpeg.c : New file.
11420 2008-01-22 Bean <bean123ch@gmail.com>
11422 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
11423 there are no more items.
11425 2008-01-21 Robert Millan <rmh@aybabtu.com>
11427 * kern/mm.c (grub_mm_init_region): Improve debug message.
11429 2008-01-21 Robert Millan <rmh@aybabtu.com>
11431 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
11432 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
11434 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
11436 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
11437 Indicates start of upper memory.
11438 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
11439 (generate_image): Abort when image size is big enough to corrupt
11442 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
11443 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
11444 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11445 instead of hardcoding 0xA0000.
11446 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
11447 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11448 instead of hardcoding 0xA0000.
11450 2008-01-21 Robert Millan <rmh@aybabtu.com>
11452 * disk/memdisk.c (memdisk_size): New variable.
11453 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
11455 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
11456 image to dynamic memory.
11457 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
11458 `memdisk_size'. Free memdisk block.
11460 2008-01-21 Robert Millan <rmh@aybabtu.com>
11462 Fix detection of very small filesystems (like tar).
11464 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
11465 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
11466 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
11467 a problem with this disk).
11469 2008-01-21 Robert Millan <rmh@aybabtu.com>
11471 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
11472 on grub_biosdisk_rw_standard() error.
11474 2008-01-21 Robert Millan <rmh@aybabtu.com>
11476 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
11478 * kern/elf.c: Likewise.
11479 * kern/ieee1275/ieee1275.c: Likewise.
11480 * kern/powerpc/ieee1275/openfw.c: Likewise.
11481 * term/ieee1275/ofconsole.c: Likewise.
11483 2008-01-21 Robert Millan <rmh@aybabtu.com>
11485 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
11487 * include/grub/kernel.h (grub_arch_memdisk_addr)
11488 (grub_arch_memdisk_size): Moved from here ...
11490 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
11491 (grub_arch_memdisk_size): ... to here.
11493 2008-01-21 Robert Millan <rmh@aybabtu.com>
11495 Mostly based on bugfix from Bean.
11497 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
11498 attribute with hook() parameter.
11499 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
11501 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
11502 attribute with hook() parameter.
11503 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
11506 2008-01-21 Robert Millan <rmh@aybabtu.com>
11508 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
11509 (pkglib_MODULES): Add `memdisk.mod'.
11510 (memdisk_mod_SOURCES): New variable.
11511 (memdisk_mod_CFLAGS): Likewise.
11512 (memdisk_mod_LDFLAGS): Likewise.
11514 * disk/memdisk.c: New file.
11516 * include/grub/disk.h (grub_disk_dev_id): Add
11517 `GRUB_DISK_DEVICE_MEMDISK_ID'.
11519 * include/grub/i386/pc/kernel.h
11520 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
11521 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
11522 (grub_kernel_image_size): New variable declaration.
11523 (grub_total_module_size): Likewise.
11524 (grub_memdisk_image_size): Likewise.
11526 * include/grub/i386/pc/memory.h
11527 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
11529 * include/grub/kernel.h: Include `<grub/symbol.h>'.
11530 (grub_arch_memdisk_addr): New variable declaration.
11531 (grub_arch_memdisk_size): Likewise.
11533 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
11534 (grub_arch_memdisk_size): Likewise.
11536 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
11537 (codestart): Replace hardcoded `0x100000' with
11538 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
11540 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
11541 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
11542 not NULL, append the contents of the file it refers to, at the end of
11543 the compressed kernel image. Initialize `grub_memdisk_image_size'
11544 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
11545 (options): Add "memdisk"|'m' option.
11546 (main): Parse --memdisk|-m option, and pass user-provided path as
11547 parameter to generate_image().
11549 2008-01-20 Robert Millan <rmh@aybabtu.com>
11551 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
11552 grub_dprintf() calls from here ...
11553 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
11555 2008-01-20 Robert Millan <rmh@aybabtu.com>
11557 Fix detection of "real mode" when /options/real-mode? doesn't exist.
11559 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
11561 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
11562 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
11563 `GRUB_IEEE1275_FLAG_REAL_MODE'.
11564 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
11566 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
11567 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
11569 2008-01-19 Robert Millan <rmh@aybabtu.com>
11571 Get rid of confusing function (superseded by
11572 `grub_ieee1275_get_integer_property')
11573 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
11575 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
11577 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
11578 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
11579 in native endianness from grub_ieee1275_get_integer_property().
11581 2008-01-19 Robert Millan <rmh@aybabtu.com>
11583 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
11584 command after "shut-down", since implementations differ on which
11585 the command for halt is.
11587 2008-01-19 Robert Millan <rmh@aybabtu.com>
11589 * include/grub/i386/linuxbios/console.h: Add header protection.
11590 (grub_keyboard_controller_init): New function prototype.
11591 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
11592 (KEYBOARD_COMMAND_READ): Likewise.
11593 (KEYBOARD_COMMAND_WRITE): Likewise.
11594 (KEYBOARD_SCANCODE_SET1): Likewise.
11595 (grub_keyboard_controller_write): New function.
11596 (grub_keyboard_controller_read): Likewise.
11597 (grub_keyboard_controller_init): Likewise.
11599 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
11600 (grub_console_init): On coreboot/LinuxBIOS, call
11601 grub_keyboard_controller_init().
11603 2008-01-19 Robert Millan <rmh@aybabtu.com>
11605 PowerPC changes provided by Pavel Roskin.
11607 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
11608 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
11609 don't rely on cmain() doing it.
11610 * kern/i386/ieee1275/startup.S (_start): Store %eax in
11611 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
11613 2008-01-16 Robert Millan <rmh@aybabtu.com>
11615 * include/grub/i386/linuxbios/memory.h
11616 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
11617 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
11618 receive `table_header' as argument. Instead, probe for it in the
11619 known memory ranges where it can be present.
11620 (grub_available_iterate): Do not pass a fixed `table_header' address
11621 to grub_linuxbios_table_iterate().
11623 2008-01-15 Robert Millan <rmh@aybabtu.com>
11625 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
11626 * conf/i386-ieee1275.rmk: New file.
11627 * include/grub/i386/ieee1275/console.h: Likewise.
11628 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
11629 * include/grub/i386/ieee1275/kernel.h: Likewise.
11630 * include/grub/i386/ieee1275/time.h: Likewise.
11631 * kern/i386/ieee1275/init.c: Likewise.
11632 * kern/i386/ieee1275/startup.S: Likewise.
11634 2008-01-15 Robert Millan <rmh@aybabtu.com>
11636 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
11637 when pointers are 32-bit (but still do set it to one when they are
11640 2008-01-15 Robert Millan <rmh@aybabtu.com>
11642 * include/grub/ieee1275/ieee1275.h
11643 (grub_ieee1275_get_integer_property): New function prototype.
11645 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
11646 (grub_ieee1275_get_integer_property): New function. Wraps around
11647 grub_ieee1275_get_property() to handle endianness.
11649 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
11650 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
11652 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
11653 (grub_map): Likewise.
11654 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
11656 2008-01-15 Bean <bean123ch@gmail.com>
11658 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
11659 (grub_script_execute_cmdline): Reset grub_errno.
11661 * normal/main.c (read_config_file): Reset grub_errno.
11663 * normal/parse.y (script_init): New.
11664 (script): Move function and menuentry here.
11666 (command): Add delimiter at the end of command.
11667 (commands): Adjust to match the new command.
11668 (commandblock): Remove grub_script_lexer_record_start.
11669 (menuentry): Add grub_script_lexer_record_start, use the new commands.
11670 (if): Use the new commands.
11672 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
11674 2008-01-15 Robert Millan <rmh@aybabtu.com>
11676 * normal/menu.c (run_menu): Move timeout message from here ...
11677 (print_timeout): ... to here.
11678 (run_menu): Use print_timeout() once during initial draw to print
11679 the whole message, and again in every clock tick to update only
11680 the number of seconds.
11682 2008-01-15 Robert Millan <rmh@aybabtu.com>
11684 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
11685 actual size of `available' from grub_ieee1275_get_property(), and
11686 restrict parsing to that bound.
11688 2008-01-15 Christian Franke <franke@computer.org>
11690 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
11691 (argp_program_version): Remove variable.
11692 (argp_program_bug_address): Likewise.
11693 (options): Convert from struct argp_option to struct option.
11694 (struct arguments): Remove.
11695 (parse_opt): Remove.
11696 (usage): New function.
11697 (main): Replace struct args members by simple variables.
11698 Replace argp_parse() by getopt_long().
11699 Add switch to evaluate options.
11700 Add missing "(...)" around root_dev in prefix string.
11702 2008-01-14 Robert Millan <rmh@aybabtu.com>
11704 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
11705 for grub_ieee1275_exit(), in order to improve portability.
11707 2008-01-14 Robert Millan <rmh@aybabtu.com>
11709 * util/grub.d/10_linux.in (prefix): Define.
11710 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
11712 2008-01-13 Pavel Roskin <proski@gnu.org>
11714 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
11715 grub_errno if no errors have been detected.
11717 2008-01-12 Robert Millan <rmh@aybabtu.com>
11719 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
11720 (grub_util_get_dev_abstraction): New function prototype.
11722 * util/getroot.c: Include `<grub/util/getroot.h>'
11723 (grub_util_get_grub_dev): Move detection of abstraction type to ...
11724 (grub_util_get_dev_abstraction): ... here (new function).
11726 * util/grub-probe.c: Convert PRINT_* to an enum. Add
11727 `PRINT_ABSTRACTION'.
11728 (probe): Probe for abstraction type when requested.
11729 (main): Understand `--target=abstraction'.
11731 * util/i386/efi/grub-install.in: Add abstraction module to core
11732 image when it is found to be necessary.
11733 * util/i386/pc/grub-install.in: Likewise.
11734 * util/powerpc/ieee1275/grub-install.in: Likewise.
11736 * util/update-grub_lib.in (font_path): Return system path without
11737 converting to GRUB path.
11738 * util/update-grub.in: Convert system path returned by font_path()
11739 to a GRUB path. Use `grub-probe -t abstraction' to determine what
11740 abstraction module is needed for loading fonts (if any). Export
11741 that as `GRUB_PRELOAD_MODULES'.
11742 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
11745 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
11747 Remove some unused code from reiserfs.
11749 * fs/reiserfs.c (struct grub_reiserfs_key)
11750 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
11751 (struct grub_reiserfs_node_body): Removed.
11752 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11754 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11756 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11758 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11760 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11762 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
11764 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11765 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11766 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11768 2008-01-10 Robert Millan <rmh@aybabtu.com>
11770 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
11771 Determines if a file is garbage left by packaging systems, etc.
11772 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
11773 for processing /etc/grub.d scripts.
11774 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
11775 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
11776 as a condition for processing Linux images.
11778 2008-01-10 Pavel Roskin <proski@gnu.org>
11780 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
11781 to compile reiserfs.c on PowerPC.
11783 2008-01-10 Robert Millan <rmh@aybabtu.com>
11785 * kern/device.c (grub_device_iterate): Do not abort device iteration
11786 when one of the devices cannot be opened.
11787 * kern/disk.c (grub_disk_open): Do not account previous failures of
11788 unrelated functions when grub_errno is checked for.
11790 2008-01-08 Robert Millan <rmh@aybabtu.com>
11792 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
11793 `! grub_linux_is_bzimage', change order of address comparison to make
11794 it more intuitive, and improve "too big zImage" error message.
11796 2008-01-08 Robert Millan <rmh@aybabtu.com>
11798 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
11799 `$(update-grub_DATA)'.
11800 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
11803 2008-01-07 Robert Millan <rmh@aybabtu.com>
11805 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
11806 which instruction is modified by grub-setup during installation
11807 (since it wasn't obvious by only looking at this file).
11809 2008-01-07 Robert Millan <rmh@aybabtu.com>
11811 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
11812 listing actual TODO items.
11814 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11816 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
11818 (grub_reiserfs_get_key_offset): Likewise.
11819 (grub_reiserfs_set_key_offset): Likewise.
11820 (grub_reiserfs_set_key_type): Likewise.
11821 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
11823 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
11824 better to remove the bitfield version completely.
11826 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11828 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
11829 allocated from the heap, due to the fshelp implementation.
11830 (grub_reiserfs_dir): Free NODE, due to the same reason.
11832 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11834 Mostly from Vincent Pelletier:
11836 * fs/reiserfs.c: New file.
11838 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
11839 (reiserfs_mod_SOURCES): New variable.
11840 (reiserfs_mod_CFLAGS): Likewise.
11841 (reiserfs_mod_LDFLAGS): Likewise.
11843 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
11844 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
11845 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
11848 2008-01-06 Robert Millan <rmh@aybabtu.com>
11850 * normal/color.c: Remove `<grub/env.h>'.
11852 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
11854 * include/grub/normal.h: Include <grub/env.h>.
11856 2008-01-05 Robert Millan <rmh@aybabtu.com>
11858 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
11859 usage example with `(hd0,1)'.
11860 Reported by Samuel Thibault.
11862 2008-01-05 Robert Millan <rmh@aybabtu.com>
11864 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
11865 (grub_linux_boot_zimage): Rename to ...
11866 (grub_linux_boot): ... this.
11867 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
11868 (grub_linux_boot_zimage): Conditionalize zImage copy.
11870 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
11871 (grub_linux_boot_bzimage): Remove prototype.
11872 (grub_linux_boot_zimage): Rename to ...
11873 (grub_linux_boot): ... this.
11875 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
11876 (grub_linux_boot): Remove function.
11878 2008-01-05 Robert Millan <rmh@aybabtu.com>
11880 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
11881 (grub_env_write_color_highlight): Likewise.
11882 (grub_wait_after_message): Likewise.
11884 * normal/color.c: New file.
11886 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11887 (normal_mod_DEPENDENCIES): Likewise.
11889 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11890 (normal_mod_DEPENDENCIES): Likewise.
11892 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11893 (normal_mod_DEPENDENCIES): Likewise.
11895 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11896 (normal_mod_DEPENDENCIES): Likewise.
11898 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
11899 for waiting after a message is printed.
11900 * normal/main.c (read_config_file): Likewise.
11901 (grub_normal_init): Register grub_env_write_color_normal() and
11902 grub_env_write_color_highlight() hooks. Mark `color_normal' and
11903 `color_highlight' variables as global.
11905 * normal/menu.c (grub_wait_after_message): New function.
11906 (grub_color_menu_normal): New variable. Replaces ...
11907 (GRUB_COLOR_MENU_NORMAL): ... this macro.
11908 (grub_color_menu_highlight): New variable. Replaces ...
11909 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
11910 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
11911 `GRUB_TERM_COLOR_STANDARD'.
11912 (print_message): Use `grub_setcolorstate' to reload colors. Rename
11913 `normal_code' and `highlight_code' to `old_color_normal' and
11914 `old_color_highlight', respectively.
11915 (grub_menu_init_page): Update colors when drawing the menu, based on
11916 `menu_color_normal' and `menu_color_highlight' variables.
11917 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
11918 a message is printed.
11920 2008-01-05 Robert Millan <rmh@aybabtu.com>
11922 * kern/env.c (grub_env_context_open): Propagate hooks for global
11923 variables to new context.
11925 * kern/main.c (grub_set_root_dev): Export `root' variable.
11927 2008-01-05 Robert Millan <rmh@aybabtu.com>
11929 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
11930 discs unconditionally, since udev and others have options to provide
11933 2008-01-05 Robert Millan <rmh@aybabtu.com>
11935 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
11937 2008-01-04 Christian Franke <franke@computer.org>
11939 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
11942 2008-01-03 Pavel Roskin <proski@gnu.org>
11944 * kern/i386/linuxbios/init.c: Put "void" to all function
11945 declarations with no arguments.
11946 * kern/powerpc/ieee1275/init.c: Likewise.
11947 * term/i386/pc/at_keyboard.c: Likewise.
11948 * term/i386/pc/vga_text.c: Likewise.
11949 * util/grub-mkdevicemap.c: Likewise.
11951 2008-01-02 Robert Millan <rmh@aybabtu.com>
11953 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
11954 message when loaded image is out of bounds.
11955 (grub_multiboot_load_elf64): Likewise.
11957 2008-01-02 Pavel Roskin <proski@gnu.org>
11959 * util/grub.d/10_linux.in: Try version without ".old" when
11960 looking for initrd. It's better to use initrd from the newer
11961 kernel of the same version than no initrd at all.
11963 2008-01-01 Robert Millan <rmh@aybabtu.com>
11965 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
11967 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
11969 * include/grub/video.h: Added grub_video_unmap_color and
11970 grub_video_get_active_render_target.
11971 (grub_video_adapter): Added unmap_color and get_active_render_target.
11973 * video/video.c: Added grub_video_unmap_color and
11974 grub_video_get_active_render_target.
11975 (grub_video_get_info): Changed method to accept NULL pointer as an
11976 argument to allow detection of active video adapter.
11978 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
11979 grub_video_vbe_unmap_color_int.
11980 Added grub_video_vbe_unmap_color and
11981 grub_video_vbe_get_active_render_target.
11982 (grub_video_vbe_adapter): Added unmap_color and
11983 get_active_render_target.
11985 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
11986 with grub_video_vbe_unmap_color_int.
11988 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
11989 (DEFAULT_NORMAL_COLOR): Likewise.
11990 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
11991 (DEFAULT_FG_COLOR): Removed.
11992 (DEFAULT_BG_COLOR): Likewise.
11993 (DEFAULT_CURSOR_COLOR): Changed value.
11994 (grub_virtual_screen): Added standard_color_setting,
11995 normal_color_setting, highlight_color_setting and term_color.
11996 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
11997 (bitmap_width): Added.
11998 (bitmap_height): Likewise.
11999 (bitmap): Likewise.
12000 (set_term_color): Likewise.
12001 (grub_virtual_screen_setup): Changed to use new terminal coloring
12003 (grub_gfxterm_init): Added init for bitmap.
12004 (grub_gfxterm_fini): Added destroy for bitmap.
12005 (redraw_screen_rect): Updated to use background bitmap and new
12007 (scroll_up): Added optimization for case when there is no bitmap.
12008 (grub_gfxterm_cls): Fixed to use correct background color.
12009 (grub_virtual_screen_setcolorstate): Changed to use new terminal
12011 (grub_virtual_screen_setcolor): Likewise.
12012 (grub_virtual_screen_getcolor): Added.
12013 (grub_gfxterm_background_image_cmd): Likewise.
12014 (grub_video_term): Added setcolor and getcolor.
12015 (MOD_INIT): Added registration of background_image command.
12016 (MOD_TERM): Added unregistration for background_image command.
12018 2007-12-30 Pavel Roskin <proski@gnu.org>
12020 * loader/multiboot_loader.c: Fix multiboot command
12021 unregistration. Fix all typos in the word "multiboot".
12023 2007-12-29 Pavel Roskin <proski@gnu.org>
12025 * util/grub.d/10_linux.in: Refactor search for initrd. Add
12026 support for initrd names used in Fedora.
12028 2007-12-26 Bean <bean123ch@gmail.com>
12030 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
12031 (cpio_mod_SOURCES): New variable.
12032 (cpio_mod_CFLAGS): Likewise.
12033 (cpio_mod_LDFLAGS): Likewise.
12035 * fs/cpio.c: New file.
12037 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
12039 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12041 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
12043 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12045 2007-12-25 Robert Millan <rmh@aybabtu.com>
12047 * include/grub/term.h (struct grub_term): Add `getcolor' function.
12048 (grub_getcolor): New function.
12050 * kern/term.c (grub_getcolor): New function.
12051 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
12052 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
12053 (print_entry): Set normal and highlight colors to
12054 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
12055 respectively, before printing and restore them to old
12057 (grub_menu_init_page): Likewise. Fill an additional colored space
12058 that would otherwise be left blank.
12060 * term/efi/console.c (grub_console_getcolor): New function.
12061 (struct grub_console_term.getcolor): New variable.
12062 * term/i386/pc/console.c (grub_console_getcolor): New function.
12063 (struct grub_console_term.getcolor): New variable.
12064 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
12065 (struct grub_console_term.getcolor): New variable.
12067 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
12068 (struct grub_console_term.setcolor): Remove variable.
12069 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
12070 (struct grub_console_term.setcolor): Remove variable.
12071 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
12072 (struct grub_console_term.setcolor): Remove variable.
12073 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
12074 (struct grub_console_term.setcolor): Remove variable.
12076 2007-12-25 Robert Millan <rmh@aybabtu.com>
12078 * configure.ac: Search for possible unifont.hex locations, and
12079 define UNIFONT_HEX if found.
12081 * Makefile.in (UNIFONT_HEX): Define variable.
12082 (DATA): Rename to ...
12083 (PKGLIB): ... this. Update all users.
12084 (PKGDATA): New variable.
12085 (pkgdata_IMAGES): Rename to ...
12086 (pkglib_IMAGES): ... this. Update all users.
12087 (pkgdata_MODULES): Rename to ...
12088 (pkglib_MODULES): ... this. Update all users.
12089 (pkgdata_PROGRAMS): Rename to ...
12090 (pkglib_PROGRAMS): ... this. Update all users.
12091 (pkgdata_DATA): Rename to ...
12092 (pkglib_DATA): ... this. Update all users.
12093 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
12094 (unicode.pff, ascii.pff): New rules.
12095 (all-local): Add `$(PKGDATA)' dependency.
12096 (install-local): Process `$(PKGDATA)'.
12098 * util/update-grub_lib.in (font_path): Search for *.pff files in
12099 a few more locations, including `${pkgdata}'.
12101 2007-12-23 Robert Millan <rmh@aybabtu.com>
12103 Patch from Bean <bean123ch@gmail.com>:
12104 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
12107 2007-12-21 Bean <bean123ch@gmail.com>
12109 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
12110 (ntfscomp_mod_SOURCES): New variable.
12111 (ntfscomp_mod_CFLAGS): Likewise.
12112 (ntfscomp_mod_LDFLAGS): Likewise.
12114 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
12115 (grub_probe_SOURCES): Likewise.
12116 (grub_emu_SOURCES): Likewise.
12118 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12119 (grub_emu_SOURCES): Likewise.
12121 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12122 (grub_emu_SOURCES): Likewise.
12124 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12125 (grub_emu_SOURCES): Likewise.
12127 * fs/ntfs.c (grub_ntfscomp_func): New variable.
12128 (read_run_list): Renamed to grub_ntfs_read_run_list.
12129 (decomp_nextvcn): Moved to ntfscomp.c.
12130 (decomp_getch): Likewise.
12131 (decomp_get16): Likewise.
12132 (decomp_block): Likewise.
12133 (read_block): Likewise.
12134 (read_data): Partially moved to ntfscomp.c.
12135 (fixup): Change unsigned to grub_uint16_t.
12136 (read_mft): Change unsigned long to grub_uint32_t.
12137 (read_attr): Likewise.
12138 (read_data): Likewise.
12139 (read_run_data): Likewise.
12140 (read_run_list): Likewise.
12141 (read_mft): Likewise.
12143 * fs/ntfscomp.c: New file.
12145 * include/grub/ntfs.h: New file.
12147 2007-12-16 Robert Millan <rmh@aybabtu.com>
12149 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
12150 IDE disk check, since Linux is known to support 20 IDE disks.
12151 Reported by Colin Watson.
12153 2007-12-15 Bean <bean123ch@gmail.com>
12155 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
12156 (lnxboot_img_SOURCES): New variable.
12157 (lnxboot_img_ASFLAGS): Likewise.
12158 (lnxboot_img_LDFLAGS): Likewise.
12160 * boot/i386/pc/lnxboot.S: New file.
12162 2007-11-24 Pavel Roskin <proski@gnu.org>
12164 * configure.ac: Test if '--build-id=none' is supported by the
12165 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
12166 objcopy to generate incorrect binary files (binutils
12167 2.17.50.0.18-1 as shipped by Fedora 8).
12168 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
12169 linking, so that build ID doesn't break the test.
12171 2007-11-24 Pavel Roskin <proski@gnu.org>
12173 * include/grub/i386/time.h: use "void" in the argument list
12174 of grub_cpu_idle().
12175 * include/grub/powerpc/time.h: Likewise.
12176 * include/grub/sparc64/time.h: Likewise.
12178 2007-11-18 Christian Franke <franke@computer.org>
12180 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
12181 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
12182 This fixes the problem that function keys did not work in grub-emu.
12184 2007-11-18 Christian Franke <franke@computer.org>
12186 * disk/host.c (grub_host_open): Remove attribute unused from
12187 name parameter. Add check for "host". This fixes the problem
12188 that grub-emu does not find partitions.
12190 2007-11-18 Christian Franke <franke@computer.org>
12192 * util/hostfs.c (is_dir): New function.
12193 (grub_hostfs_dir): Handle missing dirent.d_type case.
12194 (grub_hostfs_read): Add missing fseek().
12195 (grub_hostfs_label): Clear label pointer. This fixes a crash
12196 of grub-emu on "ls (host)".
12198 2007-11-18 Christian Franke <franke@computer.org>
12200 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
12201 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
12202 to 64 bit boundary by default.
12204 2007-11-18 Bean <bean123ch@gmail.com>
12206 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
12207 (hexdump_mod_SOURCES): New variable.
12208 (hexdump_mod_CFLAGS): Likewise.
12209 (hexdump_mod_LDFLAGS): Likewise.
12211 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12213 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12215 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12217 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12219 * include/grub/hexdump.h: New file.
12221 * commands/hexdump.c: New file.
12223 2007-11-10 Robert Millan <rmh@aybabtu.com>
12225 * commands/i386/pc/play.c (beep_off): Switch order of arguments
12226 in grub_outb() calls.
12227 (beep_on): Likewise.
12229 2007-11-10 Christian Franke <franke@computer.org>
12231 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
12232 (grub_menu_run): Likewise.
12234 2007-11-10 Robert Millan <rmh@aybabtu.com>
12236 * include/grub/i386/efi/machine.h: New file.
12237 * include/grub/i386/linuxbios/machine.h: Likewise.
12238 * include/grub/i386/pc/machine.h: Likewise.
12239 * include/grub/powerpc/ieee1275/machine.h: Likewise.
12240 * include/grub/sparc64/ieee1275/machine.h: Likewise.
12242 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
12243 (serial_hw_io_addr): New variable.
12244 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
12245 instead of `(unsigned short *) 0x400'.
12247 2007-11-10 Bean <bean123ch@gmail.com>
12249 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
12251 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12253 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
12254 (vga_mod_SOURCES): Added.
12255 (vga_mod_CFLAGS): Likewise.
12256 (vga_mod_LDFLAGS): Likewise.
12258 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
12260 (set_map_mask): Likewise.
12261 (set_read_map): Likewise.
12262 (set_read_address): Likewise.
12263 (vga_font): Removed variable.
12264 (get_vga_glyph): Removed function.
12265 (invalidate_char): Likewise.
12266 (write_char): Changed to use grub_font_get_glyph() for font
12268 (grub_vga_putchar): Likewise.
12269 (grub_vga_getcharwidth): Likewise.
12271 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12273 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
12275 (pxeboot_img_LDFLAGS): Likewise.
12276 (diskboot_img_LDFLAGS): Likewise.
12277 (kernel_img_LDFLAGS): Likewise.
12279 2007-11-06 Robert Millan <rmh@aybabtu.com>
12281 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
12282 in grub_outb() calls.
12283 (serial_hw_init): Likewise.
12285 2007-11-05 Robert Millan <rmh@aybabtu.com>
12287 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
12288 spaces. Skip non-regular files.
12290 2007-11-05 Robert Millan <rmh@aybabtu.com>
12292 * kern/disk.c (grub_disk_firmware_fini)
12293 (grub_disk_firmware_is_tainted): New variables.
12295 * include/grub/disk.h (grub_disk_firmware_fini)
12296 (grub_disk_firmware_is_tainted): Likewise.
12298 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
12299 (grub_disk_biosdisk_fini): ... to here.
12300 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
12301 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
12302 is set. Register grub_disk_biosdisk_fini() in
12303 `grub_disk_firmware_fini'.
12305 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
12306 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
12307 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
12308 to finish existing firmware disk interface.
12310 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
12311 (ata_mod_SOURCES): New variable.
12312 (ata_mod_CFLAGS): Likewise.
12313 (ata_mod_LDFLAGS): Likewise.
12315 2007-11-05 Robert Millan <rmh@aybabtu.com>
12317 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
12318 (grub_ata_wait): Reimplement using grub_millisleep().
12320 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
12321 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
12323 2007-11-03 Marco Gerards <marco@gnu.org>
12325 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
12326 (CRTC_ADDR_PORT): New macro.
12327 (CRTC_DATA_PORT): Likewise.
12328 (CRTC_CURSOR): Likewise.
12329 (CRTC_CURSOR_ADDR_HIGH): Likewise.
12330 (CRTC_CURSOR_ADDR_LOW): Likewise.
12331 (update_cursor): New function.
12332 (grub_console_real_putchar): Call `update_cursor'.
12333 (grub_console_gotoxy): Likewise.
12334 (grub_console_cls): Set the default color when clearing the
12336 (grub_console_setcursor): Implemented.
12338 2007-11-03 Marco Gerards <marco@gnu.org>
12340 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
12342 (grub_ata_pio_write): Likewise.
12344 (grub_atapi_identify): Wait after issuing an ATA command.
12345 (grub_atapi_packet): Likewise.
12346 (grub_ata_identify): Likewise.
12347 (grub_ata_readwrite): Likewise.
12349 2007-11-03 Marco Gerards <marco@gnu.org>
12351 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
12352 (grub_ata_pio_write): Likewise.
12353 (grub_ata_readwrite): Use `grub_error', instead of
12354 returning `grub_errno'.
12356 2007-11-03 Marco Gerards <marco@gnu.org>
12358 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
12359 grub_ata_pio_write once for every single sector, instead of for
12362 2007-10-31 Robert Millan <rmh@aybabtu.com>
12364 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
12366 * conf/i386-linuxbios.rmk: New file.
12368 * kern/i386/pc/hardware.c: Likewise.
12369 * term/i386/pc/at_keyboard.c: Likewise.
12370 * term/i386/pc/vga_text.c: Likewise.
12372 * include/grub/i386/linuxbios/boot.h: Likewise.
12373 * include/grub/i386/linuxbios/console.h: Likewise.
12374 * include/grub/i386/linuxbios/init.h: Likewise.
12375 * include/grub/i386/linuxbios/kernel.h: Likewise.
12376 * include/grub/i386/linuxbios/loader.h: Likewise.
12377 * include/grub/i386/linuxbios/memory.h: Likewise.
12378 * include/grub/i386/linuxbios/serial.h: Likewise.
12379 * include/grub/i386/linuxbios/time.h: Likewise.
12381 * kern/i386/linuxbios/init.c: Likewise.
12382 * kern/i386/linuxbios/startup.S: Likewise.
12383 * kern/i386/linuxbios/table.c: Likewise.
12385 2007-10-31 Marco Gerards <marco@gnu.org>
12387 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
12388 (ata_mod_SOURCES): New variable.
12389 (ata_mod_CFLAGS): Likewise.
12390 (ata_mod_LDFLAGS): Likewise.
12392 * disk/ata.c: New file.
12394 * include/grub/disk.h (grub_disk_dev_id): Add
12395 `GRUB_DISK_DEV_ATA_ID'.
12397 2007-10-31 Robert Millan <rmh@aybabtu.com>
12399 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
12400 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
12402 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
12403 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
12405 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
12408 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
12410 2007-10-27 Robert Millan <rmh@aybabtu.com>
12412 * include/grub/types.h (ULONG_MAX): Define macro.
12414 2007-10-22 Robert Millan <rmh@aybabtu.com>
12416 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
12418 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
12420 2007-10-22 Robert Millan <rmh@aybabtu.com>
12422 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
12423 (pkgdata_MODULES): Add `biosdisk.mod'.
12424 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
12427 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
12428 (grub_biosdisk_init): Replace with ...
12429 (GRUB_MOD_INIT(biosdisk)): ... this.
12430 (grub_biosdisk_fini): Replace with ...
12431 (GRUB_MOD_FINI(biosdisk)): ... this.
12433 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
12434 (grub_machine_init): Remove call to grub_biosdisk_init().
12435 (grub_machine_fini): Remove call to grub_machine_fini().
12437 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
12439 2007-10-22 Robert Millan <rmh@aybabtu.com>
12441 * include/grub/time.h: New file.
12442 * include/grub/i386/time.h: Likewise.
12443 * include/grub/powerpc/time.h: Likewise.
12444 * include/grub/sparc64/time.h: Likewise.
12446 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
12448 (KERNEL_MACHINE_TIME_HEADER): ... this.
12449 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12451 (KERNEL_MACHINE_TIME_HEADER): ... this.
12452 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12454 (KERNEL_MACHINE_TIME_HEADER): ... this.
12456 * kern/i386/efi/init.c: Include `<grub/time.h>'.
12457 (grub_millisleep): New function.
12458 * kern/i386/pc/init.c: Include `<grub/time.h>'.
12459 (grub_millisleep): New function.
12460 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
12461 Remove `grub/machine/time.h' include.
12462 (grub_millisleep): New function.
12463 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
12464 Remove `grub/machine/time.h' include.
12465 (grub_millisleep): New function.
12467 * include/grub/misc.h (grub_div_roundup): New function.
12469 * kern/misc.c: Include `<grub/time.h>'.
12470 (grub_millisleep_generic): New function.
12472 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
12474 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
12476 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
12477 `machine/time.h'. Add `time.h'.
12478 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
12480 2007-10-21 Robert Millan <rmh@aybabtu.com>
12482 * include/grub/misc.h (grub_max): New function.
12484 2007-10-21 Robert Millan <rmh@aybabtu.com>
12486 * util/misc.c (grub_util_info): Call fflush() before returning.
12488 2007-10-20 Robert Millan <rmh@aybabtu.com>
12490 * genmk.rb (Image): Copy `extra_flags' from here ...
12491 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
12493 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
12494 to `argc' and `args' arguments.
12496 2007-10-17 Robert Millan <rmh@aybabtu.com>
12498 * kern/i386/loader.S: New file.
12500 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
12501 * kern/i386/loader.S (grub_linux_prot_size)... to here.
12502 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
12503 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
12504 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
12505 * kern/i386/loader.S (grub_linux_real_addr)... to here.
12506 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
12507 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
12508 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
12509 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
12510 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
12511 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
12512 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
12513 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
12515 * kern/i386/realmode.S: New file.
12517 * kern/i386/pc/startup.S (protstack): Moved from here ...
12518 * kern/i386/realmode.S (protstack)... to here.
12519 * kern/i386/pc/startup.S (gdt): Moved from here ...
12520 * kern/i386/realmode.S (gdt)... to here.
12521 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
12522 * kern/i386/realmode.S (prot_to_real)... to here.
12524 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
12525 `kern/i386/realmode.S'.
12527 2007-10-17 Robert Millan <rmh@aybabtu.com>
12529 * include/grub/i386/loader.h: New file.
12531 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
12532 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12533 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12534 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12535 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
12536 * include/grub/i386/loader.h (grub_linux_prot_size)
12537 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12538 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12539 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12540 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
12542 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
12544 2007-10-15 Robert Millan <rmh@aybabtu.com>
12546 * normal/misc.c (grub_normal_print_device_info): Do not probe for
12547 filesystem when dev->disk is unset.
12548 Do probe for filesystem even when dev->disk->has_partitions is set.
12549 In case a filesystem is found, always report it.
12550 In case it isn't, if dev->disk->has_partitions is set, report that
12551 a partition table was found instead of reporting that no filesystem
12552 could be identified.
12554 2007-10-12 Robert Millan <rmh@aybabtu.com>
12556 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
12557 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
12559 * include/grub/types.h (grub_host_to_target16): New macro.
12560 (grub_host_to_target32): Likewise.
12561 (grub_host_to_target64): Likewise.
12562 (grub_target_to_host16): Likewise.
12563 (grub_target_to_host32): Likewise.
12564 (grub_target_to_host64): Likewise.
12566 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
12567 Renamed from to ...
12568 (GRUB_MOD_ALIGN): ...this. Update all users.
12570 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
12571 grub_host_to_target32.
12572 Replace grub_be_to_cpu32 with grub_target_to_host32.
12573 (load_modules): Likewise.
12574 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
12575 Replace grub_be_to_cpu32 with grub_target_to_host32.
12576 Replace grub_cpu_to_be16 with grub_host_to_target16.
12577 Replace grub_cpu_to_be32 grub_host_to_target32.
12579 2007-10-12 Robert Millan <rmh@aybabtu.com>
12581 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
12582 * util/elf/grub-mkimage.c: ... here.
12584 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
12585 `util/powerpc/ieee1275/grub-mkimage.c'.
12587 2007-10-07 Robert Millan <rmh@aybabtu.com>
12589 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
12590 and make it easier to figure out.
12591 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
12592 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
12593 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
12594 leave us with less than HEAP_MIN_SIZE total heap.
12595 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
12597 2007-10-03 Robert Millan <rmh@aybabtu.com>
12599 * include/grub/i386/io.h: New file.
12600 * commands/i386/pc/play.c (inb): Removed.
12602 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12604 * term/i386/pc/serial.c (inb): Removed.
12606 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12608 * term/i386/pc/vga.c (inb): Removed.
12610 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12613 2007-10-02 Robert Millan <rmh@aybabtu.com>
12615 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
12616 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12617 Reported by Marcin Kurek.
12619 2007-09-07 Robert Millan <rmh@aybabtu.com>
12621 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
12622 SmartFirmware version updates (as released by Sven Luther), and avoid
12623 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
12624 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
12627 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12629 From Hitoshi Ozeki:
12630 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
12631 when merging two regions.
12633 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12635 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
12636 * normal/completion.c (grub_normal_do_completion): Likewise.
12637 Reported by Hitoshi Ozeki.
12639 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12641 Do not use devices at boot in chainloading.
12643 * loader/i386/pc/chainloader.c (boot_drive): New variable.
12644 (boot_part_addr): Likewise.
12645 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
12646 with BOOT_DRIVE and BOOT_PART_ADDR.
12647 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
12648 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
12650 2007-08-29 Robert Millan <rmh@aybabtu.com>
12652 Patch from Simon Peter <dn.tlp@gmx.net>:
12653 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
12654 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
12655 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
12656 util/i386/pc/grub-setup.c_DEPENDENCIES.
12657 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
12658 util/grub-probe.c_DEPENDENCIES.
12659 * conf/powerpc-ieee1275.rmk: Likewise.
12661 2007-08-28 Robert Millan <rmh@aybabtu.com>
12663 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
12664 to tell grub-mkdevicemap how to name devices.
12665 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
12668 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
12669 util/i386/get_disk_name.c.
12670 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
12671 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
12672 util/ieee1275/get_disk_name.c.
12674 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
12676 * DISTLIST: Add util/i386/get_disk_name.c and
12677 util/ieee1275/get_disk_name.c.
12679 * util/grub-mkdevicemap.c: Replace device naming logic with
12680 grub_util_get_disk_name() calls.
12682 2007-08-20 Robert Millan <rmh@aybabtu.com>
12684 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
12685 (so that it works for both plural and singular quantities).
12687 2007-08-05 Robert Millan <rmh@aybabtu.com>
12689 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
12690 so that [xz] isn't taken into account when determining order.
12692 2007-08-02 Marco Gerards <marco@gnu.org>
12694 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
12695 `include/multiboot2.h', `include/grub/elfload.h',
12696 `include/multiboot.h', `include/grub/multiboot.h',
12697 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
12698 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
12699 `kern/elf.c', `loader/multiboot_loader.c',
12700 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
12701 `loader/i386/pc/multiboot2.c',
12702 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
12703 `util/i386/pc/grub-mkrescue.in'. Remove
12704 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
12705 `include/grub/i386/pc/util/biosdisk.h' and
12706 `include/grub/powerpc/ieee1275/multiboot.h'.
12708 2007-08-02 Bean <bean123ch@gmail.com>
12710 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
12711 (ntfs_mod_SOURCES): New variable.
12712 (ntfs_mod_CFLAGS): Likewise.
12713 (ntfs_mod_LDFLAGS): Likewise.
12715 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
12716 (grub_probe_SOURCES): Likewise.
12717 (grub_emu_SOURCES): Likewise.
12719 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12720 (grub_emu_SOURCES): Likewise.
12722 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12723 (grub_emu_SOURCES): Likewise.
12725 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
12727 * fs/ntfs.c: New file.
12729 2007-08-02 Bean <bean123ch@gmail.com>
12731 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
12733 * file.h (grub_file): Likewise.
12735 * fshelp.h (grub_fshelp_read_file): Likewise.
12737 * util/i386/pc/grub-setup.c (setup): Likewise.
12738 (save_first_sector): Likewise.
12739 (save_blocklists): Likewise.
12741 * fs/affs.c (grub_affs_read_file): Likewise.
12743 * fs/ext2.c (grub_ext2_read_file): Likewise.
12745 * fs/fat.c (grub_fat_read_data): Likewise.
12747 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
12749 * fs/hfs.c (grub_hfs_read_file): Likewise.
12751 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
12753 * fs/jfs.c (grub_jfs_read_file): Likewise.
12755 * fs/minix.c (grub_minix_read_file): Likewise.
12757 * fs/sfs.c (grub_sfs_read_file): Likewise.
12759 * fs/ufs.c (grub_ufs_read_file): Likewise.
12761 * fs/xfs.c (grub_xfs_read_file): Likewise.
12763 * command/blocklist.c (read_blocklist): Likewise.
12764 (print_blocklist): Likewise.
12766 2007-08-02 Marco Gerards <marco@gnu.org>
12768 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
12771 * disk/host.c: New file.
12773 * util/hostfs.c: Likewise.
12775 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
12776 return `GRUB_ERR_BAD_FS'.
12777 * fs/sfs.c (grub_sfs_mount): Likewise.
12778 * fs/xfs.c (grub_xfs_mount): Likewise.
12780 * include/grub/disk.h (enum grub_disk_dev_id): Add
12781 `GRUB_DISK_DEVICE_HOST_ID'.
12783 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
12785 2007-07-24 Jerone Young <jerone@gmail.com>
12787 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
12788 modules for compilation.
12789 * conf/powerpc-ieee1275.rmk: Likewise.
12791 * include/multiboot.h: Move multiboot definitions to one file. Rename
12792 many definitions to not get grub specific.
12793 * include/multiboot2.h: Create header with multiboot 2 definitions.
12794 * include/grub/multiboot.h: Header for grub specific function
12795 prototypes and definitions.
12796 * include/grub/multiboot2.h: Likewise.
12797 * include/grub/multiboot_loader.h: Likewise.
12798 * include/grub/i386/pc/multiboot.h: Removed.
12799 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
12801 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
12802 and 2 to allow for one multiboot and module commands.
12803 * loader/multiboot2.c: Add multiboot2 functionality.
12804 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
12805 and definition names.
12806 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
12808 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
12809 ieee1275 specific multiboot2 code.
12811 * kern/i386/pc/startup.S: Change headers and definition names for
12812 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
12814 2007-07-22 Robert Millan <rmh@aybabtu.com>
12816 * geninitheader.sh: Process file specified in first parameter rather
12817 than hardcoding grub_modules_init.lst.
12818 * geninit.sh: Likewise. Also, construct header name dynamically rather
12819 than hardcoding grub_modules_init.h.
12821 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
12822 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
12823 grub_probe_init.[ch] and grub_setup_init.[ch].
12825 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
12826 grub_modules_init.h with grub_emu_init.h.
12827 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
12828 grub_probe_init.[ch] files.
12829 * conf/i386-efi.rmk: Likewise.
12830 * conf/i386-pc.rmk: Likewise.
12831 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
12832 grub_setup_init.[ch] files.
12834 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
12835 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
12836 to initialize modules rather than a list of hardcoded functions.
12837 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
12838 grub_init_all() to initialize modules rather than a list of hardcoded
12841 2007-07-22 Robert Millan <rmh@aybabtu.com>
12843 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12844 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
12846 2007-07-22 Robert Millan <rmh@aybabtu.com>
12848 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
12849 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
12850 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
12851 flag when running on SmartFirmware.
12852 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
12853 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
12856 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12857 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
12858 rather than decreasing it.
12860 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
12861 there's not enough space to do it, fail in the same way as when it
12862 can't be done because there are no partitions.
12864 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
12865 when nvsetenv failed.
12867 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12869 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
12870 because this rule is automatically generated.
12871 (grub-mkrescue): Removed for the same reason as above.
12873 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12875 Migrate to GNU General Public License Version 3.
12877 * COPYING: Replaced with the plain text version of GPLv3.
12879 * config.guess: Updated from gnulib.
12880 * config.sub: Likewise.
12882 * geninit.sh: Output a GPLv3 copyright notice.
12883 * geninitheader.sh: Likewise.
12884 * genmodsrc.sh: Likewise.
12885 * gensymlist.sh.in: Likewise.
12887 * boot/i386/pc/boot.S: Upgraded to GPLv3.
12888 * boot/i386/pc/diskboot.S: Likewise.
12889 * boot/i386/pc/pxeboot.S: Likewise.
12890 * commands/blocklist.c: Likewise.
12891 * commands/boot.c: Likewise.
12892 * commands/cat.c: Likewise.
12893 * commands/cmp.c: Likewise.
12894 * commands/configfile.c: Likewise.
12895 * commands/echo.c: Likewise.
12896 * commands/help.c: Likewise.
12897 * commands/ls.c: Likewise.
12898 * commands/search.c: Likewise.
12899 * commands/terminal.c: Likewise.
12900 * commands/test.c: Likewise.
12901 * commands/videotest.c: Likewise.
12902 * commands/i386/cpuid.c: Likewise.
12903 * commands/i386/pc/halt.c: Likewise.
12904 * commands/i386/pc/play.c: Likewise.
12905 * commands/i386/pc/reboot.c: Likewise.
12906 * commands/i386/pc/vbeinfo.c: Likewise.
12907 * commands/i386/pc/vbetest.c: Likewise.
12908 * commands/ieee1275/halt.c: Likewise.
12909 * commands/ieee1275/reboot.c: Likewise.
12910 * commands/ieee1275/suspend.c: Likewise.
12911 * disk/loopback.c: Likewise.
12912 * disk/lvm.c: Likewise.
12913 * disk/raid.c: Likewise.
12914 * disk/efi/efidisk.c: Likewise.
12915 * disk/i386/pc/biosdisk.c: Likewise.
12916 * disk/ieee1275/ofdisk.c: Likewise.
12917 * font/manager.c: Likewise.
12918 * fs/affs.c: Likewise.
12919 * fs/ext2.c: Likewise.
12920 * fs/fat.c: Likewise.
12921 * fs/fshelp.c: Likewise.
12922 * fs/hfs.c: Likewise.
12923 * fs/hfsplus.c: Likewise.
12924 * fs/iso9660.c: Likewise.
12925 * fs/jfs.c: Likewise.
12926 * fs/minix.c: Likewise.
12927 * fs/sfs.c: Likewise.
12928 * fs/ufs.c: Likewise.
12929 * fs/xfs.c: Likewise.
12930 * hello/hello.c: Likewise.
12931 * include/grub/acorn_filecore.h: Likewise.
12932 * include/grub/arg.h: Likewise.
12933 * include/grub/bitmap.h: Likewise.
12934 * include/grub/boot.h: Likewise.
12935 * include/grub/cache.h: Likewise.
12936 * include/grub/device.h: Likewise.
12937 * include/grub/disk.h: Likewise.
12938 * include/grub/dl.h: Likewise.
12939 * include/grub/elfload.h: Likewise.
12940 * include/grub/env.h: Likewise.
12941 * include/grub/err.h: Likewise.
12942 * include/grub/file.h: Likewise.
12943 * include/grub/font.h: Likewise.
12944 * include/grub/fs.h: Likewise.
12945 * include/grub/fshelp.h: Likewise.
12946 * include/grub/gzio.h: Likewise.
12947 * include/grub/hfs.h: Likewise.
12948 * include/grub/kernel.h: Likewise.
12949 * include/grub/loader.h: Likewise.
12950 * include/grub/lvm.h: Likewise.
12951 * include/grub/misc.h: Likewise.
12952 * include/grub/mm.h: Likewise.
12953 * include/grub/net.h: Likewise.
12954 * include/grub/normal.h: Likewise.
12955 * include/grub/parser.h: Likewise.
12956 * include/grub/partition.h: Likewise.
12957 * include/grub/pc_partition.h: Likewise.
12958 * include/grub/raid.h: Likewise.
12959 * include/grub/rescue.h: Likewise.
12960 * include/grub/script.h: Likewise.
12961 * include/grub/setjmp.h: Likewise.
12962 * include/grub/symbol.h: Likewise.
12963 * include/grub/term.h: Likewise.
12964 * include/grub/terminfo.h: Likewise.
12965 * include/grub/tparm.h: Likewise.
12966 * include/grub/types.h: Likewise.
12967 * include/grub/video.h: Likewise.
12968 * include/grub/efi/api.h: Likewise.
12969 * include/grub/efi/chainloader.h: Likewise.
12970 * include/grub/efi/console.h: Likewise.
12971 * include/grub/efi/console_control.h: Likewise.
12972 * include/grub/efi/disk.h: Likewise.
12973 * include/grub/efi/efi.h: Likewise.
12974 * include/grub/efi/pe32.h: Likewise.
12975 * include/grub/efi/time.h: Likewise.
12976 * include/grub/i386/linux.h: Likewise.
12977 * include/grub/i386/setjmp.h: Likewise.
12978 * include/grub/i386/types.h: Likewise.
12979 * include/grub/i386/efi/kernel.h: Likewise.
12980 * include/grub/i386/efi/loader.h: Likewise.
12981 * include/grub/i386/efi/time.h: Likewise.
12982 * include/grub/i386/pc/biosdisk.h: Likewise.
12983 * include/grub/i386/pc/boot.h: Likewise.
12984 * include/grub/i386/pc/chainloader.h: Likewise.
12985 * include/grub/i386/pc/console.h: Likewise.
12986 * include/grub/i386/pc/init.h: Likewise.
12987 * include/grub/i386/pc/kernel.h: Likewise.
12988 * include/grub/i386/pc/loader.h: Likewise.
12989 * include/grub/i386/pc/memory.h: Likewise.
12990 * include/grub/i386/pc/multiboot.h: Likewise.
12991 * include/grub/i386/pc/serial.h: Likewise.
12992 * include/grub/i386/pc/time.h: Likewise.
12993 * include/grub/i386/pc/vbe.h: Likewise.
12994 * include/grub/i386/pc/vbeblit.h: Likewise.
12995 * include/grub/i386/pc/vbefill.h: Likewise.
12996 * include/grub/i386/pc/vbeutil.h: Likewise.
12997 * include/grub/i386/pc/vga.h: Likewise.
12998 * include/grub/ieee1275/ieee1275.h: Likewise.
12999 * include/grub/ieee1275/ofdisk.h: Likewise.
13000 * include/grub/powerpc/libgcc.h: Likewise.
13001 * include/grub/powerpc/setjmp.h: Likewise.
13002 * include/grub/powerpc/types.h: Likewise.
13003 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
13004 * include/grub/powerpc/ieee1275/console.h: Likewise.
13005 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
13006 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
13007 * include/grub/powerpc/ieee1275/loader.h: Likewise.
13008 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
13009 * include/grub/powerpc/ieee1275/time.h: Likewise.
13010 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
13011 * include/grub/sparc64/libgcc.h: Likewise.
13012 * include/grub/sparc64/setjmp.h: Likewise.
13013 * include/grub/sparc64/types.h: Likewise.
13014 * include/grub/sparc64/ieee1275/console.h: Likewise.
13015 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
13016 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13017 * include/grub/sparc64/ieee1275/time.h: Likewise.
13018 * include/grub/util/biosdisk.h: Likewise.
13019 * include/grub/util/getroot.h: Likewise.
13020 * include/grub/util/lvm.h: Likewise.
13021 * include/grub/util/misc.h: Likewise.
13022 * include/grub/util/raid.h: Likewise.
13023 * include/grub/util/resolve.h: Likewise.
13024 * io/gzio.c: Likewise.
13025 * kern/device.c: Likewise.
13026 * kern/disk.c: Likewise.
13027 * kern/dl.c: Likewise.
13028 * kern/elf.c: Likewise.
13029 * kern/env.c: Likewise.
13030 * kern/err.c: Likewise.
13031 * kern/file.c: Likewise.
13032 * kern/fs.c: Likewise.
13033 * kern/loader.c: Likewise.
13034 * kern/main.c: Likewise.
13035 * kern/misc.c: Likewise.
13036 * kern/mm.c: Likewise.
13037 * kern/parser.c: Likewise.
13038 * kern/partition.c: Likewise.
13039 * kern/rescue.c: Likewise.
13040 * kern/term.c: Likewise.
13041 * kern/efi/efi.c: Likewise.
13042 * kern/efi/init.c: Likewise.
13043 * kern/efi/mm.c: Likewise.
13044 * kern/i386/dl.c: Likewise.
13045 * kern/i386/efi/init.c: Likewise.
13046 * kern/i386/efi/startup.S: Likewise.
13047 * kern/i386/pc/init.c: Likewise.
13048 * kern/i386/pc/lzo1x.S: Likewise.
13049 * kern/i386/pc/startup.S: Likewise.
13050 * kern/ieee1275/ieee1275.c: Likewise.
13051 * kern/powerpc/cache.S: Likewise.
13052 * kern/powerpc/dl.c: Likewise.
13053 * kern/powerpc/ieee1275/cmain.c: Likewise.
13054 * kern/powerpc/ieee1275/crt0.S: Likewise.
13055 * kern/powerpc/ieee1275/init.c: Likewise.
13056 * kern/powerpc/ieee1275/openfw.c: Likewise.
13057 * kern/sparc64/cache.S: Likewise.
13058 * kern/sparc64/dl.c: Likewise.
13059 * kern/sparc64/ieee1275/init.c: Likewise.
13060 * kern/sparc64/ieee1275/openfw.c: Likewise.
13061 * loader/efi/chainloader.c: Likewise.
13062 * loader/efi/chainloader_normal.c: Likewise.
13063 * loader/i386/efi/linux.c: Likewise.
13064 * loader/i386/efi/linux_normal.c: Likewise.
13065 * loader/i386/pc/chainloader.c: Likewise.
13066 * loader/i386/pc/chainloader_normal.c: Likewise.
13067 * loader/i386/pc/linux.c: Likewise.
13068 * loader/i386/pc/linux_normal.c: Likewise.
13069 * loader/i386/pc/multiboot.c: Likewise.
13070 * loader/i386/pc/multiboot_normal.c: Likewise.
13071 * loader/powerpc/ieee1275/linux.c: Likewise.
13072 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13073 * normal/arg.c: Likewise.
13074 * normal/cmdline.c: Likewise.
13075 * normal/command.c: Likewise.
13076 * normal/completion.c: Likewise.
13077 * normal/execute.c: Likewise.
13078 * normal/function.c: Likewise.
13079 * normal/lexer.c: Likewise.
13080 * normal/main.c: Likewise.
13081 * normal/menu.c: Likewise.
13082 * normal/menu_entry.c: Likewise.
13083 * normal/misc.c: Likewise.
13084 * normal/parser.y: Likewise.
13085 * normal/script.c: Likewise.
13086 * normal/i386/setjmp.S: Likewise.
13087 * normal/powerpc/setjmp.S: Likewise.
13088 * normal/sparc64/setjmp.S: Likewise.
13089 * partmap/acorn.c: Likewise.
13090 * partmap/amiga.c: Likewise.
13091 * partmap/apple.c: Likewise.
13092 * partmap/gpt.c: Likewise.
13093 * partmap/pc.c: Likewise.
13094 * partmap/sun.c: Likewise.
13095 * term/gfxterm.c: Likewise.
13096 * term/terminfo.c: Likewise.
13097 * term/efi/console.c: Likewise.
13098 * term/i386/pc/console.c: Likewise.
13099 * term/i386/pc/serial.c: Likewise.
13100 * term/i386/pc/vesafb.c: Likewise.
13101 * term/i386/pc/vga.c: Likewise.
13102 * term/ieee1275/ofconsole.c: Likewise.
13103 * util/biosdisk.c: Likewise.
13104 * util/console.c: Likewise.
13105 * util/genmoddep.c: Likewise.
13106 * util/getroot.c: Likewise.
13107 * util/grub-emu.c: Likewise.
13108 * util/grub-mkdevicemap.c: Likewise.
13109 * util/grub-probe.c: Likewise.
13110 * util/lvm.c: Likewise.
13111 * util/misc.c: Likewise.
13112 * util/raid.c: Likewise.
13113 * util/resolve.c: Likewise.
13114 * util/update-grub.in: Likewise.
13115 * util/update-grub_lib.in: Likewise.
13116 * util/grub.d/00_header.in: Likewise.
13117 * util/grub.d/10_hurd.in: Likewise.
13118 * util/grub.d/10_linux.in: Likewise.
13119 * util/i386/efi/grub-install.in: Likewise.
13120 * util/i386/efi/grub-mkimage.c: Likewise.
13121 * util/i386/pc/grub-install.in: Likewise.
13122 * util/i386/pc/grub-mkimage.c: Likewise.
13123 * util/i386/pc/grub-mkrescue.in: Likewise.
13124 * util/i386/pc/grub-setup.c: Likewise.
13125 * util/i386/pc/misc.c: Likewise.
13126 * util/powerpc/ieee1275/grub-install.in: Likewise.
13127 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
13128 * util/powerpc/ieee1275/misc.c: Likewise.
13129 * video/bitmap.c: Likewise.
13130 * video/video.c: Likewise.
13131 * video/i386/pc/vbe.c: Likewise.
13132 * video/i386/pc/vbeblit.c: Likewise.
13133 * video/i386/pc/vbefill.c: Likewise.
13134 * video/i386/pc/vbeutil.c: Likewise.
13135 * video/readers/tga.c: Likewise.
13137 2007-07-02 Robert Millan <rmh@aybabtu.com>
13139 * conf/i386-efi.rmk: Replace obsolete reference to
13140 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
13141 with util/getroot.c.
13142 * conf/powerpc-ieee1275.rmk: Likewise.
13143 * conf/sparc64-ieee1275.rmk: Likewise.
13145 * util/grub-emu.c (main): Fix unchecked pointer handling.
13147 2007-07-02 Robert Millan <rmh@aybabtu.com>
13149 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
13150 invocation to fail, in order to support partition-less media.
13152 * util/i386/pc/grub-install.in: Likewise.
13154 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
13155 which fs or partmap modules are needed (akin to its sister scripts).
13157 Also use grub-probe to get rid of unportable /proc/mounts check.
13159 Print the same informational message that the other scripts do, before
13162 2007-06-23 Robert Millan <rmh@aybabtu.com>
13164 * util/update-grub_lib.in (font_path): New function. Determine whether
13165 a font file can be found and, if so, echo the GRUB path to it.
13167 * util/update-grub.in: Handle multiple terminals depending on user
13168 input, platform availability and font file presence. Propagate
13169 variables of our findings to /etc/grub.d/ children.
13171 * util/grub.d/00_header.in: Handle multiple terminals, based on
13172 environment setup by update-grub.
13174 2007-06-23 Robert Millan <rmh@aybabtu.com>
13176 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
13178 2007-06-21 Robert Millan <rmh@aybabtu.com>
13180 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
13181 indicate end of data section in kernel image.
13182 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
13183 GRUB_KERNEL_MACHINE_DATA_END.
13185 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
13187 * kern/i386/efi/startup.S: Likewise.
13189 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
13190 during image generation. Implement --prefix option to override this
13192 * util/i386/efi/grub-mkimage.c: Likewise.
13194 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
13195 code to make path relative to its root into a separate function.
13197 * util/i386/pc/grub-install.in: Use newly provided
13198 make_system_path_relative_to_its_root() to convert ${grubdir}, then
13199 pass the result to grub-install --prefix.
13201 2007-06-13 Robert Millan <rmh@aybabtu.com>
13203 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
13204 DEFAULT_DEVICE_MAP.
13205 * util/grub-emu.c: Use above definitions from misc.h instead of
13207 * util/grub-mkdevicemap.c: Likewise.
13208 * util/i386/pc/grub-setup.c: Likewise.
13209 * util/grub-probe.c: Likewise.
13210 (probe): Abort with grub_util_error() when either
13211 grub_guess_root_device or grub_util_get_grub_dev fails.
13213 2007-06-12 Robert Millan <rmh@aybabtu.com>
13215 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
13216 "pager" assignment.
13217 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
13219 * util/grub-probe.c (probe): Likewise for "drive_name".
13221 2007-06-11 Robert Millan <rmh@aybabtu.com>
13223 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
13224 not just the cdrom one.
13226 2007-06-11 Robert Millan <rmh@aybabtu.com>
13228 * util/i386/pc/grub-mkrescue.in: Add "set -e".
13229 Add --pkglibdir=DIR option to override pkglibdir.
13230 Mention --image-type=TYPE in help output.
13231 Fix --grub-mkimage (it was a no-op).
13232 Abort gracefully when no parameter is given.
13234 2007-06-11 Robert Millan <rmh@aybabtu.com>
13236 * util/i386/pc/grub-mkrescue.in: New file.
13237 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
13238 * Makefile.in: Handle bin_SCRIPTS.
13240 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
13242 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
13243 list of video modes.
13245 2007-06-06 Robert Millan <rmh@aybabtu.com>
13247 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
13248 file doesn't exist, or if it is in a filesystem grub can't read.
13250 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
13251 not abort if GRUB_DRIVE could not be defined. Rearrange generated
13252 header comment to fit in 80 columns when the variables are resolved.
13254 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
13255 could be identified by update-grub. Remove redundant check for
13256 unifont.pff existence (since convert_system_path_to_grub_path now
13259 2007-06-04 Robert Millan <rmh@aybabtu.com>
13261 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
13263 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
13265 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
13267 2007-06-04 Robert Millan <rmh@aybabtu.com>
13269 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
13271 * include/grub/partition.h: Declare grub_apple_partition_map_init and
13272 grub_apple_partition_map_fini.
13275 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
13276 to access >2 TiB disks).
13278 Print disk->total_sectors with %llu instead of %lu, since this
13279 variable is always 64-bit (prevents wrong disk size from being displayed
13280 on either >2 TiB disk or big-endian CPU).
13282 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
13283 into a generic case that supports all (sane) partition maps.
13285 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
13288 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
13289 and grub_apple_partition_map_fini() after that.
13291 2007-06-01 Robert Millan <rmh@aybabtu.com>
13293 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
13295 * util/grub.d/00_header.in: Only enable gfxterm when
13296 convert_system_path_to_grub_path() succeeds.
13298 2007-05-20 Robert Millan <rmh@aybabtu.com>
13300 * util/update-grub_lib.in: New file.
13301 * DISTLIST: Add update-grub_lib.in.
13302 * conf/common.rmk: Generate update-grub_lib and install it in
13304 * Makefile.in: Add install routine for $(lib_DATA).
13306 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
13307 function provided by update-grub_lib to support arbitrary paths of
13309 * util/update-grub.in: Use convert_system_path_to_grub_path() to
13310 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
13312 2007-05-19 Robert Millan <rmh@aybabtu.com>
13314 * commands/i386/cpuid.c: New module.
13315 * DISTLIST: Add it.
13316 * conf/i386-efi.rmk: Enable cpuid.mod.
13317 * conf/i386-pc.rmk: Likewise.
13319 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13321 * kern/disk.c (grub_disk_read): Check return value of
13324 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13326 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
13328 * disk/raid.c (grub_raid_open): Likewise.
13330 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13332 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
13333 stack instead of on the heap.
13335 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
13336 before doing a read on it.
13338 * configure.ac: Only use -fno-stack-protector for the target
13341 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13343 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
13344 __attribute_ ((unused)) to mode_type argument.
13346 * util/getroot.c (grub_guess_root_device): Fix #endif.
13348 * kern/misc.c (memcmp): Fix prototype.
13350 * include/grub/partition.h [GRUB_UTIL]
13351 (grub_gpt_partition_map_init): Add prototype.
13352 (grub_gpt_partition_map_fini): Likewise.
13354 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
13355 at the right place.
13357 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
13358 (grub_fat_read_data): Likewise.
13359 (grub_fat_find_dir): Likewise.
13361 * font/manager.c (find_glyph): Make table a const.
13362 (grub_font_get_glyph): Remove bitmap from if statement.
13364 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
13366 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
13367 code, first search for device in /dev/mapper, then in /dev.
13368 (grub_util_get_grub_dev): New function.
13369 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
13371 * util/grub-probe.c (probe): Remove check for RAID, call
13372 grub_util_get_grub_dev() instead of
13373 grub_util_biosdisk_get_grub_dev().
13374 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
13375 grub_util_biosdisk_get_grub_dev().
13376 * util/i386/pc/grub-setup.c (main): Likewise.
13378 2007-05-16 Robert Millan <rmh@aybabtu.com>
13380 * DISTLIST: Update for the latest changes.
13381 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
13382 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
13383 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
13384 grub/util/biosdisk.h.
13385 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
13386 grub/util/biosdisk.h.
13388 2007-05-16 Robert Millan <rmh@aybabtu.com>
13390 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
13392 2007-05-16 Robert Millan <rmh@aybabtu.com>
13394 * util/i386/efi/grub-install.in: New.
13395 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
13396 newly added grub-install.
13397 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
13399 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
13400 grub/util/biosdisk.h.
13401 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
13402 grub/util/biosdisk.h.
13404 2007-05-16 Robert Millan <rmh@aybabtu.com>
13406 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
13407 * include/grub/util/biosdisk.h: ... here.
13408 * util/i386/pc/biosdisk.c: Moved to ...
13409 * util/biosdisk.c: ... here.
13410 * util/i386/pc/getroot.c: Moved to ...
13411 * util/getroot.c: ... here.
13412 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
13413 * util/grub-mkdevicemap.c: ... here.
13414 * util/i386/pc/grub-probe.c: Moved to ...
13415 * util/grub-probe.c: ... here.
13417 2007-05-15 Robert Millan <rmh@aybabtu.com>
13419 * util/update-grub.in: Remove duplicated line in grub.cfg header
13422 2007-05-13 Robert Millan <rmh@aybabtu.com>
13424 * util/update-grub.in: Fix a few assumptions about the devices holding
13425 /, /boot and /boot/grub being the same.
13426 * util/grub.d/00_header.in: Likewise.
13427 * util/grub.d/10_hurd.in: Likewise.
13428 * util/grub.d/10_linux.in: Likewise.
13430 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
13431 patterns. Use that to define the `.old' suffix as older than `'.
13433 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
13435 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
13436 the grub.cfg header message.
13438 2007-05-11 Robert Millan <rmh@aybabtu.com>
13440 * util/update-grub.in: Create device.map if it doesn't already exist,
13441 before attempting to run grub-probe.
13442 Check for grub-probe and grub-mkdevicemap with the same code
13443 grub-install is using.
13446 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
13448 * Makefile.in: Add the datarootdir autoconf variable.
13450 2007-05-09 Robert Millan <rmh@aybabtu.com>
13452 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
13453 fail gracefully if dev->disk->partition == NULL.
13455 2007-05-07 Robert Millan <rmh@aybabtu.com>
13457 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
13458 determine partition map module.
13459 * util/i386/pc/grub-install.in: Use this feature to decide which
13460 partition module to load, instead of hardcoding pc and gpt.
13462 2007-05-07 Robert Millan <rmh@aybabtu.com>
13464 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
13465 source directory differs from build directory.
13467 2007-05-05 Robert Millan <rmh@aybabtu.com>
13469 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
13472 2007-05-05 Robert Millan <rmh@aybabtu.com>
13474 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
13476 2007-05-05 Robert Millan <rmh@aybabtu.com>
13478 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
13479 command-line arguments via ${GRUB_CMDLINE_LINUX}.
13481 2007-05-05 Robert Millan <rmh@aybabtu.com>
13483 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
13484 (grub_probe_SOURCES): Likewise.
13485 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
13486 GPT and initialize dos_part and bsd_part accordingly.
13487 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
13489 (main): Activate gpt module for use during partition identification,
13490 and deactivate it afterwards.
13491 * util/i386/pc/grub-install.in: Add gpt module to core.img.
13492 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
13493 partition identification, and deactivate it afterwards.
13495 2007-05-05 Robert Millan <rmh@aybabtu.com>
13497 * term/i386/pc/console.c (grub_console_fini): Call
13498 grub_term_set_current() before grub_term_unregister().
13500 2007-05-04 Robert Millan <rmh@aybabtu.com>
13502 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
13503 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
13504 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
13505 and update-grub_DATA.
13506 * conf/common.rmk: Build and install update-grub components.
13507 * conf/common.mk: Regenerate.
13508 * util/update-grub.in: New. Core of update-grub.
13509 * util/grub.d/00_header.in: New. Generates grub.cfg header.
13510 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
13511 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
13512 * util/grub.d/README: New. Document grub.d directory layout.
13514 2007-05-01 Robert Millan <rmh@aybabtu.com>
13516 * util/grub-emu.c: Move initialization functions
13517 grub_util_biosdisk_init() and grub_init_all() before
13518 grub_util_biosdisk_get_grub_dev(), which relies on them.
13520 2007-04-19 Robert Millan <rmh@aybabtu.com>
13522 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
13525 2007-04-18 Jerone Young <jerone@gmail.com>
13527 * kernel/elf.c: Add missing parenthesis for conditional statement
13530 2007-04-10 Jerone Young <jerone@gmail.com>
13532 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
13533 continue on and look for device node with real device name.
13535 2007-04-10 Jerone Young <jerone@gmail.com>
13537 * configure.ac: Add argument for autoconf to use transformation
13539 * Makefile.in: Add autoconf package transformation code.
13540 * util/i386/pc/grub-install.in: Likewise.
13541 * util/powerpc/ieee1275/grub-install.in: Likewise.
13543 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
13545 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
13546 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
13547 (EXT2_REVISION): Likewise.
13548 (EXT2_INODE_SIZE): Likewise.
13549 (struct grub_ext2_block_group): Added a missing member
13551 (grub_ext2_read_inode): Divide by the inode size in a superblock
13552 instead of 128 to obtain INODES_PER_BLOCK.
13553 Use the macro EXT2_INODE_SIZE instead of directly using
13554 SBLOCK->INODE_SIZE.
13556 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
13558 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
13559 superblock instead of the structure size to compute an
13560 offset. This fixes the problem that GRUB could not read a
13561 filesystem when inode size is different from 128-byte.
13563 2007-03-05 Marco Gerards <marco@gnu.org>
13565 * normal/main.c (read_config_file): When "menu" is not set, create
13566 an initial context.
13568 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13570 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
13571 (HEAP_LIMIT): New macro.
13572 (grub_claim_heap): Claim memory up to `heaplimit'.
13574 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13576 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
13577 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
13578 (_start): Likewise.
13579 (grub_arch_modules_addr): Return address after `_end'.
13580 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
13581 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
13582 (add_segments): Calculate `_end' from phdr size and location.
13583 (ALIGN_UP): Moved to ...
13584 * include/grub/misc.h: here.
13585 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
13587 (GRUB_IEEE1275_MODULE_BASE): Removed.
13589 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13591 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
13594 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13596 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
13598 (grub_elf64_load_hook_t): Likewise.
13599 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
13602 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13604 * kern/mm.c: Update copyright.
13605 (grub_mm_debug): Correct syntax error.
13606 (grub_mm_dump_free): New function.
13607 (grub_debug_free): Call `grub_free'.
13608 * include/grub/mm.h: Update copyright.
13609 (grub_mm_dump_free): Add declaration.
13611 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13613 * include/grub/ieee1275/ieee1275.h: Update copyright.
13614 * kern/powerpc/ieee1275/init.c: Likewise.
13615 * kern/powerpc/ieee1275/openfw.c: Likewise.
13617 * loader/powerpc/ieee1275/linux.c: Likewise.
13618 * include/grub/elfload.h: Likewise.
13619 * kern/elf.c: Likewise.
13620 (grub_elf32_load): Pass `base' and `size' parameters. Update all
13622 (grub_elf64_load): Likewise.
13623 (grub_elf32_load_segment): Move to a nested function.
13624 (grub_elf64_load_segment): Likewise.
13626 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13628 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
13630 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
13631 (grub_heap_len): Likewise.
13632 (HEAP_SIZE): New macro.
13633 (grub_claim_heap): New function.
13634 (grub_machine_init): Don't claim heap directly. Call
13636 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
13637 (grub_available_iterate): New function.
13639 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
13641 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
13642 * configure.ac: Use it for testing the HOST and TARGET compilers.
13644 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
13646 * Makefile.in (enable_grub_emu): New variable.
13647 * configure.ac (--enable-grub-emu): New option.
13648 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
13649 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
13650 * conf/i386-pc.rmk: Likewise.
13651 * conf/powerpc-ieee1275.rmk: Likewise.
13652 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
13654 2006-12-12 Marco Gerards <marco@gnu.org>
13656 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
13658 * kern/env.c (grub_env_unset): Don't free the member `value' when
13659 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
13662 * normal/main.c (current_menu): Removed.
13663 (free_menu): Unset the `menu' environment variable.
13664 (grub_normal_menu_addentry): Make use of the environment variable
13665 `menu', instead of using the global `current_menu'. Allocate
13666 memory for the sourcecode of this entry.
13667 (read_config_file): New argument `nested', changed all callers.
13668 Only in the case of a new context, initialize a new menu. Set the
13669 `menu' environment variable.
13670 (grub_normal_execute): Don't set and unset the environment
13671 variable `menu' here anymore. Only free the menu when leaving the
13674 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
13677 2006-12-11 Marco Gerards <marco@gnu.org>
13679 * normal/menu_entry.c (run): Fix off by one bug so the last line
13680 is executed. Move the loader check to outside the loop.
13682 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
13684 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
13686 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
13688 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
13689 the number of sectors. Reported by Andrey Shuvikov
13690 <mr_hyro@yahoo.com>.
13692 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
13694 * kern/disk.c (grub_disk_read): When there is a read error, always
13695 try to read only the necessary data.
13697 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
13699 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
13701 [GRUB_UTIL] (grub_raid_fini): Likewise.
13702 [GRUB_UTIL] (grub_lvm_init): Likewise.
13703 [GRUB_UTIL] (grub_lvm_fini): Likewise.
13704 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
13705 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
13706 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
13707 and grub_raid_fini().
13709 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
13711 * include/grub/types.h (__unused): Rename to UNUSED.
13712 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
13713 (grub_elf64_size): Likewise.
13715 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13717 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
13718 grub_error_push and grub_error_pop in the error-handling path.
13719 (grub_elf32_load_segment): Only call grub_file_read with non-zero
13722 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13724 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
13725 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13726 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13727 (kernel_elf_SOURCES): Likewise.
13728 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
13729 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
13730 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13731 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13732 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
13733 (elf_mod_SOURCES): New variable.
13734 (elf_mod_CFLAGS): Likewise.
13735 (elf_mod_LDFLAGS): Likewise.
13736 * include/grub/types.h (__unused): New macro.
13737 * include/grub/elfload.h: New file.
13738 * kern/elf.c: Likewise.
13739 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
13740 (ELF32_LOADMASK): New macro.
13741 (ELF64_LOADMASK): Likewise.
13742 (vmlinux): Removed.
13743 (grub_linux_load32): New function.
13744 (grub_linux_load64): Likewise.
13745 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
13746 Use grub_elf_t instead of grub_file_t.
13748 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
13750 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
13751 `catch_result' to struct set_color_args.
13753 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
13755 * normal/menu.c: Include grub/script.h.
13756 * normal/menu_entry.c: Likewise.
13757 * include/grub/normal.h: Do not include grub/script.h.
13759 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13761 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
13763 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13765 * kern/disk.c (grub_disk_open): Print debug messages when opening a
13767 (grub_disk_close): Print debug messages when closing a disk.
13768 (grub_disk_read): Print debug messages when disk read fails.
13769 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
13771 * kern/partition.c: Include misc.h.
13772 (grub_partition_iterate): Print debug messages when detecting
13775 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13777 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
13779 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
13781 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
13783 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13784 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
13786 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
13788 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
13789 instead of sizeof(lv). Patch by Michael Guntsche.
13791 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
13793 * disk/lvm.c: Rename VGS to VG_LIST.
13794 (grub_lvm_iterate): Change VGS->LV to VG-LV.
13795 (grub_lvm_open): Likewise.
13796 Thanks to Michael Guntsche for finding this bug.
13798 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
13800 * configure.ac (AC_INIT): Bumped to 1.95.
13802 2006-10-14 Robert Millan <rmh@aybabtu.com>
13804 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
13805 with "/dev/.static/dev/md".
13807 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13809 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
13810 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
13811 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
13812 DRIVE_NAME are always freed.
13814 * util/i386/pc/biosdisk.c (make_device_name): Add one into
13815 DOS_PART, as a DOS partition is counted from one instead of zero
13816 now. Reported by Robert Millan.
13818 2006-10-14 Robert Millan <rmh@aybabtu.com>
13820 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
13821 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
13822 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
13823 string returned by grub_guess_root_device.
13824 * util/i386/pc/grub-setup.c: Likewise.
13825 * util/i386/pc/grub-probefs.c: Likewise.
13827 * util/i386/pc/grub-probefs.c: Rename to ...
13828 * util/i386/pc/grub-probe.c: ... this.
13829 * DISTLIST: Remove grub-probefs, add grub-probe.
13830 * conf/i386-efi.rmk: Likewise.
13831 * conf/i386-pc.rmk: Likewise.
13832 * util/i386/pc/grub-install.in: Likewise.
13834 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
13835 choose which information we want to print.
13837 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13839 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
13840 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
13841 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
13842 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
13843 video/readers/tga.c and video/i386/pc/vbeutil.c.
13845 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
13847 Added support for RAID and LVM.
13849 * disk/lvm.c: New file.
13850 * disk/raid.c: Likewise.
13851 * include/grub/lvm.h: Likewise.
13852 * include/grub/raid.h: Likewise.
13853 * include/grub/util/lvm.h: Likewise.
13854 * include/grub/util/raid.h: Likewise.
13855 * util/lvm.c: Likewise.
13856 * util/raid.c: Likewise.
13858 * include/grub/disk.h (grub_disk_dev_id): Add
13859 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
13860 (grub_disk_get_size): New prototype.
13861 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
13862 returns a partition.
13863 (grub_disk_get_size): New function.
13865 * kern/i386/pc/init.c (make_install_device): Copy the prefix
13866 verbatim if grub_install_dos_part is -2.
13868 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
13871 * util/i386/pc/grub-setup.c (setup): New argument
13872 MUST_EMBED. Force embedding of GRUB when the argument is
13873 true. Close FILE before returning.
13874 (main): Add support for RAID and LVM.
13876 * conf/common.rmk: Add RAID and LVM modules.
13877 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
13879 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
13881 * kern/misc.c (grub_strstr): New function.
13882 * include/grub/misc.h (grub_strstr): New prototype.
13884 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
13886 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
13888 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
13890 * kern/misc.c (grub_strtoull): Guess the base only if not
13893 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13895 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
13898 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13900 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
13902 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
13903 Remove `flags' argument. All callers changed.
13904 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
13905 (IEEE1275_IHANDLE_INVALID): New variable.
13906 (IEEE1275_CELL_INVALID): New variable.
13907 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
13908 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
13909 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
13910 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
13911 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
13912 codes from Open Firmware. All callers updated.
13913 (grub_ieee1275_next_property): Directly return Open Firmware return
13915 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
13916 Standardize error checking from `grub_ieee1275_get_property'.
13917 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
13918 `devalias' to `aliases'. Correct comments. Consolidate error paths.
13920 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13922 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
13923 `instance_to_package_args' to `instance_to_path_args'.
13925 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
13926 `grub_ieee1275_chosen'.
13928 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
13929 `grub_ieee1275_interpret'.
13931 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13933 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
13935 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13937 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
13938 (__cmpdi): Likewise.
13940 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
13941 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
13944 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
13946 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
13947 to type `grub_ssize_t'.
13948 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
13950 2006-09-22 Marco Gerards <marco@gnu.org>
13952 * normal/script.c (grub_script_create_cmdmenu): Skip leading
13955 2006-09-22 Marco Gerards <marco@gnu.org>
13957 * commands/echo.c: New file.
13959 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
13961 * conf/common.rmk (echo_mod_SOURCES): New variable.
13962 (echo_mod_CFLAGS): Likewise.
13963 (echo_mod_LDFLAGS): Likewise.
13965 2006-09-22 Marco Gerards <marco@gnu.org>
13967 * normal/main.c (get_line): Malloc memory instead of using
13968 preallocated memory. Removed the arguments `cmdline' and
13969 `max_len'. Updated all callers.
13971 2006-09-22 Marco Gerards <marco@gnu.org>
13973 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
13974 (normal_mod_DEPENDENCIES): Likewise.
13976 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
13977 (normal_mod_DEPENDENCIES): Likewise.
13979 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
13981 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
13983 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
13985 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
13986 (normal_mod_DEPENDENCIES): Likewise.
13987 * conf/i386-pc.mk: Regenerate.
13988 * conf/i386-efi.mk: Likewise
13989 * conf/common.mk: Likewise.
13990 * conf/powerpc-ieee1275.mk: Likewise.
13991 * conf/sparc64-ieee1275.mk: Likewise.
13993 2006-09-22 Robert Millan <rmh@aybabtu.com>
13995 Sync with i386 version.
13996 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
13997 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
13999 2006-09-21 Robert Millan <rmh@aybabtu.com>
14001 Import from GRUB Legacy (lib/device.c):
14002 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
14003 (init_device_map) [__linux__]: Add support for I2O devices.
14005 2006-09-14 Marco Gerards <marco@gnu.org>
14007 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
14010 2006-09-14 Robert Millan <rmh@aybabtu.com>
14012 * util/i386/pc/grub-install.in: Skip menu.lst when removing
14015 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
14017 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
14018 before adding it to device.map.
14020 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
14022 * genmk.rb: Let GCC generate dependencies the first time it
14023 compiles a file; using the -MD option.
14024 * conf/common.mk: Regenerate.
14025 * conf/i386-pc.mk: Likewise.
14026 * conf/i386-efi.mk: Likewise.
14027 * conf/powerpc-ieee1275.mk: Likewise.
14028 * conf/sparc64-ieee1275.mk: Likewise.
14030 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
14032 Move the prototypes of grub_setjmp and grub_longjmp to
14033 cpu/setjmp.h, so that each architecture may specify different
14036 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
14037 (grub_longjmp): Likewise.
14038 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
14039 (grub_longjmp): Likewise.
14040 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
14041 (grub_longjmp): Likewise.
14043 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
14044 [!GRUB_UTIL] (grub_longjmp): Removed.
14046 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
14048 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
14049 "color!" method does not return any value.
14051 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14053 * include/grub/bitmap.h: New file.
14055 * include/grub/i386/pc/vbeutil.h: Likewise.
14057 * video/bitmap.c: Likewise.
14059 * video/readers/tga.c: Likewise.
14061 * video/i386/pc/vbeutil.c: Likewise.
14063 * commands/videotest.c: Code cleanup and updated to reflect to new
14066 * term/gfxterm.c: Likewise.
14068 * video/video.c: Likewise.
14070 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
14071 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
14072 (bitmap_mod_SOURCES): New entry.
14073 (bitmap_mod_CFLAGS): Likewise.
14074 (bitmap_mod_LDFLAGS): Likewise.
14075 (tga_mod_SOURCES): Likewise.
14076 (tga_mod_CFLAGS): Likewise.
14077 (tga_mod_LDFLAGS): Likewise.
14079 * include/grub/video.h (grub_video_blit_operators): New enum type.
14080 (grub_video_render_target): Changed as forward declaration and moved
14081 actual definition to be video driver specific.
14082 (grub_video_adapter.blit_bitmap): Added blitting operator.
14083 (grub_video_adapter.blit_render_target): Likewise.
14084 (grub_video_blit_bitmap): Likewise.
14085 (grub_video_blit_render_target): Likewise.
14087 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
14088 driver specific render target definition.
14089 (grub_video_vbe_map_rgba): Added driver internal helper.
14090 (grub_video_vbe_unmap_color): Updated to use
14091 grub_video_i386_vbeblit_info.
14092 (grub_video_vbe_get_video_ptr): Likewise.
14094 * include/grub/i386/pc/vbeblit.h
14095 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
14096 grub_video_i386_vbeblit_info.
14097 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14098 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14099 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14100 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14101 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14102 (grub_video_i386_vbeblit_index_index): Likewise.
14103 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
14104 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14105 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14106 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
14108 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
14111 * video/i386/pc/vbeblit.c: Updated to reflect changes on
14112 include/grub/i386/pc/vbeblit.h.
14114 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
14115 Updated to use grub_video_i386_vbeblit_info.
14116 (grub_video_i386_vbefill_R8G8B8): Likewise.
14117 (grub_video_i386_vbefill_index): Likewise.
14118 (grub_video_i386_vbefill): Added generic filler.
14120 * video/i386/pc/vbefill.c: Updated to reflect changes on
14121 include/grub/i386/pc/vbefill.h.
14123 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
14124 grub_video_i386_vbeblit_info.
14125 (grub_video_vbe_unmap_color): Likewise.
14126 (grub_video_vbe_blit_glyph): Likewise.
14127 (grub_video_vbe_scroll): Likewise.
14128 (grub_video_vbe_draw_pixel): Removed function.
14129 (grub_video_vbe_get_pixel): Likewise.
14130 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
14131 updated code to use it.
14132 (common_blitter): Added common blitter for render target and bitmap.
14133 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
14134 (grub_video_vbe_blit_render_target): Likewise.
14136 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
14138 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
14139 is in text mode if there is no console control protocol instance
14142 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14144 * include/grub/video.h: Code cleanup.
14146 * include/grub/i386/pc/vbe.h: Likewise.
14148 * video/i386/pc/vbe.c: Likewise.
14150 * video/i386/pc/vbeblit.c: Likewise.
14152 * video/i386/pc/vbefill.c: Likewise.
14154 * video/video.c: Likewise. Also added more comments.
14156 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14158 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
14159 (struct grub_biosdisk_dap): Likewise.
14161 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
14162 linkage settings for all functions.
14164 2006-07-12 Marco Gerards <marco@gnu.org>
14166 * configure.ac (--enable-mm-debug): Fix typo.
14168 * genkernsyms.sh.in: Use proper quoting for `CC'.
14170 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
14172 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
14173 (normal_mod_ASFLAGS): Remove "-m32".
14175 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
14177 * util/misc.c: Include config.h.
14178 [!HAVE_MEMALIGN]: Do not include malloc.h.
14179 (grub_memalign): Use posix_memalign, if present. Then, use
14180 memalign, if present. Otherwise, emit an error.
14182 * util/grub-emu.c: Do not include malloc.h.
14184 * include/grub/util/misc.h: Include unistd.h. This is required for
14185 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
14186 D. Eades III <hde@foobar-qux.org>.
14188 * configure.ac (AC_GNU_SOURCE): Added.
14189 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
14192 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
14194 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
14195 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
14197 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
14199 * include/grub/types.h (grub_host_addr_t): Rename to
14200 grub_target_addr_t.
14201 (grub_host_off_t): Rename to grub_target_off_t.
14202 (grub_host_size_t): Rename to grub_target_size_t.
14203 (grub_host_ssize_t): Rename to grub_target_ssize_t.
14204 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
14206 * include/grub/kernel.h (struct grub_module_header): Change type
14207 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
14208 (grub_module_info): Likewise.
14210 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14212 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
14213 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
14214 Velazquez <jesus.velazquez@gmail.com>.
14216 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14218 Count partitions from 1 instead of 0 in the string representation
14219 of partitions. Still use 0-based internally.
14221 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
14222 (sun_partition_map_iterate): Use grub_partition_t instead of
14223 struct grub_partition *. Cast DESC->START_CYLINDER to
14224 grub_uint64_t after converting the endian.
14225 (sun_partition_map_probe): Subtract 1 for PARTNUM.
14226 (sun_partition_map_get_name): Add 1 to P->INDEX.
14228 * partmap/pc.c (grub_partition_parse): Subtract 1 for
14230 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
14232 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
14233 zero instead of one.
14234 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
14235 (gpt_partition_map_get_name): Add 1 into P->INDEX.
14237 * partmap/apple.c (apple_partition_map_iterate): Change the type
14238 of POS to unsigned.
14239 (apple_partition_map_probe): Subtract 1 for PARTNUM.
14240 (apple_partition_map_get_name): Add 1 into P->INDEX.
14242 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
14243 of POS to unsigned.
14244 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
14245 calculate the offset of a partition.
14246 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
14247 (amiga_partition_map_get_name): Add 1 into P->INDEX.
14249 * partmap/acorn.c (acorn_partition_map_find): Change the type of
14250 SECTOR to grub_disk_addr_t.
14251 (acorn_partition_map_iterate): Likewise.
14252 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
14253 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
14255 (acorn_partition_map_get_name): Add 1 into P->INDEX.
14257 * kern/i386/pc/init.c (make_install_device): Add 1 into
14258 GRUB_INSTALL_DOS_PART.
14260 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
14263 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14265 Clean up the code to support 64-bit addressing in disks and
14266 files. This change is not enough for filesystems yet.
14268 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
14269 type of "start" to grub_uint64_t.
14270 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
14271 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
14272 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
14275 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
14276 to grub_disk_addr_t.
14278 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
14281 * partmap/pc.c (pc_partition_map_iterate): Likewise.
14283 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
14286 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
14288 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
14290 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
14292 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
14293 to grub_off_t, to detect an error from grub_file_seek.
14294 (grub_multiboot_load_elf32): Likewise.
14296 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
14297 maximum unsigned long value when an overflow is detected.
14298 (grub_strtoull): New function.
14299 (grub_divmod64): Likewise.
14300 (grub_lltoa): use grub_divmod64.
14302 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
14304 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
14305 the pointer to next character. Use grub_strtoull instead of
14307 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
14308 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
14311 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
14312 return value is signed.
14313 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
14314 test if OFFSET is less than zero, as OFFSET is unsigned now.
14316 * kern/disk.c (struct grub_disk_cache): Change the type of
14317 "sector" to grub_disk_addr_t.
14318 (grub_disk_cache_get_index): Change the type of SECTOR to
14319 grub_disk_addr_t. Calculate the hash with SECTOR casted to
14320 unsigned after shifting.
14321 (grub_disk_cache_invalidate): Change the type of SECTOR to
14323 (grub_disk_cache_unlock): Likewise.
14324 (grub_disk_cache_store): Likewise.
14325 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
14326 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
14327 grub_disk_addr_t and grub_uint64_t, respectively.
14328 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
14329 body, as the value of OFFSET is tweaked by
14330 grub_disk_check_range. Change the types of START_SECTOR, LEN and
14331 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
14333 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
14334 body, as the value of OFFSET is tweaked by
14335 grub_disk_check_range. Change the types of LEN and N to
14338 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
14339 and "saved_offset" to grub_off_t.
14340 (test_header): Cast BUF to char *.
14341 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
14343 (grub_gzio_read): Change the types of OFFSET and SIZE to
14344 grub_off_t and grub_size_t, respectively.
14346 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
14348 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
14349 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
14350 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
14351 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
14352 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
14354 * include/grub/types.h (grub_off_t): Unconditionally set to
14356 (grub_disk_addr_t): Changed to grub_uint64_t.
14358 * include/grub/partition.h (struct grub_partition): Change the
14359 types of "start", "len" and "offset" to grub_disk_addr_t,
14360 grub_uint64_t and grub_disk_addr_t, respectively.
14361 (grub_partition_get_start): Return grub_disk_addr_t.
14362 (grub_partition_get_len): Return grub_uint64_t.
14364 * include/grub/misc.h (grub_strtoull): New prototype.
14365 (grub_divmod64): Likewise.
14367 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
14368 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
14369 grub_off_t, respectively.
14370 All callers and references changed.
14372 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
14373 grub_size_t in "read".
14374 All callers and references changed.
14376 * include/grub/file.h (struct grub_file): Change the types of
14377 "offset" and "size" to grub_off_t and grub_off_t,
14378 respectively. Change the type of SECTOR to grub_disk_addr_t in
14380 (grub_file_read): Change the type of LEN to grub_size_t.
14381 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
14383 (grub_file_size): Return grub_off_t.
14384 (grub_file_tell): Likewise.
14385 All callers and references changed.
14387 * include/grub/disk.h (struct grub_disk_dev): Change the types of
14388 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
14390 (struct grub_disk): Change the type of "total_sectors" to
14391 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
14393 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
14394 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
14395 (grub_disk_write): Likewise.
14396 All callers and references changed.
14398 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
14399 char * for grub_strncmp to silence gcc.
14400 (grub_iso9660_mount): Likewise.
14401 (grub_iso9660_mount): Likewise.
14402 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
14404 (grub_iso9660_iterate_dir): Likewise.
14405 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
14407 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
14408 LEN to grub_disk_addr_t and grub_size_t, respectively.
14410 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
14412 * fs/jfs.c (grub_jfs_read_file): Likewise.
14414 * fs/minix.c (grub_jfs_read_file): Likewise.
14416 * fs/sfs.c (grub_jfs_read_file): Likewise.
14418 * fs/ufs.c (grub_jfs_read_file): Likewise.
14420 * fs/xfs.c (grub_jfs_read_file): Likewise.
14422 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
14423 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
14426 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
14427 BLKNR to -1 instead of returning GRUB_ERRNO.
14428 (grub_ext2_read_file): Change the types of SECTOR and
14429 LEN to grub_disk_addr_t and grub_size_t, respectively.
14431 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
14432 LEN to grub_disk_addr_t and grub_size_t, respectively.
14434 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
14437 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
14438 string. Do not cast SECTOR explicitly.
14440 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
14441 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
14442 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
14443 grub_disk_addr_t and grub_size_t, respectively. If the sector is
14444 over 2TB and LBA mode is not supported, raise an error.
14445 (get_safe_sectors): New function.
14446 (grub_biosdisk_read): Use get_safe_sectors.
14447 (grub_biosdisk_write): Likewise.
14449 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
14450 (grub_efidisk_write): Likewise.
14452 * disk/loopback.c (delete_loopback): Cosmetic changes.
14453 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
14455 (grub_loopback_open): Likewise.
14456 (grub_loopback_read): Likewise. Also, change the type of POS to
14457 grub_off_t, and fix the usage of grub_memset.
14459 * commands/i386/pc/play.c: Include grub/machine/time.h.
14461 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
14464 * commands/configfile.c: Include grub/env.h.
14466 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
14467 GRUB_ERRNO directly instead. Change the type of POS to
14468 grub_off_t. Follow the coding standard.
14470 * commands/blocklist.c: Include grub/partition.h.
14471 (grub_cmd_blocklist): Return an error if the underlying device is
14472 not a disk. Take the starting sector of a partition into account,
14473 if a partition is used.
14475 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
14477 (lba_mode): Support 64-bit addresses.
14478 (chs_mode): Likewise.
14479 (copy_buffer): Adapted to the new offsets of a length field and a
14481 (blocklist_default_start): Allocate 64-bit space.
14483 * boot/i386/pc/boot.S (force_lba): Removed.
14484 (boot_drive): Moved to under KERNEL_SECTOR.
14485 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
14487 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
14489 (lba_mode): Refactored to support a 64-bit address. More size
14491 (setup_sectors): Likewise.
14493 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14495 * DISTLIST: Added include/grub/i386/linux.h. Removed
14496 include/grub/i386/pc/linux.h
14498 * configure.ac (AC_INIT): Bumped to 1.94.
14500 * config.guess: Updated from gnulib.
14501 * config.sub: Likewise.
14502 * install-sh: Likewise.
14503 * mkinstalldirs: Likewise.
14505 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14507 * conf/common.rmk (grub_modules_init.lst): Depended on
14508 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
14511 * genmk.rb (PModule::rule): Reverted the previous change.
14513 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14515 * conf/common.rmk (grub_modules_init.lst): Depends on
14516 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
14517 that the target does not exist before producing.
14518 (grub_modules_init.h): Remove the target before generating.
14519 (grub_emu_init.c): Likewise.
14521 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
14523 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
14525 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
14526 for the target-specific tests. Make sure that we also have the
14527 up-to-date target variables for those tests.
14529 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14531 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
14532 (PModule::rule): Likewise.
14534 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14536 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
14537 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
14538 target-specific flags should be prefixed.
14539 (PModule::rule): Likewise.
14541 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
14543 * configure.ac (CMP): Check if cmp is available explicitly.
14545 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
14547 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
14548 (target_cpu): New variable.
14549 (pkglibdir): Use target_cpu instead of host_cpu.
14551 * util/i386/pc/grub-install.in (host_cpu): Removed.
14552 (target_cpu): New variable.
14553 (pkglibdir): Use target_cpu instead of host_cpu.
14555 * util/genmoddep.c: Removed.
14557 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
14558 instead of GRUB_HOST_SIZEOF_VOID_P.
14559 * kern/dl.c: Likewise.
14561 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
14563 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14564 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14565 (GRUB_TARGET_SIZEOF_LONG): ... this.
14566 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14567 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14568 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14570 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14571 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14572 (GRUB_TARGET_SIZEOF_LONG): ... this.
14573 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14574 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14575 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14577 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14578 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14579 (GRUB_TARGET_SIZEOF_LONG): ... this.
14580 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14581 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14583 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
14584 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
14585 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
14586 instead of GRUB_HOST_SIZEOF_LONG.
14587 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
14588 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
14589 GRUB_CPU_WORDS_BIGENDIAN.
14590 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
14591 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
14594 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
14595 (genmoddep_SOURCES): Likewise.
14596 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
14597 (genmoddep_SOURCES): Likewise.
14598 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
14599 (genmoddep_SOURCES): Likewise.
14600 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
14602 (genmoddep_SOURCES): Likewise.
14604 * genmoddep.awk: New file.
14606 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
14607 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
14608 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
14609 (PModule::rule): Likewise.
14610 (Program::rule): Likewise.
14611 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
14612 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
14615 * configure.ac: Rewritten intensively to use host and target
14616 instead of build and host, respectively.
14618 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
14619 (host_cpu): Removed.
14620 (target_cpu): New variable.
14621 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
14622 (BUILD_CC): Removed.
14623 (BUILD_CFLAGS): Likewise.
14624 (BUILD_CPPFLAGS): Likewise.
14625 (TARGET_CC): New variable.
14626 (TARGET_CFLAGS): Likewise.
14627 (TARGET_CPPFLAGS): Likewise.
14628 (TARGET_LDFLAGS): Likewise.
14630 (include): Use target_cpu instead of host_cpu.
14631 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
14633 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
14635 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
14637 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
14638 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
14639 field 'false' to 'exec_on_false'.
14640 (grub_script_create_cmdif): Renamed argument names to reflect above
14643 * normal/execute.c (grub_script_execute_cmdif): Likewise.
14645 * normal/script.c (grub_script_create_cmdif): Likewise.
14647 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
14649 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
14651 (grub_hfsplus_btree_recptr): Likewise.
14652 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
14653 FILEBLOCK both to pass a block number and store next block
14655 (grub_hfsplus_read_block): Rewritten heavily to support an extent
14656 overflow file correctly. Specify errors appropriately, because
14657 fshelp expects that GRUB_ERRNO is set when fails. Reuse
14658 grub_hfsplus_btree_recptr to get the pointer to a found key.
14659 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
14662 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
14664 (_linux_mod_SOURCES): New variable.
14665 (_linux_mod_CFLAGS): Likewise.
14666 (_linux_mod_LDFLAGS): Likewise.
14667 (linux_mod_SOURCES): Likewise.
14668 (linux_mod_CFLAGS): Likewise.
14669 (linux_mod_LDFLAGS): Likewise.
14671 * DISTLIST: Added loader/i386/efi/linux.c,
14672 loader/i386/efi/linux_normal.c and
14673 include/grub/i386/efi/loader.h.
14675 * loader/i386/efi/linux.c: New file.
14676 * loader/i386/efi/linux_normal.c: Likewise.
14677 * include/grub/i386/efi/loader.h: Likewise.
14679 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
14681 * commands/blocklist.c: New file.
14683 * DISTLIST: Added commands/blocklist.c.
14685 * term/efi/console.c (grub_console_highlight_color): Use a lighter
14686 color for the background, and a darker color for the foreground.
14687 (grub_console_checkkey): Return READ_KEY.
14688 (grub_console_cls): Set the background to
14689 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
14691 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
14693 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
14694 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
14696 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
14699 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
14700 BG. The spec is wrong again.
14702 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
14704 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
14706 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
14707 commands/blocklist.c.
14708 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14710 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
14711 (blocklist_mod_SOURCES): New variable.
14712 (blocklist_mod_CFLAGS): Likewise.
14713 (blocklist_mod_LDFLAGS): Likewise.
14715 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
14717 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
14719 (lba_mode): Use %eax more intensively to reduce the code size.
14721 2006-05-20 Marco Gerards <marco@gnu.org>
14723 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
14725 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
14727 (script): Accept leading newlines.
14728 (newlines): New rule to describe 0 or more newlines.
14729 (commands): Accept `command' with trailing newline. Fixed the
14730 order in which arguments were passed to `grub_script_add_cmd'.
14731 Accept commands separated by newlines.
14732 (function): Changed to accept newlines.
14733 (menuentry) Rewritten.
14735 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
14736 front of the list, instead of to the end.
14738 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
14740 * util/i386/pc/grub-install.in (bindir): New variable.
14741 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
14742 Shaver <lbgwjl@gmail.com>.
14744 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
14746 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
14747 grub/machine/linux.h
14748 * loader/i386/pc/linux.c: Likewise.
14750 * include/grub/i386/pc/linux.h: Moved to ...
14751 * include/grub/i386/linux.h: ... here.
14753 * include/grub/i386/linux.h (struct linux_kernel_params): New
14756 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
14758 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
14760 (grub_video_vbe_blit_glyph): Likewise.
14761 (grub_video_vbe_blit_bitmap): Likewise.
14762 (grub_video_vbe_blit_render_target): Likewise.
14764 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
14766 * configure.ac (--with-platform): Properly quote the square
14769 2006-05-08 Marco Gerards <marco@gnu.org>
14771 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
14773 (kernel_elf_HEADERS): ...to this. Updated all users.
14774 (grubof_symlist.c): Renamed from this...
14775 (kernel_elf_symlist.c): ...to this. Updated all users.
14776 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14777 (grubof_SOURCES): Renamed from this...
14778 (kernel_elf_SOURCES): ...to this.
14779 (grubof_HEADERS): Renamed from this...
14780 (kernel_elf_HEADERS): ...to this.
14781 (grubof_CFLAGS): Renamed from this...
14782 (kernel_elf_CFLAGS): ...to this.
14783 (grubof_ASFLAGS): Renamed from this...
14784 (kernel_elf_ASFLAGS): ...to this.
14785 (grubof_LDFLAGS): Renamed from this...
14786 (kernel_elf_LDFLAGS): ...to this.
14788 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
14790 (kernel_elf_HEADERS): ...to this. Updated all users.
14791 (grubof_symlist.c): Renamed from this...
14792 (kernel_elf_symlist.c): ...to this. Updated all users.
14793 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14794 (grubof_SOURCES): Renamed from this...
14795 (kernel_elf_SOURCES): ...to this.
14796 (grubof_HEADERS): Renamed from this...
14797 (kernel_elf_HEADERS): ...to this.
14798 (grubof_CFLAGS): Renamed from this...
14799 (kernel_elf_CFLAGS): ...to this.
14800 (grubof_ASFLAGS): Renamed from this...
14801 (kernel_elf_ASFLAGS): ...to this.
14802 (grubof_LDFLAGS): Renamed from this...
14803 (kernel_elf_LDFLAGS): ...to this.
14805 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
14806 `kernel.elf' instead of `grubof'.
14808 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
14810 Add --with-platform to configure. Use pkglibdir instead of
14811 pkgdatadir. This is reported by Roger Leigh.
14813 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
14814 (host_vendor): Likewise.
14815 (host_os): Likewise.
14816 (pkgdatadir): Likewise.
14817 (platform): New variable.
14818 (pkglibdir): Likewise.
14819 Use PKGLIBDIR instead of PKGDATADIR.
14821 * util/i386/pc/grub-install.in (datadir): Removed.
14822 (host_vendor): Likewise.
14823 (host_os): Likewise.
14824 (pkgdatadir): Likewise.
14825 (platform): New variable.
14826 (pkglibdir): Likewise.
14827 Use PKGLIBDIR instead of PKGDATADIR.
14829 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
14830 instead of GRUB_DATADIR.
14832 * util/i386/pc/grub-mkimage.c (usage): Likewise.
14834 * util/i386/efi/grub-mkimage.c (usage): Likewise.
14837 * configure.ac (--with-platform): New option.
14838 Use PLATFORM instead of HOST_VENDOR to specify a platform.
14840 * Makefile.in: Include a makefile based on PLATFORM instead of
14842 (pkgdatadir): Not appended by the machine type.
14843 (pkglibdir): Appended by the machine type.
14844 (host_vendor): Removed.
14845 (platform): New variable.
14846 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
14847 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
14848 (uninstall): Likewise.
14850 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
14852 Use the environment context in the menu. Remove the commands
14853 "default" and "timeout", and use variables instead.
14855 * normal/menu.c: Include grub/env.h.
14856 (print_entry): Cast TITLE to silence gcc.
14857 (get_timeout): New function.
14858 (set_timeout): Likewise.
14859 (get_entry_number): Likewise.
14860 (run_menu): Use a default entry, a fallback entry and a timeout
14861 in the environment variables "default", "fallback" and
14862 "timeout". Also, tweak the default entry if it is not within the
14863 current menu entries.
14864 (grub_menu_run): Use a fallback entry in the environment variable
14867 * normal/main.c (read_config_file): Do not initialize
14868 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
14870 (grub_normal_execute): Use a data slot to store the menu.
14872 * include/grub/normal.h (struct grub_menu): Removed default_entry,
14873 fallback_entry and timeout.
14874 (struct grub_menu_list): Removed.
14875 (grub_menu_list_t): Likewise.
14876 (struct grub_context): Likewise.
14877 (grub_context_t): Likewise.
14878 (grub_context_get): Likewise.
14879 (grub_context_get_current_menu): Likewise.
14880 (grub_context_push_menu): Likewise.
14881 (grub_context_pop_menu): Likewise.
14882 (grub_default_init): Likewise.
14883 (grub_default_fini): Likewise.
14884 (grub_timeout_init): Likewise.
14885 (grub_timeout_fini): Likewise.
14887 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
14889 (normal_mod_SOURCES): Removed normal/context.c.
14891 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
14892 commands/default.c, commands/timeout.c and normal/context.c.
14893 (normal_mod_SOURCES): Removed normal/context.c.
14895 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
14896 commands/timeout.c and normal/context.c.
14897 (normal_mod_SOURCES): Removed normal/context.c.
14899 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
14900 commands/default.c, commands/timeout.c and normal/context.c.
14901 (normal_mod_SOURCES): Removed normal/context.c.
14903 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
14905 (default_mod_SOURCES): Removed.
14906 (default_mod_CFLAGS): Likewise.
14907 (default_mod_LDFLAGS): Likewise.
14908 (timeout_mod_SOURCES): Removed.
14909 (timeout_mod_CFLAGS): Likewise.
14910 (timeout_mod_LDFLAGS): Likewise.
14912 * DISTLIST: Removed commands/default.c, commands/timeout.c and
14915 * commands/default.c: Removed.
14916 * commands/timeout.c: Likewise.
14917 * normal/context.c: Likewise.
14919 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
14921 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
14923 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
14925 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
14926 "next" to "prev" for readability.
14927 (struct grub_env_sorted_var): New struct.
14928 (grub_env_context): Renamed to ...
14929 (initial_context): ... this.
14930 (grub_env_var_context): Renamed to ...
14931 (current_context): ... this.
14932 (grub_env_find): Look only at CURRENT_CONTEXT.
14933 (grub_env_context_open): Rewritten to copy exported variables from
14935 (grub_env_context_close): Rewritten according to the new
14936 scheme. Also, add an assertion to prevent the initial context from
14938 (grub_env_insert): Removed the code for the sorted list.
14939 (grub_env_remove): Likewise.
14940 (grub_env_export): Simply mark the variable with
14941 GRUB_ENV_VAR_GLOBAL.
14942 (grub_env_set): A cosmetic change for naming consistency.
14943 (grub_env_get): Likewise.
14944 (grub_env_unset): Likewise.
14945 (grub_env_iterate): Rewritten to sort variables within this
14947 (grub_register_variable_hook): Fixed for naming consistency. Call
14948 grub_env_find again, only if NAME is not found at the first time.
14949 (mangle_data_slot_name): New function.
14950 (grub_env_set_data_slot): Likewise.
14951 (grub_env_get_data_slot): Likewise.
14952 (grub_env_unset_data_slot): Likewise.
14954 * include/grub/env.h (grub_env_var_type): New enum.
14955 (GRUB_ENV_VAR_LOCAL): New constant.
14956 (GRUB_ENV_VAR_GLOBAL): Likewise.
14957 (GRUB_ENV_VAR_DATA): Likewise.
14958 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
14960 (grub_env_set): Replace VAR with NAME for consistency.
14961 (grub_register_variable_hook): Likewise.
14962 (grub_env_export): Specify the name of the argument.
14963 (grub_env_set_data_slot): New prototype.
14964 (grub_env_get_data_slot): Likewise.
14965 (grub_env_unset_data_slot): Likewise.
14967 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
14969 Extend the loader so that GRUB can accept a loader which comes
14970 back to GRUB when a loaded image exits. Also, this change adds
14971 support for a chainloader on EFI.
14973 * term/efi/console.c: Include grub/misc.h.
14974 (grub_console_checkkey): Display a scan code on the top for
14975 debugging. This will be removed once the EFI port gets stable.
14976 Correct the scan code mapping.
14978 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
14979 allocate memory from larger regions, in order to reduce the number
14980 of allocated regions. Otherwise, the MacOSX loader panics.
14981 (filter_memory_map): Avoid less than 1MB for compatibility with
14983 (add_memory_regions): Allocate from the tail of a region, if
14984 possible, to avoid allocating a region near to 1MB, for the MacOSX
14987 * kern/efi/init.c (grub_efi_set_prefix): Specify
14988 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
14990 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
14991 argument IMAGE_HANDLE and specify it to get a loaded image.
14992 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
14993 grub_efi_get_loaded_image.
14994 (grub_efi_get_filename): Divide the length by the size of
14996 (grub_efi_get_device_path): New function.
14997 (grub_efi_print_device_path): Print End Device Path nodes. Divide
14998 the length by the size of grub_efi_char16_t for a file path device
15001 * kern/loader.c (grub_loader_noreturn): New variable.
15002 (grub_loader_set): Accept a new argument NORETURN. Set
15003 GRUB_LOADER_NORETURN to NORETURN.
15004 All callers changed.
15005 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
15008 * include/grub/efi/efi.h (grub_efi_get_device_path): New
15010 (grub_efi_get_loaded_image): Take an argument to specify an image
15013 * include/grub/loader.h (grub_loader_set): Added one more argument
15016 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
15017 instead of grub_efi_open_protocol.
15018 (grub_efidisk_get_device_name): Likewise.
15019 (grub_efidisk_close): Print a newline.
15020 (grub_efidisk_get_device_handle): Fixed to use
15021 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
15022 GRUB_EFI_DEVICE_PATH_TYPE.
15024 * disk/efi/efidisk.c (device_path_guid): Moved to ...
15025 * kern/efi/efi.c (device_path_guid): ... here.
15027 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
15029 (kernel_mod_HEADERS): Added efi/disk.h.
15030 (_chain_mod_SOURCES): New variable.
15031 (_chain_mod_CFLAGS): Likewise.
15032 (_chain_mod_LDFLAGS): Likewise.
15033 (chain_mod_SOURCES): Likewise.
15034 (chain_mod_CFLAGS): Likewise.
15035 (chain_mod_LDFLAGS): Likewise.
15037 * DISTLIST: Added include/grub/efi/chainloader.h,
15038 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
15040 * include/grub/efi/chainloader.h: New file.
15041 * loader/efi/chainloader.c: Likewise.
15042 * loader/efi/chainloader_normal.c: Likewise.
15044 2006-04-30 Marco Gerards <marco@gnu.org>
15046 * commands/configfile.c (grub_cmd_source): New function.
15047 (GRUB_MOD_INIT): Register the commands `source' and `.'.
15048 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
15050 2006-04-30 Marco Gerards <marco@gnu.org>
15052 * normal/execute.c (grub_script_execute_cmd): Change the return
15053 type to `grub_err_t'. Correctly return the error.
15054 (grub_script_execute_cmdline): In case a command line is not a
15055 command or a function, try to interpret it as an assignment.
15057 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
15059 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
15060 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
15061 skip a node whose name is obviously invalid as UTF-16,
15062 i.e. contains a NUL character. Stop the iteration when the last
15063 directory entry is found. Instead of using the return value of
15064 grub_hfsplus_btree_iterate_node, store the value in RET and use
15065 it, because the iterator can be stopped by the last directory
15068 2006-04-30 Marco Gerards <marco@gnu.org>
15070 * include/grub/env.h (grub_env_export): New prototype. Reported
15071 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
15073 2006-04-30 Marco Gerards <marco@gnu.org>
15075 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
15076 size of the extents in a catalog file record.
15078 2006-04-29 Marco Gerards <marco@gnu.org>
15080 * commands/configfile.c (grub_cmd_configfile): Execute the
15081 configfile within its own context.
15083 * include/grub/env.h (grub_env_context_open): New prototype.
15084 (grub_env_context_close): Likewise.
15086 * kern/env.c (grub_env): Removed.
15087 (grub_env_sorted): Likewise.
15088 (grub_env_context): New variable.
15089 (grub_env_var_context): Likewise.
15090 (grub_env_find): Search both the active context and the global
15092 (grub_env_context_open): New function.
15093 (grub_env_context_close): Likewise.
15094 (grub_env_insert): Likewise.
15095 (grub_env_remove): Likewise.
15096 (grub_env_export): Likewise.
15097 (grub_env_set): Changed to use helper functions to avoid code
15099 (grub_env_iterate): Rewritten so both the current context and the
15100 global context are being used.
15102 * normal/command.c (export_command): New function.
15103 (grub_command_init): Register the `export' function.
15105 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
15107 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
15108 explicitly to suppress gcc's warnings.
15109 * fs/fat.c (grub_fat_find_dir): Likewise.
15110 (grub_fat_label): Likewise.
15111 * fs/xfs.c (grub_xfs_read_inode): Likewise.
15112 (grub_xfs_mount): Likewise.
15113 (grub_xfs_label): Likewise.
15114 * fs/affs.c (grub_affs_mount): Likewise.
15115 (grub_affs_label): Likewise.
15116 (grub_affs_iterate_dir): Likewise.
15117 * fs/sfs.c (grub_sfs_mount): Likewise.
15118 (grub_sfs_iterate_dir): Likewise.
15119 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
15120 * fs/hfs.c (grub_hfs_mount): Likewise.
15121 (grub_hfs_cmp_catkeys): Likewise.
15122 (grub_hfs_find_dir): Likewise.
15123 (grub_hfs_dir): Likewise.
15124 (grub_hfs_label): Likewise.
15125 * fs/jfs.c (grub_jfs_mount): Likewise.
15126 (grub_jfs_opendir): Likewise.
15127 (grub_jfs_getent): Likewise.
15128 (grub_jfs_lookup_symlink): Likewise.
15129 (grub_jfs_label): Likewise.
15130 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
15131 (grub_hfsplus_iterate_dir): Likewise.
15132 (grub_hfsplus_btree_iterate_node): Made static.
15134 * util/grub-emu.c (prefix): New variable.
15135 (grub_machine_set_prefix): New function.
15136 (main): Do not set the environment variable "prefix" here. Only
15137 set PREFIX, which is used later by grub_machine_set_prefix.
15139 * include/grub/video.h: Do not include grub/symbol.h.
15140 (grub_video_register): Not exported. This symbol is not defined in
15142 (grub_video_unregister): Likewise.
15143 (grub_video_iterate): Likewise.
15144 (grub_video_setup): Likewise.
15145 (grub_video_restore): Likewise.
15146 (grub_video_get_info): Likewise.
15147 (grub_video_get_blit_format): Likewise.
15148 (grub_video_set_palette): Likewise.
15149 (grub_video_get_palette): Likewise.
15150 (grub_video_set_viewport): Likewise.
15151 (grub_video_get_viewport): Likewise.
15152 (grub_video_map_color): Likewise.
15153 (grub_video_map_rgb): Likewise.
15154 (grub_video_map_rgba): Likewise.
15155 (grub_video_fill_rect): Likewise.
15156 (grub_video_blit_glyph): Likewise.
15157 (grub_video_blit_bitmap): Likewise.
15158 (grub_video_blit_render_target): Likewise.
15159 (grub_video_scroll): Likewise.
15160 (grub_video_swap_buffers): Likewise.
15161 (grub_video_create_render_target): Likewise.
15162 (grub_video_delete_render_target): Likewise.
15163 (grub_video_set_active_render_target): Likewise.
15165 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
15167 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
15169 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
15170 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15171 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15172 instead of $(srcdir)/genkernsyms.sh.
15174 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
15175 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15176 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15177 instead of $(srcdir)/genkernsyms.sh.
15179 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
15180 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15181 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15182 instead of $(srcdir)/genkernsyms.sh.
15184 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
15185 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15186 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15187 instead of $(srcdir)/genkernsyms.sh.
15189 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
15192 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
15194 (gensymlist.sh): New target.
15195 (genkernsyms.sh): Likewise.
15197 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
15198 genkernsyms.sh.in and gensymlist.sh.in.
15200 * genkernsyms.sh: Removed.
15201 * gensymlist.sh: Likewise.
15203 * genkernsyms.sh.in: New file.
15204 * gensymlist.sh.in: Likewise.
15206 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15208 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
15209 clobber "prefix", since we may have already set it manually.
15211 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15213 * kern/misc.c (abort): New alias for grub_abort.
15215 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
15217 A new machine-specific function "grub_machine_set_prefix" is
15218 defined. This is called after loading modules, so that a prefix
15219 initialization can use modules. Also, this change adds an
15220 intensive debugging feature for the memory manager via the
15221 configure option "--enable-mm-debug".
15223 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
15226 * kern/sparc64/ieee1275/init.c (abort): Removed.
15227 (grub_stop): Likewise.
15228 (grub_exit): New function.
15229 (grub_set_prefix): Renamed to ...
15230 (grub_machine_set_prefix): ... this.
15231 (grub_machine_init): Do not call grub_set_prefix.
15233 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
15234 (grub_machine_set_prefix): ... this.
15235 (grub_machine_init): Do not call grub_set_prefix.
15237 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
15238 (grub_machine_init): Do not set the prefix here.
15240 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
15242 * kern/efi/init.c: Include grub/mm.h.
15243 (grub_efi_set_prefix): New function.
15245 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
15246 (grub_efi_get_filename): New function.
15247 (grub_print_device_path): Renamed to ...
15248 (grub_efi_print_device_path): ... this.
15250 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
15251 [MM_DEBUG] (grub_realloc): Likewise.
15252 [MM_DEBUG] (grub_free): Likewise.
15253 [MM_DEBUG] (grub_memalign): Likewise.
15254 [MM_DEBUG] (grub_mm_debug): New variable.
15255 [MM_DEBUG] (grub_debug_malloc): New function.
15256 [MM_DEBUG] (grub_debug_free): New function.
15257 [MM_DEBUG] (grub_debug_realloc): New function.
15258 [MM_DEBUG] (grub_debug_memalign): New function.
15260 * kern/misc.c (grub_abort): Print a newline to distinguish
15263 * kern/main.c (grub_main): Call grub_machine_set_prefix and
15264 grub_set_root_dev after loading modules. This is necessary when
15265 setting a prefix depends on modules.
15267 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
15268 (grub_efi_print_device_path): ... this.
15269 (grub_efi_get_filename): New prototype.
15270 (grub_efi_set_prefix): Likewise.
15272 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
15274 (grub_efidisk_get_device_handle): New prototype.
15275 (grub_efidisk_get_device_name): Likewise.
15277 * include/grub/mm.h: Include config.h.
15278 (MM_DEBUG): Removed.
15279 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
15280 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
15281 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
15282 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
15283 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
15284 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
15285 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
15286 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
15287 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
15289 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
15291 * disk/efi/efidisk.c: Include grub/partition.h.
15292 (iterate_child_devices): New function.
15293 (add_device): First, compare only last device path nodes, so that
15294 devices are sorted by the types.
15295 (grub_efidisk_get_device_handle): New function.
15296 (grub_efidisk_get_device_name): Likewise.
15298 * configure.ac (--enable-mm-debug): New option to enable the
15299 memory manager debugging feature. This makes the binary much
15300 bigger, so is disabled by default.
15302 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
15304 Use grub_abort instead of grub_stop, and grub_exit must be
15305 define in each architecture now. Also, this change adds support
15308 * util/i386/pc/grub-probefs.c: Include grub/term.h.
15309 (grub_getkey): New function.
15310 (grub_term_get_current): Likewise.
15312 * util/i386/pc/grub-setup.c: Include grub/term.h.
15313 (grub_getkey): New function.
15314 (grub_term_get_current): Likewise.
15316 * util/misc.c (grub_stop): Renamed to ...
15317 (grub_exit): ... this.
15319 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
15320 (grub_exit): ... this.
15321 (grub_machine_init): Use grub_abort instead of abort.
15322 (grub_stop): Removed.
15324 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
15327 * kern/i386/pc/startup.S (grub_exit): New function.
15328 (cold_reboot): New label.
15330 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
15331 (grub_efi_init): Call grub_efidisk_init.
15332 (grub_efi_fini): Call grub_efidisk_fini.
15334 * kern/efi/efi.c: Include grub/mm.h.
15335 (grub_efi_console_control_guid): Renamed to ...
15336 (console_control_guid): ... this.
15337 (grub_efi_loaded_image_guid): Renamed to ...
15338 (loaded_image_guid): ... this.
15339 (grub_efi_locate_handle): New function.
15340 (grub_efi_open_protocol): Likewise.
15341 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
15342 GRUB_EFI_CONSOLE_CONTROL_GUID.
15343 (grub_efi_exit): Removed.
15344 (grub_stop): Likewise.
15345 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
15346 (grub_exit): New function.
15347 (grub_print_device_path): Likewise.
15349 * kern/rescue.c (grub_rescue_cmd_exit): New function.
15350 (grub_enter_rescue_mode): Register "exit".
15352 * kern/misc.c (grub_real_dprintf): A cosmetic change.
15353 (grub_abort): New function.
15355 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
15357 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
15359 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
15361 * include/grub/efi/efi.h (grub_efi_exit): Removed.
15362 (grub_print_device_path): New prototype.
15363 (grub_efi_locate_handle): Likewise.
15364 (grub_efi_open_protocol): Likewise.
15366 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
15367 * disk/efi/efidisk.c: Likewise.
15369 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
15371 * include/grub/efi/console_control.h
15372 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
15374 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
15375 last 8 bytes as an array.
15376 (GRUB_EFI_DISK_IO_GUID): New macro.
15377 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
15378 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
15379 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
15381 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
15382 (struct grub_efi_device_path): Rename the member "sub_type" to
15384 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
15385 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
15386 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
15387 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
15388 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
15389 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
15390 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
15391 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
15392 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
15393 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
15394 (struct grub_efi_pci_device_path): New structure.
15395 (grub_efi_pci_device_path_t): New type.
15396 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
15397 (struct grub_efi_pccard_device_path): New structure.
15398 (grub_efi_pccard_device_path_t): New type.
15399 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
15400 (struct grub_efi_memory_mapped_device_path): New structure.
15401 (grub_efi_memory_mapped_device_path_t): New type.
15402 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
15403 (struct grub_efi_vendor_device_path): New structure.
15404 (grub_efi_vendor_device_path_t): New type.
15405 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
15406 (struct grub_efi_controller_device_path): New structure.
15407 (grub_efi_controller_device_path_t): New type.
15408 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
15409 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
15410 (struct grub_efi_acpi_device_path): New structure.
15411 (grub_efi_acpi_device_path_t): New type.
15412 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
15413 (struct grub_efi_expanded_acpi_device_path): New structure.
15414 (grub_efi_expanded_acpi_device_path_t): New type.
15415 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
15416 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
15417 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
15418 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
15419 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
15420 (struct grub_efi_atapi_device_path): New structure.
15421 (grub_efi_atapi_device_path_t): New type.
15422 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
15423 (struct grub_efi_fibre_channel_device_path): New structure.
15424 (grub_efi_fibre_channel_device_path_t): New type.
15425 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
15426 (struct grub_efi_1394_device_path): New structure.
15427 (grub_efi_1394_device_path_t): New type.
15428 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
15429 (struct grub_efi_usb_device_path): New structure.
15430 (grub_efi_usb_device_path_t): New type.
15431 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
15432 (struct grub_efi_usb_class_device_path): New structure.
15433 (grub_efi_usb_class_device_path_t): New type.
15434 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
15435 (struct grub_efi_i2o_device_path): New structure.
15436 (grub_efi_i2o_device_path_t): New type.
15437 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
15438 (struct grub_efi_mac_address_device_path): New structure.
15439 (grub_efi_mac_address_device_path_t): New type.
15440 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
15441 (struct grub_efi_ipv4_device_path): New structure.
15442 (grub_efi_ipv4_device_path_t): New type.
15443 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
15444 (struct grub_efi_ipv6_device_path): New structure.
15445 (grub_efi_ipv6_device_path_t): New type.
15446 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
15447 (struct grub_efi_infiniband_device_path): New structure.
15448 (grub_efi_infiniband_device_path_t): New type.
15449 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
15450 (struct grub_efi_uart_device_path): New structure.
15451 (grub_efi_uart_device_path_t): New type.
15452 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
15453 (struct grub_efi_vendor_messaging_device_path): New structure.
15454 (grub_efi_vendor_messaging_device_path_t): New type.
15455 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
15456 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
15457 (struct grub_efi_hard_drive_device_path): New structure.
15458 (grub_efi_hard_drive_device_path_t): New type.
15459 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
15460 (struct grub_efi_cdrom_device_path): New structure.
15461 (grub_efi_cdrom_device_path_t): New type.
15462 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
15463 (struct grub_efi_vendor_media_device_path): New structure.
15464 (grub_efi_vendor_media_device_path_t): New type.
15465 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
15466 (struct grub_efi_file_path_device_path): New structure.
15467 (grub_efi_file_path_device_path_t): New type.
15468 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
15469 (struct grub_efi_protocol_device_path): New structure.
15470 (grub_efi_protocol_device_path_t): New type.
15471 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
15472 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
15473 (struct grub_efi_bios_device_path): New structure.
15474 (grub_efi_bios_device_path_t): New type.
15475 (struct grub_efi_disk_io): New structure.
15476 (grub_efi_disk_io_t): New type.
15477 (struct grub_efi_block_io_media): New structure.
15478 (grub_efi_block_io_media_t): New type.
15479 (struct grub_efi_block_io): New structure.
15480 (grub_efi_block_io_t): New type.
15482 * include/grub/misc.h (grub_stop): Removed.
15483 (grub_exit): New prototype.
15484 (grub_abort): Likewise.
15486 * include/grub/disk.h (enum grub_disk_dev_id): Added
15487 GRUB_DISK_DEVICE_EFIDISK_ID.
15489 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
15490 disk/efi/efidisk.c.
15491 (kernel_syms.lst): Remove the target if an error occurs.
15493 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
15495 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
15496 as it was simply too buggy.
15498 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
15500 * kern/misc.c (grub_lltoa): New function.
15501 (grub_vsprintf): Added support for the long long suffix,
15504 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
15506 * Makefile.in (LDFLAGS): Add variable.
15507 (LD): Remove variable.
15508 * configure.ac: Add -m32 to LDFLAGS.
15509 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
15510 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
15511 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
15512 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
15513 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
15515 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
15516 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
15517 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
15519 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
15521 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
15522 length for unknown glyph.
15524 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15526 Add support for pre-loaded modules into the EFI port.
15528 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
15529 completely. Accept one more argument DIR. The caller has changed.
15531 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
15533 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
15534 (grub_efi_loaded_image_guid): New variable.
15535 (grub_efi_get_loaded_image): New function.
15536 (grub_arch_modules_addr): Likewise.
15538 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
15541 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
15542 (struct grub_efi_loaded_image): New structure.
15543 (grub_efi_loaded_image_t): New type.
15545 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15547 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
15548 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
15549 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
15551 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
15553 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
15555 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
15557 * DISTLIST: Added include/grub/efi/console.h,
15558 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
15559 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15561 * include/grub/efi/console.h: New file.
15562 * include/grub/efi/time.h: Likewise.
15563 * include/grub/i386/efi/kernel.h: Likewise.
15564 * kern/efi/init.c: Likewise.
15565 * kern/efi/mm.c: Likewise.
15566 * term/efi/console.c: Likewise.
15568 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
15569 (grub_stop): Removed.
15570 (grub_get_rtc): Likewise.
15571 (grub_machine_init): Simply call grub_efi_init.
15572 (grub_machine_fini): Call grub_efi_fini.
15574 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
15575 (grub_efi_output_string): Removed.
15576 (grub_efi_stall): New function.
15577 (grub_stop): Likewise.
15578 (grub_get_rtc): Likewise.
15580 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
15581 (grub_efi_stall): New prototype.
15582 (grub_efi_allocate_pages): Likewise.
15583 (grub_efi_free_pages): Likewise.
15584 (grub_efi_get_memory_map): Likewise.
15585 (grub_efi_mm_init): Likewise.
15586 (grub_efi_mm_fini): Likewise.
15587 (grub_efi_init): Likewise.
15588 (grub_efi_fini): Likewise.
15590 * include/grub/i386/efi/time.h: Do not include
15591 grub/symbol.h. Include grub/efi/time.h.
15592 (GRUB_TICKS_PER_SECOND): Removed.
15593 (grub_get_rtc): Likewise.
15595 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
15596 Added padding. The EFI spec is buggy.
15597 (GRUB_EFI_BLACK): New macro.
15598 (GRUB_EFI_BLUE): Likewise.
15599 (GRUB_EFI_GREEN): Likewise.
15600 (GRUB_EFI_CYAN): Likewise.
15601 (GRUB_EFI_RED): Likewise.
15602 (GRUB_EFI_MAGENTA): Likewise.
15603 (GRUB_EFI_BROWN): Likewise.
15604 (GRUB_EFI_LIGHTGRAY): Likewise.
15605 (GRUB_EFI_BRIGHT): Likewise.
15606 (GRUB_EFI_DARKGRAY): Likewise.
15607 (GRUB_EFI_LIGHTBLUE): Likewise.
15608 (GRUB_EFI_LIGHTGREEN): Likewise.
15609 (GRUB_EFI_LIGHTCYAN): Likewise.
15610 (GRUB_EFI_LIGHTRED): Likewise.
15611 (GRUB_EFI_LIGHTMAGENTA): Likewise.
15612 (GRUB_EFI_YELLOW): Likewise.
15613 (GRUB_EFI_WHITE): Likewise.
15614 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
15615 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
15616 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
15617 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
15618 (GRUB_EFI_BACKGROUND_RED): Likewise.
15619 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
15620 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
15621 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
15622 (GRUB_EFI_TEXT_ATTR): Likewise.
15624 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
15625 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15626 (kernel_mod_HEADERS): Added efi/time.h.
15628 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
15630 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
15631 include/grub/efi/api.h, include/grub/efi/console_control.h,
15632 include/grub/efi/efi.h, include/grub/efi/pe32.h,
15633 include/grub/i386/efi/time.h, kern/efi/efi.c,
15634 kern/i386/efi/init.c, kern/i386/efi/startup.S,
15635 and util/i386/efi/grub-mkimage.c.
15637 * Makefile.in (RMKFILES): Added i386-efi.rmk.
15639 * genmk.rb (PModule#rule): Do not export symbols if
15640 #{prefix}_EXPORTS is set to "no".
15642 * conf/i386-efi.mk: New file.
15643 * conf/i386-efi.rmk: Likewise.
15644 * include/grub/efi/api.h: Likewise.
15645 * include/grub/efi/console_control.h: Likewise.
15646 * include/grub/efi/efi.h: Likewise.
15647 * include/grub/efi/pe32.h: Likewise.
15648 * include/grub/i386/efi/time.h: Likewise.
15649 * kern/efi/efi.c: Likewise.
15650 * kern/i386/efi/init.c: Likewise.
15651 * kern/i386/efi/startup.S: Likewise.
15652 * util/i386/efi/grub-mkimage.c: Likewise.
15654 2006-04-17 Marco Gerards <marco@gnu.org>
15656 * include/grub/script.h: Include <grub/parser.h> and
15657 "grub_script.tab.h".
15658 (struct grub_lexer_param): New struct.
15659 (struct grub_parser_param): Likewise.
15660 (grub_script_create_arglist): Pass the state in an argument.
15661 (grub_script_add_arglist): Likewise.
15662 (grub_script_create_cmdline): Likewise.
15663 (grub_script_create_cmdblock): Likewise.
15664 (grub_script_create_cmdif): Likewise.
15665 (grub_script_create_cmdmenu): Likewise.
15666 (grub_script_add_cmd): Likewise.
15667 (grub_script_arg_add): Likewise.
15668 (grub_script_lexer_ref): Likewise.
15669 (grub_script_lexer_deref): Likewise.
15670 (grub_script_lexer_record_start): Likewise.
15671 (grub_script_lexer_record_stop): Likewise.
15672 (grub_script_mem_record): Likewise.
15673 (grub_script_mem_record_stop): Likewise.
15674 (grub_script_malloc): Likewise.
15675 (grub_script_yylex): Likewise.
15676 (grub_script_yyparse): Likewise.
15677 (grub_script_yyerror): Likewise.
15678 (grub_script_yylex): Likewise.
15679 (grub_script_lexer_init): Return the state.
15681 * normal/lexer.c (grub_script_lexer_state): Removed variable.
15682 (grub_script_lexer_done): Likewise.
15683 (grub_script_lexer_getline): Likewise.
15684 (grub_script_lexer_refs): Likewise.
15685 (script): Likewise.
15686 (newscript): Likewise.
15687 (record): Likewise.
15688 (recording): Likewise.
15689 (recordpos): Likewise.
15690 (recordlen): Likewise.
15691 (grub_script_lexer_init): Return the state instead of setting
15693 (grub_script_lexer_ref): Use the newly added argument for state
15694 instead of globals.
15695 (grub_script_lexer_deref): Likewise.
15696 (grub_script_lexer_record_start): Likewise.
15697 (grub_script_lexer_record_stop): Likewise.
15698 (recordchar): Likewise.
15699 (nextchar): Likewise.
15700 (grub_script_yylex2): Likewise.
15701 (grub_script_yylex): Likewise.
15702 (grub_script_yyerror): Likewise.
15704 * normal/parser.y (func_mem): Removed variable.
15705 (menu_entry): Likewise.
15707 (%lex-param): New parser option.
15708 (%parse-param): Likewise.
15709 (script): Always return the AST.
15710 (argument): Pass the state around.
15711 (arguments): Likewise.
15712 (grubcmd): Likewise.
15713 (commands): Likewise.
15714 (function): Likewise.
15715 (menuentry): Likewise.
15716 (if_statement): Likewise.
15719 * normal/script.c (grub_script_memused): Removed variable.
15720 (grub_script_parsed): Likewise.
15721 (grub_script_malloc): Added a state argument. Use that instead of
15723 (grub_script_mem_record): Likewise.
15724 (grub_script_mem_record_stop): Likewise.
15725 (grub_script_arg_add): Likewise.
15726 (grub_script_add_arglist): Likewise.
15727 (grub_script_create_cmdline): Likewise.
15728 (grub_script_create_cmdif): Likewise.
15729 (grub_script_create_cmdmenu): Likewise.
15730 (grub_script_add_cmd): Likewise.
15731 (grub_script_parse): Setup the state before calling the parser.
15733 2006-04-16 Marco Gerards <marco@gnu.org>
15735 * normal/command.c (grub_command_init): Remove the title command.
15737 * normal/lexer.c (grub_script_yylex): Renamed from this...
15738 (grub_script_yylex2): ... to this.
15739 (grub_script_yylex): New function. Temporary
15740 introduced to filter some tokens.
15741 (grub_script_yyerror): Print a newline.
15743 * normal/main.c (read_config_file): Output information about the
15744 lines that contain errors. Wait for a key after all lines have
15745 been processed. Don't return an empty menu.
15747 * normal/parser.y (func_mem): Don't initialize.
15748 (menu_entry): Likewise.
15749 (err): New variable.
15750 (script): Don't return anything when an error was encountered.
15751 (ws, returns): Removed rules.
15752 (argument): Disabled concatenated variable support.
15753 (arguments): Remove explicit separators.
15754 (grubcmd): Likewise.
15755 (function): Likewise.
15756 (menuentry): Likewise.
15758 (commands): Likewise. Add error handling.
15760 * normal/script.c (grub_script_create_cmdline): If
15761 `grub_script_parsed' is 0, assume the parser encountered an error.
15763 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
15765 * configure.ac: Add support for EFI. Fix the typo
15766 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
15768 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15770 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
15771 foreign multibyte characters should be shown correctly.
15773 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15775 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
15777 (read_config_file): Made it to close file before returning.
15779 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
15781 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
15782 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
15783 video/i386/pc/vbefill.c.
15785 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
15786 video/i386/pc/vbefill.c.
15788 * include/grub/video.h (grub_video_blit_format): New enum.
15789 (grub_video_mode_info): Added new member blit_format.
15790 (grub_video_get_blit_format): New function prototype.
15792 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
15793 function prototype.
15794 (grub_video_vbe_map_rgb): Likewise.
15795 (grub_video_vbe_unmap_color): Likewise.
15797 * include/grub/i386/pc/vbeblit.h: New file.
15799 * include/grub/i386/pc/vbefill.h: New file.
15801 * video/video.c (grub_video_get_blit_format): New function.
15802 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
15803 (grub_video_vbe_map_rgb): Likewise.
15804 (grub_video_vbe_unmap_color): Likewise.
15806 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
15808 (grub_video_vbe_blit_render_target): Changed to use more optimized
15810 (grub_video_vbe_setup): Added detection for optimized settings.
15811 (grub_video_vbe_create_render_target): Likewise.
15813 * video/i386/pc/vbeblit.c: New file.
15815 * video/i386/pc/vbefill.c: New file.
15817 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
15819 * font/manager.c (grub_font_get_glyph): Removed font fixup from
15822 * util/unifont2pff.rb: ... and moved it to here. Improved argument
15823 parsing to support both hex and dec ranges. If filename was missing
15824 show usage information.
15826 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
15828 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
15829 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
15831 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
15832 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
15833 (video_mod_SOURCES): Added.
15834 (video_mod_CFLAGS): Likewise.
15835 (video_mod_LDFLAGS): Likewise.
15836 (gfxterm_mod_SOURCES): Likewise.
15837 (gfxterm_mod_CFLAGS): Likewise.
15838 (gfxterm_mod_LDFLAGS): Likewise.
15839 (videotest_mod_SOURCES): Likewise.
15840 (videotest_mod_CFLAGS): Likewise.
15841 (videotest_mod_LDFLAGS): Likewise.
15842 (vesafb_mod_SOURCES): Removed.
15843 (vesafb_mod_CFLAGS): Likewise.
15844 (vesafb_mod_LDFLAGS): Likewise.
15845 (vga_mod_SOURCES): Likewise.
15846 (vga_mod_CFLAGS): Likewise.
15847 (vga_mod_LDFLAGS): Likewise.
15849 * commands/videotest.c: New file.
15851 * font/manager.c (fill_with_default_glyph): Modified to use
15853 (grub_font_get_glyph): Likewise.
15854 (fontmanager): Renamed from this...
15855 (font_manager): ... to this.
15857 * include/grub/font.h (grub_font_glyph): Added new structure.
15858 (grub_font_get_glyph): Modified to use grub_font_glyph.
15860 * include/grub/misc.h (grub_abs): Added as inline function.
15862 * include/grub/video.h: New file.
15864 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
15865 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
15866 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
15867 (grub_vbe_get_controller_info): Renamed from this...
15868 (grub_vbe_bios_get_controller_info): ... to this.
15869 (grub_vbe_get_mode_info): Renamed from this...
15870 (grub_vbe_bios_get_mode_info): ... to this.
15871 (grub_vbe_set_mode): Renamed from this...
15872 (grub_vbe_bios_set_mode): ... to this.
15873 (grub_vbe_get_mode): Renamed from this...
15874 (grub_vbe_bios_get_mode): ... to this.
15875 (grub_vbe_set_memory_window): Renamed from this...
15876 (grub_vbe_bios_set_memory_window): ... to this.
15877 (grub_vbe_get_memory_window): Renamed from this...
15878 (grub_vbe_bios_get_memory_window): ... to this.
15879 (grub_vbe_set_scanline_length): Renamed from this...
15880 (grub_vbe_set_scanline_length): ... to this.
15881 (grub_vbe_get_scanline_length): Renamed from this...
15882 (grub_vbe_bios_get_scanline_length): ... to this.
15883 (grub_vbe_set_display_start): Renamed from this...
15884 (grub_vbe_bios_set_display_start): ... to this.
15885 (grub_vbe_get_display_start): Renamed from this...
15886 (grub_vbe_bios_get_display_start): ... to this.
15887 (grub_vbe_set_palette_data): Renamed from this...
15888 (grub_vbe_bios_set_palette_data): ... to this.
15889 (grub_vbe_set_pixel_rgb): Removed.
15890 (grub_vbe_set_pixel_index): Likewise.
15892 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
15894 (grub_vbe_bios_get_controller_info): ... to this.
15895 (grub_vbe_get_mode_info): Renamed from this...
15896 (grub_vbe_bios_get_mode_info): ... to this.
15897 (grub_vbe_set_mode): Renamed from this...
15898 (grub_vbe_bios_set_mode): ... to this.
15899 (grub_vbe_get_mode): Renamed from this...
15900 (grub_vbe_bios_get_mode): ... to this.
15901 (grub_vbe_set_memory_window): Renamed from this...
15902 (grub_vbe_bios_set_memory_window): ... to this.
15903 (grub_vbe_get_memory_window): Renamed from this...
15904 (grub_vbe_bios_get_memory_window): ... to this.
15905 (grub_vbe_set_scanline_length): Renamed from this...
15906 (grub_vbe_set_scanline_length): ... to this.
15907 (grub_vbe_get_scanline_length): Renamed from this...
15908 (grub_vbe_bios_get_scanline_length): ... to this.
15909 (grub_vbe_set_display_start): Renamed from this...
15910 (grub_vbe_bios_set_display_start): ... to this.
15911 (grub_vbe_get_display_start): Renamed from this...
15912 (grub_vbe_bios_get_display_start): ... to this.
15913 (grub_vbe_set_palette_data): Renamed from this...
15914 (grub_vbe_bios_set_palette_data): ... to this.
15915 (grub_vbe_bios_get_controller_info): Fixed problem with registers
15916 getting corrupted after calling it. Added more pushes and pops.
15917 (grub_vbe_bios_set_mode): Likewise.
15918 (grub_vbe_bios_get_mode): Likewise.
15919 (grub_vbe_bios_get_memory_window): Likewise.
15920 (grub_vbe_bios_set_scanline_length): Likewise.
15921 (grub_vbe_bios_get_scanline_length): Likewise.
15922 (grub_vbe_bios_get_display_start): Likewise.
15923 (grub_vbe_bios_set_palette_data): Likewise.
15925 * normal/cmdline.c (cl_set_pos): Refresh the screen.
15926 (cl_insert): Likewise.
15927 (cl_delete): Likewise.
15929 * term/gfxterm.c: New file.
15931 * term/i386/pc/vesafb.c: Removed file.
15933 * video/video.c: New file.
15935 * video/i386/pc/vbe.c (real2pm): Added new function.
15936 (grub_video_vbe_draw_pixel): Likewise.
15937 (grub_video_vbe_get_video_ptr): Likewise.
15938 (grub_video_vbe_get_pixel): Likewise
15939 (grub_video_vbe_init): Likewise.
15940 (grub_video_vbe_fini): Likewise.
15941 (grub_video_vbe_setup): Likewise.
15942 (grub_video_vbe_get_info): Likewise.
15943 (grub_video_vbe_set_palette): Likewise.
15944 (grub_video_vbe_get_palette): Likewise.
15945 (grub_video_vbe_set_viewport): Likewise.
15946 (grub_video_vbe_get_viewport): Likewise.
15947 (grub_video_vbe_map_color): Likewise.
15948 (grub_video_vbe_map_rgb): Likewise.
15949 (grub_video_vbe_map_rgba): Likewise.
15950 (grub_video_vbe_unmap_color): Likewise.
15951 (grub_video_vbe_fill_rect): Likewise.
15952 (grub_video_vbe_blit_glyph): Likewise.
15953 (grub_video_vbe_blit_bitmap): Likewise.
15954 (grub_video_vbe_blit_render_target): Likewise.
15955 (grub_video_vbe_scroll): Likewise.
15956 (grub_video_vbe_swap_buffers): Likewise.
15957 (grub_video_vbe_create_render_target): Likewise.
15958 (grub_video_vbe_delete_render_target): Likewise.
15959 (grub_video_vbe_set_active_render_target): Likewise.
15960 (grub_vbe_set_pixel_rgb): Remove function.
15961 (grub_vbe_set_pixel_index): Likewise.
15962 (index_color_mode): Remove static variable.
15963 (active_mode): Likewise.
15964 (framebuffer): Likewise.
15965 (bytes_per_scan_line): Likewise.
15966 (grub_video_vbe_adapter): Added new static variable.
15967 (framebuffer): Likewise.
15968 (render_target): Likewise.
15969 (initial_mode): Likewise.
15970 (mode_in_use): Likewise.
15971 (mode_list): Likewise.
15973 2006-03-10 Marco Gerards <marco@gnu.org>
15975 * configure.ac (AC_INIT): Bumped to 1.93.
15977 * DISTLIST: Added `include/grub/hfs.h'.
15979 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
15981 * boot/i386/pc/boot.S (general_error): Before looping, try INT
15982 18H, which might help the BIOS falling back to next boot media.
15984 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
15986 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
15987 Poe Chen <poe.poechen@gmail.com>.
15989 2006-01-17 Marco Gerards <marco@gnu.org>
15991 * include/grub/normal.h: Include <grub/script.h>.
15992 (grub_command_list): Removed struct.
15993 (grub_command_list_t): Removed type.
15994 (grub_menu_entry): Remove members `num' and `command_list'. Add
15995 members `commands' and `sourcecode'.
15996 * include/grub/script.h: Add inclusion guards.
15997 (grub_script_cmd_menuentry): New struct.
15998 (grub_script_execute_menuentry): New prototype.
15999 (grub_script_lexer_record_start): Likewise.
16000 (grub_script_lexer_record_stop): Likewise.
16001 * normal/execute.c (grub_script_execute_menuentry): New function.
16002 * normal/lexer.c (record, recording, recordpos, recordlen): New
16004 (grub_script_lexer_record_start): New function.
16005 (grub_script_lexer_record_stop): Likewise.
16006 (recordchar): Likewise.
16007 (nextchar): Likewise.
16008 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
16009 2048 as the buffer size. Add the tokens `menuentry' and `@'.
16010 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
16011 (current_menu): New variable.
16012 (free_menu): Mainly rewritten.
16013 (grub_normal_menu_addentry): New function.
16014 (read_config_file): Rewritten.
16015 * normal/menu.c (run_menu_entry): Mainly rewritten.
16016 * normal/menu_entry.c (make_screen): Rewritten the code to insert
16018 (run): Mainly rewritten.
16019 * normal/parser.y (menu_entry): New variable.
16020 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
16021 (menuentry): New rule.
16022 (command): Add `menuentry'.
16023 (if_statement): Allow additional returns before `fi'.
16024 * normal/script.c (grub_script_create_cmdmenu): New function.
16026 2006-01-03 Marco Gerards <marco@gnu.org>
16028 * INSTALL: GNU Bison is required.
16029 * configure.ac: Rewritten the test to detect Bison.
16030 * Makefile.in (YACC): New variable. Reported by Xun Sun
16031 <xun.sun.cn@gmail.com>.
16033 2006-01-03 Marco Gerards <marco@gnu.org>
16035 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
16036 the HFS+ filesystem to filesystem blocks.
16037 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
16038 GCC warning is silenced.
16040 2006-01-03 Marco Gerards <marco@gnu.org>
16042 * partmap/apple.c (apple_partition_map_iterate): Convert the data
16043 read from disk from big endian to host byte order.
16045 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
16047 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
16049 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
16050 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
16051 embedded HFS+ filesystem.
16052 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
16053 (grub_hfs_sblock): Move from here...
16054 * include/grub/hfs.h: To here... New file.
16055 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
16057 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
16059 (grub_hfsplus_volheader): Change type of member `magic' to
16061 (grub_hfsplus_data): Add new member `embedded_offset'.
16062 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
16064 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
16065 Calculate the offset.
16067 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16069 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
16071 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
16073 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16075 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
16076 ENV->NAME is NULL after allocating ENV->VALUE.
16078 2005-12-25 Marco Gerards <marco@gnu.org>
16080 * kern/env.c (grub_env_set): Rewritten the error handling code.
16082 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16084 * geninit.sh: Made more robust, and more portable.
16086 2005-12-25 Marco Gerards <marco@gnu.org>
16088 Add support for Apple HFS+ filesystems.
16090 * fs/hfsplus.c: New file.
16092 * DISTLIST: Added `fs/hfsplus.c'.
16094 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
16095 (hfsplus_mod_SOURCES): New variable.
16096 (hfsplus_mod_CFLAGS): Likewise.
16097 (hfsplus_mod_LDFLAGS): Likewise.
16098 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
16099 (grub_setup_SOURCES): Likewise.
16100 (grub_mkdevicemap_SOURCES): Likewise.
16101 (grub_emu_SOURCES): Likewise.
16102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16104 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
16106 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
16108 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16110 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
16111 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
16112 include/grub/parser.h, include/grub/script.h, kern/parser.c,
16113 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
16114 normal/lexer.c, normal/parser.y, normal/script.c, and
16116 Removed kern/sparc64/cache.c.
16118 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
16119 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
16122 * configure.ac (AC_INIT): Bumped to 1.92.
16124 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
16126 * kern/err.c (grub_error_push): Added new function to support error
16128 (grub_error_pop): Likewise.
16129 (grub_error_stack_items): New local variable to support error stacks.
16130 (grub_error_stack_pos): Likewise.
16131 (grub_error_stack_assert): Likewise.
16132 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
16134 (grub_print_error): Added support to print errors from error stack.
16136 * include/grub/err.h (grub_error_push): Added function prototype.
16137 (grub_error_pop): Likewise.
16139 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
16141 * configure.ac: Accept `powerpc64' as host_cpu.
16142 (amd64): Rename to `biarch32'.
16144 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
16145 non-cacheline-aligned addresses.
16147 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
16148 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
16149 if `size' is non-zero.
16151 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
16153 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
16154 and `cd' to make sure the filename is not prefixed with a
16156 (pkgdata_MODULES): Add `gpt.mod'.
16157 (gpt_mod_SOURCES): New variable.
16158 (gpt_mod_CFLAGS): Likewise.
16159 (gpt_mod_LDFLAGS): Likewise.
16161 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
16163 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
16166 * partmap/gpt.c: New file.
16168 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
16169 GPT partition map is detected.
16171 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
16173 * commands/i386/pc/play.c: New file.
16174 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
16175 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
16178 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
16180 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
16181 ((unused))' to silence gcc warning.
16183 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
16185 * configure.ac: Correct `AC_PROG_YACC' test.
16187 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16189 * util/powerpc/ieee1275/grub-install.in: Run the mount point
16190 check before installing files.
16192 2005-11-22 Mike Small <smallm@panix.com>
16194 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
16195 number regex so multidigit numbers are recognized correctly.
16197 2005-11-22 Mike Small <smallm@panix.com>
16199 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
16200 debugging message before attempting to claim memory.
16201 (grub_rescue_cmd_initrd): Add a claim debugging message and try
16202 multiple addresses in case of failure.
16204 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16206 * term/tparm.c (get_space): Remove empty `if' statement.
16208 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
16210 * kern/parser.c (check_varstate): Rename `state' to 's'.
16212 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16214 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
16215 variable definitions to the beginning of each function. Sort stack
16217 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
16218 `buf' argument to `char *'.
16220 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16222 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
16223 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16224 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16225 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16226 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16227 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16228 configfile.mod, search.mod, gzio.mod and test.mod.
16229 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16230 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16231 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16232 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16233 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16234 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16235 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16236 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16237 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16238 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16239 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16240 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16241 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16242 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16243 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16244 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16245 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16246 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16247 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16248 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16249 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16250 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16251 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
16253 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
16255 (pkgdata_MODULES): Add test.mod.
16257 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16259 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
16260 appending to variables with "+=".
16261 (PModule): Use full pathname to generate *.lst filenames.
16263 * Makefile.in: Fixed list rules moved from genmk.rb.
16264 (.DELETE_ON_ERROR): New special target.
16265 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
16267 * conf/i386-pc.rmk: Include conf/common.mk.
16268 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16269 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16270 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16271 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16272 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16273 configfile.mod, search.mod, gzio.mod and test.mod.
16274 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16275 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16276 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16277 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16278 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16279 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16280 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16281 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16282 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16283 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16284 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16285 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16286 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16287 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16288 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16289 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16290 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16291 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16292 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16293 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16294 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16295 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16296 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
16298 * conf/common.rmk: ... to here. New file.
16300 * conf/common.mk: New file.
16302 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
16304 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
16305 (grub_script.tab.c): ... here.
16307 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
16308 (grub_script.tab.c): ... here.
16310 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
16311 (grub_script.tab.c): ... here.
16313 * normal/command.c (grub_command_find): Fixed a memory leak of
16314 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
16316 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16318 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
16319 "@" which marks the start of a comment on ARM.
16320 (VARIABLE): Likewise.
16322 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16324 Add support for Linux/ADFS partition tables.
16326 * partmap/acorn.c: New file.
16328 * include/grub/acorn_filecore.h: Likewise.
16330 * DISTLIST: Added `partmap/acorn.c' and
16331 `include/grub/acorn_filecore.h'.
16333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16335 (pkgdata_MODULES): Add `acorn.mod'.
16336 (acorn_mod_SOURCES): New variable.
16337 (acorn_mod_CFLAGS): Likewise.
16339 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16341 (pkgdata_MODULES): Add `acorn.mod'.
16342 (acorn_mod_SOURCES): New variable.
16343 (acorn_mod_CFLAGS): Likewise.
16345 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
16346 (pkgdata_MODULES): Add `acorn.mod'.
16347 (acorn_mod_SOURCES): New variable.
16348 (acorn_mod_CFLAGS): Likewise.
16349 (acorn_mod_LDFLAGS): Likewise.
16351 * include/types.h (grub_disk_addr_t): New typedef.
16353 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
16355 * geninit.sh: New file.
16357 * geninitheader.sh: Likewise.
16359 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
16360 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
16361 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
16362 * commands/configfile.c (grub_configfile_init)
16363 (grub_configfile_fini): Likewise.
16364 * commands/default.c (grub_default_init, grub_default_fini):
16366 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
16367 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
16368 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
16369 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
16371 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
16372 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
16374 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
16375 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
16377 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
16379 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
16381 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
16382 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
16383 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
16384 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
16385 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
16386 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
16387 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
16388 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
16389 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
16390 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
16391 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
16392 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
16393 * partmap/amiga.c (grub_amiga_partition_map_init)
16394 (grub_amiga_partition_map_fini): Likewise.
16395 * partmap/apple.c (grub_apple_partition_map_init)
16396 (grub_apple_partition_map_fini): Likewise.
16397 * partmap/pc.c (grub_pc_partition_map_init)
16398 (grub_pc_partition_map_fini): Likewise.
16399 * partmap/sun.c (grub_sun_partition_map_init,
16400 grub_sun_partition_map_fini): Likewise.
16401 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
16404 * util/grub-emu.c: Include <grub_modules_init.h>.
16405 (main): Don't initialize and de-initialize any modules directly,
16406 use `grub_init_all' and `grub_fini_all' instead.
16408 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
16409 `grub_vesafb_mod_init'.
16410 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
16412 * term/i386/pc/vga.c (grub_vga_init): Renamed to
16413 `grub_vga_mod_init'. Updated all users.
16414 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
16416 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
16417 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
16420 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
16421 Generate a function to initialize the module in utilities.
16422 Updated all callers.
16423 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
16424 initialize the module in utilities. Updated all callers.
16426 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16428 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
16429 escape sequence and a literal ^L to clear the screen.
16431 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
16432 when returning from Open Firmware.
16434 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16436 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
16437 (grub_ofconsole_height): Likewise.
16438 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
16439 manually insert a '\n'.
16440 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
16441 `grub_ofconsole_height'. Return early if these are already set.
16443 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
16445 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16446 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
16447 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
16448 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
16449 and `normal/script.c'.
16450 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16451 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16452 (test_mod_SOURCES): New variable.
16453 (test_mod_CFLAGS): Likewise.
16454 (test_mod_LDFLAGS): Likewise.
16455 (pkgdata_MODULES): Add `test.mod'.
16456 (grub_script.tab.c): New rule.
16457 (grub_script.tab.h): Likewise.
16459 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
16461 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16462 `commands/test.c', `normal/execute.c', `normal/lexer.c',
16463 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16464 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16465 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16466 (test_mod_SOURCES): New variable.
16467 (test_mod_CFLAGS): Likewise.
16468 (pkgdata_MODULES): Add `test.mod'.
16469 (grub_script.tab.c): New rule.
16470 (grub_script.tab.h): Likewise.
16472 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
16474 Add initial scripting support.
16476 * commands/test.c: New file.
16477 * include/grub/script.h: Likewise.
16478 * normal/execute.c: Likewise.
16479 * normal/function.c: Likewise.
16480 * normal/lexer.c: Likewise.
16481 * normal/parser.y: Likewise.
16482 * normal/script.c: Likewise.
16484 * configure.ac: Add `AC_PROG_YACC' test.
16486 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
16487 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
16488 `normal/function.c' and `normal/script.c'.
16489 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16490 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16491 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
16493 (pkgdata_MODULES): Add `test.mod'.
16494 (grub_script.tab.c): New rule.
16495 (grub_script.tab.h): Likewise.
16497 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
16499 * include/grub/normal.h (grub_test_init): New prototype.
16500 (grub_test_fini): Likewise.
16502 * normal/command.c: Include <grub/script.h>.
16503 (grub_command_execute): Rewritten.
16505 * util/grub-emu.c (main): Call `grub_test_init' and
16508 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16510 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
16512 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
16513 there are no pending characters.
16515 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16517 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
16518 `grub_strndup' to drop device arguments. Replace unnecessary
16519 `grub_strndup' with `grub_strdup'.
16521 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16523 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
16524 `debug' environment variable has been set.
16526 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
16528 * Makefile.in (install-local): Use $(DATA).
16529 (uninstall): Likewise.
16530 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
16531 (sbin_UTILITIES): ... to here.
16532 (sbin_SCRIPTS): New variable.
16533 (grub_install_SOURCES): New variable.
16534 * util/powerpc/ieee1275/grub-install.in: New file.
16535 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
16537 (add_segments): Call `grub_util_get_path'.
16539 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
16541 From Timothy Baldwin:
16542 * commands/ls.c (grub_ls_list_files): Close FILE with
16544 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
16546 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
16548 * include/grub/parser.h: New file.
16550 * kern/parser.c: Likewise.
16552 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
16553 (grub_setup_SOURCES): Likewise.
16554 (grub_probefs_SOURCES): Likewise.
16555 (grub_emu_SOURCES): Likewise.
16556 (kernel_img_HEADERS): Add `parser.h'.
16558 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16559 (grub_emu_SOURCES): Add `kern/parser.c'.
16560 (grubof_SOURCES): Likewise.
16562 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16563 (grubof_SOURCES): Add `kern/parser.c'.
16565 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
16567 * kern/misc.c (grub_split_cmdline): Removed function.
16569 * kern/rescue.c: Include <grub/parser.h>.
16570 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
16571 of `grub_split_cmdline'.
16573 * normal/command.c: Include <grub/parser.h>.
16574 (grub_command_execute): Use `grub_parser_split_cmdline' instead
16575 of `grub_split_cmdline'.
16577 * normal/completion.c: Include <grub/parser.h>.
16578 (cmdline_state): New variable.
16579 (iterate_dir): End the filename with a quote depending on the
16580 command line state.
16581 (get_state): new function.
16582 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
16583 split the arguments and determine the current argument. When the
16584 argument string is not quoted, escape all spaces.
16586 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16588 * normal/sparc64/setjmp.S: New file.
16590 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16592 * include/grub/sparc64/libgcc.h: New file.
16593 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
16594 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
16595 normal/sparc64/setjmp.c.
16597 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16599 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
16600 * kern/sparc64/cache.S: New file.
16601 * kern/sparc64/cache.c: Removed.
16602 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
16603 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
16605 (COMMON_LDFLAGS): Add -melf64_sparc.
16606 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
16607 (grubof_SOURCES): Use cache.S instead of cache.c.
16608 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
16609 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
16610 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
16612 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
16613 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
16614 (linux_mod_CFLAGS): Commented out.
16615 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
16616 out because module isn't built.
16617 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
16618 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
16619 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
16620 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
16621 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
16622 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16623 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16624 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
16625 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
16626 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
16627 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16628 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16629 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
16630 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
16632 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
16634 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
16635 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
16636 longer, because HFS should not be used on PC.
16638 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16640 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
16641 consistently within the loop.
16643 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
16645 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
16646 directory can not be read.
16648 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16650 * configure.ac (AC_INIT): Increase the version number to 1.91.
16652 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
16653 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
16654 term/i386/pc/serial.c.
16656 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16658 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
16659 file size must be permitted.
16661 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
16662 between %ah and %al.
16664 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16666 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
16668 Call the hook with a NUL-terminated filename.
16669 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
16672 * kern/term.c (cursor_state): New variable.
16673 (grub_term_set_current): Reset the cursor state on a new
16675 (grub_setcursor): Rewritten to use CURSOR_STATE.
16676 (grub_getcursor): New function.
16678 * include/grub/term.h (grub_getcursor): New prototype.
16680 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
16681 integers on ARM. Reported by Timothy Baldwin
16682 <T.E.Baldwin99@members.leeds.ac.uk>.
16684 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
16686 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
16688 (grub_sfs_dir): Likewise.
16690 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
16692 Add support for the SFS filesystem.
16694 * fs/sfs.c: New file.
16696 * DISTLIST: Added `fs/sfs.c'.
16698 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
16699 (grub_probefs_SOURCES): Likewise.
16700 (grub_emu_SOURCES): Likewise.
16701 (pkgdata_MODULES): Add `sfs.mod'.
16702 (sfs_mod_SOURCES): New variable.
16703 (sfs_mod_CFLAGS): Likewise.
16704 (sfs_mod_LDFLAGS): Likewise.
16706 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
16707 (pkgdata_MODULES): Add `sfs.mod'.
16708 (sfs_mod_SOURCES): New variable.
16709 (sfs_mod_CFLAGS): Likewise.
16711 * util/grub-emu.c (main): Call `grub_sfs_init' and
16714 * include/grub/fs.h (grub_sfs_init): New prototype.
16715 (grub_sfs_fini): Likewise.
16717 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
16719 Add support for the AFFS filesystem.
16721 * fs/affs.c: New file.
16723 * DISTLIST: Added `fs/affs.c'.
16725 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
16726 (grub_probefs_SOURCES): Likewise.
16727 (grub_emu_SOURCES): Likewise.
16728 (pkgdata_MODULES): Add `affs.mod'.
16729 (affs_mod_SOURCES): New variable.
16730 (affs_mod_CFLAGS): Likewise.
16731 (affs_mod_LDFLAGS): Likewise.
16733 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
16734 (pkgdata_MODULES): Add `affs.mod'.
16735 (affs_mod_SOURCES): New variable.
16736 (affs_mod_CFLAGS): Likewise.
16738 * util/grub-emu.c (main): Call `grub_affs_init' and
16741 * include/grub/fs.h (grub_affs_init): New prototype.
16742 (grub_affs_fini): Likewise.
16744 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16746 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
16748 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16750 * configure.ac: Accept `x86_64' as host_cpu. In that case add
16753 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
16756 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
16757 (COMMON_LDFLAGS): New variable.
16758 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
16759 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
16760 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
16761 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
16762 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
16763 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
16764 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
16765 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
16766 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
16767 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
16768 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16769 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16770 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
16771 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
16772 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
16774 (normal_mod_ASFLAGS): Add `-m32'.
16776 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
16777 (grub_host_size_t, grub_host_ssize_t): New types.
16778 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
16779 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
16780 `GRUB_HOST_SIZEOF_VOID_P'.
16782 * include/grub/kernel.h (struct grub_module_header): Type of
16783 member offset changed to `grub_host_off_t'. Type of member size
16784 changed to `grub_host_size_t'.
16785 (struct grub_module_info): Type of member offset changed to
16786 `grub_host_off_t'. Type of member size changed to
16787 `grub_host_size_t'.
16789 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
16791 Make GRUB's kernel compliant to Multiboot Specification.
16793 * kern/i386/pc/startup.S (multiboot_header): New label.
16794 (multiboot_entry): Likewise.
16795 (multiboot_trampoline): Likewise.
16797 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16798 Increased to 0x4A0.
16800 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
16801 put parentheses after a question mark.
16802 [!GRUB_UTIL] (my_mod): New variable.
16804 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
16806 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
16808 Adds support for the XFS filesystem. Btrees are not supported
16811 * fs/xfs.c: New file.
16813 * DISTLIST: Added `fs/xfs.c'.
16815 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
16816 (grub_probefs_SOURCES): Likewise.
16817 (grub_emu_SOURCES): Likewise.
16818 (pkgdata_MODULES): Add `xfs.mod'.
16819 (xfs_mod_SOURCES): New variable.
16820 (xfs_mod_CFLAGS): Likewise.
16822 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
16823 (pkgdata_MODULES): Add `xfs.mod'.
16824 (xfs_mod_SOURCES): New variable.
16825 (xfs_mod_CFLAGS): Likewise.
16827 * util/grub-emu.c (main): Call `grub_xfs_init' and
16830 * include/grub/fs.h (grub_xfs_init): New prototype.
16831 (grub_xfs_fini): Likewise.
16834 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
16836 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
16837 color modes, allow greater than 16 colors to be configured as
16840 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
16842 * normal/completion.c (complete_arguments): Add the qualifier
16843 const into OPTIONS.
16845 From Omniflux <omniflux+lists@omniflux.com>:
16846 * include/grub/terminfo.h: New file.
16847 * include/grub/tparm.h: Likewise.
16848 * include/grub/i386/pc/serial.h: Likewise.
16849 * term/terminfo.c: Likewise.
16850 * term/tparm.c: Likewise.
16851 * term/i386/pc/serial.c: Likewise.
16852 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
16854 (terminfo_mod_SOURCES): New variable.
16855 (terminfo_mod_CFLAGS): Likewise.
16856 (serial_mod_SOURCES): Likewise.
16857 (serial_mod_CFLAGS): Likewise.
16859 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
16861 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
16862 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
16863 and kern/powerpc/ieee1275/cmain.c, respectively.
16865 * boot/powerpc/ieee1275/crt0.S: Moved to ...
16866 * kern/powerpc/ieee1275/crt0.S: ... here.
16868 * boot/powerpc/ieee1275/cmain.c: Moved to ...
16869 * kern/powerpc/ieee1275/cmain.c: ... here.
16871 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
16872 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
16873 instead of boot/powerpc/ieee1275/crt0.S and
16874 boot/powerpc/ieee1275/cmain.c, respectively.
16876 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
16877 sectors. It was not used anyway.
16879 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16881 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
16882 `unused parameter' warning.
16884 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16886 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
16888 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
16891 2005-08-28 Marco Gerards <metgerards@student.han.nl>
16893 * include/grub/normal.h (enum grub_completion_type): Added
16894 `GRUB_COMPLETION_TYPE_ARGUMENT'.
16896 * normal/cmdline.c (print_completion): Handle
16897 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
16898 * normal/menu_entry.c (store_completion): Likewise.
16900 * normal/completion.c (complete_arguments): New function.
16901 (grub_normal_do_completion): Call `complete_arguments' when the
16902 current words start with a dash.
16904 2005-08-27 Marco Gerards <metgerards@student.han.nl>
16906 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
16907 `gzio.mod' instead of `io.mod').
16909 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
16911 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
16912 (DISTDIRS): Added io and video.
16913 Rewrite the search routine to make an output consistently.
16915 * DISTLIST: Added conf/sparc64-ieee1275.mk,
16916 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
16917 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
16918 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
16919 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
16920 util/powerpc/ieee1275/misc.c.
16922 * include/grub/gzio.h: New file.
16923 * io/gzio.c: Likewise.
16925 * kern/file.c (grub_file_close): Call grub_device_close only if
16926 FILE->DEVICE is not NULL.
16928 * include/grub/mm.h [!NULL] (NULL): New macro.
16930 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
16932 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
16933 (pkgdata_MODULES): Added gzio.mod.
16934 (gzio_mod_SOURCES): New variable.
16935 (gzio_mod_CFLAGS): Likewise.
16937 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
16938 (pkgdata_MODULES): Added gzio.mod.
16939 (gzio_mod_SOURCES): New variable.
16940 (gzio_mod_CFLAGS): Likewise.
16942 * commands/cat.c: Include grub/gzio.h.
16943 (grub_cmd_cat): Use grub_gzfile_open instead of
16946 * commands/cmp.c: Include grub/gzio.h.
16947 (grub_cmd_cmp): Use grub_gzfile_open instead of
16950 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
16951 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
16953 (grub_rescue_cmd_module): Likewise.
16955 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
16957 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
16958 kern/sparc64/ieee1275/init.c because it contains _start.
16959 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
16961 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
16963 * configure.ac: Add support for sparc64 host with ieee1275
16965 * configure: Generated from configure.ac.
16966 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
16968 (grub_ofdisk_read): Likewise.
16969 (grub_ofdisk_open): Use %p to print pointer values, and cast the
16970 pointers as (void *) to remove a warning.
16971 (grub_ofdisk_close): Likewise.
16972 (grub_ofdisk_read): Likewise.
16973 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
16974 returns, so make it return void to remove a warning.
16975 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
16976 Corresponding prototype change.
16977 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
16978 values, and cast the pointers as (void *) to remove a warning.
16979 (grub_mm_dump): Likewise.
16980 * conf/sparc64-ieee1275.mk: New file.
16981 * conf/sparc64-ieee1275.rmk: Likewise.
16982 * include/grub/sparc64/setjmp.h: Likewise.
16983 * include/grub/sparc64/types.h: Likewise.
16984 * include/grub/sparc64/ieee1275/console.h: Likewise.
16985 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
16986 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
16987 * include/grub/sparc64/ieee1275/time.h: Likewise.
16988 * kern/sparc64/cache.c: Likewise.
16989 * kern/sparc64/dl.c: Likewise.
16990 * kern/sparc64/ieee1275/init.c: Likewise.
16991 * kern/sparc64/ieee1275/openfw.c: Likewise.
16993 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
16995 * util/console.c (grub_ncurses_putchar): If C is greater than
16996 0x7f, set C to a question mark.
16997 (grub_ncurses_getcharwidth): New function.
16998 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
17001 * normal/menu.c (print_entry): Made aware of Unicode. First,
17002 convert TITLE to UCS-4, and predict the cursor position by
17005 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
17007 * kern/misc.c (grub_utf16_to_utf8): Likewise.
17009 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17011 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
17012 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17015 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
17016 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17017 grub_strcpy and grub_strlen. Take it into account that a space
17018 character is inserted as a delimiter.
17020 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17022 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
17023 invalid magic in the error.
17025 * commands/search.c: New file.
17027 * util/grub-emu.c (main): Call grub_search_init and
17030 * kern/rescue.c (grub_rescue_print_disks): Removed.
17031 (grub_rescue_print_devices): New function.
17032 (grub_rescue_cmd_ls): Use grub_device_iterate with
17033 grub_rescue_print_devices instead of grub_disk_dev_iterate with
17034 grub_rescue_print_disks.
17036 * kern/partition.c (grub_partition_iterate): Return the result of
17037 PARTMAP->ITERATE instead of GRUB_ERRNO.
17039 * kern/device.c: Include grub/partition.h.
17040 (grub_device_iterate): New function.
17042 * include/grub/partition.h (grub_partition_iterate): Return int
17043 instead of grub_err_t.
17045 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
17047 [GRUB_UTIL] (grub_search_fini): Likewise.
17049 * include/grub/device.h (grub_device_iterate): New prototype.
17051 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17053 (pkgdata_MODULES): Added search.mod.
17054 (search_mod_SOURCES): New variable.
17055 (search_mod_CFLAGS): Likewise.
17057 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
17058 (pkgdata_MODULES): Added search.mod.
17059 (search_mod_SOURCES): New variable.
17060 (search_mod_CFLAGS): Likewise.
17062 * commands/ls.c (grub_ls_list_disks): Renamed to ...
17063 (grub_ls_list_devices): ... this, and use grub_device_iterate.
17064 All callers changed.
17066 * DISTLIST: Added commands/search.c.
17068 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17070 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
17072 (grub_getcharwidth): New function.
17074 * kern/misc.c (grub_utf8_to_ucs4): New function.
17076 * include/grub/term.h (struct grub_term): Added a new member
17078 (grub_getcharwidth): New prototype.
17080 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
17082 * term/i386/pc/console.c (map_char): New function. Segregated from
17083 grub_console_putchar.
17084 (grub_console_putchar): Use map_char.
17085 (grub_console_getcharwidth): New function.
17086 (grub_console_term): Specified grub_console_getcharwidth as
17089 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
17090 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
17092 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
17094 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
17095 on grub_strtoul completely.
17096 (write_char): Declare local variables in the beginning of the
17098 (grub_vesafb_getcharwidth): New function.
17099 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
17102 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
17104 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
17105 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
17106 commands/i386/pc/vbetest.c.
17108 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
17109 call grub_vbe_get_controller_info again, because the returned
17110 information is volatile.
17111 (grub_vbe_set_video_mode): Mostly rewritten.
17112 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
17113 grub_vbe_status_t correctly.
17114 (grub_vbe_get_video_mode_info): Likewise.
17115 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
17116 several if statements.
17118 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
17119 * commands/i386/pc/vbeinfo.c: ... this.
17121 * commands/i386/pc/vbe_test.c: Renamed to ...
17122 * commands/i386/pc/vbetest.c: ... this.
17124 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
17126 (grub_cmd_vbeinfo): ... this. Save video modes before
17127 iterating. Skip a video mode, if it is not available, not enough
17128 information is given or it is monochrome. Show the memory
17129 model. Leave the interpretation of MODEVAR to grub_strtoul
17131 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
17132 (GRUB_MOD_FINI): Likewise.
17134 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
17135 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
17136 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
17137 duplicated grub_env_get. Leave the interpretation of MODEVAR to
17138 grub_strtoul completely.
17139 (real2pm): Removed.
17140 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
17141 (GRUB_MOD_FINI): Likewise.
17143 * normal/misc.c: Include grub/mm.h.
17145 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
17146 vbe_list_modes with vbetest.mod and vbeinfo.mod.
17147 (vbe_list_modes_mod_SOURCES): Removed.
17148 (vbe_list_modes_mod_CFLAGS): Likewise.
17149 (vbe_test_mod_SOURCES): Likewise.
17150 (vbe_test_mod_CFLAGS): Likewise.
17151 (vbeinfo_mod_SOURCES): New variable.
17152 (vbeinfo_mod_CFLAGS): Likewise.
17153 (vbetest_mod_SOURCES): Likewise.
17154 (vbetest_mod_CFLAGS): Likewise.
17156 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
17158 * normal/misc.c: New file.
17160 * DISTLIST: Added normal/misc.c.
17162 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
17163 DISK to HOOK. Call HOOK with DISK.
17164 * partmap/apple.c (apple_partition_map_iterate): Likewise.
17165 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17166 * partmap/sun.c (sun_partition_map_iterate): Likewise.
17168 * normal/menu_entry.c (struct screen): Added a new member
17169 "completion_shown".
17170 (completion_buffer): New global variable.
17171 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
17172 (store_completion): New function.
17173 (complete): Likewise.
17174 (clear_completions): Likewise.
17175 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
17176 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
17177 a tab, call complete.
17179 * normal/completion.c (disk_dev): Removed.
17180 (print_simple_completion): Likewise.
17181 (print_partition_completion): Likewise.
17182 (print_func): New global variable.
17183 (add_completion): Do not take the arguments WHAT or PRINT any
17184 longer. Added a new argument TYPE. Instead of printing directly,
17185 call PRINT_FUNC if not NULL.
17186 All callers changed.
17187 (complete_device): Use a local variable DEV instead of
17188 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
17189 (grub_normal_do_completion): Take a new argument HOOK. Do not
17190 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
17191 empty string, return NULL instead.
17192 All callers changed.
17194 * normal/cmdline.c (print_completion): New function.
17196 * kern/partition.c (grub_partition_iterate): Add an argument DISK
17198 All callers changed.
17200 * kern/disk.c (grub_print_partinfo): Removed.
17202 * include/grub/partition.h (struct grub_partition_map): Add a new
17203 argument DISK into HOOK of ITERATE.
17204 (grub_partition_iterate): Add a new argument DISK to HOOK.
17206 * include/grub/normal.h (enum grub_completion_type): New enum.
17207 (grub_completion_type_t): New type.
17208 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
17209 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
17210 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
17211 (GRUB_COMPLETION_TYPE_FILE): Likewise.
17212 (grub_normal_do_completion): Added a new argument HOOK.
17213 (grub_normal_print_device_info): New prototype.
17215 * include/grub/disk.h (grub_print_partinfo): Removed.
17217 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
17218 (normal_mod_SOURCES): Likewise.
17219 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17220 (normal_mod_SOURCES): Likewise.
17222 * commands/ls.c (grub_ls_list_disks): Use
17223 grub_normal_print_device_info instead of grub_print_partinfo. Free
17225 (grub_ls_list_files): Use grub_normal_print_device_info instead of
17226 duplicating the code.
17228 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17230 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
17231 follow GCS more precisely.
17232 * commands/i386/pc/vbe_test.c: Likewise.
17233 * include/grub/i386/pc/vbe.h: Likewise.
17234 * term/i386/pc/vesafb.c: Likewise.
17235 * video/i386/pc/vbe.c: Likewise.
17237 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17239 * DISTLIST: Added term/i386/pc/vesafb.c
17240 DISTLIST: Added video/i386/pc/vbe.c
17241 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
17242 DISTLIST: Added commands/i386/pc/vbe_test.c.
17243 * commands/i386/pc/vbe_list_modes.c: New file.
17244 * commands/i386/pc/vbe_test.c: Likewise.
17245 * term/i386/pc/vesafb.c: Likewise.
17246 * video/i386/pc/vbe.c: Likewise.
17247 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
17248 (grub_vbe_probe) Added prototype.
17249 (grub_vbe_set_video_mode) Likewise.
17250 (grub_vbe_get_video_mode) Likewise.
17251 (grub_vbe_get_video_mode_info) Likewise.
17252 (grub_vbe_set_pixel_rgb) Likewise.
17253 (grub_vbe_set_pixel_index) Likewise.
17254 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
17255 (pkgdata_MODULES): Added vesafb.mod.
17256 (pkgdata_MODULES): Added vbe_list_modes.mod.
17257 (pkgdata_MODULES): Added vbe_test.mod.
17258 (vbe_mod_SOURCES): Added.
17259 (vbe_mod_CFLAGS): Likewise.
17260 (vesafb_mod_SOURCES): Likewise.
17261 (vesafb_mod_CFLAGS): Likewise.
17262 (vbe_list_modes_mod_SOURCES): Likewise.
17263 (vbe_list_modes_mod_CFLAGS): Likewise.
17264 (vbe_test_mod_SOURCES): Likewise.
17265 (vbe_test_mod_CFLAGS): Likewise.
17267 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
17269 * normal/command.c (grub_command_execute): If INTERACTIVE is
17270 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
17271 CMDLINE. Disable the pager if INTERACTIVE is true.
17272 All callers are changed.
17274 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
17275 before reading a config file.
17276 * normal/main.c (read_config_file): Even if a command is not
17277 found, register it if it is within an entry.
17279 * util/grub-emu.c: Include sys/types.h and unistd.h.
17280 (options): Added --hold.
17281 (struct arguments): Added a new member "hold".
17282 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
17284 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
17285 cleared by a debugger, if it is not zero.
17287 * include/grub/normal.h (grub_command_execute): Add an argument
17290 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
17292 * DISTLIST: Added include/grub/i386/pc/vbe.h.
17294 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
17296 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
17297 program with another one, because the old one didn't detect a bug
17298 in gcc-3.4. Always use regparm 2, because the new test is still
17299 not enough for gcc-4.0. Someone must investigate a simple test
17300 case which detects a bug in gcc-4.0.
17302 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
17304 * DISTLIST: Added normal/completion.c.
17306 * normal/completion.c: New file.
17308 * term/i386/pc/console.c (grub_console_getwh): New function.
17309 (grub_console_term): Assign grub_console_getwh to getwh.
17311 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
17312 function is defined in normal/completion.c as
17313 grub_normal_do_completion.
17314 (grub_cmdline_get): Use grub_normal_do_completion instead of
17317 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
17318 returns non-zero, otherwise return 0.
17319 (grub_partition_iterate): First, probe the partition map. Then,
17320 call ITERATE only for this partition map.
17322 * kern/misc.c (grub_strncmp): Rewritten.
17324 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
17325 returns non-zero. Otherwise return 0.
17327 * include/grub/partition.h (grub_partition_map_iterate): Return
17328 int instead of void.
17330 * include/grub/normal.h (grub_normal_do_completion): New prototype.
17332 * include/grub/misc.h (grub_strncmp): Change the type of N to
17335 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
17338 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
17339 unsigned explicitly before comparing it with I.
17341 * kern/main.c (grub_env_write_root): Add the attribute unused into
17344 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17345 normal/completion.c.
17346 (normal_mod_SOURCES): Likewise.
17347 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17348 (normal_mod_SOURCES): Likewise.
17350 * normal/command.c (grub_iterate_commands): If ITERATE returns
17351 non-zero, return one immediately.
17353 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
17355 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
17356 * kern/i386/pc/startup.S: Updated Global Descriptor table's
17358 (grub_vbe_get_controller_info): New function.
17359 (grub_vbe_get_mode_info): Likewise.
17360 (grub_vbe_set_mode): Likewise.
17361 (grub_vbe_get_mode): Likewise.
17362 (grub_vbe_set_memory_window): Likewise.
17363 (grub_vbe_get_memory_window): Likewise.
17364 (grub_vbe_set_scanline_length): Likewise.
17365 (grub_vbe_get_scanline_length): Likewise.
17366 (grub_vbe_set_display_start): Likewise.
17367 (grub_vbe_get_display_start): Likewise.
17368 (grub_vbe_set_palette_data): Likewise.
17369 * include/grub/i386/pc/vbe.h: New file.
17371 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17373 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17374 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
17375 * DISTLIST: Likewise.
17376 * kern/ieee1275/of.c: Moved to ...
17377 * kern/ieee1275/ieee1275.c: ... here.
17379 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17381 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
17382 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
17383 Pass 0 as `end' parameter to grub_strtoul().
17385 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17387 * include/grub/powerpc/ieee1275/console.h: Do not include
17388 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
17390 (grub_console_cur_color): Remove i386-specific prototype.
17391 (grub_console_real_putchar): Likewise.
17392 (grub_console_checkkey): Likewise.
17393 (grub_console_getkey): Likewise.
17394 (grub_console_getxy): Likewise.
17395 (grub_console_gotoxy): Likewise.
17396 (grub_console_cls): Likewise.
17397 (grub_console_setcursor): Likewise.
17398 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
17399 Include <grub/machine/console.h>.
17400 * term/ieee1275/ofconsole.c: Likewise.
17402 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
17404 * Makefile.in (LIBLZO): New variable.
17406 * configure.ac: Check for LZO version 2.
17408 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
17409 lzo/lzo1x.h instead of lzo1x.h.
17411 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
17414 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
17415 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
17417 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
17418 copying the data from PARTITION to P.
17420 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17422 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
17423 negative, unload the module.
17425 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
17426 map is "pc_partition_map" but not "pc".
17427 (usage): Fix the description. The options are --boot-image and
17428 --core-image but not --boot-file or --core-file.
17429 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
17430 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
17433 * util/i386/pc/grub-install.in: Do not specify --boot-file or
17434 --core-file. Specify INSTALL_DEVICE as an argument.
17436 * util/console.c: Include config.h.
17437 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
17438 [HAVE_NCURSES_H]: Include ncurses.h.
17439 [HAVE_CURSES_H]: Include curses.h.
17440 [!A_NORMAL] (A_NORMAL): Defined as zero.
17441 [!A_STANDOUT] (A_STANDOUT): Likewise.
17443 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
17445 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
17447 * configure.ac: Check for curses libraries and headers.
17449 * Makefile.in (LIBCURSES): New variable.
17451 * genmk.rb (Script::rule): Set the executable bits.
17453 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
17454 name of the PC partition map is "pc_partition_map" but not "pc".
17456 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17458 * util/i386/pc/grub-install.in (grub_probefs): New variable.
17459 (modules): Likewise.
17460 (usage): Added descriptions for --modules and --grub-probefs.
17461 Handle --modules and --grub-probefs. Save the arguments in MODULES
17462 and GRUB_PROBEFS, respectively.
17463 Auto-detect a filesystem module against GRUBDIR. If the result is
17464 empty and modules are not specified explicitly, abort the
17465 installation. Add the result to MODULES.
17467 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
17468 disk/powerpc/ieee1275/ofdisk.c,
17469 include/grub/powerpc/ieee1275/init.h and
17470 term/powerpc/ieee1275/ofconsole.c.
17471 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
17472 term/ieee1275/ofconsole.c.
17474 * include/grub/powerpc/ieee1275/console.h: Resurrected.
17476 * COPYING: Upgraded to the latest version. Only the address of the
17477 FSF office has changed.
17479 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17481 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17482 kern/ieee1275.c with kern/ieee1275/of.c.
17484 * kern/ieee1275.c: Moved to ...
17485 * kern/ieee1275/of.c: ... here.
17487 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
17489 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
17492 * config.guess: Updated to the latest version from gnulib.
17493 * config.sub: Likewise.
17494 * install.sh: Likewise.
17495 * mkinstalldirs: Likewise.
17497 * include/grub/console.h: Removed. This file is arch-specific. Do
17498 not put this in include/grub.
17500 * include/grub/i386/pc/console.h: Resurrected.
17502 * util/console.c: Include grub/machine/console.h instead of
17504 * util/grub-emu.c: Likewise.
17506 2005-08-04 Marco Gerards <metgerards@student.han.nl>
17508 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
17511 From Vincent Pelletier <subdino2004@yahoo.fr>
17512 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
17513 Redefined to use grub_getwh.
17514 (grub_term): New member named getwh.
17515 (grub_getwh): New prototype.
17516 * kern/term.c (grub_getwh): New function.
17517 * term/i386/pc/console.c (grub_console_getwh): New function.
17518 (grub_console_term): New member `getwh'.
17519 * term/i386/pc/vga.c (grub_vga_getwh): New function.
17520 (grub_vga_term): New member `getwh'.
17521 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
17523 (grub_ofconsole_getw): New function.
17524 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
17525 (grub_ofconsole_term): New field named getwh and new initial
17528 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
17530 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
17531 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
17532 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
17533 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
17534 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
17535 of <grub/machine/ieee1275.h>.
17536 * commands/ieee1275/reboot.c: Likewise.
17537 * boot/powerpc/ieee1275/ieee1275.c: Move ...
17538 * kern/ieee1275.c: ... to here. All users updated. Change all
17539 parameter structs to use new type `grub_ieee1275_cell_t'.
17540 * term/powerpc/ieee1275/ofconsole.c: Move ...
17541 * term/ieee1275/ofconsole.c: ... to here. All users updated.
17542 * disk/powerpc/ieee1275/ofdisk.c: Move ...
17543 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
17544 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
17546 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
17547 Remove unused prototypes. All users updated.
17548 * include/grub/powerpc/ieee1275/console.h: Removed.
17549 * include/grub/powerpc/ieee1275/ieee1275.h: Define
17550 `grub_ieee1275_cell_t'.
17551 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
17552 Cast comparisons with -1 to the correct type.
17553 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
17554 type to match `grub_ieee1275_entry_fn'.
17556 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
17558 * DISTLIST: Added util/i386/pc/grub-probefs.c.
17560 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
17561 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
17563 (grub_probefs_SOURCES): New variable.
17565 * util/i386/pc/grub-probefs.c: New file.
17567 * util/i386/pc/grub-setup.c (main): Call
17568 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
17569 grub_hfs_init and grub_jfs_init to initialize the system. Call
17570 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
17571 grub_pc_partition_map_fini to finish the system.
17573 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
17575 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
17577 (grub_multiboot_load_elf32): Likewise.
17578 (grub_multiboot_is_elf64): Likewise.
17579 (grub_multiboot_load_elf64): Likewise.
17580 (grub_multiboot_load_elf): Likewise.
17581 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
17582 an ELF32 or ELF64 file.
17583 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
17585 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
17586 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
17587 NULL before calling FS->LABEL.
17588 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
17589 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
17590 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
17591 before calling FS->LABEL.
17593 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
17595 * util/i386/pc/grub-install.in (datadir): New variable.
17597 (pkgdatadir): New variable.
17598 (pkglibdir): Removed.
17600 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
17602 * DISTLIST: Added util/i386/pc/grub-install.in.
17604 * util/i386/pc/grub-install.in: New file.
17606 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
17607 (grub_install_SOURCES): Likewise.
17609 * genmk.rb: Added support for scripts.
17610 (Script): New class.
17611 (scripts): New variable.
17613 * Makefile.in (install-local): Install sbin_SCRIPTS by
17615 (uninstall): Remove sbin_SCRIPTS.
17617 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
17618 device, try to get a GRUB device by
17619 grub_util_biosdisk_get_grub_dev.
17622 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
17623 description for --device-map.
17625 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17627 Change the semantics of variable hooks. They now return strings
17628 instead of error values.
17630 * util/i386/pc/grub-setup.c: Include grub/env.h.
17631 (setup): Use grub_device_set_root instead of grub_env_set.
17633 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
17634 grub_env_get instead of grub_device_set_root and
17635 grub_device_get_root, respectively.
17637 * kern/main.c (grub_env_write_root): New function.
17638 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
17639 grub_env_set instead of grub_device_set_root.
17641 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
17643 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
17644 rather than calling ENV->WRITE_HOOK afterwards.
17645 (grub_env_get): Return the result of ENV->READ_HOOK rather than
17646 passing a pointer of a pointer.
17647 (grub_register_variable_hook): Change the types of "read_hook" and
17648 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
17650 Allocate the default empty string on the heap, because this string
17651 may be freed later.
17653 * kern/device.c: Include grub/env.h.
17654 (grub_device_set_root): Removed.
17655 (grub_device_get_root): Likewise.
17656 (grub_device_open): Use grub_env_get instead of
17657 grub_device_get_root.
17659 * include/grub/env.h (grub_env_read_hook_t): New type.
17660 (grub_env_write_hook_t): Likewise.
17661 (grub_env_var): Change the types of "read_hook" and "write_hook"
17662 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
17663 (grub_register_variable_hook): Likewise.
17665 * include/grub/device.h (grub_device_set_root): Removed.
17666 (grub_device_set_root): Likewise.
17668 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
17669 make sure that DIRNAME terminates with '/', so that
17670 grub_fat_find_dir will fail if PATH is not a directory.
17672 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
17674 Use the qualifier auto for print_files and print_files_long.
17675 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
17677 Put a newline only if there is no error.
17678 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
17681 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17683 * kern/partition.c (grub_partition_probe): Initialize PART to
17684 NULL. Otherwise, when no partition map is registered, this returns
17687 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
17689 * partmap/apple.c (apple_partition_map_iterate): Check if POS
17690 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
17693 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
17695 * commands/ls.c (grub_ls_list_disks): Print the filesystem
17696 information on each device, if it does not have partitions. Print
17697 "Device" instead of "Disk", because this function is not specific
17700 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
17701 static to ensure that it is put on the memory rather than a
17704 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17706 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
17707 (grub_cat_init): Likewise.
17708 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
17709 (options): Likewise.
17710 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
17711 (grub_configfile_init): Likewise.
17712 * font/manager.c (GRUB_MOD_INIT): Likewise.
17713 * commands/help.c (GRUB_MOD_INIT): Likewise.
17714 (grub_help_init): Likewise.
17715 * normal/command.c (grub_command_init): Likewise.
17716 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
17717 * disk/loopback.c (grub_loop_init): Likewise.
17718 (GRUB_MOD_INIT): Likewise.
17719 * commands/ls.c (grub_ls_init): Likewise.
17720 (GRUB_MOD_INIT): Likewise.
17721 (options): Likewise.
17722 * commands/boot.c (grub_boot_init): Likewise.
17723 (GRUB_MOD_INIT): Likewise.
17724 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
17725 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
17726 (GRUB_MOD_INIT): Likewise.
17727 * commands/cmp.c (grub_cmp_init): Likewise.
17728 (GRUB_MOD_INIT): Likewise.
17730 * normal/arg.c: Use <> instead of "" to include header files.
17731 (SHORT_ARG_HELP): New macro.
17732 (SHORT_ARG_USAGE): Likewise.
17733 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
17734 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
17736 (find_short): Check if C is 'h' or 'u' explicitly.
17737 (grub_arg_show_help): Use space characters instead of tabs. Treat
17738 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
17739 are shown with --help and --usage only if they are not used for
17740 the command itself.
17741 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
17744 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
17745 const into "longarg". Change the type of "shortarg" to int.
17747 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17749 * boot/i386/pc/boot.S (boot_drive_check): New label.
17751 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
17754 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
17755 which do not pass a boot drive correctly. Copied from GRUB Legacy.
17757 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17759 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
17760 When turning off Gate A20, skip the check and return immediately,
17761 because this is not fatal usually.
17763 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17765 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
17766 be 0x7C00 instead of 0x8000.
17768 * boot/i386/pc/pxeboot.S: Rewritten.
17770 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
17772 (gate_a20_check_state): Read a byte from 0x108000. Invert the
17775 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
17777 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
17778 robustness. This routine now supports a BIOS call and System
17779 Control Port A to modify the gate A20.
17781 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17782 Increased to 0x440.
17784 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
17786 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
17787 device path and resulting ihandle.
17788 (grub_ofdisk_close): dprintf the ihandle being closed.
17789 (grub_ofdisk_read): dprintf function parameters.
17790 * kern/mm.c (grub_mm_init_region): Likewise.
17791 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
17792 (grub_linux_boot): dprintf the Linux entry point, initrd address and
17793 size, and boot arguments.
17794 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
17795 before loading into memory.
17796 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
17797 before loading into memory.
17799 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
17801 * kern/mm.c: Added much documentation.
17802 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
17803 8, set to 5 instead of 8.
17805 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17807 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
17809 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
17810 (grub_mkdevicemap_SOURCES): New variable.
17812 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
17813 lib/device.c of GRUB Legacy.
17815 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17817 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
17818 instead of PATH is NULL.
17820 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
17822 * commands/cmp.c (BUFFER_SIZE): New macro.
17823 (grub_cmd_cmp): Close the right file at the right time. Compare
17824 only data just read. Don't report files of different size as
17825 identical. Dynamically allocate buffers. Move variable
17826 declarations at the beginning of function.
17828 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
17830 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
17833 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
17835 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
17836 when backspace is pressed at beginning of line.
17838 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
17840 * DISTLIST: Added genfslist.sh.
17842 * normal/main.c (fs_module_list): New variable.
17843 (autoload_fs_module): New function.
17844 (read_fs_list): Likewise.
17845 (grub_normal_execute): Call read_fs_list.
17847 * kern/fs.c (grub_fs_autoload_hook): New variable.
17848 (grub_fs_probe): Added support for auto-loading.
17850 * include/grub/normal.h (struct grub_fs_module_list): New struct.
17851 (grub_fs_module_list_t): New type.
17853 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
17854 (grub_fs_autoload_hook): New prototype.
17856 * genfslist.sh: New file.
17858 * genmk.rb: Added a rule to generate a filesystem list.
17860 2005-06-30 Marco Gerards <metgerards@student.han.nl>
17862 * configure.ac: Fix the test for cross-compiling.
17864 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
17865 define GRUB_UTIL anymore.
17867 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
17868 so this function works on other systems than just big endian.
17869 (load_modules): Likewise.
17870 (add_segments): Likewise.
17872 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
17874 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
17875 contains `l' modifier, get a long from va_arg().
17877 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
17879 * kern/mm.c (grub_free): If the next free block which is being
17880 merged is the first free block, set the first block to the block
17882 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
17884 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17886 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
17887 `grub_ieee1275_chosen'.
17889 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17891 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
17892 (grub_ieee1275_chosen): New variable.
17893 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
17895 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
17896 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
17897 Rename first argument to `phandle' for consistency.
17898 (grub_ieee1275_get_property_length): Likewise.
17899 (grub_ieee1275_next_property): Likewise. Change type of first argument
17900 to grub_ieee1275_phandle_t.
17901 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
17902 Move export next to declaration.
17903 (grub_ieee1275_chosen): New variable.
17904 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
17905 Correct cosmetic typo.
17906 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
17907 `grub_ieee1275_chosen'.
17908 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
17909 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
17910 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
17911 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
17912 `grub_ieee1275_chosen'.
17914 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
17916 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
17918 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
17919 /chosen/bootargs as "variable=value" pairs.
17921 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
17923 * include/grub/misc.h (grub_dprintf): New macro.
17924 (grub_real_dprintf): New prototype.
17925 (grub_strword): Likewise.
17926 (grub_iswordseparator): Likewise.
17927 * kern/misc.c (grub_real_dprintf): New function.
17928 (grub_strword): Likewise.
17929 (grub_iswordseparator): Likewise.
17931 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
17933 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
17934 (roundup): Remove macro.
17935 (grub_ieee1275_flags): Make static.
17936 (grub_ieee1275_realmode): Remove.
17937 (grub_ieee1275_test_flag): New function.
17938 (grub_ieee1275_set_flag): Likewise.
17939 (find_options): Rename to `grub_ieee1275_find_options'; update
17940 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
17941 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
17942 (cmain): New prototype.
17943 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
17944 `grub_ieee1275_flags' directly.
17945 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
17946 machine/biosdisk.h.
17947 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
17948 Don't include grub/machine/init.h.
17949 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
17950 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
17952 (grub_ieee1275_realmode): Likewise.
17953 (grub_ieee1275_flag): New enum.
17954 (grub_ieee1275_test_flag): New prototype.
17955 (grub_ieee1275_set_flag): New prototype.
17956 * include/grub/powerpc/ieee1275/init.h: Remove file.
17957 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
17958 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
17959 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
17960 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
17962 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
17963 `grub_ieee1275_test_flag'.
17964 (grub_ieee1275_encode_devname): Likewise.
17966 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
17968 * include/grub/powerpc/ieee1275/ieee1275.h
17969 (grub_ieee1275_encode_devname): New prototype.
17970 (grub_ieee1275_get_filename): Likewise.
17971 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
17973 (grub_set_prefix): Likewise.
17974 (grub_machine_init): Call grub_set_prefix.
17975 * kern/powerpc/ieee1275/openfw.c: Fix typos.
17976 (grub_parse_type): New enum.
17977 (grub_ieee1275_get_devargs): New function.
17978 (grub_ieee1275_get_devname): Likewise.
17979 (grub_ieee1275_parse_args): Likewise.
17980 (grub_ieee1275_get_filename): Likewise.
17981 (grub_ieee1275_encode_devname): Likewise.
17983 2005-03-30 Marco Gerards <metgerards@student.han.nl>
17985 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
17986 `grub_loader_unset'.
17988 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
17990 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
17991 instead of grub_ieee1275_interpret.
17992 (grub_halt_init): New function.
17993 (grub_halt_fini): Likewise.
17994 (GRUB_MOD_INIT): Correct message grammar.
17995 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
17996 instead of grub_ieee1275_interpret.
17997 (grub_reboot_init): New function.
17998 (grub_reboot_fini): Likewise.
17999 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
18000 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
18001 util/i386/pc/misc.c with commands/ieee1275/halt.c,
18002 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
18003 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
18005 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
18007 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
18009 (grub_halt): Likewise.
18010 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
18011 (cmain): Remove __attribute__((unused)).
18012 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
18013 (grub_heap_len): Likewise.
18014 (grub_machine_fini): New function.
18015 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
18016 (grub_halt): Likewise.
18017 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
18019 * util/powerpc/ieee1275/misc.c: New file.
18021 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
18023 * DISTLIST: New file.
18024 * gendistlist.sh: Likewise.
18026 * Makefile.in (COMMON_DISTFILES): Removed.
18027 (BOOT_DISTFILES): Likewise.
18028 (CONF_DISTFILES): Likewise.
18029 (DISK_DISTFILES): Likewise.
18030 (FS_DISTFILES): Likewise.
18031 (INCLUDE_DISTFILES): Likewise.
18032 (KERN_DISTFILES): Likewise.
18033 (LOADER_DISTFILES): Likewise.
18034 (TERM_DISTFILES): Likewise.
18035 (UTIL_DISTFILES): Likewise.
18036 (DISTFILES): Likewise.
18037 (uninstall): Uninstall files in $(pkgdata_DATA).
18038 (DISTLIST): New target.
18039 (distdir): Use the contents of the file DISTLIST to get a list of
18042 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
18044 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
18045 descriptor. This is ported from GRUB Legacy.
18047 * gencmdlist.sh: Added an extra semicolon to make it work with
18048 old sed versions. Reported by Robert Bihlmeyer
18049 <robbe@orcus.priv.at>.
18051 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
18053 Automatic loading of commands is supported.
18055 * normal/main.c (read_command_list): New function.
18056 (grub_normal_execute): Call read_command_list.
18058 * normal/command.c (grub_register_command): Return zero or CMD.
18059 Allocate CMD->NAME from the heap.
18060 Initialize CMD->MODULE_NAME to zero.
18061 Find the same name as well. If the same command is found and it is
18062 a dummy command, overwrite members. If it is not a dummy command,
18064 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
18065 (grub_command_find): If a dummy command is found, load a module
18066 and retry to find a command only once.
18068 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
18069 make sure that each command is loaded.
18071 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
18073 (struct grub_command): Remove const from the member `name'.
18074 Add a new member `module_name'.
18075 (grub_register_command): Return grub_command_t.
18077 * commands/help.c (grub_cmd_help): Call grub_command_find to make
18078 sure that each command is loaded.
18080 * genmk.rb (PModule::rule): Specify a module name without the
18081 suffix ".mod" to gencmdlist.sh.
18083 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18085 * gencmdlist.sh: New file.
18087 * genmk.rb (PModule::rule): Generate a rule for a command list.
18089 Generate command.lst from $(COMMANDFILES).
18091 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
18092 (DATA): Added $(pkgdata_DATA).
18093 (install-local): Install files in $(pkgdata_DATA).
18095 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18097 * term/i386/pc/vga.c (debug_command): Removed.
18098 (GRUB_MOD_INIT): Do not register the command "debug".
18100 From Hollis Blanchard:
18101 * commands/configfile.c: New file.
18102 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18103 commands/configfile.c.
18104 (pkgdata_MODULES): Added configfile.mod.
18105 (configfile_mod_SOURCES): New variable.
18106 (configfile_mod_CFLAGS): Likewise.
18107 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18108 commands/configfile.c.
18109 (pkgdata_MODULES): Added configfile.mod.
18110 (configfile_mod_SOURCES): New variable.
18111 (configfile_mod_CFLAGS): Likewise.
18112 * util/grub-emu.c (main): Call grub_configfile_init and
18113 grub_configfile_fini.
18114 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
18116 [GRUB_UTIL] (grub_configfile_fini): Likewise.
18118 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18120 * normal/arg.c (grub_arg_show_help): Do not show the bug report
18123 * commands/help.c (grub_cmd_help): Do not print newlines after
18124 the last command in print_command_help.
18126 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18128 * commands/default.h: New file.
18129 * commands/timeout.h: Likewise.
18130 * normal/context.c: Likewise.
18132 * util/misc.c: Do not include sys/times.h.
18133 Include sys/time.h and grub/machine/time.h.
18134 (grub_get_rtc): Rewritten with gettimeofday.
18136 * util/grub-emu.c (main): Call grub_default_init and
18137 grub_timeout_init before grub_normal_init, and call
18138 grub_timeout_fini and grub_default_fini after grub_main.
18140 * util/console.c (grub_ncurses_checkkey): Return the read
18143 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
18146 * normal/main.c (read_config_file): Push MENU. If this fails,
18147 print an error and wait for a user input.
18148 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
18149 If a menu is empty or an error occurs, pop MENU.
18150 (grub_normal_execute): Pop and free MENU after grub_menu_run
18153 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
18155 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
18157 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18159 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
18161 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18164 * include/grub/normal.h (struct grub_menu_list): New struct.
18165 (grub_menu_list_t): New type.
18166 (struct grub_context): New struct.
18167 (grub_context_t): New type.
18168 (grub_register_command): Got rid of EXPORT_FUNC.
18169 (grub_unregister_command): Likewise.
18170 (grub_context_get): New prototype.
18171 (grub_context_get_current_menu): Likewise.
18172 (grub_context_push_menu): Likewise.
18173 (grub_context_pop_menu): Likewise.
18174 [GRUB_UTIL] (grub_default_init): Likewise.
18175 [GRUB_UTIL] (grub_default_fini): Likewise.
18176 [GRUB_UTIL] (grub_timeout_init): Likewise.
18177 [GRUB_UTIL] (grub_timeout_fini): Likewise.
18179 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
18180 commands/timeout.c and normal/context.c.
18181 (pkgdata_MODULES): Added default.mod and timeout.mod.
18182 (normal_mod_SOURCES): Added normal/context.c.
18183 (default_mod_SOURCES): New variable.
18184 (default_mod_CFLAGS): Likewise.
18185 (timeout_mod_SOURCES): Likewise.
18186 (timeout_mod_CFLAGS): Likewise.
18187 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
18189 (pkgdata_MODULES): Added default.mod and timeout.mod.
18190 (normal_mod_SOURCES): Added normal/context.c.
18191 (default_mod_SOURCES): New variable.
18192 (default_mod_CFLAGS): Likewise.
18193 (timeout_mod_SOURCES): Likewise.
18194 (timeout_mod_CFLAGS): Likewise.
18196 * Makefile.in (all-local): Added $(MKFILES).
18198 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
18200 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
18201 (grub_emu_SOURCES): Likewise.
18202 (pkgdata_MODULES): Add `sun.mod'.
18203 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18204 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18206 (pkgdata_MODULES): Add `sun.mod'.
18207 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18208 * include/grub/partition.h (grub_sun_partition_map_init): New
18210 (grub_sun_partition_map_fini): Likewise.
18211 * partmap/sun.c: New file.
18212 * util/grub-emu.c (main): Initialize and de-initialize the sun
18213 partitionmap support.
18215 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
18217 This implements an Emacs-like menu entry editor.
18219 * normal/menu_entry.c: New file.
18221 * util/console.c (grub_ncurses_putchar): Translate some Unicode
18222 characters to ASCII.
18223 (saved_char): New variable.
18224 (grub_ncurses_checkkey): Rewritten completely.
18225 (grub_ncurses_getkey): Likewise.
18226 (grub_ncurses_init): Call raw instead of cbreak.
18228 * normal/menu.c (print_entry): Do not put a space.
18229 (init_page): Renamed to ...
18230 (grub_menu_init_page): ... this. All callers changed.
18231 (edit_menu_entry): Removed.
18232 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
18234 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
18236 * kern/misc.c (grub_vprintf): Call grub_refresh.
18238 * normal/menu.c (DISP_LEFT): Renamed to ...
18239 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
18240 * normal/menu.c (DISP_UP): Renamed to ...
18241 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
18242 * normal/menu.c (DISP_RIGHT): Renamed to ...
18243 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
18244 * normal/menu.c (DISP_DOWN): Renamed to ...
18245 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
18246 * normal/menu.c (DISP_HLINE): Renamed to ...
18247 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
18248 * normal/menu.c (DISP_VLINE): Renamed to ...
18249 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
18250 * normal/menu.c (DISP_UL): Renamed to ...
18251 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
18252 * normal/menu.c (DISP_UR): Renamed to ...
18253 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
18254 * normal/menu.c (DISP_LL): Renamed to ...
18255 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
18256 * normal/menu.c (DISP_LR): Renamed to ...
18257 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
18258 * normal/menu.c (TERM_WIDTH): Renamed to ...
18259 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
18260 * normal/menu.c (TERM_HEIGHT): Renamed to ...
18261 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
18262 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
18263 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
18264 * normal/menu.c (TERM_MARGIN): Renamed to ...
18265 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
18266 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
18267 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
18268 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
18269 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
18270 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
18271 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
18272 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
18273 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
18274 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
18275 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
18276 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
18277 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
18278 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
18279 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
18280 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
18281 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
18282 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
18283 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
18284 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
18285 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
18286 All callers changed.
18288 * include/grub/normal.h: New prototype.
18290 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18291 normal/menu_entry.c.
18292 (normal_mod_SOURCES): Likewise.
18293 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18294 (normal_mod_SOURCES): Likewise.
18296 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
18298 * include/grub/normal.h (grub_halt_init): New prototype.
18299 (grub_halt_fini): Likewise.
18300 (grub_reboot_init): Likewise.
18301 (grub_reboot_fini): Likewise.
18303 * util/grub-emu.c: Include signal.h.
18304 (main_env): New global variable.
18305 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
18307 (grub_machine_fini): New function.
18308 (main): Call grub_halt_init and grub_reboot_init before
18309 grub_main, and grub_reboot_fini and grub_halt_fini after it.
18310 Call setjmp with MAIN_ENV to go back afterwards.
18311 Call grub_machine_fini right before return.
18313 * include/grub/util/misc.h: Include setjmp.h.
18314 (main_env): New prototype.
18316 * include/grub/kernel.h (grub_machine_fini): New prototype.
18317 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
18318 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
18320 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
18321 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
18322 * term/i386/pc/console.c (grub_console_fini): Likewise.
18324 * util/i386/pc/misc.c: New file.
18326 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18327 util/i386/pc/misc.c, commands/i386/pc/halt.c and
18328 commands/i386/pc/reboot.c.
18330 2005-02-14 Guillem Jover <guillem@hadrons.org>
18332 * include/grub/dl.h (grub_dl_check_header): New prototype.
18333 (grub_arch_dl_check_header): Change return type to grub_err_t,
18334 remove size parameter and export function. Update all callers.
18335 * kern/dl.c (grub_dl_check_header): New function.
18336 (grub_dl_load_core): Use `grub_dl_check_header' instead of
18337 `grub_arch_dl_check_header'. Check ELF type. Check if sections
18338 are inside the core.
18339 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
18340 independent ELF header checks.
18341 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18342 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
18343 `grub_dl_check_header' instead of explicit checks. Check for the
18345 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
18346 `grub_dl_check_header' instead of explicit checks. Remove arch
18347 specific ELF header checks.
18349 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
18352 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
18354 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
18355 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
18357 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
18359 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
18360 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
18361 (part_map_iterate): Clear `grub_errno' and return 0 if
18362 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
18363 * partmap/amiga.c (amiga_partition_map_iterate): Return
18364 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
18365 * partmap/apple.c (apple_partition_map_iterate): Likewise.
18367 2005-02-01 Guillem Jover <guillem@hadrons.org>
18369 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
18372 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18374 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
18376 (grub_rescue_cmd_linux): New prototype.
18377 (grub_rescue_cmd_initrd): Likewise.
18378 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
18380 (grub_linux_release_mem): Release the memory for the initrd.
18381 (grub_load_linux): Renamed from this...
18382 (grub_rescue_cmd_linux): ...To this. Changed all callers.
18383 Changed `entry' not to be static. Loop over memory regions to
18384 find another one when the default fails.
18385 (grub_rescue_cmd_initrd): New function.
18386 (grub_linux_init): Remove function.
18387 (grub_linux_fini): Likewise.
18388 (GRUB_MOD_INIT): Register `initrd'.
18389 (GRUB_MOD_FINI): Unregister `initrd'.
18390 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
18392 (grub_linux_normal_fini): Likewise.
18393 (GRUB_MOD_INIT): Register `initrd'.
18394 (GRUB_MOD_FINI): Unregister `initrd'.
18396 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18398 * commands/help.c: New file.
18399 * normal/arg.c (show_help): Renamed to...
18400 (grub_arg_show_help): ... this.
18401 * commands/i386/pc/halt.c: New file.
18402 * commands/i386/pc/reboot.c: Likewise.
18403 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
18404 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
18405 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
18406 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
18408 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18410 (pkgdata_MODULES): Add `help.mod'.
18411 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
18412 * grub/i386/pc/init.h (grub_reboot): New prototype.
18413 (grub_halt): Likewise.
18414 * include/grub/normal.h (grub_arg_show_help): New prototype.
18415 (grub_help_init): Likewise.
18416 (grub_help_fini): Likewise.
18417 * util/grub-emu.c (main): Initialize and deinitialize the help
18420 * normal/cmdline.c (grub_cmdline_get): Doc fix.
18422 * normal/command.c (grub_command_init): Fixed the description of
18423 the `set' and `unset' commands.
18425 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18427 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
18429 * commands/ieee1275/halt.c: New file.
18430 * commands/ieee1275/reboot.c: Likewise.
18431 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
18432 `__attribute__ ((unused))'. Some GCS related fixed.
18433 (grub_suspend_init) [GRUB_UTIL]: Function removed.
18434 (grub_suspend_fini): Likewise.
18435 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
18437 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
18438 (halt_mod_CFLAGS): New variables.
18439 * include/grub/powerpc/ieee1275/ieee1275.h
18440 (grub_ieee1275_interpret): New prototype.
18442 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
18444 * include/grub/misc.h (memmove): New prototype.
18445 (memcpy): Likewise.
18447 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
18449 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
18450 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
18452 2005-01-22 Marco Gerards <metgerards@student.han.nl>
18454 * kern/misc.c (grub_strndup): Function rewritten.
18456 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
18458 * normal/menu.c (TERM_WIDTH): Macro redefined.
18459 (TERM_TOP_BORDER_Y): Likewise.
18460 (draw_border): Replaced while-loop by a for-loop. Make the number
18461 of lines consistent with the number of lines displayed in
18462 print_entries. Added a margin below the rectangle.
18463 (print_entry): Make the entry fit in the rectangle.
18464 (print_entries): Display the scroll arrows next to the right
18467 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18469 * fs/minix.c (grub_minix_find_file): Reserve more space for
18470 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
18471 `grub_strncpy' to copy `path' into it.
18473 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18475 Add the loopback device, a device via which files can be accessed
18478 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
18479 (pkgdata_MODULES): Add loopback.mod.
18480 (loopback_mod_SOURCES): New variable.
18481 (loopback_mod_CFLAGS): Likewise.
18482 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18484 (pkgdata_MODULES): Add loopback.mod.
18485 (loopback_mod_SOURCES): New variable.
18486 (loopback_mod_CFLAGS): Likewise.
18487 * disk/loopback.c: new file.
18488 * include/grub/normal.h (grub_loop_init): New prototype.
18489 (grub_loop_fini): New prototype.
18490 * util/grub-emu.c (main): Initialize and de-initialize loopback
18492 * include/grub/disk.h (grub_disk_dev_id): Add
18493 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
18495 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
18497 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
18499 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
18500 (suspend_mod_SOURCES): New variable.
18501 (suspend_mod_CFLAGS): Likewise.
18502 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
18504 * commands/ieee1275/suspend.c: New file.
18506 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
18508 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
18509 ((unused))' to `__attribute__ ((used))'.
18510 (GRUB_MOD_FINI): Likewise.
18511 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
18512 * genmk.rb (PModule): Assign space to common symbols when linking
18515 2005-01-20 Marco Gerards <metgerards@student.han.nl>
18517 * include/grub/mm.h (grub_mm_init_region): Change the type of the
18518 `unsigned' arguments to `grub_size_t'.
18519 (grub_malloc): Likewise.
18520 (grub_realloc): Likewise.
18521 (grub_memalign): Likewise.
18522 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
18523 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18524 * util/misc.c (grub_malloc): Likewise.
18525 (grub_realloc): Likewise.
18526 * kern/mm.c (get_header_from_pointer): Change the casts to
18527 `unsigned' into a cast to `grub_size_t'.
18529 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
18530 point to `currnode' when `currnode' is changed.
18532 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
18533 Schottelius <nico-linux@schottelius.org>.
18535 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
18537 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
18538 (note_path): Remove variable.
18539 (GRUB_IEEE1275_NOTE_NAME): New macro.
18540 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
18541 (grub_ieee1275_note_hdr): New structure.
18542 (grub_ieee1275_note_desc): Likewise.
18543 (grub_ieee1275_note): Likewise.
18544 (load_note): Remove `dir' argument. All callers updated. Remove
18545 `note_img' and `path'. Do not load a file from `note_path'.
18546 Initialize a struct grub_ieee1275_note and write that to `out'.
18547 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
18549 2005-01-05 Marco Gerards <metgerards@student.han.nl>
18551 * util/misc.c (grub_util_read_image): Revert last change. It
18552 called `grub_util_read_at', which seeks from the beginning of the
18555 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
18557 * TODO: Add note about endianness in grub-mkimage.
18558 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
18560 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
18561 (grub_mkimage_SOURCES): New target.
18562 * include/grub/kernel.h (grub_start_addr): Remove variable.
18563 (grub_end_addr): Likewise.
18564 (grub_total_module_size): Likewise.
18565 (grub_kernel_image_size): Likewise.
18566 (GRUB_MODULE_MAGIC): New constant.
18567 (grub_module_info): New structure.
18568 (grub_arch_modules_addr): New prototype.
18569 (grub_get_end_addr): Remove prototype.
18570 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
18571 * include/grub/powerpc/ieee1275/kernel.h: New file.
18572 * include/grub/util/misc.h (grub_util_get_fp_size): New
18574 (grub_util_read_at): Likewise.
18575 (grub_util_write_image_at): Likewise.
18576 * kern/main.c (grub_get_end_addr): Remove function.
18577 (grub_load_modules): Call grub_arch_modules_addr instead of using
18578 grub_end_addr. Look for a grub_module_info struct in memory. Use
18579 the grub_module_info fields instead of calling grub_get_end_addr
18580 as loop conditions. Move grub_add_unused_region code here.
18581 (grub_add_unused_region): Remove function.
18582 * kern/i386/pc/init.c: Include grub/cache.h.
18583 (grub_machine_init): Remove call to grub_get_end_addr. Remove
18584 one call to add_mem_region.
18585 (grub_arch_modules_addr): New function.
18586 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
18587 (grub_total_module_size): Likewise.
18588 Include grub/machine/kernel.h.
18589 (grub_arch_modules_addr): New function.
18590 * util/grub-emu.c (grub_end_addr): Remove variable.
18591 (grub_total_module_size): Likewise.
18592 (grub_arch_modules_addr): New function.
18593 * util/misc.c: Include unistd.h.
18594 (grub_util_get_fp_size): New function.
18595 (grub_util_read_at): Likewise.
18596 (grub_util_write_image_at): Likewise.
18597 (grub_util_read_image): Call grub_util_read_at.
18598 (grub_util_write_image): Call grub_util_write_image_at.
18599 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
18600 additional memory in kernel_img for a struct grub_module_info.
18601 Fill in that grub_module_info.
18602 * util/powerpc/ieee1275/grub-mkimage.c: New file.
18604 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18606 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
18608 * include/grub/powerpc/ieee1275/ieee1275.h
18609 (grub_ieee1275_milliseconds): New prototype.
18610 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
18612 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
18613 grub_ieee1275_milliseconds.
18615 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18617 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
18619 (find_options): New function.
18620 (cmain): Call find_options.
18621 * include/grub/powerpc/ieee1275/ieee1275.h
18622 (grub_ieee1275_realmode): New extern variable.
18623 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
18624 grub_map if grub_ieee1275_realmode is false.
18626 2004-12-29 Marco Gerards <metgerards@student.han.nl>
18628 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
18629 lines are inserted and make it work like readline. Reported by
18630 Vincent Pelletier <subdino2004@yahoo.fr>.
18632 2004-12-28 Marco Gerards <metgerards@student.han.nl>
18634 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
18636 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
18637 `kern/powerpc/cache.S'.
18639 2004-12-27 Marco Gerards <metgerards@student.han.nl>
18641 * genmk.rb: Handle the `Program' class in the main loop. Written
18642 by Johan Rydberg <jrydberg@gnu.org>.
18643 (Program): New class.
18644 (programs): New variable.
18645 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
18646 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
18647 instead of "grub/kernel.h". Include <grub/machine/init.h>.
18648 (help_arch): Function removed.
18649 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
18650 `powerpc/libgcc.h' and `loader.h'.
18651 (pkgdata_PROGRAMS): New variable.
18652 (sbin_UTILITIES): Variable removed.
18653 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
18654 (grubof_SOURCES): Variable re-defined so it only includes the
18655 core functionality.
18656 (grubof_CFLAGS): Remove `-DGRUBOF'.
18657 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
18658 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
18659 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
18660 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
18661 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
18662 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
18663 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
18664 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
18665 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
18666 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
18667 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
18668 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
18669 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
18670 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
18671 (pc_mod_CFLAGS): New variables.
18672 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
18673 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
18674 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
18675 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
18677 * include/grub/i386/pc/init.h (grub_os_area_addr)
18678 (rub_os_area_size): ... to here.
18679 * include/grub/powerpc/ieee1275/ieee1275.h
18680 (grub_ieee1275_entry_fn): Export symbol.
18681 * include/grub/powerpc/ieee1275/init.h: New file.
18682 * include/grub/powerpc/libgcc.h: Likewise.
18683 * include/grub/cache.h: Likewise.
18684 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
18685 <hollis@penguinppc.org>.
18686 * kern/dl.c: Include <grub/cache.h>.
18687 (grub_dl_flush_cache): New function.
18688 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
18690 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
18691 (grub_console_init): Removed prototypes.
18692 (grub_machine_init): Don't initialize the modules anymore.
18693 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
18695 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
18696 Macro undef removed.
18697 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
18698 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
18699 relocation `R_PPC_REL32'. Return an error when the relocation is
18701 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
18702 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
18703 * util/misc.c (grub_arch_sync_caches): Likewise.
18705 2004-12-19 Marco Gerards <metgerards@student.han.nl>
18707 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
18708 `symlist.c', add `grubof_symlist.c'.
18709 (symlist.c): Variable removed.
18710 (grubof_HEADERS): Variable added.
18711 (grubof_symlist.c): New target.
18712 (kernel_syms.lst): Use `grubof_HEADERS' instead of
18713 `kernel_img_HEADERS'.
18714 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
18715 * kern/powerpc/dl.c: New file.
18716 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
18718 (grub_arch_dl_relocate_symbols): Likewise.
18719 (grub_register_exported_symbols): Likewise.
18721 2004-12-13 Marco Gerards <metgerards@student.han.nl>
18723 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
18724 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
18725 to fail instead. Reported by Vincent Pelletier
18726 <subdino2004@yahoo.fr>.
18728 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
18729 it is not allocated. Reported by Vincent Pelletier
18730 <subdino2004@yahoo.fr>.
18732 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
18733 output so the output looks better.
18735 2004-12-04 Marco Gerards <metgerards@student.han.nl>
18737 Modulize the partition map support and add support for the amiga
18740 * commands/ls.c: Include <grub/partition.h> instead of
18741 <grub/machine/partition.h>.
18742 * kern/disk.c: Likewise.
18743 * kern/rescue.c: Likewise.
18744 * loader/i386/pc/chainloader.c: Likewise.
18745 * normal/cmdline.c: Likewise.
18746 * kern/powerpc/ieee1275/init.c: Likewise.
18747 (grub_machine_init): Call `grub_pc_partition_map_init',
18748 `grub_amiga_partition_map_init' and
18749 `grub_apple_partition_map_init'.
18750 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
18751 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
18752 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
18753 `partition.h' and `pc_partition.h'.
18754 (grub_setup_SOURCES): Remove
18755 `disk/i386/pc/partition.c'. Add `kern/partition.c',
18756 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18757 (grub_emu_SOURCES): Likewise.
18758 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
18759 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
18760 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
18761 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18762 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
18763 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18764 (grubof_SOURCES): Likewise.
18765 * disk/i386/pc/partition.c: File removed.
18766 * disk/powerpc/ieee1275/partition.c: Likewise.
18767 * include/grub/powerpc/ieee1275/partition.h: Likewise.
18768 * include/grub/i386/pc/partition.h: Likewise.
18769 * kern/partition.c: New file.
18770 * partmap/amiga.c: Likewise.
18771 * partmap/apple.c: Likewise.
18772 * partmap/pc.c: Likewise.
18773 * include/grub/partition.h: Likewise..
18774 * include/grub/pc_partition.h: Likewise.
18775 * util/grub-emu.c: Include <grub/partition.h> instead of
18776 <grub/machine/partition.h>.
18777 (main): Call `grub_pc_partition_map_init',
18778 `grub_amiga_partition_map_init' and
18779 `grub_apple_partition_map_init' and deinitialize afterwards.
18780 * util/i386/pc/biosdisk.c: Include `#include
18781 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18782 `<grub/machine/partition.h>'.
18783 * util/i386/pc/grub-setup.c: Likewise.
18784 * util/i386/pc/biosdisk.c: Likewise.
18785 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
18786 partition information in case of a PC partition.
18787 * util/i386/pc/grub-setup.c: Include `#include
18788 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18789 `<grub/machine/partition.h>'.
18790 (setup): Only access the PC specific partition information in case
18793 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
18795 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
18796 (grub_longjmp): Likewise.
18797 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
18799 * normal/powerpc/setjmp.S: New file.
18800 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
18801 `normal/powerpc/setjmp.S'.
18802 (grubof_CFLAGS): Add `-DGRUBOF'.
18803 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
18804 [GRUB_UTIL && !GRUBOF].
18806 2004-11-16 Marco Gerards <metgerards@student.han.nl>
18808 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
18809 property named `name'. Correctly handle the error returned by
18810 `grub_ieee1275_finddevice' if a device can not be opened.
18812 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
18814 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
18815 `actual' for negativity.
18816 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18819 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18821 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
18822 (PAGE_OFFSET): New macro.
18823 (CRTC_ADDR_PORT): Likewise.
18824 (CRTC_DATA_PORT): Likewise.
18825 (START_ADDR_HIGH_REGISTER): Likewise.
18826 (START_ADDR_LOW_REGISTER): Likewise.
18827 (GRAPHICS_ADDR_PORT): Likewise.
18828 (GRAPHICS_DATA_PORT): Likewise.
18829 (READ_MAP_REGISTER): Likewise.
18830 (INPUT_STATUS1_REGISTER): Likewise.
18831 (INPUT_STATUS1_VERTR_BIT): Likewise.
18832 (page): New variable.
18833 (wait_vretrace): New function.
18834 (set_read_map): Likewise.
18835 (set_start_address): Likewise.
18836 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
18838 (check_vga_mem): Take the page into account.
18839 (write_char): Likewise.
18840 (write_cursor): Likewise.
18841 (scroll_up): Likewise. Copy the page to the page that is not
18842 shown and switch between both pages.
18843 (grub_vga_putchar): Fix off by one error.
18844 (grub_vga_cls): Wait for the vertical retrace. Take the page into
18847 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18849 Add support for iso9660 (including rockridge).
18851 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18852 (iso9660_mod_SOURCES): New variable.
18853 (iso9660_mod_CFLAGS): Likewise.
18854 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18855 * include/grub/fs.h (grub_iso9660_init): New prototype.
18856 * util/grub-emu.c (main): Call `grub_iso9660_init'.
18857 * fs/iso9660.c: New file.
18859 * include/grub/misc.h (grub_strncat): New prototype.
18860 * kern/misc.c (grub_strncat): New function.
18862 * fs/hfs.c (grub_hfs_mount): Translate the error
18863 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
18864 * fs/jfs.c (grub_jfs_mount): Likewise.
18865 * fs/ufs.c (grub_ufs_mount): Likewise.
18867 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
18869 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
18870 which initialized BAT registers.
18871 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
18872 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18874 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
18875 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18877 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
18878 (grub_mapclaim): Likewise.
18879 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
18880 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
18883 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
18885 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
18886 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
18887 -ffreestanding and -msoft-float.
18889 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
18891 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
18892 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
18893 set in grub_ieee1275_flags.
18895 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
18897 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
18899 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
18900 grub_console_init first.
18901 Change the memory range used for grub_ieee1275_claim and
18902 grub_mm_init_region.
18903 Print an error message if the claim fails.
18904 Include <grub/misc.h>.
18906 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
18908 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
18909 Call grub_children_iterate for device nodes of type `scsi',
18911 (grub_ofdisk_open): Remove manual device alias resolution.
18912 Fix memory leak when device cannot be opened.
18913 * include/grub/powerpc/ieee1275/ieee1275.h
18914 (grub_children_iterate): New prototype.
18915 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
18917 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18918 Return -1 if args.size was -1.
18920 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18922 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
18923 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
18924 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
18925 Open Firmware's memory for it; claim memory from _start to _end.
18926 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
18927 (_end): New extern.
18928 (_start): Zero BSS from __bss_start to _end.
18929 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
18931 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
18933 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18935 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
18936 -1 if args.base was -1.
18938 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
18940 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
18941 escape sequence instead of a literal ^L. Also call
18942 grub_ofconsole_gotoxy.
18944 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
18946 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
18947 void * arguments to grub_addr_t. All callers updated. Also make
18948 the `result' argument optional.
18949 (grub_ieee1275_release): change void * arguments to grub_addr_t.
18950 All callers updated.
18952 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
18954 * commands/ls.c (grub_ls_list_files): Use the string following the
18955 initial ')', if present, as the filesystem path.
18956 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
18958 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
18960 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
18962 Make the source code of the menu interface more readable.
18964 * normal/menu.c: Include grub/mm.h.
18965 (TERM_WIDTH): New macro.
18966 (TERM_HEIGHT): Likewise.
18967 (TERM_INFO_HEIGHT): Likewise.
18968 (TERM_MARGIN): Likewise.
18969 (TERM_SCROLL_WIDTH): Likewise.
18970 (TERM_TOP_BORDER_Y): Likewise.
18971 (TERM_LEFT_BORDER_X): Likewise.
18972 (TERM_BORDER_WIDTH): Likewise.
18973 (TERM_MESSAGE_HEIGHT): Likewise.
18974 (TERM_BORDER_HEIGHT): Likewise.
18975 (TERM_NUM_ENTRIES): Likewise.
18976 (TERM_FIRST_ENTRY_Y): Likewise.
18977 (TERM_ENTRY_WIDTH): Likewise.
18978 (TERM_CURSOR_X): Likewise.
18979 (draw_border): Use macros instead of magic numbers.
18980 (print_entry): Likewise.
18981 (print_entries): Likewise.
18982 (run_menu): Likewise. Also, handle the key 'e'.
18983 (run_menu_entry): Ignore empty command lines.
18984 (print_message): Added a new argument EDIT. If EDIT is true,
18985 print a different message.
18986 (init_page): Likewise.
18987 (edit_menu_entry): New function. Not implemented yet.
18989 2004-09-17 Marco Gerards <metgerards@student.han.nl>
18991 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
18992 can be loaded from normal mode.
18994 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
18996 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
18997 (multiboot_mod_CFLAGS): New variables.
18998 * loader/i386/pc/linux_normal.c: New file.
18999 * loader/i386/pc/multiboot_normal.c: Likewise.
19001 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
19002 attribute `unused'.
19004 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
19005 `fdiro' to read the mode information from instead of `diro'.
19007 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
19008 looking up a symlink.
19010 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
19012 * normal/command.c (grub_command_execute): Don't parse the
19013 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
19014 flags of the command.
19016 * normal/menu.c (grub_menu_run): Fix typo.
19018 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
19020 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
19022 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
19023 `y + 1' instead of `y - 1'.
19025 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
19027 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
19029 From Hollis Blanchard <hollis@penguinppc.org>:
19030 * kern/misc.c (memmove): New alias for grub_memmove.
19031 (memcmp): New alias for grub_memcmp.
19032 (memset): New alias for grub_memset.
19033 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
19034 Change "int handle" to "grub_ieee1275_phandle_t handle".
19035 * include/grub/powerpc/ieee1275/ieee1275.h
19036 (grub_ieee1275_get_property): Likewise.
19038 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
19040 Added normal mode command `chainloader' as module chain.mod, which
19041 depends on normal.mod and _chain.mod.
19043 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
19044 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
19045 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
19047 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
19048 but arguments parsing moved to ...
19049 (grub_chainloader_cmd): ... here. New function.
19050 * include/grub/i386/pc/chainloader.h: New file.
19051 * loader/i386/pc/chainloader_normal.c: Likewise.
19053 2004-09-11 Marco Gerards <metgerards@student.han.nl>
19055 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
19056 (grub_mkimage_LDFLAGS): Likewise.
19057 (grub_emu_SOURCES): Likewise.
19058 (kernel_img_HEADERS): Added fshelp.h.
19059 * fs/ext2.c: Include <grub/fshelp.h>.
19060 (FILETYPE_REG): New macro.
19061 (FILETYPE_INO_REG): Likewise.
19062 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
19064 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
19066 (grub_fshelp_node): New struct.
19067 (grub_ext2_data): Added member `diropen'. Changed member `inode'
19069 (grub_ext2_get_file_block): Removed function.
19070 (grub_ext2_read_block): New function.
19071 (grub_ext2_read_file): Replaced parameter `data' by `node'.
19072 This function was written.
19073 (grub_ext2_mount): Read the root inode. Create a diropen struct.
19074 (grub_ext2_find_file): Removed function.
19075 (grub_ext2_read_symlink): New function.
19076 (grub_ext2_iterate_dir): Likewise.
19077 (grub_ext2_open): Rewritten.
19078 (grub_ext2_dir): Rewritten.
19079 * include/grub/fshelp.h: New file.
19080 * fs/fshelp.c: Likewise.
19082 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
19084 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
19085 (print_message): Add a missing newline.
19086 (run_menu): Added timeout support.
19087 (run_menu_entry): New local function.
19088 (grub_menu_run): Added support for booting.
19090 * kern/loader.c (grub_loader_is_loaded): New function.
19092 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
19093 (grub_get_rtc): Exported.
19095 * include/grub/i386/pc/time.h: Include grub/symbol.h.
19096 (grub_get_rtc): Exported.
19098 * include/grub/normal.h (struct grub_command_list): Remove
19099 constant from the member `command'.
19101 * include/grub/loader.h (grub_loader_is_loaded): Declared.
19103 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
19105 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
19107 2004-08-28 Marco Gerards <metgerards@student.han.nl>
19109 Add support for the JFS filesystem.
19111 * fs/jfs.c: New file.
19112 * include/grub/fs.h (grub_jfs_init): New prototype.
19113 (grub_jfs_fini): New prototype.
19114 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
19115 (grub_emu_SOURCES): Likewise.
19116 (pkgdata_MODULES): Add jfs.mod.
19117 (jfs_mod_SOURCES): New variable.
19118 (jfs_mod_CFLAGS): Likewise.
19119 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
19120 (grubof_SOURCES): Likewise.
19121 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
19123 * fs/fat.c (grub_fat_find_dir): Convert the filename little
19124 endian to the host endian.
19125 (grub_fat_utf16_to_utf8): Move function from there...
19126 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
19127 the endianness of the source string anymore.
19128 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
19130 2004-08-24 Marco Gerards <metgerards@student.han.nl>
19132 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
19133 (grub_boot_fini) [GRUB_UTIL]: Likewise.
19134 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
19135 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
19137 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
19138 (grub_hfs_iterate_dir): Make the function static. Add prototypes
19139 for `node_found' and `it_dir'.
19140 (grub_hfs_dir): Add prototype for `dir_hook'.
19142 * fs/minix.c (grub_minix_get_file_block): Add prototype for
19143 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
19144 and `indir32' to silence a gcc warning.
19146 * include/grub/fs.h (grub_hfs_init): New prototype.
19147 (grub_hfs_fini): Likewise.
19150 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
19152 Each disk device has its own id now. This is useful to make use
19153 of multiple disk devices.
19155 * include/grub/disk.h (grub_disk_dev_id): New enum.
19156 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
19157 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
19159 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
19160 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19162 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
19163 GRUB_DISK_DEVICE_OFDISK_ID as an id.
19165 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
19166 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19168 * include/grub/disk.h (struct grub_disk_dev): Added a new member
19169 "id" which is used by the cache manager.
19171 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
19174 2004-08-18 Marco Gerards <metgerards@student.han.nl>
19176 * fs/hfs.c: New file.
19177 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
19178 (grub_emu_SOURCES): Likewise.
19179 (pkgdata_MODULES): Add hfs.mod.
19180 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
19181 (grubof_SOURCES): Likewise.
19182 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
19184 * include/grub/misc.h (grub_strncasecmp): Add prototype.
19185 * kern/misc.c (grub_strncasecmp): Add function.
19187 2004-08-14 Marco Gerards <metgerards@student.han.nl>
19189 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
19192 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
19193 (grub_ext2_dir): In case the directory entry type is unknown, read
19196 2004-08-02 Peter Bruin <pjbruin@dds.nl>
19198 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
19199 grub_load_linux instead of grub_rescue_cmd_linux as second
19200 argument of grub_rescue_register_command.
19202 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
19204 2004-07-27 Marco Gerards <metgerards@student.han.nl>
19206 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
19208 * commands/boot.c: Remove the check for `GRUB_UTIL'.
19209 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
19210 `loader/powerpc/ieee1275/linux.c',
19211 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
19212 * include/grub/powerpc/ieee1275/ieee1275.h
19213 (grub_ieee1275_release): New prototype.
19214 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
19215 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
19216 normal, boot, linux and linux_normal.
19217 * loader/powerpc/ieee1275/linux.c: New file.
19218 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
19220 2004-07-12 Marco Gerards <metgerards@student.han.nl>
19222 * normal/arg.c (grub_arg_parse): Correct error handling after
19223 reallocating the argumentlist (check if `argl' is not null instead
19224 of checking if `args' is not null).
19225 * kern/mm.c (grub_realloc): Return the same pointer when using the
19226 same region, instead of returning the header address.
19228 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19230 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
19231 one block instead of two when looking for the initial partition.
19232 (grub_partition_probe): Initialize the local variable `p' with 0.
19233 Use base 10 for the grub_strtoul call.
19234 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
19235 need for one local variable.
19236 (grub_strtoul): Don't add the new value to `num', instead of that
19239 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19241 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
19242 (pxeboot_img_SOURCES): New variable.
19243 (pxeboot_img_ASFLAGS): Likewise.
19244 (pxeboot_img_LDFLAGS): Likewise.
19245 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
19246 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
19247 <lode_leroy@hotmail.com>.
19249 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19251 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
19252 there was no input.
19254 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19256 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
19257 the history buffer logic.
19259 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19261 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
19262 (FILETYPE_INO_SYMLINK): New macros.
19263 (grub_ext2_find_file): Check if the node is a directory using the
19264 inode stat information instead of using the filetype in the
19265 dirent. Exclude the first character of an absolute symlink.
19266 (grub_ext2_dir): Mask out the filetype part of the mode member of
19269 2004-05-24 Marco Gerards <metgerards@student.han.nl>
19271 Add support for UFS version 1 and 2. Add support for the minix
19272 filesystem version 1 and 2, both the variants with 14 and 30 long
19275 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
19277 (grub_emu_SOURCES): Likewise.
19278 (pkgdata_MODULES): Add ufs.mod and minix.mod.
19279 (ufs_mod_SOURCES): New variable.
19280 (ufs_mod_CFLAGS): Likewise.
19281 (minix_mod_SOURCES): Likewise.
19282 (minix_mod_CFLAGS): Likewise.
19283 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
19285 (grubof_SOURCES): Likewise.
19286 * fs/ufs.c: New file.
19287 * fs/minix.c: New file.
19288 * include/grub/fs.h (grub_ufs_init): New prototype.
19289 (grub_ufs_fini): Likewise.
19290 (grub_minix_init): Likewise.
19291 (grub_minix_fini): Likewise.
19292 * util/grub-emu.c (main): Initialize and deinitialize UFS and
19295 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
19297 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
19298 commands/ls.c, commands/terminal.c, commands/boot.c,
19299 commands/cmp.c and commands/cat.c.
19300 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
19302 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
19305 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19307 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
19308 and grub_, respectively. Because the conversion is trivial and
19309 mechanical, I omit the details here. Please refer to the CVS
19310 if you need more information.
19312 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19314 * include/pupa: Renamed to ...
19315 * include/grub: ... this.
19316 * util/i386/pc/pupa-mkimage.c: Renamed to ...
19317 * util/i386/pc/grub-mkimage.c: ... this.
19318 * util/i386/pc/pupa-setup.c: Renamed to ...
19319 * util/i386/pc/grub-setup.c: ... this.
19320 * util/pupa-emu.c: Renamed to ...
19321 * util/grub-emu.c: ... this.
19323 2004-03-29 Marco Gerards <metgerards@student.han.nl>
19325 Add support for the newworld apple macintosh (PPC). This has been
19326 tested on the powerbook 2000 only. It only adds support for
19327 generic ieee1275 functions, console and disk support. This should
19328 be easy to port to other architectures with support for Open
19331 * configure.ac: Accept the powerpc as host_cpu. In the case of
19332 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
19333 specific tests are only executed while building for the i386.
19334 Inverse test for crosscompile.
19335 * genmk.rb (Utility): Allow assembler files.
19336 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
19337 * conf/powerpc-ieee1275.rmk: New file.
19338 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
19339 * disk/powerpc/ieee1275/partition.c: Likewise.
19340 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
19341 * include/pupa/powerpc/ieee1275/console.h: Likewise.
19342 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
19343 * include/pupa/powerpc/ieee1275/time.h: Likewise.
19344 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
19345 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
19346 * include/pupa/powerpc/ieee1275/loader.h
19347 * include/pupa/powerpc/setjmp.h: Likewise.
19348 * include/pupa/powerpc/types.h: Likewise.
19349 * kern/powerpc/ieee1275/init.c: Likewise.
19350 * kern/powerpc/ieee1275/openfw.c: Likewise.
19351 * term/powerpc/ieee1275/ofconsole.c: Likewise.
19353 These files were written by Johan Rydberg
19354 (jrydberg@night.trouble.net) and I only modified them slightly.
19356 * boot/powerpc/ieee1275/cmain.c: New file.
19357 * boot/powerpc/ieee1275/crt0.S: Likewise.
19358 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
19359 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
19361 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
19363 * Makefile.in: Update copyright.
19364 * genmodsrc.sh: Likewise.
19365 * gensymlist.sh: Likewise.
19366 * term/i386/pc/vga.c: Indent correctly.
19368 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
19369 bugreporting address.
19370 * util/i386/pc/pupa-setup.c (usage): Likewise,
19371 (main): Call pupa_ext2_init and pupa_ext2_fini.
19373 * fs/fat.c (log2): Renamed to ...
19374 (fat_log2): ... this.
19375 All callers changed.
19376 * kern/misc.c (memcpy): Alias to pupa_memmove.
19377 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
19379 * util/console.c (pupa_ncurses_fini): Return 0.
19381 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
19382 Move fail label here.
19383 [__GNU__]: Don't warn when using stat.
19384 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
19385 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
19386 long int. Use strtol instead of strtoul.
19388 2004-03-14 Marco Gerards <metgerards@student.han.nl>
19390 * commands/boot.c: New file.
19391 * commands/cat.c: Likewise.
19392 * commands/cmp.c: Likewise.
19393 * commands/ls.c: Likewise.
19394 * commands/terminal.c: Likewise.
19395 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
19396 (pupa_register_command): Changed interface to match the new
19398 (pupa_command_execute): Changed (almost rewritten) so it uses
19399 pupa_split_command. Added support for setting variables using the
19401 (rescue_command): Changed to work with the new argument parser.
19402 (terminal_command): Moved from here to commands/terminal.c.
19403 (set_command): New function.
19404 (unset_command): New function.
19405 (insmod_command): New function.
19406 (rmmod_command): New function.
19407 (lsmod_command): New function.
19408 (pupa_command_init): Don't initialize the command terminal
19409 anymore. Initialize the commands set, unset, insmod, rmmod and
19411 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
19412 (kernel_img_HEADERS): Add arg.h and env.h.
19413 (pupa_mkimage_LDFLAGS): Add kern/env.c.
19414 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
19415 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
19417 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
19419 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
19420 (boot_mod_SOURCES): New variable.
19421 (terminal_mod_SOURCES): Likewise.
19422 (ls_mod_SOURCES): Likewise.
19423 (cmp_mod_SOURCES): Likewise.
19424 (cat_mod_SOURCES): Likewise.
19426 * normal/arg.c: New file.
19427 * kern/env.c: Likewise.
19428 * include/pupa/arg.h: Likewise.
19429 * include/pupa/env.h: Likewise.
19430 * font/manager.c (font_command): Changed to match argument parsing
19432 (PUPA_MOD_INIT): Likewise.
19433 * hello/hello.c (pupa_cmd_hello): Likewise.
19434 (PUPA_MOD_INIT): Likewise.
19435 * include/pupa/disk.h: Include <pupa/device.h>.
19436 (pupa_print_partinfo): New prototype.
19437 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
19438 (pupa_dl_get_prefix): Likewise.
19439 * include/pupa/misc.h: Include <pupa/err.h>.
19440 (pupa_isgraph): New prototype.
19441 (pupa_isdigit): Likewise.
19442 (pupa_split_cmdline): Likewise.
19443 * include/pupa/normal.h: Include <pupa/arg.h>.
19444 (pupa_command): Changed the prototype of the member `func' to
19445 match the argument parsing interface. Added member `options'.
19446 (pupa_register_command): Updated to match function.
19447 (pupa_arg_parse): New prototype.
19448 (pupa_hello_init) [PUPA_UTIL]: New prototype.
19449 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
19450 (pupa_ls_init) [PUPA_UTIL]: Likewise.
19451 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
19452 (pupa_cat_init) [PUPA_UTIL]: Likewise.
19453 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
19454 (pupa_boot_init) [PUPA_UTIL]: Likewise.
19455 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
19456 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
19457 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
19458 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
19459 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
19460 * kern/disk.c: Include <pupa/file.h>.
19461 (pupa_print_partinfo): New function.
19462 * kern/dl.c: Include <pupa/env.h>.
19463 (pupa_dl_dir): Variable removed.
19464 (pupa_dl_load): Use the environment variable `prefix' instead of
19465 the variable pupa_dl_dir.
19466 (pupa_dl_set_prefix): Function removed.
19467 (pupa_dl_get_prefix): Likewise.
19468 * kern/i386/pc/init.c: Include <pupa/env.h>.
19469 (pupa_machine_init): Use the environment variable `prefix' instead of
19470 using pupa_dl_set_prefix to set the prefix.
19471 * kern/main.c: Include <pupa/env.h>.
19472 (pupa_set_root_dev): Use the environment variable `prefix' instead of
19473 using pupa_dl_get_prefix to get the prefix.
19474 * kern/misc.c: Include <pupa/env.h>.
19475 (pupa_isdigit): New function.
19476 (pupa_isgraph): Likewise.
19477 (pupa_ftoa): Likewise.
19478 (pupa_vsprintf): Added support for printing values of the type
19479 `double'. Make it possible to format variable output when using
19480 formatting like `%1.2%f'.
19481 (pupa_split_cmdline): New function.
19482 * kern/rescue.c: Include <pupa/env.h>.
19483 (next_word): Removed function.
19484 (pupa_rescue_cmd_prefix): Likewise.
19485 (pupa_rescue_cmd_set): New function.
19486 (pupa_rescue_cmd_unset): New function.
19487 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
19488 split the command line instead of splitting it here. Added
19489 support for setting variables using the syntax `foo=bar'. Don't
19490 initialize the prefix command anymore. Initialized the set and
19492 * normal/cmdline.c: Include <pupa/env.h>.
19493 (pupa_tab_complete): Added prototypes for print_simple_completion,
19494 print_partition_completion, add_completion, iterate_commands,
19495 iterate_dev, iterate_part and iterate_dir. Moved code to print
19496 partition information from here to kern/disk.c.
19497 (pupa_cmdline_run): Don't check if the function exists anymore.
19498 * normal/main.c: Include <pupa/env.h>.
19499 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
19500 instead of using pupa_dl_get_prefix to get the prefix.
19501 * term/i386/pc/vga.c: Include <pupa/arg.h>.
19502 (check_vga_mem): Cast pointers to `void *' to silence a gcc
19504 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
19505 (pupa_vga_setcolor): Declare unused variables with `__attribute__
19506 ((unused))' to silence a gcc warning.
19507 (pupa_vga_setcolor): Likewise.
19508 (debug_command): Changed to match argument parsing
19510 * util/pupa-emu.c: Include <pupa/env.h>.
19511 (options): Added 0's for unused fields to silence a gcc warning.
19513 (main): Use the environment variable `prefix' instead of using
19514 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
19515 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
19518 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
19519 * util/misc.c: Include <malloc.h>.
19520 (pupa_malloc): Rewritten so errors are correctly reported.
19521 (pupa_realloc): Likewise.
19522 (pupa_memalign): Likewise.
19523 (pupa_mm_init_region): Declare unused variables with
19524 `__attribute__ ((unused))' to silence a gcc warning.
19525 * normal/i386/setjmp.S: Remove tab at the end of the file to
19526 silence a gcc warning.
19527 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
19528 variables with `__attribute__ ((unused))' to silence a gcc
19530 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
19531 local variable i unsigned to silence a gcc warning.
19533 * kern/term.c: Include <pupa/misc.h>.
19534 (pupa_more_lines): New variable.
19535 (pupa_more): Likewise.
19536 (pupa_putcode): When the pager is active pause at the end of every
19538 (pupa_set_more): New function.
19539 * include/pupa/term.h (pupa_set_more): New prototype.
19542 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
19544 Now this project is GRUB 2 rather than PUPA. The location of
19545 the CVS repository was moved to GRUB's.
19547 * configure.ac: Use bug-grub as the reporting address.
19548 Use GRUB instead of PUPA.
19549 Change the version number to 1.90.
19551 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
19553 * genkernsyms.sh: Updated copyright information.
19554 * genmk.rb: Likewise.
19555 * genmodsrc.sh: Likewise.
19556 * gensymlist.sh: Likewise.
19557 * boot/i386/pc/boot.S: Likewise.
19558 * boot/i386/pc/diskboot.S: Likewise.
19559 * disk/i386/pc/biosdisk.c: Likewise.
19560 * disk/i386/pc/partition.c: Likewise.
19561 * font/manager.c: Likewise.
19562 * fs/ext2.c: Likewise.
19563 * fs/fat.c: Likewise.
19564 * include/pupa/boot.h: Likewise.
19565 * include/pupa/device.h: Likewise.
19566 * include/pupa/disk.h: Likewise.
19567 * include/pupa/dl.h: Likewise.
19568 * include/pupa/elf.h: Likewise.
19569 * include/pupa/err.h: Likewise.
19570 * include/pupa/file.h: Likewise.
19571 * include/pupa/font.h: Likewise.
19572 * include/pupa/fs.h: Likewise.
19573 * include/pupa/kernel.h: Likewise.
19574 * include/pupa/loader.h: Likewise.
19575 * include/pupa/misc.h: Likewise.
19576 * include/pupa/mm.h: Likewise.
19577 * include/pupa/net.h: Likewise.
19578 * include/pupa/normal.h: Likewise.
19579 * include/pupa/rescue.h: Likewise.
19580 * include/pupa/setjmp.h: Likewise.
19581 * include/pupa/symbol.h: Likewise.
19582 * include/pupa/term.h: Likewise.
19583 * include/pupa/types.h: Likewise.
19584 * include/pupa/i386/setjmp.h: Likewise.
19585 * include/pupa/i386/types.h: Likewise.
19586 * include/pupa/i386/pc/biosdisk.h: Likewise.
19587 * include/pupa/i386/pc/boot.h: Likewise.
19588 * include/pupa/i386/pc/console.h: Likewise.
19589 * include/pupa/i386/pc/init.h: Likewise.
19590 * include/pupa/i386/pc/kernel.h: Likewise.
19591 * include/pupa/i386/pc/linux.h: Likewise.
19592 * include/pupa/i386/pc/loader.h: Likewise.
19593 * include/pupa/i386/pc/memory.h: Likewise.
19594 * include/pupa/i386/pc/multiboot.h: Likewise.
19595 * include/pupa/i386/pc/partition.h: Likewise.
19596 * include/pupa/i386/pc/time.h: Likewise.
19597 * include/pupa/i386/pc/vga.h: Likewise.
19598 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
19599 * include/pupa/util/getroot.h: Likewise.
19600 * include/pupa/util/misc.h: Likewise.
19601 * include/pupa/util/resolve.h: Likewise.
19602 * kern/device.c: Likewise.
19603 * kern/disk.c: Likewise.
19604 * kern/dl.c: Likewise.
19605 * kern/err.c: Likewise.
19606 * kern/file.c: Likewise.
19607 * kern/fs.c: Likewise.
19608 * kern/loader.c: Likewise.
19609 * kern/main.c: Likewise.
19610 * kern/misc.c: Likewise.
19611 * kern/mm.c: Likewise.
19612 * kern/rescue.c: Likewise.
19613 * kern/term.c: Likewise.
19614 * kern/i386/dl.c: Likewise.
19615 * kern/i386/pc/init.c: Likewise.
19616 * kern/i386/pc/lzo1x.S: Likewise.
19617 * kern/i386/pc/startup.S: Likewise.
19618 * loader/i386/pc/chainloader.c: Likewise.
19619 * loader/i386/pc/linux.c: Likewise.
19620 * loader/i386/pc/multiboot.c: Likewise.
19621 * normal/cmdline.c: Likewise.
19622 * normal/command.c: Likewise.
19623 * normal/main.c: Likewise.
19624 * normal/menu.c: Likewise.
19625 * normal/i386/setjmp.S: Likewise.
19626 * term/i386/pc/console.c: Likewise.
19627 * term/i386/pc/vga.c: Likewise.
19628 * util/console.c: Likewise.
19629 * util/genmoddep.c: Likewise.
19630 * util/misc.c: Likewise.
19631 * util/pupa-emu.c: Likewise.
19632 * util/resolve.c: Likewise.
19633 * util/unifont2pff.rb: Likewise.
19634 * util/i386/pc/biosdisk.c: Likewise.
19635 * util/i386/pc/getroot.c: Likewise.
19636 * util/i386/pc/pupa-mkimage.c: Likewise.
19637 * util/i386/pc/pupa-setup.c: Likewise.
19639 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
19641 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
19642 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
19643 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
19644 reading and reset it after reading.
19645 (pupa_ext2_close): Return PUPA_ERR_NONE.
19647 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
19649 (struct linux_kernel_header): Add kernel_version and
19651 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
19652 pupa_file_read succeeds.
19653 (pupa_rescue_cmd_initrd): Implement.
19655 2003-12-03 Marco Gerards <metgerards@student.han.nl>
19657 * fs/ext2.c (pupa_ext2_label): New function.
19658 (pupa_ext2_fs): Added label.
19659 * fs/fat.c (pupa_fat_label): New function.
19660 (pupa_fat_fs): Added label.
19661 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
19663 * kern/misc.c (pupa_strndup): New function.
19664 * include/pupa/misc.h (pupa_strndup): New prototype.
19666 * include/pupa/normal.h: Include <pupa/err.h>.
19667 (pupa_set_history): New prototype.
19668 (pupa_iterate_commands): New prototype.
19669 * normal/cmdline.c: Include <pupa/machine/partition.h>,
19670 <pupa/disk.h>, <pupa/file.h>.
19671 (hist_size): New variable.
19672 (hist_lines): Likewise.
19673 (hist_end): Likewise.
19674 (hist_used): Likewise.
19675 (pupa_set_history): New function.
19676 (pupa_history_get): Likewise.
19677 (pupa_history_add): Likewise.
19678 (pupa_history_replace): Likewise.
19679 (pupa_tab_complete): Likewise.
19680 (pupa_cmdline_run): Added tab completion and history buffer. Tab
19681 completion shows partitionnames while completing partitions, this
19682 feature was suggested by Jeff Bailey.
19683 * normal/command.c (pupa_iterate_commands): New function.
19684 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
19685 (pupa_normal_init): Initialize history buffer.
19686 (PUPA_MOD_INIT): Likewise.
19687 (pupa_normal_fini): Free the history buffer.
19688 (PUPA_MOD_FINI): Likewise.
19690 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
19693 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
19694 * configure.ac [i386]: Check for regparam bug.
19695 (NESTED_FUNC_ATTR) [! i386]: Defined.
19697 2003-11-17 Marco Gerards <metgerards@student.han.nl>
19699 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
19700 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
19701 (pupa_emu_SOURCES): New variable.
19702 (pupa_emu_LDFLAGS): Likewise.
19703 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
19704 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
19705 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
19706 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19707 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
19708 (pupa_jmp_buf): New typedef.
19709 (pupa_setjmp) [PUPA_UTIL]: New macro.
19710 (pupa_longjmp) [PUPA_UTIL]: Likewise.
19711 * include/pupa/term.h (struct pupa_term): New member `refresh'.
19712 (pupa_refresh): New prototype.
19713 * include/pupa/util/getroot.h: New file.
19714 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
19716 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
19717 (pupa_rescue_cmd_cat): Likewise.
19718 (pupa_rescue_cmd_ls): Likewise.
19719 (pupa_rescue_cmd_testload): Likewise.
19720 (pupa_rescue_cmd_lsmod): Likewise.
19721 * normal/cmdline.c (pupa_cmdline_get): Likewise.
19722 * normal/menu.c (run_menu): Likewise.
19723 * kern/term.c (pupa_cls): Likewise.
19724 (pupa_refresh): New function.
19725 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
19726 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19727 * util/console.c: New file.
19729 * util/i386/pc/getroot.c: New file.
19730 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
19731 (pupa_putchar): New function.
19732 (pupa_refresh): Likewise.
19733 (xgetcwd): Function moved to ...
19734 (strip_extra_slashes): Likewise.
19735 (get_prefix): Likewise.
19736 * util/i386/pc/getroot.c: ... here.
19737 (find_root_device): Function moved and renamed to...
19738 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
19739 Changed all callers.
19740 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
19742 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
19743 Changed all callers.
19744 * util/misc.c (pupa_memalign): New function.
19745 (pupa_mm_init_region): Likewise.
19746 (pupa_register_exported_symbols): Likewise.
19747 (pupa_putchar): Function removed.
19748 * util/pupa-emu.c: New file.
19750 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
19752 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
19753 (_multiboot_mod_SOURCES): New variable.
19754 (_multiboot_mod_CFLAGS): Likewise.
19755 * loader/i386/pc/multiboot.c: New file.
19756 * include/pupa/i386/pc/multiboot.h: Likewise.
19757 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
19758 (pupa_multiboot_real_boot): New function.
19759 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
19760 (pupa_multiboot_real_boot): New prototype.
19761 (pupa_rescue_cmd_multiboot): Likewise
19762 (pupa_rescue_cmd_module): Likewise.
19764 * kern/loader.c (pupa_loader_set): Continue when
19765 pupa_loader_unload_func() fails.
19766 (pupa_loader_unset): New function.
19767 * include/pupa/loader.h (pupa_loader_unset): New prototype.
19769 * kern/misc.c (pupa_stpcpy): New function.
19770 * include/pupa/misc.h (pupa_stpcpy): New prototype.
19772 2003-11-12 Marco Gerards <metgerards@student.han.nl>
19774 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
19775 for available extensions.
19777 * include/pupa/i386/pc/time.h: New file.
19778 * kern/disk.c: Include <pupa/machine/time.h>.
19779 (PUPA_CACHE_TIMEOUT): New macro.
19780 (pupa_last_time): New variable.
19781 (pupa_disk_open): Flush the cache when there was a timeout.
19782 (pupa_disk_close): Reset the timer.
19783 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
19785 * util/misc.c: Include <sys/times.h>
19786 (pupa_get_rtc): New function.
19788 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
19790 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
19792 (pupa_ext2_get_file_block): Use blocks member.
19794 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
19795 first block. Return -1 instead of pupa_errno on error.
19797 2003-10-27 Marco Gerards <metgerards@student.han.nl>
19799 * README: In the pupa-mkimage example use _chain instead of chain
19800 and ext2 instead of fat.
19801 * TODO: Replace ext2fs with jfs as an example. Add an item for
19802 adding journal playback for ext2fs.
19803 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
19804 (pkgdata_MODULES): Added ext2.mod.
19805 (ext2_mod_SOURCES): New variable.
19806 (ext2_mod_CFLAGS): Likewise.
19807 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
19808 * include/pupa/misc.h (pupa_strncpy): New prototype.
19809 (pupa_strcat): Likewise.
19810 (pupa_strncmp): Likewise.
19811 * kern/misc.c (pupa_strcat): Enable function.
19812 (pupa_strncpy): New function.
19813 (pupa_strncmp): Likewise.
19814 * fs/ext2.c: New file.
19816 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
19817 when the read failed before retrying.
19818 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
19819 (_FILE_OFFSET_BITS): Likewise.
19820 * configure.ac: Added AC_SYS_LARGEFILE.
19822 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19824 * genmk.rb (PModule#rule): Make sure to get only symbol names
19825 from the output of nm.
19826 Reported by Robert Millan <zeratul2@wanadoo.es>.
19828 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19830 I forgot to check in these changes for a long time. This adds
19831 incomplete support for VGA console, and this is still very
19832 buggy. Also, a lot of consideration is required for I18N,
19833 UNICODE, and VGA font issues. Therefore, assume that this is
19834 such that "better than nothing".
19836 * font/manager.c: New file.
19837 * include/pupa/font.h: Likewise.
19838 * include/pupa/i386/pc/vga.h: Likewise.
19839 * term/i386/pc/vga.c: Likewise.
19840 * util/unifont2pff.rb: Likewise.
19842 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
19843 (pkgdata_MODULES): Added vga.mod and font.mod.
19844 (vga_mod_SOURCES): New variables.
19845 (vga_mod_CFLAGS): Likewise.
19846 (font_mod_SOURCES): Likewise.
19847 (font_mod_CFLAGS): Likewise.
19849 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
19851 * include/pupa/term.h: Include pupa/err.h.
19852 (struct pupa_term): Added init and fini.
19853 Changed the argument of putchar to pupa_uint32_t.
19855 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
19856 (pupa_console_real_putchar): New prototype.
19857 (pupa_console_putchar): Removed.
19858 (pupa_console_checkkey): Exported.
19859 (pupa_console_getkey): Likewise.
19861 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
19864 * kern/term.c (pupa_term_set_current): Rewritten.
19865 (pupa_putchar): Likewise.
19866 (pupa_putcode): New function.
19868 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
19869 (pupa_console_real_putchar): ... this.
19870 (pupa_vga_set_mode): New function.
19871 (pupa_vga_get_font): Likewise.
19873 * normal/command.c: Include pupa/term.h.
19874 (terminal_command): New function.
19875 (pupa_command_init): Register the command "terminal".
19877 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
19878 (DISP_UP): Likewise.
19879 (DISP_RIGHT): Likewise.
19880 (DISP_DOWN): Likewise.
19881 (DISP_HLINE): Likewise.
19882 (DISP_VLINE): Likewise.
19883 (DISP_UL): Likewise.
19884 (DISP_UR): Likewise.
19885 (DISP_LL): Likewise.
19886 (DISP_LR): Likewise.
19888 * term/i386/pc/console.c (pupa_console_putchar): New function.
19890 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
19892 * util/resolve.c (pupa_util_resolve_dependencies): BUG
19893 FIX. Reverse the path_list.
19895 * include/pupa/normal.h: Export pupa_register_command and
19896 pupa_unregister_command.
19898 * hello/hello.c (pupa_cmd_hello): New module.
19899 * conf/i386-pc.rmk: Added hello.mod.
19901 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
19903 * kern/i386/pc/lzo1x.S: New file.
19905 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
19906 (compress_kernel): New variable.
19907 (generate_image): Heavily modified to support compressing a
19908 large part of the core image.
19910 * util/misc.c (pupa_util_read_image): Fix a file descriptor
19912 (pupa_util_load_image): New function.
19914 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
19915 (pupa_compressed_size): New variable.
19916 (codestart): Enable Gate A20 here.
19917 Decompress the compressed part of the core image.
19918 Rearrange the code to put functions and variables which are
19919 required for initialization in the non-compressed part.
19922 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
19925 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
19927 * include/pupa/i386/pc/kernel.h
19928 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
19929 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
19930 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
19931 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
19932 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
19934 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
19936 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
19937 (Utility#rule): Likewise.
19939 * configure.ac: Check if LZO is available.
19941 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
19943 * include/pupa/normal.h: New file.
19944 * include/pupa/setjmp.h: Likewise.
19945 * include/pupa/i386/setjmp.h: Likewise.
19946 * normal/cmdline.c: Likewise.
19947 * normal/command.c: Likewise.
19948 * normal/main.c: Likewise.
19949 * normal/menu.c: Likewise.
19950 * normal/i386/setjmp.S: Likewise.
19952 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
19953 (pupa_rescue_cmd_initrd): Likewise.
19955 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
19958 * kern/i386/pc/startup.S (translation_table): New variable.
19959 (translate_keycode): New function.
19960 (pupa_console_getkey): Call translate_keycode.
19962 * kern/rescue.c (attempt_normal_mode): New function.
19963 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
19964 it failed, print a message.
19966 * kern/mm.c (pupa_real_malloc): Print more information when a
19967 free magic is broken.
19968 (pupa_free): If the first free header is not free actually, set
19971 * kern/main.c (pupa_load_normal_mode): Just load the module
19973 (pupa_main): Don't print the message
19974 "Entering into rescue mode..." here.
19976 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
19978 (pupa_rescue_cmd_initrd): Likewise.
19979 (pupa_rescue_cmd_initrd): Likewise.
19981 * include/pupa/symbol.h (FUNCTION): Specify the type.
19982 (VARIABLE): Likewise.
19984 * include/pupa/err.h (pupa_err_t): Added
19985 PUPA_ERR_UNKNOWN_COMMAND.
19987 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
19988 (pupa_dl_get_prefix): Likewise.
19990 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
19991 Added _chain.mod and _linux.mod instead of chain.mod and
19993 (chain_mod_SOURCES): Renamed to ...
19994 (_chain_mod_SOURCES): ... this.
19995 (chain_mod_CFLAGS): Renamed to ...
19996 (_chain_mod_CFLAGS): ... this.
19997 (linux_mod_SOURCES): Renamed to ...
19998 (_linux_mod_SOURCES): ... this.
19999 (linux_mod_CFLAGS): Renamed to ...
20000 (_linux_mod_CFLAGS): ... this.
20001 (normal_mod_SOURCES): New variable.
20002 (normal_mod_CFLAGS): Likewise.
20003 (normal_mod_ASFLAGS): Likewise.
20005 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
20007 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
20010 * kern/dl.c (pupa_dl_ref): Refer depending modules
20012 (pupa_dl_unref): Unrefer depending modules recursively.
20013 Don't call pupa_dl_unload implicitly, because PUPA can crash if
20014 a module is unloaded before one depending on that module is
20016 (pupa_dl_unload): Unload depending modules explicitly,
20019 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
20021 * include/pupa/i386/pc/linux.h: New file.
20022 * loader/i386/pc/linux.c: Likewise.
20024 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
20026 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
20027 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
20028 of PUPA_CHAINLOADER_BOOT_SECTOR.
20030 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
20031 (pupa_linux_prot_size): New variable.
20032 (pupa_linux_tmp_addr): Likewise.
20033 (pupa_linux_real_addr): Likewise.
20034 (pupa_linux_boot_zimage): New function.
20035 (pupa_linux_boot_bzimage): Likewise.
20037 * kern/i386/pc/init.c (struct mem_region): New structure.
20038 (MAX_REGIONS): New macro.
20039 (mem_regions): New variable.
20040 (num_regions): Likewise.
20041 (pupa_os_area_addr): Likewise.
20042 (pupa_os_area_size): Likewise.
20043 (pupa_lower_mem): Likewise.
20044 (pupa_upper_mem): Likewise.
20045 (add_mem_region): New function.
20046 (compact_mem_regions): Likewise.
20047 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
20048 the size of the conventional memory and that of so-called upper
20049 memory (before the first memory hole).
20050 Instead of adding each found region to free memory, use
20051 add_mem_region and add them after removing overlaps.
20052 Also, add only 1/4 of the upper memory to free memory. The rest
20053 is used for loading OS images. Maybe this is ad hoc, but this
20054 makes it much easier to relocate OS images when booting.
20056 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
20057 (pupa_enter_rescue_mode): Don't register initrd and module.
20059 * kern/mm.c: Include pupa/dl.h.
20061 * kern/main.c: Include pupa/file.h and pupa/device.h.
20063 * kern/loader.c (pupa_loader_load_module_func): Removed.
20064 (pupa_loader_load_module): Likewise.
20066 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
20069 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
20070 (pupa_linux_tmp_addr): Likewise.
20071 (pupa_linux_real_addr): Likewise.
20072 (pupa_linux_boot_zimage): Likewise.
20073 (pupa_linux_boot_bzimage): Likewise.
20075 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
20076 (pupa_upper_mem): Likewise.
20077 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
20078 module is too dangerous.
20080 * include/pupa/loader.h (pupa_os_area_addr): Declared.
20081 (pupa_os_area_size): Likewise.
20082 (pupa_loader_set): Remove the first argument. Loader doesn't
20083 manage modules or initrd any longer.
20084 (pupa_loader_load_module): Removed.
20086 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
20087 (linux_mod_SOURCES): New variable.
20088 (linux_mod_CFLAGS): Likewise.
20090 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
20092 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
20093 the length of a blocklist correctly.
20095 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
20096 Use ioctl only if the OS file is a block device.
20097 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
20098 not very useful for normal files.
20100 * kern/main.c (pupa_set_root_dev): New function.
20101 (pupa_load_normal_mode): Likewise.
20102 (pupa_main): Call those above.
20104 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
20107 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
20109 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20111 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
20112 (setup): Configure the installed partition information and the
20115 * loader/i386/pc/chainloader.c (my_mod): New variable.
20116 (pupa_chainloader_unload): New function.
20117 (pupa_rescue_cmd_chainloader): Refer itself.
20118 (PUPA_MOD_INIT): Save its own module in MY_MOD.
20120 * kern/i386/pc/startup.S (install_partition): Removed.
20121 (version_string): Likewise.
20122 (config_file): Likewise.
20123 (pupa_install_dos_part): New variable.
20124 (pupa_install_bsd_part): Likewise.
20125 (pupa_prefix): Likewise.
20126 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
20128 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
20130 (make_install_device): New function.
20131 (pupa_machine_init): Set the dl prefix.
20133 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
20134 (buf): Renamed to ...
20135 (linebuf): ... this.
20136 (pupa_rescue_cmd_prefix): New function.
20137 (pupa_rescue_cmd_insmod): Likewise.
20138 (pupa_rescue_cmd_rmmod): Likewise.
20139 (pupa_rescue_cmd_lsmod): Likewise.
20140 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
20143 * kern/mm.c (pupa_memalign): If failed even after invalidating
20144 disk caches, unload unneeded modules and retry.
20146 * kern/misc.c (pupa_memmove): New function.
20147 (pupa_memcpy): Removed.
20148 (pupa_strcpy): New function.
20149 (pupa_itoa): Made static.
20151 * kern/dl.c (pupa_dl_iterate): New function.
20152 (pupa_dl_ref): Likewise.
20153 (pupa_dl_unref): Likewise.
20154 (pupa_dl_unload): Return if succeeded or not.
20155 (pupa_dl_unload_unneeded): New function.
20156 (pupa_dl_unload_all): Likewise.
20157 (pupa_dl_init): Renamed to ...
20158 (pupa_dl_set_prefix): ... this.
20159 (pupa_dl_get_prefix): New function.
20161 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
20162 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
20163 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
20164 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
20165 (pupa_install_dos_part): Declared.
20166 (pupa_install_bsd_part): Likewise.
20167 (pupa_prefix): Likewise.
20168 (pupa_boot_drive): Likewise.
20170 * include/pupa/types.h: Fix a typo.
20172 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
20174 (pupa_memmove): Declared.
20175 (pupa_strcpy): Likewise.
20177 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
20178 pupa_mod_init takes one argument, its own module.
20179 (pupa_dl_unload_unneeded): Declared.
20180 (pupa_dl_unload_all): Likewise.
20181 (pupa_dl_ref): Likewise.
20182 (pupa_dl_unref): Likewise.
20183 (pupa_dl_iterate): Likewise.
20184 (pupa_dl_init): Renamed to ...
20185 (pupa_dl_set_prefix): ... this.
20186 (pupa_dl_get_prefix): Declared.
20188 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
20189 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
20191 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
20192 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
20194 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
20195 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
20197 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20199 * util/i386/pc/pupa-setup.c (setup): Define the internal
20200 function find_first_partition_start at the top level, because GCC
20201 3.0.x cannot compile internal functions in deeper scopes
20203 (find_root_device): Use lstat instead of stat.
20204 Don't follow symbolic links.
20205 Fix the path-constructing code.
20207 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
20208 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
20209 by a BLKGETSIZE ioctl first, because block devices don't fill
20210 the member st_mode of the structure stat on Linux.
20211 [__linux__] (linux_find_partition): Use a temporary buffer
20212 REAL_DEV for the working space. Copy it to DEV before returning.
20213 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
20214 buffer cache consistent.
20215 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
20216 strncmp. The previous value was merely wrong.
20217 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
20219 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
20220 FAT size is 12. The previous value was merely wrong.
20222 * kern/main.c (pupa_main): Don't split the starting message from
20225 * kern/term.c (pupa_putchar): Put CR after LF instead of before
20226 LF, because BIOS goes crazy about character attributes in this
20229 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20231 * include/i386/pc/util/biosdisk.h: New file.
20232 * util/i386/pc/biosdisk.c: Likewise.
20233 * util/i386/pc/pupa-setup.c: Likewise.
20235 * Makefile.in (INCLUDE_DISTFILES): Added
20236 include/pupa/i386/pc/util/biosdisk.h.
20237 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
20238 directory util/i386/pc.
20239 (install-local): Added a rule for sbin_UTILITIES.
20240 (uninstall): Likewise.
20242 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
20244 * util/misc.c (xrealloc): New function.
20245 (pupa_malloc): Likewise.
20246 (pupa_free): Likewise.
20247 (pupa_realloc): Likewise.
20248 (pupa_stop): Likewise.
20249 (pupa_putchar): Likewise.
20251 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
20253 * include/pupa/util/misc.h (xrealloc): Declared.
20255 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
20257 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
20258 (PUPA_BOOT_MACHINE_BPB_END): ... this.
20260 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
20261 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20263 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
20264 way should be implemented.
20265 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20267 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
20268 the size of NAME for safety.
20269 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
20272 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
20273 (pupa_setup_SOURCES): Likewise.
20275 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
20277 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20279 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
20280 bunch of pushl's from pusha, because this destroys the return
20283 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20285 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
20286 This means that any missing prototypes could be fatal. Also, you
20287 must take care when writing assembly code. See the comments at
20288 the beginning of startup.S, for more details.
20290 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
20291 compilation mechanism.
20292 (pupa_chainloader_real_boot): Likewise.
20293 (pupa_biosdisk_rw_int13_extensions): Likewise.
20294 (pupa_biosdisk_rw_standard): Likewise.
20295 (pupa_biosdisk_check_int13_extensions): Likewise.
20296 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
20297 (pupa_biosdisk_get_diskinfo_standard): Likewise.
20298 (pupa_get_memsize): Likewise.
20299 (pupa_get_mmap_entry): Likewise.
20300 (pupa_console_putchar): Likewise.
20301 (pupa_console_setcursor): Likewise.
20302 (pupa_getrtsecs): Use pushl instead of push.
20304 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
20305 memory instead of the stack for a mmap entry, because some
20306 BIOSes may ignore the maximum size and overflow.
20308 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
20310 * genmk.rb (PModule#rule): Compile automatically generated
20311 sources with module-specific CFLAGS as well as other sources.
20313 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20315 * configure.ac: Check ld.
20316 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
20317 respectively, before checking endianness and sizes.
20319 * Makefile.in (LD): New variable.
20321 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20323 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
20325 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20327 * Changelog: New file.