1 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
3 * util/i386/pc/grub-install.in: Remove hint that device.map should be
4 checked (grub-install doesn't currently rely on it).
6 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
10 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
11 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
12 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
13 * conf/i386-ieee1275.rmk: Likewise.
14 * conf/i386-pc.rmk: Likewise.
15 * conf/powerpc-ieee1275.rmk: Likewise.
16 * conf/sparc64-ieee1275.rmk: Likewise.
17 * conf/x86_64-efi.rmk: Likewise.
19 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
21 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
23 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
25 * include/grub/misc.h: Stop checking for APPLE_CC.
27 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
29 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
30 doesn't cause an infinite call loop.
32 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
37 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
39 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
41 * Makefile.in: Likewise.
43 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
45 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
47 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
49 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
51 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
53 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
55 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
57 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
59 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
61 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
63 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
64 in $(MAKEINFO) invocation. This makes it clear in output that
65 errors are being ignored.
67 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
69 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
71 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
72 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
73 * conf/i386-ieee1275.rmk: Likewise.
74 * conf/i386-pc.rmk: Likewise.
75 * conf/powerpc-ieee1275.rmk: Likewise.
76 * conf/sparc64-ieee1275.rmk: Likewise.
77 * conf/x86_64-efi.rmk: Likewise.
79 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
81 * util/grub-editenv.c (main): If only a command is given, use
82 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
83 (usage): FILENAME is now optional and has a default.
85 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
87 Improve grub-mkconfig performance when there are several menu
88 entries on a single filesystem.
90 * util/grub.d/10_linux.in (linux_entry): Cache the output of
91 prepare_grub_to_access_device.
92 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
93 * util/grub.d/30_os-prober.in: Likewise.
95 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
97 * util/grub.d/10_freebsd.in: Remove.
98 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
99 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
101 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
103 * docs/grub.cfg: Fix example usage of *BSD loaders.
105 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
107 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
108 grub_util_error() call.
110 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
112 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
113 `reserved_first_sector' member.
114 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
115 `reserved_first_sector' to 1.
116 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
117 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
118 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
119 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
120 filesystems which begin at first sector.
121 (options): New option --skip-fs-probe.
122 (main): Handle --skip-fs-probe and pass it to setup().
124 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
126 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
127 (memset): Fix function prototype.
129 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
130 2009-10-25 Vasily Averin <vvs@parallels.com>
132 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
133 `dirent.direntlen == 0'.
135 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
137 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
139 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
141 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
143 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
144 `__trampoline_setup' and `__ucmpdi2'.
145 * include/grub/powerpc/libgcc.h: Only export symbols for functions
146 that libgcc provides.
148 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
150 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
151 * include/grub/sparc64/libgcc.h (memset): Likewise.
152 * include/grub/misc.h (memset, memcmp): New function prototypes.
154 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
156 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
158 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
160 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
162 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
163 * docs/grub.cfg: Compensate for recent change in multiboot
164 loader (since 2009-08-14 it won't pass filename to payload).
165 * util/grub.d/10_hurd.in: Likewise.
167 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
169 * config.guess: Update to latest version from config git
171 * config.sub: Likewise.
173 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
175 Fix build on sparc64.
177 * configure.ac: Perform checks for libgcc symbols before
178 adding `-nostdlib' to LDFLAGS.
180 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
182 Let user specify OpenBSD root device.
184 * loader/i386/bsd.c (openbsd_root): New variable.
185 (openbsd_opts): New option 'root'.
186 (OPENBSD_ROOT_ARG): New macro.
187 (grub_openbsd_boot): Use 'openbsd_root'.
188 (grub_cmd_openbsd): Fill 'openbsd_root'.
190 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
192 * NEWS: Misc adjustments.
194 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
196 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
198 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
200 * configure.ac: Bump version to 1.97.
202 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
204 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
205 -mno-3dnow on x86 architectures. Some toolchains enable these
206 features by default, but they rely on registers that aren't enabled
207 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
209 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
211 Make entry text a bit more readable.
213 * util/grub.d/10_linux.in: Add `with' before `Linux'.
215 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
217 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
219 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
221 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
224 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
226 * configure.ac: Add missing dollar.
228 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
230 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
232 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
233 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
235 * include/grub/sparc64/libgcc.h: Likewise. Use
236 preprocessor conditionals.
238 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
240 * conf/common.rmk (grub-dumpbios): Remove rule.
241 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
242 * util/grub-dumpbios.in: Remove file.
244 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
246 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
247 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
249 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
250 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
253 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
254 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
255 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
256 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
259 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
261 * term/tparm.c: Switch to GPLv3.
263 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
265 * include/grub/i386/cpuid.h: Add header protection.
267 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
269 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
271 * include/grub/i386/cpuid.h: New file.
272 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
273 (has_longmode): Rename to ...
274 (grub_cpuid_has_longmode): ... this. Update all users. Remove
276 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
277 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
278 on a CPU that doesn't implement AMD64 instruction set.
280 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
282 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
283 that version.texi is rebuilt on version number changes.
285 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
287 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
290 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
292 * util/i386/pc/grub-install.in: Source
293 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
294 that the --grub-probe option will work.
295 * util/sparc64/ieee1275/grub-install.in: Likewise.
297 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
299 * configure.ac: Bump version to 1.97~beta4.
301 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
303 Resync grub-mkdevicemap in x86_64-efi.
305 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
306 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
309 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
311 * util/grub-editenv.c (create_envblk_file): Write new block with a
312 .new suffix and then rename it into place, to ensure atomic
315 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
317 Do not automatically install headers.
319 * Makefile.in (include_DATA): Remove. Update all users.
321 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
323 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
324 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
326 * util/osdetect.lua: Remove.
327 * script/lua/lauxlib.c: Likewise.
328 * script/lua/ldebug.c: Likewise.
329 * script/lua/grub_main.c: Likewise.
330 * script/lua/lauxlib.h: Likewise.
331 * script/lua/ldebug.h: Likewise.
332 * script/lua/ltablib.c: Likewise.
333 * script/lua/liolib.c: Likewise.
334 * script/lua/lstrlib.c: Likewise.
335 * script/lua/lualib.h: Likewise.
336 * script/lua/ldo.c: Likewise.
337 * script/lua/ldump.c: Likewise.
338 * script/lua/ldo.h: Likewise.
339 * script/lua/loslib.c: Likewise.
340 * script/lua/lundump.c: Likewise.
341 * script/lua/grub_lib.c: Likewise.
342 * script/lua/ldblib.c: Likewise.
343 * script/lua/lundump.h: Likewise.
344 * script/lua/lmem.c: Likewise.
345 * script/lua/grub_lib.h: Likewise.
346 * script/lua/lmathlib.c: Likewise.
347 * script/lua/lstate.c: Likewise.
348 * script/lua/ltm.c: Likewise.
349 * script/lua/lvm.c: Likewise.
350 * script/lua/lmem.h: Likewise.
351 * script/lua/lstate.h: Likewise.
352 * script/lua/ltm.h: Likewise.
353 * script/lua/ltable.c: Likewise.
354 * script/lua/lvm.h: Likewise.
355 * script/lua/llex.c: Likewise.
356 * script/lua/lgc.c: Likewise.
357 * script/lua/grub_lua.h: Likewise.
358 * script/lua/loadlib.c: Likewise.
359 * script/lua/lfunc.c: Likewise.
360 * script/lua/lopcodes.c: Likewise.
361 * script/lua/lparser.c: Likewise.
362 * script/lua/ltable.h: Likewise.
363 * script/lua/llex.h: Likewise.
364 * script/lua/lgc.h: Likewise.
365 * script/lua/lfunc.h: Likewise.
366 * script/lua/lbaselib.c: Likewise.
367 * script/lua/lopcodes.h: Likewise.
368 * script/lua/lparser.h: Likewise.
369 * script/lua/lzio.c: Likewise.
370 * script/lua/linit.c: Likewise.
371 * script/lua/lobject.c: Likewise.
372 * script/lua/llimits.h: Likewise.
373 * script/lua/lstring.c: Likewise.
374 * script/lua/lzio.h: Likewise.
375 * script/lua/lapi.c: Likewise.
376 * script/lua/lcode.c: Likewise.
377 * script/lua/lua.h: Likewise.
378 * script/lua/lobject.h: Likewise.
379 * script/lua/lstring.h: Likewise.
380 * script/lua/lapi.h: Likewise.
381 * script/lua/lcode.h: Likewise.
382 * script/lua/luaconf.h: Likewise.
384 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
386 * docs/grub.texi (Command-line and menu entry commands): Document
387 date and echo commands.
389 2009-09-24 Pavel Roskin <proski@gnu.org>
391 * include/grub/kernel.h (struct grub_module_header): Remove
392 `grub_module_header_types'. Make `type' unsigned. Make `size'
393 32-bit on all platforms.
394 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
395 8-bit field. Use grub_host_to_target32() for `size'.
396 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
397 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
398 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
400 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
402 Fix "lost keypress" bug in at_keyboard.
404 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
405 Checks for readyness of input buffer (without flushing it).
406 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
407 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
409 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
411 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
412 size check within GRUB_MACHINE_PCBIOS section.
414 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
416 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
418 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
419 KEYBOARD_ISREADY check.
420 (grub_at_keyboard_checkkey): Rename to ...
421 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
422 Remove gratuitous cast.
424 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
426 * configure.ac: Call AC_PROG_MKDIR_P.
427 * Makefile.in (docs/stamp-vti): Create docs directory. Create
428 version.texi in $(builddir) rather than $(srcdir).
429 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
430 to makeinfo's @include search path.
432 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
434 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
436 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
438 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
441 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
443 Build info documentation. Some code borrowed from Automake.
445 * configure.ac: Check for makeinfo.
446 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
447 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
449 (MOSTLYCLEANFILES): Add vti.tmp.
450 (docs/version.texi, docs/stamp-vti): Update automatically.
451 (docs/grub.info): Build info documentation. Use --force and ignore
453 (all-local): Add $(INFOS).
454 (install-local): Install info files.
455 (uninstall): Uninstall info files.
456 * docs/version.texi: Remove from revision control. This file is
457 automatically generated on build now.
458 * gendistlist.sh: Add `*.info'.
460 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
462 * kern/term.c: Fix indentation.
464 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
466 * util/hostdisk.c: Fix a comment.
468 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
470 Fix regression introduced in r2539.
472 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
475 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
477 * util/grub.d/30_os-prober.in: Don't throw away stderr from
478 os-prober. Under normal operation, it does not print anything to
479 stderr; if it does, we need to debug it, and throwing away stderr
480 makes that excessively difficult.
482 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
484 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
486 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
488 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
489 AC_LANG_PROGRAM from autoconf.
490 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
491 prototypes (fixes warning).
493 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
494 `--disable-werror' was used.
496 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
498 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
499 uninitialized `lastaddr'.
501 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
503 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
505 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
507 * commands/test.c (get_fileinfo): Return immediately if
510 2009-09-14 José MartÃnez <xosemp@gmail.com>
512 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
514 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
516 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
519 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
521 * configure.ac: Remove --enable-grub-pe2elf. Only build
522 grub-pe2elf when needed by the build system itself.
523 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
525 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
527 * configure.ac: Bump version to 1.97~beta3.
528 * docs/version.texi: Likewise.
530 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
532 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
533 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
535 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
536 (grub_linux_setup_video): ... to here (with some adjustments).
538 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
540 Fix memory corruption issue (spotted by Colin Watson).
542 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
543 causing returned size to be stored in an incorrect memory location.
544 Fix use of uninitialized value when storing the returned size.
546 2009-09-12 Yves Blusseau <blusseau@zetam.org>
548 Change clean rules to properly remove files
550 * genmk.rb: add new clean rules
551 * Makefile.in (clean): add the new targets
552 (mostlyclean): likewise
554 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
556 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
558 * fs/ntfs.c (init_file): Understand 64-bit sizes for
561 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
563 * configure.ac: Don't look for help2man when cross-compiling. Fixes
566 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
568 * util/grub-mkconfig.in: Make the created config mode 400 and
569 print a warning if it fails.
571 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
573 * util/grub.d/40_custom.in: Ask user to type custom entries below
574 comment, rather than below 'exec tail' line.
576 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
578 * util/grub.d/40_custom.in: Make sure that the explanatory text is
581 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
583 * util/grub.d/40_custom.in: Make it a little clearer how to use this
586 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
588 * docs/grub.cfg: Add an example menu entry for memtest86+.
590 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
592 * config.guess: Update to latest version from config git.
593 * config.sub: Likewise.
595 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
597 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
598 unknown-command case. Fixes bug #27320.
600 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
602 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
603 `help' if the command exists.
605 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
607 * INSTALL: Require GCC 4.1.3 or later.
609 2009-09-06 Yves Blusseau <blusseau@zetam.org>
611 * Makefile.in (RMKFILES): add i386-qemu.rmk
612 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
615 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
617 * util/grub-probe.c (probe): Comment out buggy codepath, which
618 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
619 should be re-enabled after 1.97.
621 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
623 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
626 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
628 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
629 unnecessary calls to grub_error.
631 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
633 * NEWS: Mention `keystatus' and Unicode fonts.
635 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
637 * configure.ac: Bump version to 1.97~beta2.
638 * docs/version.texi: Likewise.
640 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
642 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
643 containing unwind information in some cases where it previously did
644 not. Use -fno-dwarf2-cfi-asm if available to restore the old
645 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
648 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
650 Embedding loadenv module into grub-emu
652 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
654 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
655 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
656 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
657 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
658 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
659 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
661 2009-09-03 Magnus Granberg <zorry@ume.nu>
663 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
664 include -fPIE in the default specs.
665 * configure.ac: Check if pie_possible is yes and add -fno-PIE
668 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
670 * INSTALL: Note that GNU Bison 2.3 or later is required.
672 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
674 * kern/i386/pc/startup.S: Fix typo.
676 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
678 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
681 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
683 * docs/grub.texi (Naming convention): Describe one-based partition
685 (Device syntax): Likewise.
686 (File name syntax): Likewise.
687 (Block list syntax): Likewise.
688 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
690 (File name syntax): Likewise.
691 (Command-line and menu entry commands): Document acpi, blocklist,
692 crc, export, insmod, keystatus, ls, set, and unset commands.
694 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
696 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
697 to avoid implying that only one of --shift, --ctrl, or --alt may be
700 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
702 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
703 rather than comparing against S_IFREG, which will almost never work.
705 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
707 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
708 (write_blocklists): Likewise.
710 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
712 * script/lua/grub_lua.h (fputs): Supply a format string as the first
713 argument to grub_printf.
715 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
717 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
720 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
722 * kern/file.c (grub_file_read): Spelling fix
724 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
726 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
727 loading of headers in some cases.
729 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
731 * configure.ac: Bump version to 1.97~beta1.
732 * docs/version.texi: Likewise.
734 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
736 * include/grub/i386/xnu.h: Add license header.
737 include grub/err.h explicitly.
739 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
741 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
742 to `ufs' in the vfs.root.mountfrom kernel parameter.
744 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
746 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
748 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
749 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
751 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
754 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
756 * kern/file.c (grub_file_read): Check offset.
757 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
758 * fs/jfs.c (grub_jfs_read_file): Likewise.
759 * fs/ntfs.c (grub_ntfs_read): Likewise.
760 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
761 * fs/minix.c (grub_minix_read_file): Correct offset check.
762 * fs/ufs.c (grub_ufs_read_file): Likewise.
764 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
766 * term/i386/pc/console.c (bios_data_area): Cast
767 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
769 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
771 1-bit optimised blitters.
773 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
775 (grub_video_fbblit_replace_24bit_1bit): Likewise.
776 (grub_video_fbblit_replace_16bit_1bit): Likewise.
777 (grub_video_fbblit_replace_8bit_1bit): Likewise.
778 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
779 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
780 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
781 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
783 (grub_video_fbblit_replace_24bit_1bit): Likewise.
784 (grub_video_fbblit_replace_16bit_1bit): Likewise.
785 (grub_video_fbblit_replace_8bit_1bit): Likewise.
786 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
787 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
788 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
789 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
791 * video/video.c (grub_video_get_blit_format): Return
792 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
794 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
796 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
797 the first argument to grub_printf.
799 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
800 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
802 Add `getkeystatus' terminal method. Add a new `keystatus' command
805 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
806 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
807 modifier key bitmasks.
808 (struct grub_term_input): Add `getkeystatus' member.
809 (grub_getkeystatus): Add prototype.
810 * kern/term.c (grub_getkeystatus): New function.
812 * include/grub/i386/pc/memory.h
813 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
814 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
816 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
817 (grub_console_term_input): Set `getkeystatus' member.
818 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
820 (grub_usb_keyboard_getreport): Likewise.
821 (grub_usb_keyboard_checkkey): Likewise.
822 (grub_usb_keyboard_getkeystatus): New function.
823 (grub_usb_keyboard_term): Set `getkeystatus' member.
825 * commands/keystatus.c: New file.
826 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
827 (keystatus_mod_SOURCES): New variable.
828 (keystatus_mod_CFLAGS): Likewise.
829 (keystatus_mod_LDFLAGS): Likewise.
830 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
831 commands/keystatus.c.
832 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
833 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
834 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
835 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
836 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
837 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
839 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
841 Split befs.mod and afs.mod into *_be.mod and *.mod
843 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
844 (grub_fstest_SOURCES): Likewise.
845 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
846 (afs_be_mod_SOURCES): New variable.
847 (afs_be_mod_CFLAGS): Likewise.
848 (afs_be_mod_LDFLAGS): Likewise.
849 (befs_be_mod_SOURCES): Likewise.
850 (befs_be_mod_CFLAGS): Likewise.
851 (befs_be_mod_LDFLAGS): Likewise.
852 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
853 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
854 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
855 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
856 (grub_emu_SOURCES): Likewise.
857 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
858 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
859 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
860 * fs/afs_be.c: New file.
861 * fs/befs_be.c: New file.
862 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
863 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
864 (U16): Replaced with ...
865 (grub_afs_to_cpu16): ...this. All users updated.
866 (U32): Replaced with ...
867 (grub_afs_to_cpu32): ...this. All users updated.
868 (U64): Replaced with ...
869 (grub_afs_to_cpu64): ...this. All users updated.
870 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
871 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
872 (grub_afs_validate_sblock): Check only one endianness.
873 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
874 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
875 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
876 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
877 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
878 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
879 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
880 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
882 2009-08-26 Bean <bean123ch@gmail.com>
884 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
886 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
887 (grub_xfs_inode_block): Change return type to grub_uint64_t.
888 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
890 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
892 NetBSD memory map support.
894 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
895 (grub_netbsd_btinfo_mmap_header): New structure.
896 (grub_netbsd_btinfo_mmap_entry): Likewise.
897 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
899 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
901 Enable bsd.mod on coreboot.
903 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
904 (bsd_mod_SOURCES): New variable.
905 (bsd_mod_CFLAGS): Likewise.
906 (bsd_mod_LDFLAGS): Likewise.
907 (bsd_mod_ASFLAGS): Likewise.
908 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
909 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
911 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
913 Cleanup NetBSD root support.
915 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
919 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
921 * util/grub.d/00_header.in: Move check for the video backend of
922 gfxterm from here ...
923 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
924 a suitable video backend.
926 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
928 Fix breakage in grub-setup.
930 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
931 "msdos_partition_map".
933 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
935 Fix breakage in normal/auth.c.
937 * normal/auth.c (grub_iswordseparator): New function.
939 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
941 Authentication support.
943 * commands/password.c: New file.
944 * conf/common.rmk (pkglib_MODULES): Add password.mod.
945 (password_mod_SOURCES): New variable.
946 (password_mod_CFLAGS): Likewise.
947 (password_mod_LDFLAGS): Likewise.
948 (normal_mod_SOURCES): Add normal/auth.c.
949 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
951 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
952 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
953 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
954 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
955 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
956 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
957 * include/grub/auth.h: New file.
958 * include/grub/err.h (grub_err_t): New enum value
959 GRUB_ERR_ACCESS_DENIED.
960 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
962 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
963 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
965 * normal/auth.c: New file.
966 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
967 (grub_cmdline_run): Don't allow to go to command line without
969 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
970 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
971 menuentry without superuser rights.
972 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
973 user isn't a superuser.
975 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
977 Save space by inlining misc.c functions.
979 * kern/misc.c (grub_iswordseparator): Made static.
980 * kern/misc.c (grub_strcat): Moved from here ...
981 * include/grub/misc.h (grub_strcat): ... here. Inlined.
982 * kern/misc.c (grub_strncat): Moved from here ...
983 * include/grub/misc.h (grub_strncat): ... here. Inlined.
984 * kern/misc.c (grub_strcasecmp): Moved from here ...
985 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
986 * kern/misc.c (grub_strncasecmp): Moved from here ...
987 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
988 * kern/misc.c (grub_isalpha): Moved from here ...
989 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
990 * kern/misc.c (grub_isdigit): Moved from here ...
991 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
992 * kern/misc.c (grub_isgraph): Moved from here ...
993 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
994 * kern/misc.c (grub_tolower): Moved from here ...
995 * include/grub/misc.h (grub_tolower): ... here. Inlined.
997 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
999 * script/sh/function.c (grub_script_function_find): Cut error message
1000 not to flood terminal.
1001 * script/sh/lexer.c (grub_script_yylex): Remove command line length
1003 * script/sh/script.c (grub_script_arg_add): Duplicate string.
1005 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
1007 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
1008 `report' grub_uint8_t *.
1009 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
1010 Use a 50-millisecond timeout rather than just repeating
1011 grub_usb_keyboard_getreport 50 times.
1012 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
1014 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1016 Rename *_partition_map to part_*
1018 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
1019 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
1020 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
1021 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
1023 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
1025 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
1026 * util/grub-probe.c (probe_partmap): Don't transform partition name
1029 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1031 Fix OpenBSD and NetBSD support.
1033 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
1034 memory address conflict.
1035 (OPENBSD_MMAP_ACPI): New definition.
1036 (OPENBSD_MMAP_NVS): Likewise.
1037 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
1038 and OPENBSD_MMAP_NVS.
1039 Add memory map terminator
1040 Explicit cast when calling grub_unix_real_boot.
1041 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
1043 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1045 Let user specify NetBSD root device.
1047 * loader/i386/bsd.c (netbsd_root): New variable.
1048 (netbsd_opts): New option 'root'.
1049 (NETBSD_ROOT_ARG): New macro.
1050 (grub_netbsd_boot): Use 'netbsd_root'.
1051 (grub_bsd_unload): Free 'netbsd_root'.
1052 (grub_cmd_netbsd): Fill 'netbsd_root'.
1054 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1056 Support for 64-bit NetBSD.
1058 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
1059 point when booting non-FreeBSD.
1061 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1063 Support --no-smp and --no-acpi for NetBSD.
1065 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
1066 (NETBSD_AB_NOACPI): Likewise.
1067 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
1068 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
1070 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1072 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
1074 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
1075 errors. Call grub_error when needed.
1077 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1079 * commands/search.c (search_fs): Try searching without autoload first.
1080 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
1081 filesystem module explicitly for faster booting.
1083 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1085 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
1087 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1089 * util/grub.d/30_os-prober.in: Disable os-prober if
1090 `GRUB_DISABLE_OS_PROBER' was set to true.
1092 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
1094 * partmap/pc.c: Rename to ...
1095 * partmap/msdos.c: ... this. Update all users.
1096 (grub_pc_partition_map): Rename to ...
1097 (grub_msdos_partition_map): ... this. Update all users.
1099 * parttool/pcpart.c: Rename to ...
1100 * parttool/msdospart.c: ... this. Update all users.
1102 * include/grub/pc_partition.h: Rename to ...
1103 * include/grub/msdos_partition.h: ... this. Update all users.
1104 (grub_pc_partition_bsd_entry): Rename to ...
1105 (grub_msdos_partition_bsd_entry): ... this. Update all users.
1106 (grub_pc_partition_disk_label): Rename to ...
1107 (grub_msdos_partition_disk_label): ... this. Update all users.
1108 (grub_pc_partition_entry): Rename to ...
1109 (grub_msdos_partition_entry): ... this. Update all users.
1110 (grub_pc_partition_mbr): Rename to ...
1111 (grub_msdos_partition_mbr): ... this. Update all users.
1112 (grub_pc_partition): Rename to ...
1113 (grub_msdos_partition): ... this. Update all users.
1114 (grub_pc_partition_is_empty): Rename to ...
1115 (grub_msdos_partition_is_empty): ... this. Update all users.
1116 (grub_pc_partition_is_extended): Rename to ...
1117 (grub_msdos_partition_is_extended): ... this. Update all users.
1118 (grub_pc_partition_is_bsd): Rename to ...
1119 (grub_msdos_partition_is_bsd): ... this. Update all users.
1121 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
1122 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
1123 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
1124 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
1125 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
1126 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
1127 (gpt_mod_LDFLAGS): Rename to ...
1128 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
1129 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
1130 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
1131 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
1132 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
1133 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
1134 (part_gpt_mod_LDFLAGS): ... this.
1135 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
1136 `pcpart.mod' to `msdospart.mod'.
1137 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
1139 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
1140 (msdospart_mod_LDFLAGS): ... this.
1142 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1144 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
1145 (openbsd_opts): Likewise.
1146 (netbsd_opts): Likewise.
1147 (freebsd_flags): Added 0 terminator.
1148 (openbsd_flags): Likewise.
1149 (netbsd_flags): Likewise.
1150 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
1151 (grub_cmd_freebsd): Transformed into extended command.
1152 (grub_cmd_openbsd): Likewise.
1153 (grub_cmd_netbsd): Likewise.
1154 (cmd_freebsd): Changed type to grub_extcmd_t.
1155 (cmd_openbsd): Likewise.
1156 (cmd_netbsd): Likewise.
1157 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
1158 grub_cmd_openbsd as extended commands.
1159 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
1160 cmd_netbsd and cmd_openbsd
1162 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1164 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
1166 2009-08-21 Pavel Roskin <proski@gnu.org>
1168 * Makefile.in (install-local): When checking if a file is in the
1169 build directory, use "test -e" to detect symlinks.
1171 * Makefile.in (install-local): Remove all files in
1172 $(DESTDIR)$(pkglibdir) before installing new files there.
1174 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1176 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
1179 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1181 * util/grub-mkconfig.in: Don't use gfxterm by default if not
1182 explicitly specified by the user.
1184 2009-08-18 Pavel Roskin <proski@gnu.org>
1186 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
1187 grub_uint8_t pointer for data.
1188 * include/grub/fbutil.h (struct grub_video_fbblit_info):
1190 * video/fb/fbutil.c: Remove unnecessary casts.
1192 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1196 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
1197 (grub_vbe_set_video_mode): Save active mode info
1198 only after setting the mode.
1199 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
1202 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1204 Rename variables for clarity.
1206 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
1207 (active_vbe_mode_info): ... this. All users updated.
1208 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
1210 (initial_mode): Rename to ...
1211 (initial_vbe_mode): ... this. All users updated.
1212 (mode_in_use): Rename to ..
1213 (vbe_mode_in_use): ... this. All users updated.
1214 (mode_list): Rename to ..
1215 (vbe_mode_list): ... this. All users updated.
1216 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
1217 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
1218 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
1219 'mode_list_size' to 'vbe_mode_list_size'.
1220 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
1221 'best_mode_info' to 'best_vbe_mode_info' and
1222 'best_mode' to 'best_vbe_mode'
1224 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1226 Remove duplicate grub_video_fb_get_video_ptr.
1228 * include/grub/fbutil.h (get_data_ptr): Rename to ...
1229 (grub_video_fb_get_video_ptr): ... this.
1230 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
1231 * video/fb/fbutil.c: Add comment about addressing.
1232 (get_data_ptr): Rename to ...
1233 (grub_video_fb_get_video_ptr): ... this. All users updated.
1234 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
1236 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1238 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
1239 grub_dprintf() that was just added.
1241 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1243 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
1244 (DEFAULT_VIDEO_MODE): Remove macros.
1245 (grub_linux_boot): Remove assumption that Linux has FB support,
1246 and use "text" as default video mode.
1248 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
1250 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
1252 * fs/fat.c (grub_fat_read_data): Likewise.
1254 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1256 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
1258 (grub_module): Likewise.
1260 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1262 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
1263 mbi->cmdline but free playground.
1265 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1267 Handle group offset on UFS1.
1269 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
1270 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
1272 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1274 Split ufs.mod into ufs1.mod and ufs2.mod.
1276 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
1277 (grub_fstest_SOURCES): Likewise.
1278 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
1279 (ufs_mod_SOURCES): Remove.
1280 (ufs_mod_CFLAGS): Likewise.
1281 (ufs_mod_LDFLAGS): Likewise.
1282 (ufs1_mod_SOURCES): New variable.
1283 (ufs1_mod_CFLAGS): Likewise.
1284 (ufs1_mod_LDFLAGS): Likewise.
1285 (ufs2_mod_SOURCES): New variable.
1286 (ufs2_mod_CFLAGS): Likewise.
1287 (ufs2_mod_LDFLAGS): Likewise.
1288 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
1289 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1291 (grub_emu_SOURCES): Likewise.
1292 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1293 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1294 (grub_setup_SOURCES): Likewise.
1295 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1296 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
1297 (grub_setup_SOURCES): Likewise.
1298 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1300 * fs/ufs2.c: New file.
1301 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
1303 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1307 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
1308 subsystem at the end.
1309 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
1310 (video_fb_mod_SOURCES): New variable.
1311 (video_fb_mod_CFLAGS): Likewise.
1312 (video_fb_mod_LDFLAGS): Likewise.
1313 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
1314 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
1315 * video/i386/pc/vbeblit.c: Moved from here ...
1316 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
1317 * video/i386/pc/vbefill.c: Moved from here ...
1318 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
1319 * video/i386/pc/vbeutil.c: Moved from here ...
1320 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
1321 * include/grub/i386/pc/vbeblit.h: Moved from here ...
1322 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
1323 * include/grub/i386/pc/vbefill.h: Moved from here ...
1324 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
1325 * include/grub/i386/pc/vbeutil.h: Moved from here ...
1326 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
1327 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
1328 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
1329 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
1330 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
1331 (grub_video_adapter): Added 'get_info_and_fini'.
1332 (grub_video_get_info_and_fini): New prototype.
1333 (grub_video_set_mode): make modestring const char *.
1334 * loader/i386/linux.c (grub_linux_setup_video): Use
1335 grub_video_get_info_and_fini.
1336 (grub_linux_boot): Move modesetting just before booting.
1337 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
1338 grub_video_get_info_and_fini.
1339 * video/i386/pc/vbe.c: Moved framebuffer part ...
1340 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
1341 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
1342 grub_video_fbstd_colors and grub_video_fb_set_palette.
1343 (grub_video_vbe_init): Clear 'framebuffer' variable and use
1345 (grub_video_vbe_fini): Use grub_video_fb_fini.
1346 (grub_video_vbe_setup): Use framebuffer.render_target instead of
1347 render_target and use grub_video_fb_set_active_render_target and
1348 grub_video_fb_set_palette.
1349 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
1350 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
1351 (grub_video_vbe_adapter): Use framebuffer.
1352 * video/video.c (grub_video_get_info_and_fini): New function.
1353 (grub_video_set_mode): Make modestring const char *.
1354 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
1355 values are already initialised.
1357 2009-08-14 Pavel Roskin <proski@gnu.org>
1359 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
1361 * boot/i386/pc/diskboot.S: Likewise.
1362 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
1363 sectors allow compilation on MacOSX.
1364 * conf/i386-pc.rmk: Enable unconditional compilation of
1367 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
1369 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
1370 * util/grub.d/00_header.in: Enter interruptible sleep if
1371 GRUB_HIDDEN_TIMEOUT is set.
1373 2009-08-13 Yves Blusseau <blusseau@zetam.org>
1375 * include/grub/symbol.h: Add the LOCAL macro.
1376 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
1379 2009-08-13 Pavel Roskin <proski@gnu.org>
1381 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
1382 any modern compilers we support.
1384 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
1385 Use local labels starting with "L_" so that Apple assembler
1386 knows they are local.
1388 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
1390 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
1391 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
1392 (bsd_kernel_types): ... this enum.
1394 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
1395 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
1396 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
1398 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
1399 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
1400 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
1403 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1405 * util/grub-dumpdevtree: Moved from here ...
1406 * util/i386/efi/grub-dumpdevtree: ... to here.
1407 (hexify): New function. Converts a string to its hex version.
1408 Generate hex versions of "efi" and "device-properties" by calling
1409 hexify() on the ASCII strings rather than by hardcoding numbers.
1411 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1413 * fs/jfs.c: Update copyright year.
1415 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1417 * util/grub.d/00_header.in: Fix a comment.
1418 * util/grub.d/10_linux.in: Likewise.
1419 * util/grub.d/10_windows.in: Likewise.
1420 * util/grub.d/10_hurd.in: Likewise.
1422 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1424 * util/grub-mkconfig.in: Allow the user to specify the used font
1427 2009-08-08 Pavel Roskin <proski@gnu.org>
1429 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
1430 available, xfs.mod needs it now.
1432 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
1433 the "g" modifier in sed when the intention is to strip something
1434 once. This fixes comparison of kernels with multiple dashes.
1436 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
1437 on it. Add missing space before closing bracket. Fix
1438 misleading formatting.
1440 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1442 * docs/grub.texi: Major overhaul. Remove all sections that are
1443 specific to GRUB Legacy, or mostly composed of Legacy-specific
1446 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1448 * docs/version.texi: New file. Provides version information for
1451 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1453 * docs/grub.texi: Update CVS information to SVN.
1454 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
1456 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1458 * util/grub-mkconfig.in: Remove a wrong `fi'.
1460 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1462 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
1463 (grub_jfs_uuid): New function.
1464 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
1466 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1468 * util/grub-mkconfig_lib.in (font_path): Move the functionality
1470 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
1471 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
1473 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1475 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
1476 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
1479 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
1480 not just "vmlinu[zx]".
1482 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
1485 * util/grub.d/10_linux.in (find_latest): Moved from here ...
1486 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
1489 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1491 * util/grub.d/10_freebsd.in: Use an absolute device path for
1492 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
1494 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
1496 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
1497 handling of multiple abstraction modules.
1499 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
1501 Fix a bug resulting in black screen when loading Linux using a
1504 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
1507 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
1508 (grub_vbe_bios_getset_dac_palette_width): New function.
1509 (grub_vbe_bios_get_dac_palette_width)
1510 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
1511 grub_vbe_bios_getset_dac_palette_width()).
1513 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
1514 check for return status.
1515 (grub_vbe_get_video_mode_info): When getting information for a packed
1516 mode (<= 8 bpp), obtain DAC palette width using
1517 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
1518 {red,green,blue}_mark_size.
1520 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
1522 * commands/search.c (options): Fix help output to match actual code.
1524 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1526 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
1529 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1531 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
1534 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1536 Support Apple partition map with sector size different from 512 bytes.
1538 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
1539 (apple_partition_map_iterate): Respect 'aheader.blocksize'
1540 and 'apart.partmap_size'.
1542 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1543 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
1547 * commands/i386/cpuid.c (options): New variable.
1548 (grub_cmd_cpuid): Return real error.
1549 (GRUB_MOD_INIT(cpuid)): Declare options.
1551 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
1553 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
1556 2009-07-31 Bean <bean123ch@gmail.com>
1558 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
1560 (grub_fshelp_node): Move inode field to the end.
1561 (grub_xfs_data): Remove inode field.
1562 (grub_xfs_inode_block): Calculate inode size using sblock.
1563 (grub_xfs_inode_offset): Likewise.
1564 (grub_xfs_read_inode): Calculate inode size using sblock.
1565 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
1566 (grub_xfs_iterate_dir): Calculate inode size using sblock.
1567 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
1568 to match inode size.
1569 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
1570 not accessible when data is null.
1571 (grub_xfs_open): Likewise.
1573 2009-07-31 Bean <bean123ch@gmail.com>
1575 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
1576 Don't change pv->disk if it's already set.
1578 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
1579 (grub_raid_register): ... here.
1580 (grub_raid_rescan): Removed.
1582 * include/grub/raid.h (grub_raid_rescan): Removed.
1584 * util/grub-fstest.c: Remove include file <grub/raid.h>.
1585 (fstest): Replace grub_raid_rescan with module fini function followed
1588 * util/grub-probe.c: Add include file <grub/raid.h>.
1589 (probe_raid_level): New function.
1590 (probe): Detect abstraction by walking the disk device, support two
1591 level of abstraction (LVM on RAID) when detecting partition map.
1593 2009-07-31 Pavel Roskin <proski@gnu.org>
1595 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
1596 to grub_zalloc(), it was erroneous.
1597 Reported by Bean <bean123ch@gmail.com>
1599 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
1601 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
1602 embedding zone, not only the first one.
1604 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
1606 * term/gfxterm.c (clear_char): New function.
1607 (grub_virtual_screen_setup): Use clear_char.
1608 (scroll_up): Likewise.
1609 (grub_virtual_screen_cls): Likewise.
1611 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
1613 * util/deviceiter.c (get_acceleraid_disk_name): New static
1615 (grub_util_iterate_devices): Handle Accelraid devices.
1616 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
1618 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
1620 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
1621 separator for the suggested gfxpayload string (';' collides with the
1622 parser and needs escaping).
1624 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
1626 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
1627 Clear direction flag before jumping to OS.
1628 (grub_multiboot2_real_boot): Likewise.
1630 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1632 * util/i386/pc/grub-install: Fix parsing of --disk-module
1635 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1637 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
1640 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
1642 * util/grub-mkconfig.in (package_version): New variable.
1643 Use it do display the version.
1645 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1647 * kern/file.c (grub_file_open): Revert to previous check with
1650 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1652 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
1653 from help line. It's out of sync with code.
1655 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1657 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
1658 entries on failed boot.
1660 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1662 * kern/file.c (grub_file_open): Fix an error check.
1664 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
1666 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
1667 partition map couldn't be identified.
1669 2009-07-23 Pavel Roskin <proski@gnu.org>
1671 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
1672 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
1673 case of little endian words becomes just an optimization.
1674 Respect const modifier.
1675 (md5_final): Use code that doesn't depend on endianness.
1677 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
1678 to avoid loss of upper bits if align is unsigned and shorter
1681 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1683 UUID support for UFS
1685 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
1686 (grub_ufs_uuid): New function.
1687 (grub_ufs_fs): add .uuid
1689 2009-07-21 Pavel Roskin <proski@gnu.org>
1691 * kern/dl.c (grub_dl_check_header): Make static.
1693 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
1695 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
1696 add drivemap for Vista. It breaks Windows 7.
1698 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1700 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
1703 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1707 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
1708 (grub_fstest_SOURCES): Likewise.
1709 (pkglib_MODULES): Add befs.mod.
1710 (befs_mod_SOURCES): New variable.
1711 (befs_mod_CFLAGS): Likewise.
1712 (befs_mod_LDFLAGS): Likewise.
1713 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
1714 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1715 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1716 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1717 (grub_setup_SOURCES): Likewise.
1718 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1719 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1720 (grub_setup_SOURCES): Likewise.
1721 * fs/befs.c: New file.
1722 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
1723 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
1724 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
1725 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
1726 (B_KEY_INDEX_ALIGN): New declaration.
1727 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
1728 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
1729 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
1730 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
1731 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
1732 (grub_afs_mount) [MODE_BFS]: Likewise.
1733 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
1734 (grub_afs_fs): Use GRUB_AFS_FSNAME
1735 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
1736 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
1737 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
1738 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
1740 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
1742 * util/getroot.c (find_root_device): Add support for MacOSX.
1743 * util/hostdisk.c: Likewise.
1745 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1747 * font/font.c (find_glyph): Check whether a font is present to avoid
1750 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
1752 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
1754 2009-07-20 Pavel Roskin <proski@gnu.org>
1756 * configure.ac: Trim excessively wordy excuses.
1758 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1760 Add symlink, mtime and label support to AtheFS.
1762 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
1763 (grub_afs_iterate_dir): Handle symlinks.
1764 (grub_afs_open): Use grub_afs_read_symlink.
1765 (grub_afs_dir): Likewise.
1767 (grub_afs_label): New function.
1768 (grub_afs_fs): Add grub_afs_label.
1769 (grub_afs_read_symlink): New function.
1771 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1775 * fs/afs.c: Fix comments style.
1776 (grub_afs_blockrun): Declare as packed.
1777 (grub_afs_datastream): Likewise.
1778 (grub_afs_bnode): Likewise.
1779 (grub_afs_btree): Likewise.
1780 (grub_afs_sblock): Likewise.
1781 Declare `name' as char.
1782 (grub_afs_inode): Declare as packed.
1783 Change void *vnode to grub_uint32_t unused.
1784 (grub_afs_iterate_dir): Check that key_size is positive.
1785 (grub_afs_mount): Don't read superblock twice.
1786 (grub_afs_dir): Don't free node in case of error,
1787 grub_fshelp_find_file already handles this.
1788 (grub_afs_open): Likewise.
1790 2009-07-19 Pavel Roskin <proski@gnu.org>
1792 * Makefile.in: Remove LIBLZO and enable_lzo.
1793 * conf/i386-pc.rmk: Remove lzo support.
1794 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
1795 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
1797 * kern/i386/pc/lzo1x.S: Remove.
1798 * kern/i386/pc/startup.S: Remove lzo support.
1799 * util/i386/pc/grub-mkimage.c: Likewise.
1801 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
1803 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
1804 * fs/xfs.c (grub_xfs_dir): Likewise.
1805 * fs/afs.c (grub_afs_dir): Likewise.
1806 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
1807 (grub_iso9660_open): Likewise.
1808 * fs/jfs.c (grub_jfs_open): Likewise.
1809 * fs/ext2.c (grub_ext2_dir): Likewise.
1810 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
1811 * script/sh/lexer.c (grub_script_yylex): Likewise.
1813 2009-07-16 Pavel Roskin <proski@gnu.org>
1815 * configure.ac: Never add "-c" to CFLAGS.
1817 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
1819 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
1820 grub_cv_cc_efiemu should be used.
1822 * configure.ac: Typo fixes.
1824 * kern/mm.c (grub_zalloc): New function.
1825 (grub_debug_zalloc): Likewise.
1826 * include/grub/mm.h: Declare grub_zalloc() and
1827 grub_debug_zalloc().
1828 * util/misc.c (grub_zalloc): New function.
1829 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
1830 instead of grub_malloc(), remove unneeded initializations.
1831 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
1832 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
1833 * commands/parttool.c (grub_cmd_parttool): Likewise.
1834 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
1835 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
1836 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
1837 * disk/usbms.c (grub_usbms_finddevs): Likewise.
1838 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
1839 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
1840 (grub_cmd_efiemu_pnvram): Likewise.
1841 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
1842 * fs/iso9660.c (grub_iso9660_mount): Likewise.
1843 (grub_iso9660_iterate_dir): Likewise.
1844 * fs/jfs.c (grub_jfs_opendir): Likewise.
1845 * fs/ntfs.c (list_file): Likewise.
1846 (grub_ntfs_mount): Likewise.
1847 * kern/disk.c (grub_disk_open): Likewise.
1848 * kern/dl.c (grub_dl_load_core): Likewise.
1849 * kern/elf.c (grub_elf_file): Likewise.
1850 * kern/env.c (grub_env_context_open): Likewise.
1851 (grub_env_set): Likewise.
1852 (grub_env_set_data_slot): Likewise.
1853 * kern/file.c (grub_file_open): Likewise.
1854 * kern/fs.c (grub_fs_blocklist_open): Likewise.
1855 * loader/i386/multiboot.c (grub_module): Likewise.
1856 * loader/xnu.c (grub_xnu_create_key): Likewise.
1857 (grub_xnu_create_value): Likewise.
1858 * normal/main.c (grub_normal_add_menu_entry): Likewise.
1859 (read_config_file): Likewise.
1860 * normal/menu_entry.c (make_screen): Likewise.
1861 * partmap/sun.c (sun_partition_map_iterate): Likewise.
1862 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
1863 * script/sh/script.c (grub_script_parse): Likewise.
1864 * video/bitmap.c (grub_video_bitmap_create): Likewise.
1865 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
1866 * video/readers/png.c (grub_png_output_byte): Likewise.
1867 (grub_video_reader_png): Likewise.
1869 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1871 Enable all targets that can be built by default
1873 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
1874 grub-mkfont and grub-fstest if they can be built
1876 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1878 Fix hang and segmentation fault in grub-emu-usb
1880 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
1881 * util/usb.c (grub_libusb_devices): likewise
1882 (grub_libusb_init): rename to ...
1883 (GRUB_MOD_INIT (libusb)):...this
1884 (grub_libusb_fini): rename to ..
1885 (GRUB_MOD_FINI (libusb)):...this
1886 * disk/usbms.c (grub_usbms_transfer): fix retry logic
1887 * include/grub/disk.h (grub_raid_init): removed, it's useless
1888 (grub_raid_fini): likewise
1889 (grub_lvm_init): likewise
1890 (grub_lvm_fini): likewise
1891 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
1894 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1898 * Makefile.in (LIBUSB): new macro
1899 * genmk.rb (Utility/print_tail): new method
1900 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
1901 (top level): call util.print_tail at the end.
1903 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1905 Make FreeBSD accept zpool.cache
1907 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
1908 type is /boot/zfs/zpool.cache
1910 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1914 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
1915 correct wrong typedef
1916 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
1918 2009-07-15 Pavel Roskin <proski@gnu.org>
1920 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
1921 * kern/disk.c (struct grub_disk_cache): Likewise.
1923 * commands/probe.c (options): Typo fix.
1925 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
1926 Increase to 0x5a to accommodate FAT32. Adjust other offsets
1928 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
1930 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
1931 the end of "Error" to make the message more readable.
1933 * boot/i386/pc/boot.S (kernel_segment): Remove.
1934 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
1937 * boot/i386/pc/boot.S (boot_version): Remove.
1938 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
1941 * include/grub/i386/pc/boot.h: Sort all offsets.
1942 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
1943 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
1944 * boot/i386/pc/boot.S: Assert location of every offset listed in
1945 include/grub/i386/pc/boot.h.
1947 2009-07-13 Pavel Roskin <proski@gnu.org>
1949 * include/grub/i386/coreboot/machine.h: Rename
1950 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
1951 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
1952 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
1954 * kern/dl.c: Force native word size to suppress warnings when
1957 * kern/device.c (grub_device_iterate): Change struct part_ent to
1958 hold the name, not a pointer to it. Use one grub_malloc() per
1959 partition, not two. Free partition_name if grub_malloc() fails.
1960 Set ents to NULL only before grub_partition_iterate() is called.
1962 2009-07-11 Bean <bean123ch@gmail.com>
1964 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
1967 2009-07-10 Bean <bean123ch@gmail.com>
1968 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
1970 * kern/ieee1275/openfw.c (grub_children_iterate)
1971 (grub_devalias_iterate): Fix size evaluation for property or path
1972 strings, which was broken since r2132.
1974 2009-07-07 Pavel Roskin <proski@gnu.org>
1976 * commands/search.c (search_file): Merge into ...
1977 (search_fs): ... this. Accept search type as argument.
1978 (grub_cmd_search): Pass search type to search_fs().
1980 * include/grub/util/console.h: New file.
1981 * util/console.c: Use it instead of grub/machine/console.h.
1982 * util/grub-emu.c: Likewise.
1984 * lib/arg.c (find_long_option): Remove.
1985 (find_long): Add `len' argument, make `s' const char *.
1986 (grub_arg_parse): Parse long options in place, not in a
1989 2009-07-06 Pavel Roskin <proski@gnu.org>
1991 * commands/search.c (search_fs): Fix potential NULL pointer
1994 * commands/search.c (search_fs): Replace QUID macro with quid_fn
1997 2009-07-06 Daniel Mierswa <impulze@impulze.org>
1999 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
2002 2009-07-05 Pavel Roskin <proski@gnu.org>
2004 * include/grub/i386/linux.h (struct linux_kernel_params):
2005 Restore padding3, it's still needed.
2007 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
2009 * util/osdetect.lua: Likewise.
2011 2009-07-05 Bean <bean123ch@gmail.com>
2013 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
2015 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
2016 (grub_lua_getenv): Likewise.
2017 (grub_lua_setenv): Likewise.
2018 (save_errno): New function.
2019 (push_result): Likewise.
2020 (grub_lua_enum_device): Likewise.
2021 (grub_lua_enum_file): Likewise.
2022 (grub_lua_file_open): Likewise.
2023 (grub_lua_file_close): Likewise.
2024 (grub_lua_file_seek): Likewise.
2025 (grub_lua_file_read): Likewise.
2026 (grub_lua_file_getline): Likewise.
2027 (grub_lua_file_getsize): Likewise.
2028 (grub_lua_file_getpos): Likewise.
2029 (grub_lua_file_eof): Likewise.
2030 (grub_lua_file_exist): Likewise.
2031 (grub_lua_add_menu): Likewise.
2033 * script/lua/grub_lua.h (isupper): New inline function.
2034 (islower): Likewise.
2035 (ispunct): Likewise.
2036 (isxdigit): Likewise.
2037 (strcspn): Change to normal function.
2038 (strpbkr): New function declaration.
2041 * script/lua/grub_main.c (scan_str): New function.
2042 (strcspn): Likewise.
2043 (strpbrk): Likewise.
2046 * script/lua/linit.c (lualibs): Enable the string library.
2048 * util/osdetect.lua: New file.
2050 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
2052 * include/grub/i386/linux.h (struct linux_kernel_params): Add
2053 `capabilities' member.
2055 2009-07-02 Pavel Roskin <proski@gnu.org>
2057 * genparttoollist.sh: Add missing newline at the end.
2059 2009-07-01 Pavel Roskin <proski@gnu.org>
2061 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
2063 * util/hostdisk.c (open_device): Remove `const' from
2064 `sysctl_size', as sysctlbyname() can change it (in this case it
2065 doesn't actually happen).
2067 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
2068 using signed long int constants.
2070 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
2071 constant to avoid a warning on FreeBSD.
2073 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
2076 * Makefile.in: Install include/grub/machine symlink.
2078 * Makefile.in: When installing symlinks, use "cp -fR", which
2079 works on FreeBSD and MacOSX.
2080 From Yves Blusseau <cl7m42e02@sneakemail.com>
2082 * kern/dl.c (grub_dl_resolve_symbol): Make static.
2083 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
2085 * util/misc.c: Move grub_reboot() and grub_halt() ...
2086 * util/grub-emu.c: ... here. Make main_env static.
2087 * include/grub/util/misc.h: Remove main_env.
2089 * kern/mm.c: Use correct format to print size_t.
2091 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
2092 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
2093 * kern/powerpc/dl.c: Likewise.
2094 * kern/sparc64/dl.c: Likewise.
2095 * kern/x86_64/dl.c: Likewise.
2097 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2099 Fix grub-emu build on sparc64-ieee1275.
2101 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
2102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
2104 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2106 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
2107 (grub_reboot, grub_halt): New functions.
2109 * util/i386/pc/misc.c: Delete. Update all users.
2110 * util/sparc64/ieee1275/misc.c: Likewise.
2111 * util/powerpc/ieee1275/misc.c: Likewise.
2113 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2115 * conf/i386.rmk (setjmp_mod_SOURCES)
2116 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
2117 * conf/common.rmk (setjmp_mod_SOURCES)
2118 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
2119 to use $(target_cpu).
2120 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
2121 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
2122 * conf/powerpc-ieee1275.rmk: Likewise.
2123 * conf/sparc64-ieee1275.rmk: Likewise.
2125 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
2126 $(target_cpu) for kern/$(target_cpu)/dl.c.
2127 * conf/i386-efi.rmk: Likewise.
2128 * conf/i386-ieee1275.rmk: Likewise.
2129 * conf/x86_64-efi.rmk: Likewise.
2130 * conf/i386-coreboot.rmk: Likewise.
2131 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
2132 $(target_cpu) for kern/$(target_cpu)/dl.c and for
2133 kern/$(target_cpu)/cache.S.
2134 * conf/sparc64-ieee1275.rmk: Likewise.
2136 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2138 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
2139 type to `grub_uint8_t', and adjust `padding9' accordingly.
2141 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2143 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
2145 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
2146 assembly in final jump, using register constraints.
2148 (grub_linux_boot): For text mode, initialize `have_vga' using
2149 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
2151 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
2152 right before the final jump.
2154 Set `video_mode' to 0x3.
2156 Document initialization of `video_page', `video_mode' and
2159 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2161 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
2162 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
2163 and set GRUB_LINUX_FLAG_QUIET appropriately.
2165 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2167 Fix build on Debian / sparc.
2169 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
2171 2009-06-28 Pavel Roskin <proski@gnu.org>
2173 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
2176 * util/grub.d/10_linux.in: Match SUSE style initrd names.
2178 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2180 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
2183 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2187 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
2188 file can't be opened. grub_file_open() is already supposed to set
2189 grub_errno / grub_errmsg appropriately.
2190 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2192 2009-06-27 Pavel Roskin <proski@gnu.org>
2193 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2195 * include/grub/dl.h: Include grub/elf.h.
2196 (struct grub_dl): Add symtab field.
2197 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
2198 GRUB_MODULES_MACHINE_READONLY.
2199 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
2200 of the header for read-only modules.
2201 (grub_dl_unload): Free mod->symtab for read-only modules.
2202 * kern/i386/dl.c: Use mod->symtab.
2203 * kern/powerpc/dl.c: Likewise.
2204 * kern/sparc64/dl.c: Likewise.
2205 * kern/x86_64/dl.c: Likewise.
2207 * conf/i386-qemu.rmk: New file.
2208 * kern/i386/qemu/startup.S: Likewise.
2209 * kern/i386/qemu/mmap.c: Likewise.
2210 * boot/i386/qemu/boot.S: Likewise.
2211 * include/grub/i386/qemu/time.h: Likewise.
2212 * include/grub/i386/qemu/serial.h: Likewise.
2213 * include/grub/i386/qemu/kernel.h: Likewise.
2214 * include/grub/i386/qemu/console.h: Likewise.
2215 * include/grub/i386/qemu/boot.h: Likewise.
2216 * include/grub/i386/qemu/init.h: Likewise.
2217 * include/grub/i386/qemu/machine.h: Likewise.
2218 * include/grub/i386/qemu/loader.h: Likewise.
2219 * include/grub/i386/qemu/memory.h: Likewise.
2221 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
2222 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
2223 [qemu] (pkglib_IMAGES): Add `boot.img'.
2224 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
2225 [qemu] (boot_img_FORMAT): New variables.
2226 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
2227 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
2228 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
2229 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
2230 [qemu] (kernel_img_FORMAT): New variables.
2232 * configure.ac: Recognise `i386-qemu'.
2234 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
2235 (for no compression).
2236 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
2237 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
2238 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
2239 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
2242 2009-06-27 Pavel Roskin <proski@gnu.org>
2244 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
2246 * efiemu/prepare32.c: Likewise.
2247 * efiemu/prepare64.c: Likewise.
2249 2009-06-26 Pavel Roskin <proski@gnu.org>
2251 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
2252 * include/grub/elf.h: Define symbols without "32" or "64" based
2253 on GRUB_TARGET_WORDSIZE.
2254 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
2255 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
2257 * efiemu/loadcore64.c: Likewise.
2258 * loader/i386/bsd32.c: Likewise.
2259 * loader/i386/bsd64.c: Likewise.
2260 * kern/dl.c: Remove own ELF definitions.
2261 * util/i386/efi/grub-mkimage.c: Likewise.
2263 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
2265 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
2266 segment 0x0 unconditionally, because the reference generated by
2267 GAS is an absolute address.
2269 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2271 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
2272 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
2274 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2276 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
2277 indexes. Check for -f explicitly.
2278 (search_file): Improve error message.
2279 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
2281 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2283 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
2284 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
2286 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2288 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
2289 * conf/i386-ieee1275.rmk: Likewise.
2290 * conf/i386-coreboot.rmk: Likewise.
2292 * kern/i386/pc/startup.S (grub_stop): Remove function.
2293 * kern/i386/ieee1275/startup.S: Likewise.
2294 * kern/i386/coreboot/startup.S: Likewise.
2295 * kern/i386/misc.S (grub_stop): New function.
2297 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2299 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
2300 * kern/i386/realmode.S (real_to_prot): ... to here.
2302 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2304 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
2306 (kernel_elf_SOURCES): Rename to ...
2307 (kernel_img_SOURCES): ... this.
2308 (kernel_elf_HEADERS): Rename to ...
2309 (kernel_img_HEADERS): ... this. Update all users.
2310 (kernel_elf_ASFLAGS): Rename to ...
2311 (kernel_img_ASFLAGS): ... this.
2312 (kernel_elf_CFLAGS): Rename to ...
2313 (kernel_img_CFLAGS): ... this.
2314 (kernel_elf_LDFLAGS): Rename to ...
2315 (kernel_img_LDFLAGS): ... this.
2316 * conf/i386-coreboot.rmk: Likewise.
2317 * conf/powerpc-ieee1275.rmk: Likewise.
2319 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
2322 2009-06-21 Pavel Roskin <proski@gnu.org>
2324 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
2325 to match nested functions.
2326 * loader/sparc64/ieee1275/linux.c: Likewise.
2328 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
2330 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2332 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
2335 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2337 Fix asm file handling on ELF, and remove workarounds.
2339 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
2340 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
2341 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
2342 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
2344 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2346 Load BSD ELF modules
2348 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
2349 and loader/i386/bsd64.c
2350 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
2351 (FREEBSD_MODTYPE_ELF_MODULE): New definition
2352 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
2353 (grub_freebsd_load_elfmodule32): New declaration
2354 (grub_freebsd_load_elfmoduleobj64): Likewise
2355 (grub_freebsd_load_elf_meta32): Likewise
2356 (grub_freebsd_load_elf_meta64): Likewise
2357 (grub_freebsd_add_meta): Likewise
2358 (grub_freebsd_add_meta_module): Likewise
2359 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
2360 (grub_freebsd_add_meta_module): Likewise and move module-specific
2361 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
2362 (grub_cmd_freebsd): Add elf-kernel specific parts
2363 based on grub_freebsd_add_meta_module
2364 (grub_cmd_freebsd_module): Add type parsing moved from
2365 grub_freebsd_add_meta_module
2366 (grub_cmd_freebsd_module_elf): New function
2367 (cmd_freebsd_module_elf): New variable
2368 (GRUB_MOD_INIT): Register freebsd_module_elf
2369 * loader/i386/bsd32.c: New file
2370 * loader/i386/bsd64.c: Likewise
2371 * loader/i386/bsdXX.c: Likewise
2372 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
2373 (grub_elf64_load): Likewise
2374 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
2376 (grub_elf64_load_hook_t): Likewise
2378 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
2380 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
2382 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
2383 don't write a menu entry for recovery mode.
2385 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2387 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
2388 after it's no longer needed.
2390 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2392 * include/grub/i386/loader.h (grub_linux_prot_size)
2393 (grub_linux_tmp_addr, grub_linux_real_addr)
2394 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
2395 GRUB_MACHINE_PCBIOS.
2396 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
2397 common grub_util_info() call to ...
2398 (generate_image): ... here.
2399 Fix use of uninitialized memory, comparison of signed with
2400 unsigned integers and memory leak.
2401 Remove bogus module address message.
2403 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2405 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
2407 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
2409 2009-06-19 Pavel Roskin <proski@gnu.org>
2411 * configure.ac: Remove stray AC_MSG_CHECKING.
2413 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2415 * disk/scsi.c (grub_scsi_open): use continue instead of big if
2417 2009-06-18 Pavel Roskin <proski@gnu.org>
2419 * conf/common.rmk: Add fs_file.mod.
2420 * disk/fs_file.c: New file.
2421 * include/grub/disk.h (enum grub_disk_dev_id): Add
2422 GRUB_DISK_DEVICE_FILE_ID.
2424 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2426 Fix build with Apple's toolchain. Part 2
2428 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
2431 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2433 Fix build with Apple's toolchain. Part 1
2435 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
2437 * configure.ac: remove a leftover AC_MSG_RESULT
2438 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
2441 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2445 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
2446 (decomp_block): initialize ch
2447 use grub_memcpy instead of memcpy
2449 2009-06-17 Pavel Roskin <proski@gnu.org>
2451 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
2452 version, use declarations needed to use vga_text as the startup
2455 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
2456 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
2458 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
2459 and grub_at_keyboard_fini(), it's done on module load and
2462 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
2464 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
2465 file can't be found.
2466 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2468 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2470 Fix newline handling
2472 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
2473 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
2474 (grub_script_yylex): don't segfault on unterminated script
2475 newline terminates command and variable
2477 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2479 avoid double grub_adjust_range call. Bug reported by David Simner
2481 * kern/disk.c (grub_disk_write): change to raw disk access before
2484 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
2486 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
2487 spaces, for the benefit of help2man.
2488 * util/i386/efi/grub-mkimage.c (usage): Likewise.
2490 2009-06-16 Pavel Roskin <proski@gnu.org>
2492 * kern/i386/halt.c: Include grub/machine/init.h.
2493 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
2495 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
2497 * util/grub.d/30_os-prober.in: Use ${root} in the generated
2500 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
2502 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
2505 2009-06-16 Pavel Roskin <proski@gnu.org>
2507 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
2508 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
2509 save %dx, we only need %dl and we never change it.
2510 * boot/i386/pc/cdboot.S: Don't set the root drive.
2511 * boot/i386/pc/pxeboot.S: Likewise.
2512 * include/grub/i386/pc/boot.h: Remove
2513 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
2514 GRUB_BOOT_MACHINE_DRIVE_CHECK.
2515 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
2516 * kern/i386/pc/init.c (make_install_device): Remove references
2518 * kern/i386/pc/startup.S: Likewise.
2519 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
2521 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2525 * commands/xnu_uuid.c: new file
2526 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
2527 (xnu_uuid_mod_SOURCES): new variable
2528 (xnu_uuid_mod_CFLAGS): likewise
2529 (xnu_uuid_mod_LDFLAGS): likewise
2530 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2531 * conf/i386-ieee1275.rmk: likewise
2532 * conf/i386-pc.rmk: likewise
2533 * conf/powerpc-ieee1275.rmk: likewise
2534 * conf/sparc64-ieee1275.rmk: likewise
2535 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
2537 2009-06-16 Pavel Roskin <proski@gnu.org>
2539 * configure.ac: Avoid '==' in test command, it's not portable.
2541 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2545 * commands/probe.c: new file
2546 * conf/common.rmk (pkglib_MODULES): add probe.mod
2547 (probe_mod_SOURCES): new variable
2548 (probe_mod_CFLAGS): likewise
2549 (probe_mod_LDFLAGS): likewise
2550 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2551 * conf/i386-ieee1275.rmk: likewise
2552 * conf/i386-pc.rmk: likewise
2553 * conf/powerpc-ieee1275.rmk: likewise
2554 * conf/sparc64-ieee1275.rmk: likewise
2556 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2558 Fix handling of string like \"hello\" and "a
2561 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
2562 (grub_script_yylex): fix parsing of quoting, escaping and newline
2564 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2566 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
2569 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
2571 * util/grub-mkconfig.in: Fix parsing of --output option.
2573 2009-06-12 Pavel Roskin <proski@gnu.org>
2575 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
2576 genmk.rb don't need to be generated or installed.
2578 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
2580 * commands/i386/pc/drivemap_int13h.S: add more comments
2582 2009-06-11 Pavel Roskin <proski@gnu.org>
2584 * Makefile.in (uninstall): Uninstall manuals.
2586 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
2587 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
2588 and update-grub_lib in two places.
2589 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
2591 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
2594 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
2595 `entry_lo' to fix variable shadowing.
2597 2009-06-11 Christian Franke <franke@computer.org>
2599 * kern/misc.c (__enable_execute_stack): Add missing return type
2600 to prevent gcc warning.
2602 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2604 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
2606 2009-06-11 Pavel Roskin <proski@gnu.org>
2608 * Makefile.in: Don't rely on any scripts being executable.
2609 Always use $(SHELL) to run shell scripts.
2611 * configure.ac: Always define ___main if using -nostdlib. This
2612 fixes tests on Cygwin.
2614 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
2618 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
2619 is in bytes and not in blocks
2621 2009-06-11 Pavel Roskin <proski@gnu.org>
2623 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
2626 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2628 * util/grub.d/30_os-prober.in: Fix a comment. Source
2629 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
2630 to set the root device. Place drivemap command in the generated
2633 2009-06-11 Pavel Roskin <proski@gnu.org>
2635 * configure.ac: Remove host_m32. Issues with 64-bit utilities
2636 have long been resolved.
2638 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
2640 * util/grub.d/10_linux.in: Capitalise "Linux".
2642 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
2644 2009-06-11 Pavel Roskin <proski@gnu.org>
2646 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
2647 fix a gcc warning and ensure that the function won't ever exit.
2649 * kern/i386/ieee1275/init.c: Add missing prototype for
2652 * loader/ieee1275/multiboot2.c [__i386__]: Include
2653 grub/cpu/multiboot.h.
2655 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
2656 casts to short - they are not portable and cause warnings. Fix
2657 use of uninitialized values in input_buf. Use ARRAY_SIZE.
2659 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2663 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
2665 (grub_get_root_biosnumber_saved): new variable
2666 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
2667 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
2668 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
2669 %dx after the call if necessary
2670 * conf/common.rmk (pkglib_MODULES): remove boot.mod
2671 (boot_mod_SOURCES): remove
2672 (boot_mod_CFLAGS): remove
2673 (boot_mod_LDFLAGS): remove
2674 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
2675 (boot_mod_SOURCES): new variable
2676 (boot_mod_CFLAGS): likewise
2677 (boot_mod_LDFLAGS): likewise
2678 * conf/i386-efi.rmk: likewise
2679 * conf/i386-ieee1275.rmk: likewise
2680 * conf/i386-pc.rmk: likewise
2681 * conf/powerpc-ieee1275.rmk: likewise
2682 * conf/sparc64-ieee1275.rmk: likewise
2683 * conf/x86_64-efi.rmk: likewise
2684 * include/grub/i386/pc/biosnum.h: new file
2685 * lib/i386/pc/biosnum.c: likewise
2686 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
2687 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
2688 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
2690 2009-06-10 Pavel Roskin <proski@gnu.org>
2692 * io/gzio.c (test_header): Don't reuse one buffer for all data.
2693 Use separate variables. Read only the file size at the end, but
2694 not the checksum that we don't use.
2696 * kern/file.c (grub_file_read): Use void pointer for the buffer.
2699 * kern/ieee1275/openfw.c: Remove libc includes.
2700 * kern/ieee1275/cmain.c: Likewise.
2701 * include/grub/ieee1275/ieee1275.h: Likewise.
2703 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
2706 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2708 * Makefile.in: Remove all trailing whitespace.
2709 * conf/i386-pc.rmk: Likewise.
2710 * conf/powerpc-ieee1275.rmk: Likewise.
2711 * conf/sparc64-ieee1275.rmk: Likewise.
2712 * docs/grub.texi: Likewise.
2713 * docs/texinfo.tex: Likewise.
2714 * disk/fs_uuid.c: Likewise.
2715 * disk/lvm.c: Likewise.
2716 * disk/scsi.c: Likewise.
2717 * disk/ata.c: Likewise.
2718 * disk/ieee1275/ofdisk.c: Likewise.
2719 * disk/i386/pc/biosdisk.c: Likewise.
2720 * disk/host.c: Likewise.
2721 * disk/raid.c: Likewise.
2722 * disk/efi/efidisk.c: Likewise.
2723 * disk/usbms.c: Likewise.
2724 * disk/memdisk.c: Likewise.
2725 * disk/loopback.c: Likewise.
2726 * kern/powerpc/dl.c: Likewise.
2727 * kern/device.c: Likewise.
2728 * kern/dl.c: Likewise.
2729 * kern/sparc64/dl.c: Likewise.
2730 * kern/ieee1275/ieee1275.c: Likewise.
2731 * kern/term.c: Likewise.
2732 * kern/fs.c: Likewise.
2733 * kern/i386/dl.c: Likewise.
2734 * kern/i386/pc/startup.S: Likewise.
2735 * kern/i386/pc/init.c: Likewise.
2736 * kern/i386/pc/mmap.c: Likewise.
2737 * kern/i386/pc/lzo1x.S: Likewise.
2738 * kern/i386/ieee1275/init.c: Likewise.
2739 * kern/i386/realmode.S: Likewise.
2740 * kern/i386/tsc.c: Likewise.
2741 * kern/partition.c: Likewise.
2742 * kern/corecmd.c: Likewise.
2743 * kern/file.c: Likewise.
2744 * kern/efi/efi.c: Likewise.
2745 * kern/efi/init.c: Likewise.
2746 * kern/efi/mm.c: Likewise.
2747 * kern/main.c: Likewise.
2748 * kern/err.c: Likewise.
2749 * kern/env.c: Likewise.
2750 * kern/disk.c: Likewise.
2751 * kern/generic/millisleep.c: Likewise.
2752 * kern/generic/rtc_get_time_ms.c: Likewise.
2753 * kern/misc.c: Likewise.
2754 * kern/parser.c: Likewise.
2755 * genmk.rb: Likewise.
2756 * configure.ac: Likewise.
2757 * boot/i386/pc/diskboot.S: Likewise.
2758 * boot/i386/pc/pxeboot.S: Likewise.
2759 * boot/i386/pc/boot.S: Likewise.
2760 * boot/i386/pc/lnxboot.S: Likewise.
2761 * boot/i386/pc/cdboot.S: Likewise.
2762 * parttool/pcpart.c: Likewise.
2763 * video/readers/tga.c: Likewise.
2764 * video/video.c: Likewise.
2765 * video/bitmap.c: Likewise.
2766 * lib/envblk.c: Likewise.
2767 * lib/i386/setjmp.S: Likewise.
2768 * fs/xfs.c: Likewise.
2769 * fs/afs.c: Likewise.
2770 * fs/fat.c: Likewise.
2771 * fs/ntfs.c: Likewise.
2772 * fs/udf.c: Likewise.
2773 * fs/affs.c: Likewise.
2774 * fs/iso9660.c: Likewise.
2775 * fs/hfs.c: Likewise.
2776 * fs/fshelp.c: Likewise.
2777 * fs/ext2.c: Likewise.
2778 * fs/jfs.c: Likewise.
2779 * fs/reiserfs.c: Likewise.
2780 * fs/hfsplus.c: Likewise.
2781 * fs/minix.c: Likewise.
2782 * fs/cpio.c: Likewise.
2783 * fs/sfs.c: Likewise.
2784 * fs/ufs.c: Likewise.
2785 * efiemu/prepare.c: Likewise.
2786 * efiemu/loadcore_common.c: Likewise.
2787 * efiemu/runtime/efiemu.sh: Likewise.
2788 * efiemu/runtime/efiemu.S: Likewise.
2789 * efiemu/runtime/efiemu.c: Likewise.
2790 * efiemu/pnvram.c: Likewise.
2791 * efiemu/main.c: Likewise.
2792 * efiemu/i386/pc/cfgtables.c: Likewise.
2793 * efiemu/i386/loadcore64.c: Likewise.
2794 * efiemu/i386/loadcore32.c: Likewise.
2795 * efiemu/loadcore.c: Likewise.
2796 * efiemu/symbols.c: Likewise.
2797 * efiemu/mm.c: Likewise.
2798 * include/grub/autoefi.h: Likewise.
2799 * include/grub/datetime.h: Likewise.
2800 * include/grub/term.h: Likewise.
2801 * include/grub/hfs.h: Likewise.
2802 * include/grub/lvm.h: Likewise.
2803 * include/grub/i386/tsc.h: Likewise.
2804 * include/grub/i386/linux.h: Likewise.
2805 * include/grub/i386/xnu.h: Likewise.
2806 * include/grub/i386/efiemu.h: Likewise.
2807 * include/grub/i386/pc/biosdisk.h: Likewise.
2808 * include/grub/i386/pc/memory.h: Likewise.
2809 * include/grub/i386/pc/vbe.h: Likewise.
2810 * include/grub/parttool.h: Likewise.
2811 * include/grub/video.h: Likewise.
2812 * include/grub/memory.h: Likewise.
2813 * include/grub/fs.h: Likewise.
2814 * include/grub/partition.h: Likewise.
2815 * include/grub/xnu.h: Likewise.
2816 * include/grub/efi/api.h: Likewise.
2817 * include/grub/efi/pe32.h: Likewise.
2818 * include/grub/efi/memory.h: Likewise.
2819 * include/grub/multiboot.h: Likewise.
2820 * include/grub/usbdesc.h: Likewise.
2821 * include/grub/multiboot2.h: Likewise.
2822 * include/grub/acpi.h: Likewise.
2823 * include/grub/efiemu/efiemu.h: Likewise.
2824 * include/grub/disk.h: Likewise.
2825 * include/grub/ieee1275/ieee1275.h: Likewise.
2826 * include/grub/net.h: Likewise.
2827 * include/grub/machoload.h: Likewise.
2828 * include/grub/macho.h: Likewise.
2829 * include/multiboot.h: Likewise.
2830 * genmoddep.awk: Likewise.
2831 * normal/main.c: Likewise.
2832 * normal/menu_entry.c: Likewise.
2833 * normal/menu_viewer.c: Likewise.
2834 * normal/completion.c: Likewise.
2835 * normal/cmdline.c: Likewise.
2836 * normal/misc.c: Likewise.
2837 * normal/datetime.c: Likewise.
2838 * bus/usb/usbtrans.c: Likewise.
2839 * bus/usb/ohci.c: Likewise.
2840 * bus/usb/uhci.c: Likewise.
2841 * bus/usb/usb.c: Likewise.
2842 * mmap/efi/mmap.c: Likewise.
2843 * mmap/i386/pc/mmap_helper.S: Likewise.
2844 * mmap/i386/pc/mmap.c: Likewise.
2845 * mmap/i386/mmap.c: Likewise.
2846 * mmap/i386/uppermem.c: Likewise.
2847 * mmap/mmap.c: Likewise.
2848 * commands/acpi.c: Likewise.
2849 * commands/echo.c: Likewise.
2850 * commands/blocklist.c: Likewise.
2851 * commands/loadenv.c: Likewise.
2852 * commands/usbtest.c: Likewise.
2853 * commands/boot.c: Likewise.
2854 * commands/parttool.c: Likewise.
2855 * commands/search.c: Likewise.
2856 * commands/cat.c: Likewise.
2857 * commands/i386/pc/play.c: Likewise.
2858 * commands/i386/pc/drivemap.c: Likewise.
2859 * commands/i386/pc/vbeinfo.c: Likewise.
2860 * commands/i386/pc/acpi.c: Likewise.
2861 * commands/i386/pc/vbetest.c: Likewise.
2862 * commands/ls.c: Likewise.
2863 * commands/cmp.c: Likewise.
2864 * commands/test.c: Likewise.
2865 * commands/efi/acpi.c: Likewise.
2866 * commands/gptsync.c: Likewise.
2867 * commands/help.c: Likewise.
2868 * partmap/amiga.c: Likewise.
2869 * partmap/apple.c: Likewise.
2870 * partmap/acorn.c: Likewise.
2871 * partmap/pc.c: Likewise.
2872 * partmap/sun.c: Likewise.
2873 * partmap/gpt.c: Likewise.
2874 * script/sh/lexer.c: Likewise.
2875 * script/sh/function.c: Likewise.
2876 * font/font.c: Likewise.
2877 * font/font_cmd.c: Likewise.
2878 * loader/powerpc/ieee1275/linux.c: Likewise.
2879 * loader/efi/chainloader.c: Likewise.
2880 * loader/multiboot_loader.c: Likewise.
2881 * loader/macho.c: Likewise.
2882 * loader/i386/multiboot.c: Likewise.
2883 * loader/i386/linux.c: Likewise.
2884 * loader/i386/pc/linux.c: Likewise.
2885 * loader/i386/pc/multiboot2.c: Likewise.
2886 * loader/i386/pc/chainloader.c: Likewise.
2887 * loader/i386/pc/xnu.c: Likewise.
2888 * loader/i386/bsd_trampoline.S: Likewise.
2889 * loader/i386/efi/linux.c: Likewise.
2890 * loader/i386/multiboot_elfxx.c: Likewise.
2891 * loader/i386/bsd_helper.S: Likewise.
2892 * loader/i386/bsd.c: Likewise.
2893 * loader/i386/linux_trampoline.S: Likewise.
2894 * loader/i386/xnu_helper.S: Likewise.
2895 * loader/i386/xnu.c: Likewise.
2896 * loader/i386/bsd_pagetable.c: Likewise.
2897 * loader/i386/multiboot_helper.S: Likewise.
2898 * loader/xnu.c: Likewise.
2899 * loader/xnu_resume.c: Likewise.
2900 * io/gzio.c: Likewise.
2901 * term/efi/console.c: Likewise.
2902 * term/terminfo.c: Likewise.
2903 * term/ieee1275/ofconsole.c: Likewise.
2904 * term/i386/pc/serial.c: Likewise.
2905 * term/i386/pc/vesafb.c: Likewise.
2906 * term/i386/pc/vga.c: Likewise.
2907 * term/usb_keyboard.c: Likewise.
2908 * term/gfxterm.c: Likewise.
2909 * aclocal.m4: Likewise.
2910 * util/lvm.c: Likewise.
2911 * util/grub.d/30_os-prober.in: Likewise.
2912 * util/grub.d/10_hurd.in: Likewise.
2913 * util/console.c: Likewise.
2914 * util/grub-macho2img.c: Likewise.
2915 * util/grub-probe.c: Likewise.
2916 * util/hostfs.c: Likewise.
2917 * util/i386/pc/grub-mkimage.c: Likewise.
2918 * util/i386/pc/grub-setup.c: Likewise.
2919 * util/i386/efi/grub-mkimage.c: Likewise.
2920 * util/grub-mkconfig.in: Likewise.
2921 * util/raid.c: Likewise.
2922 * util/resolve.c: Likewise.
2923 * util/grub-mkdevicemap.c: Likewise.
2924 * util/grub-emu.c: Likewise.
2925 * util/getroot.c: Likewise.
2926 * util/hostdisk.c: Likewise.
2927 * util/usb.c: Likewise.
2928 * util/grub-editenv.c: Likewise.
2929 * util/misc.c: Likewise.
2931 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2933 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
2934 `genparttoollist.sh'.
2935 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
2936 Add `*.sh' to the list find searches for and change `mdate.sh'
2939 2009-06-10 Pavel Roskin <proski@gnu.org>
2941 * include/grub/multiboot2.h: Provide compatibility defines for
2943 * include/multiboot2.h: Include stdint.h only if needed, using
2945 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
2947 * loader/ieee1275/multiboot2.c: Likewise.
2948 * loader/multiboot2.c: Likewise.
2949 * loader/multiboot_loader.c: Likewise.
2951 * configure.ac: Use -nostdlib when probing for the target. It
2952 should not be required to have libc for the target.
2954 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
2955 they fail without libc headers for the target.
2956 * include/grub/powerpc/libgcc.h: Use weak attribute for all
2958 * include/grub/sparc64/libgcc.h: Likewise. Don't use
2959 preprocessor conditionals.
2961 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
2962 build system doesn't need to be aware of the tar.c internals.
2964 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
2966 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
2968 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
2970 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
2971 disk limit to 26 for IDE, Virtio, Xen and SCSI.
2973 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
2975 * util/i386/pc/grub-install.in: Change the error message if UUIDs
2976 aren't available if ata.mod gets used.
2978 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
2980 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
2981 initialising controller.
2982 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
2984 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2986 * util/i386/pc/grub-install.in: Add a parameter --disk-module
2987 to choose between ata and biosdisk module on i386-pc.
2989 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
2991 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
2992 Subclass and Programming Interface fields in terms of the 3 byte
2993 Class Code register.
2994 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
2996 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
2997 interface is OHCI. Add grub_dprintf for symmetry with
2999 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
3000 interface is UHCI. Add interf variable for programming
3001 interface. Print interface with class/subclass.
3003 * bus/usb/ohci.c: Set interf with correct field.
3005 * bus/usb/uhci.c: Remove unneeded doubled lines.
3006 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
3007 Remove whitespace inside comment.
3009 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
3011 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
3012 as fallback an equivalent option without depth.
3014 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3016 Not fail if unable to retrieve C/H/S on LBA disks
3018 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
3019 if unable to retrieve C/H/S on LBA disks
3021 2009-06-08 Pavel Roskin <proski@gnu.org>
3023 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
3026 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3028 * Makefile.in (uninstall): Remove all $lib_DATA files.
3030 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3032 Bugfix: install on partitionless device
3034 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
3037 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3039 * Makefile.in (uninstall): Remove all $include_DATA files.
3041 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3043 * commands/true.c: New file. Implement the true and false commands.
3044 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
3045 (true_mod_SOURCES): New variable.
3046 (true_mod_CFLAGS): Likewise.
3047 (true_mod_LDFLAGS): Likewise.
3049 2009-06-05 Colin D Bennett <colin@gibibit.com>
3051 Optimized font character lookup using binary search instead of linear
3052 search. Fonts now are required to have the character index ordered by
3055 * font/font.c (load_font_index): Verify that fonts have ordered
3057 (find_glyph): Use binary search instead of linear search to find a
3058 character in a font.
3060 2009-06-05 Michael Scherer <misc@mandriva.org>
3062 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
3063 uses case sensitive btree.
3064 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
3065 only for case insensitive filesystems.
3067 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3069 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
3070 * conf/common.rmk (search_mod_CFLAGS): likewise
3072 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3074 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
3075 compensate a compiler bug
3077 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3079 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
3082 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3084 Definitions for creating asm symbols with Apple's CC
3086 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
3087 [APPLE_CC] (VARIABLE): likewise
3089 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3091 Disable lnxboot.img when compiled
3094 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
3095 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
3096 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
3097 [! APPLE_CC] (CODE_LENG): skip
3098 [! APPLE_CC] (setup_sects): likewise
3099 [! APPLE_CC]: skip filling
3101 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3103 Address in trampolines based on 32-bit registers when compiled
3106 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
3108 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
3110 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3112 Avoid aliases when compiling with Apple's CC for PCBIOS machine
3114 * kern/misc.c [APPLE_CC] (memcpy): new function
3115 [APPLE_CC] (memmove): likewise
3116 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
3117 (memcpy): define alias conditionally on !APPLE_CC
3120 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
3121 APPLE_CC are defined
3122 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
3123 (grub_assert_fail): make prototype conditional
3125 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3127 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
3129 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
3131 (CLEANFILES): add grub-macho2img
3132 (grub_macho2img_SOURCES): new variable
3133 * kern/i386/pc/startup.S (bss_start): new variable
3135 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
3136 * util/grub-macho2img.c: new file
3138 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3140 Use objconv when compiling with Apple's CC
3142 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
3143 (efiemu64.o): likewise
3144 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
3145 when compiling with Apple's CC
3146 (efiemu64_s.o): likewise
3147 * configure.ac: check for objconv when compiling with Apple's CC
3148 * genmk.rb: use objconv for modules when compiled with Apple's CC
3150 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3152 Define segment as well as section when compiling with
3155 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
3156 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
3157 (efiemu_convert_pointer): likewise
3158 (efiemu_set_virtual_address_map): likewise
3159 (efiemu_convert_pointer): likewise
3160 (efiemu_getcrc32): likewise
3161 (init_crc32_table): likewise
3163 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
3164 (GRUB_MOD_DEP): likewise
3166 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3168 Allow a compilation without -mcmodel=large
3170 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
3171 when compiled without -mcmodel=large
3172 (filter_memory_map): remove memory post 4 GiB when compiled
3173 without -mcmodel=large
3174 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
3175 TARGET_CFLAGS when -mcmodel=large isn't supported
3177 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3179 Remove nested functions in efiemu core
3181 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
3183 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3185 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
3187 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
3189 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
3191 (grub_cpu_is_tsc_supported): likewise
3192 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
3194 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3196 Absolute addressing through constant with Apple's cc
3198 * kern/i386/pc/startup.S: Define necessary constants
3199 and address through it when using ABS with Apple's CC
3200 * boot/i386/pc/diskboot.S: likewise
3201 * boot/i386/pc/boot.S: likewise
3202 * boot/i386/pc/lnxboot.S: likewise
3203 * boot/i386/pc/cdboot.S: likewise
3204 * mmap/i386/pc/mmap_helper.S: likewise
3205 * commands/i386/pc/drivemap_int13h.S: likewise
3207 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3209 Check if compiler is apple cc
3211 * Makefile.in (ASFLAGS): new variable
3212 (TARGET_ASFLAGS): likewise
3213 (TARGET_MODULE_FORMAT): likewise
3214 (TARGET_APPLE_CC): likewise
3216 (TARGET_IMG_CFLAGS): likewise
3217 (TARGET_CPPFLAGS): add includedir
3218 * configure.ac: call grub_apple_cc and grub_apple_target_cc
3219 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
3220 Check for linker script only if compiler isn't Apple's CC
3221 (TARGET_MODULE_FORMAT): set
3222 (TARGET_APPLE_CC): likewise
3223 (TARGET_ASFLAGS): likewise
3225 Check for objcopy only if compiler isn't Apple's CC
3226 Check for BSS symbol only if compiler isn't Apple's CC
3227 * genmk.rb: adapt nm options if we use Apple's utils
3228 * aclocal.m4 (grub_apple_cc): new test
3229 (grub_apple_target_cc): likewise
3231 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3233 Simplify sed expressions and improve awk
3235 * Makefile.in (install-local): simplify sed expression
3236 * gencmdlist.sh: likewise
3237 * genmoddep.awk: avoid adding module as a dependency of itself
3239 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3241 Add missing start symbols
3243 * boot/i386/pc/boot.S: add start
3244 * boot/i386/pc/pxeboot.S: likewise
3246 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3248 Fix wrong assumptions with grub-mkimage on EFI
3250 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
3251 (relocate_addresses): consider both r_addend and value at offset
3252 (make_mods_section): zerofill modinfo and header
3253 (convert_elf): write prefix here
3255 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3257 Use .asciz instead of .string
3259 * i386/pc/diskboot.S: use .asciz instead of .string
3260 * i386/pc/boot.S: likewise
3261 * include/grub/dl.h (GRUB_MOD_DEP): likewise
3262 (GRUB_MOD_NAME): likewise
3264 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3268 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
3269 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
3270 (grub_video_setup): remove
3271 (grub_video_set_mode): new prototype
3272 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
3274 (linux_vesafb_res): compile only on PCBIOS
3275 (grub_linux_boot): support gfxpayload
3276 * loader/i386/pc/xnu.c (video_hook): new function
3277 (grub_xnu_set_video): support gfxpayload
3278 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
3279 (DEFAULT_VIDEO_HEIGHT): likewise
3280 (DEFAULT_VIDEO_FLAGS): likewise
3281 (DEFAULT_VIDEO_MODE): new definition
3282 (video_hook): new function
3283 (grub_gfxterm_init): use grub_video_set_mode
3284 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3286 * video/video.c (grub_video_setup): removed
3287 (grub_video_set_mode): new function based on grub_gfxterm_init and
3290 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3292 Avoid calling biosdisk in drivemap
3294 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
3295 (revparse_biosdisk): likewise
3296 (list_mappings): derive name from id directly
3297 (grub_cmd_drivemap): use tryparse_diskstring
3299 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3303 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
3304 (grub_lexer_param): add tokenonhold
3305 (grub_script_create_cmdline): remove cmdline. All callers updated
3306 (grub_script_function_create): make functionname
3307 grub_script_arg. All callers updated
3308 (grub_script_execute_argument_to_string): new prototype
3309 * kern/parser.c (state_transitions): reorder
3310 (grub_parser_cmdline_state): fix a bug and make more compact
3311 * script/sh/execute.c (grub_script_execute_argument_to_string):
3313 (grub_script_execute_cmdline): use new format
3314 * script/sh/function.c (grub_script_function_create): make functionname
3315 grub_script_arg. All callers updated
3316 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
3317 (grub_script_yylex): remove
3318 (grub_script_yylex2): renamed to ...
3319 (grub_script_yylex): ...renamed
3320 parse the expressions like a${b}c
3321 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
3322 (GRUB_PARSER_TOKEN_VAR): remove
3323 (GRUB_PARSER_TOKEN_NAME): likewise
3324 ("if"): declare as typeless
3326 ("function"): likewise
3331 (argument): likewise
3332 (script): accept empty scripts and make exit on error
3333 (arguments): use GRUB_PARSER_TOKEN_ARG
3334 (function): likewise
3335 (command): move error handling to script
3336 (menuentry): move grub_script_lexer_ref before
3337 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
3338 argument. All callers updated
3340 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3342 Prevent GRUB from probing floppies during boot.
3344 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
3345 * commands/search.c (options): Add --no-floppy.
3346 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
3347 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
3348 --no-floppy when searching for UUIDs.
3350 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3352 Simplify the code duplication in commands/search.c.
3354 * commands/search.c (search_label, search_fs_uuid): Merge into ...
3355 (search_fs): ... this. Update all users.
3357 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
3359 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
3361 2009-05-28 Pavel Roskin <proski@gnu.org>
3363 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
3364 Remove the original symlink explicitly.
3366 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
3367 just one slash. That's how grub_fshelp_find_file() does it.
3369 2009-05-26 Pavel Roskin <proski@gnu.org>
3371 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
3374 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
3377 2009-05-25 Christian Franke <franke@computer.org>
3379 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
3381 (grub_atapi_identify): Add wait after drive select.
3382 (grub_ata_identify): Do more strict status register check before
3383 calling grub_atapi_identify (). Suppress error message if status
3384 register is 0x00 after command failure. Add status register
3385 check after PIO read to avoid bogus identify due to stuck DRQ.
3386 Thanks to Pavel Roskin for testing.
3387 (grub_device_initialize): Remove unsafe status register check.
3388 Thanks to 'phcoder' for problem report and patch.
3389 Prevent sign extension in debug message.
3391 2009-05-23 Colin D Bennett <colin@gibibit.com>
3393 Cleaned up `include/grub/normal.h'. Grouped prototypes by
3394 definition file, and functions defined in `normal/menu.c' have had
3395 their prototypes moved to `include/grub/menu.h' for consistency.
3397 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
3399 (grub_menu_get_entry): Likewise.
3400 (grub_menu_get_timeout): Likewise.
3401 (grub_menu_set_timeout): Likewise.
3402 (grub_menu_execute_entry): Likewise.
3403 (grub_menu_execute_with_fallback): Likewise.
3404 (grub_menu_entry_run): Likewise.
3406 * include/grub/normal.h: Re-ordered and grouped function
3407 prototypes by file that the function is defined in.
3408 (grub_menu_execute_callback): Removed; moved to menu.h.
3409 (grub_menu_get_entry): Likewise.
3410 (grub_menu_get_timeout): Likewise.
3411 (grub_menu_set_timeout): Likewise.
3412 (grub_menu_execute_entry): Likewise.
3413 (grub_menu_execute_with_fallback): Likewise.
3414 (grub_menu_entry_run): Likewise.
3415 (grub_menu_addentry): Renamed from this ...
3416 (grub_normal_add_menu_entry): ... to this.
3418 * normal/main.c (grub_menu_addentry): Renamed from this ...
3419 (grub_normal_add_menu_entry): ... to this.
3421 * script/sh/execute.c (grub_script_execute_menuentry): Update
3422 reference to renamed grub_menu_addentry function.
3424 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
3426 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
3428 2009-05-22 Pavel Roskin <proski@gnu.org>
3430 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
3431 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
3432 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
3433 compiling for the i386 targets, but not for the utilities.
3435 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
3437 (grub_root_drive): Likewise.
3438 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
3440 (grub_root_drive): Change size to byte.
3441 (grub_start_addr): Remove.
3442 (grub_end_addr): Likewise.
3443 (grub_apm_bios_info): Likewise.
3445 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
3447 * normal/i386: Remove.
3448 * normal/powerpc: Likewise.
3449 * normal/sparc64: Likewise.
3450 * normal/x86_64: Likewise.
3452 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
3454 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
3455 * loader/i386/linux_trampoline.S: Fix indentation
3456 * loader/i386/xnu_helper.S: Likewise
3458 2009-05-18 Colin D Bennett <colin@gibibit.com>
3460 Display error messages when parsing a Lua statement fails.
3461 Previously, executing a syntactically invalid statement like
3462 ")foo" or "bar;" would silently fail.
3464 * script/lua/grub_main.c (handle_lua_error): New function.
3465 (grub_lua_parse_line): Improved reporting of Lua parser and
3468 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3470 Remove -Werror which causes build to fail on some systems
3472 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
3473 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
3474 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
3476 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3478 trampoline for linux on 64-bit platform
3480 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
3481 loader/i386/efi/linux_trampoline.S
3482 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
3484 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
3486 * loader/i386/linux_trampoline.S: moved here
3487 * loader/i386/efi/linux.c (allocate_pages): reserve space for
3489 (jumpvector): removed
3490 (grub_linux_trampoline_start): new declaration
3491 (grub_linux_trampoline_end): likewise
3492 (grub_linux_boot): use trampoline when on 64-bit platform
3493 * loader/i386/linux.c: likewise
3495 2009-05-16 Pavel Roskin <proski@gnu.org>
3497 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
3498 const to avoid a warning.
3499 (grub_lua_setenv): Likewise.
3500 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
3501 lmsg to fix a warning.
3503 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3505 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
3506 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3507 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
3508 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3509 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3510 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3511 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3512 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3514 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3516 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
3518 2009-05-16 Bean <bean123ch@gmail.com>
3520 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
3521 (lua_mod_SOURCES): New variable.
3522 (lua_mod_CFLAGS): Likewise.
3523 (lua_mod_LDFLAGS): Likewise.
3525 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
3526 (setjmp_mod_SOURCES): New variable.
3527 (setjmp_mod_CFLAGS): Likewise.
3528 (setjmp_LDFLAGS): Likewise.
3530 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
3531 (setjmp_mod_SOURCES): New variable.
3532 (setjmp_mod_CFLAGS): Likewise.
3533 (setjmp_LDFLAGS): Likewise.
3535 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3536 (setjmp_mod_SOURCES): New variable.
3537 (setjmp_mod_CFLAGS): Likewise.
3538 (setjmp_LDFLAGS): Likewise.
3540 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3541 (setjmp_mod_SOURCES): New variable.
3542 (setjmp_mod_CFLAGS): Likewise.
3543 (setjmp_LDFLAGS): Likewise.
3545 * normal/i386/setjmp.S: Moved from here ...
3546 * lib/i386/setjmp.S: ... Moved here
3547 * normal/x86_64/setjmp.S: Moved from here ...
3548 * lib/x86_64/setjmp.S: ... Moved here
3549 * normal/powerpc/setjmp.S: Moved from here ...
3550 * lib/powerpc/setjmp.S: ... Moved here
3551 * normal/sparc64/setjmp.S: Moved from here ...
3552 * lib/sparc64/setjmp.S: ... Moved here
3554 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
3555 returns_twice in mingw.
3557 * script/lua/grub_lib.c: New file.
3558 * script/lua/grub_lib.h: Likewise.
3559 * script/lua/grub_lua.h: Likewise.
3560 * script/lua/grub_main.c: Likewise.
3561 * script/lua/lapi.c: Likewise.
3562 * script/lua/lapi.h: Likewise.
3563 * script/lua/lauxlib.c: Likewise.
3564 * script/lua/lauxlib.h: Likewise.
3565 * script/lua/lbaselib.c: Likewise.
3566 * script/lua/lcode.c: Likewise.
3567 * script/lua/lcode.h: Likewise.
3568 * script/lua/ldblib.c: Likewise.
3569 * script/lua/ldebug.c: Likewise.
3570 * script/lua/ldebug.h: Likewise.
3571 * script/lua/ldo.c: Likewise.
3572 * script/lua/ldo.h: Likewise.
3573 * script/lua/ldump.c: Likewise.
3574 * script/lua/lfunc.c: Likewise.
3575 * script/lua/lfunc.h: Likewise.
3576 * script/lua/lgc.c: Likewise.
3577 * script/lua/lgc.h: Likewise.
3578 * script/lua/linit.c: Likewise.
3579 * script/lua/liolib.c: Likewise.
3580 * script/lua/llex.c: Likewise.
3581 * script/lua/llex.h: Likewise.
3582 * script/lua/llimits.h: Likewise.
3583 * script/lua/lmathlib.c: Likewise.
3584 * script/lua/lmem.c: Likewise.
3585 * script/lua/lmem.h: Likewise.
3586 * script/lua/loadlib.c: Likewise.
3587 * script/lua/lobject.c: Likewise.
3588 * script/lua/lobject.h: Likewise.
3589 * script/lua/lopcodes.c: Likewise.
3590 * script/lua/lopcodes.h: Likewise.
3591 * script/lua/loslib.c: Likewise.
3592 * script/lua/lparser.c: Likewise.
3593 * script/lua/lparser.h: Likewise.
3594 * script/lua/lstate.c: Likewise.
3595 * script/lua/lstate.h: Likewise.
3596 * script/lua/lstring.c: Likewise.
3597 * script/lua/lstring.h: Likewise.
3598 * script/lua/lstrlib.c: Likewise.
3599 * script/lua/ltable.c: Likewise.
3600 * script/lua/ltable.h: Likewise.
3601 * script/lua/ltablib.c: Likewise.
3602 * script/lua/ltm.c: Likewise.
3603 * script/lua/ltm.h: Likewise.
3604 * script/lua/lua.h: Likewise.
3605 * script/lua/luaconf.h: Likewise.
3606 * script/lua/lualib.h: Likewise.
3607 * script/lua/lundump.c: Likewise.
3608 * script/lua/lundump.h: Likewise.
3609 * script/lua/lvm.c: Likewise.
3610 * script/lua/lvm.h: Likewise.
3611 * script/lua/lzio.c: Likewise.
3612 * script/lua/lzio.h: Likewise.
3614 2009-05-16 Bean <bean123ch@gmail.com>
3616 * include/grub/kernel.h (grub_module_header_types): Add type
3619 * kern/main.c (grub_load_config): New function.
3620 (grub_main): Call grub_load_config to read boot config.
3622 * grub-mkimage (generate_image): New parameter config_path.
3623 (options): New option --config.
3624 (main): Parse --config option, and pass it to generate_image.
3626 2009-05-14 Christian Franke <franke@computer.org>
3628 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
3629 This fixes build on Cygwin.
3631 2009-05-14 Pavel Roskin <proski@gnu.org>
3633 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
3634 jump. This saves two bytes, so the typical case of 2 swapped
3635 drives would fit 32 bytes.
3637 2009-05-13 Pavel Roskin <proski@gnu.org>
3639 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
3640 grub_uint32_t to avoid a warning.
3642 * loader/i386/linux.c (allocate_pages): When assigning
3643 real_mode_mem, cast through grub_size_t to fix a warning. The
3644 code already makes sure that the value would fit a pointer.
3645 (grub_linux_setup_video): Cast render_target->data to
3646 grub_size_t to fix a warning.
3648 2009-05-13 Javier MartÃn <lordhabbit@gmail.com>
3650 * commands/i386/pc/drivemap.c: New file - implement drivemap
3652 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
3653 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
3655 2009-05-13 Pavel Roskin <proski@gnu.org>
3657 * util/i386/pc/grub-setup.c (setup): Remove unused variable
3658 embedding_area_exists.
3660 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
3662 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
3663 it easier to understand / work with.
3664 Improve warning messages for cases where there's no embedding area,
3665 or when it is too small (or core.img too large).
3667 2009-05-13 Pavel Roskin <proski@gnu.org>
3669 * loader/i386/pc/multiboot2.c: Add necessary includes for
3670 grub_multiboot2_real_boot().
3672 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
3673 PX record is always little-endian. We only need the lower 2
3676 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
3677 facilitate code reuse.
3678 (grub_cpio_mount): Use "struct head", not a char buffer. This
3679 fixes a warning reported by gcc 4.4.
3681 * kernel/disk.c (grub_disk_read): Use void pointer for the
3683 (grub_disk_write): Use const void pointer for the buffer.
3684 Adjust all callers. Remove unnecessary casts.
3686 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
3688 * util/i386/pc/grub-install.in: Update copyright year.
3690 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3694 * commands/gptsync.c: new file
3695 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
3696 (gptsync_mod_SOURCES): new variable
3697 (gptsync_mod_CFLAGS): likewise
3698 (gptsync_mod_LDFLAGS): likewise
3699 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
3701 (GRUB_PC_PARTITION_TYPE_HFS): likewise
3702 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
3703 * conf/i386-ieee1275.rmk: likewise
3704 * conf/i386-pc.rmk: likewise
3705 * conf/powerpc-ieee1275.rmk: likewise
3707 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3711 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
3712 (grub_dl_ref): likewise
3714 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
3716 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
3717 split in two functions (one for msdos and one for gpt).
3719 2009-05-08 Pavel Roskin <proski@gnu.org>
3721 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
3724 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
3725 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
3726 Initialize them with -1. Add sanity check for bad1. Eliminate
3729 2009-05-08 David S. Miller <davem@davemloft.net>
3731 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
3733 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
3735 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
3738 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
3740 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
3741 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
3743 2009-05-05 David S. Miller <davem@davemloft.net>
3745 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
3747 2009-05-05 Pavel Roskin <proski@gnu.org>
3749 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
3750 of grub_dl_ref() and grub_dl_unref().
3751 * commands/parttool.c: Remove preprocessor conditionals around
3752 grub_dl_ref() and grub_dl_unref().
3753 * fs/affs.c: Likewise.
3754 * fs/afs.c: Likewise.
3755 * fs/cpio.c: Likewise.
3756 * fs/ext2.c: Likewise.
3757 * fs/fat.c: Likewise.
3758 * fs/hfs.c: Likewise.
3759 * fs/hfsplus.c: Likewise.
3760 * fs/iso9660.c: Likewise.
3761 * fs/jfs.c: Likewise.
3762 * fs/minix.c: Likewise.
3763 * fs/ntfs.c: Likewise.
3764 * fs/reiserfs.c: Likewise.
3765 * fs/sfs.c: Likewise.
3766 * fs/udf.c: Likewise.
3767 * fs/ufs.c: Likewise.
3768 * fs/xfs.c: Likewise.
3769 * include/grub/dl.h: Likewise.
3770 * loader/xnu.c: Likewise.
3772 2009-05-04 Pavel Roskin <proski@gnu.org>
3774 * commands/acpi.c: Remove unused variable my_mod.
3775 * partmap/amiga.c: Likewise.
3776 * partmap/apple.c: Likewise.
3777 * partmap/gpt.c: Likewise.
3778 * partmap/pc.c: Likewise.
3779 * partmap/sun.c: Likewise.
3780 * term/gfxterm.c: Likewise.
3781 * term/i386/pc/vesafb.c: Likewise.
3782 * term/i386/pc/vga.c: Likewise.
3784 2009-05-04 David S. Miller <davem@davemloft.net>
3786 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
3787 pointer args to grub_ieee1275_get_property().
3789 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
3791 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
3792 devices, and do not traverse down under controller nodes.
3794 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
3795 (grub_ofdisk_open): Use it to un-escape "," characters.
3796 * kern/disk.c (find_part_sep): New.
3797 (grub_disk_open): Use it to find the first non-escaped ','
3798 character in the disk name.
3799 * util/ieee1275/devicemap.c (escape_of_path): New.
3800 (grub_util_emit_devicemap_entry): Use it.
3801 * util/sparc64/ieee1275/grub-install.in: Update script to
3802 strip partition specifiers properly by not triggering on
3803 '\' escaped ',' characters.
3805 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3807 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
3809 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
3811 (linux_vesafb_modes): Add a lot of additional modes to the list (based
3812 on documentation from Wikipedia).
3814 2009-05-04 Pavel Roskin <proski@gnu.org>
3816 * disk/ata.c: Spelling fixes.
3817 * disk/raid.c: Likewise.
3818 * disk/usbms.c: Likewise.
3819 * disk/dmraid_nvidia.c: Likewise.
3820 * kern/ieee1275/openfw.c: Likewise.
3821 * kern/ieee1275/init.c: Likewise.
3822 * kern/ieee1275/cmain.c: Likewise.
3823 * boot/i386/pc/cdboot.S: Likewise.
3824 * video/readers/png.c: Likewise.
3825 * video/i386/pc/vbe.c: Likewise.
3826 * fs/udf.c: Likewise.
3827 * fs/hfs.c: Likewise.
3828 * fs/reiserfs.c: Likewise.
3829 * efiemu/runtime/efiemu.c: Likewise.
3830 * efiemu/main.c: Likewise.
3831 * efiemu/mm.c: Likewise.
3832 * include/grub/elf.h: Likewise.
3833 * include/grub/xnu.h: Likewise.
3834 * include/grub/usbdesc.h: Likewise.
3835 * include/grub/usb.h: Likewise.
3836 * include/grub/script_sh.h: Likewise.
3837 * include/grub/lib/LzmaEnc.h: Likewise.
3838 * include/grub/efiemu/efiemu.h: Likewise.
3839 * include/grub/command.h: Likewise.
3840 * normal/menu.c: Likewise.
3841 * normal/main.c: Likewise.
3842 * normal/datetime.c: Likewise.
3843 * bus/usb/uhci.c: Likewise.
3844 * mmap/i386/uppermem.c: Likewise.
3845 * mmap/mmap.c: Likewise.
3846 * commands/acpi.c: Likewise.
3847 * commands/test.c: Likewise.
3848 * partmap/apple.c: Likewise.
3849 * font/font.c: Likewise.
3850 * loader/sparc64/ieee1275/linux.c: Likewise.
3851 * loader/macho.c: Likewise.
3852 * loader/i386/bsd_trampoline.S: Likewise.
3853 * loader/i386/bsd.c: Likewise.
3854 * loader/xnu.c: Likewise.
3855 * term/i386/pc/vesafb.c: Likewise.
3856 * term/usb_keyboard.c: Likewise.
3857 * util/resolve.c: Likewise.
3858 * util/getroot.c: Likewise.
3860 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3862 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
3864 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3866 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
3869 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3871 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
3872 parameter only available on BIOS.
3874 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3876 Removed wrong semicolon in declaration
3878 * grub/misc.h (grub_dprintf): remove semicolon
3880 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3882 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
3883 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
3884 is done by grub_cmd_linux() now).
3885 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
3886 restore video to text mode.
3887 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
3888 indicates lack of "vga=" parameter. "vga=0" is mapped to
3889 `GRUB_LINUX_VID_MODE_NORMAL'.
3891 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3893 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
3894 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
3895 and `normal/script.c'. Add `kern/rescue_reader.c',
3896 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
3897 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
3898 `grub_script.tab.c'.
3900 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3901 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
3902 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3903 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
3904 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3906 * Makefile.in: Remove duplicated 2008 in Copyright line.
3908 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3910 * util/misc.c (grub_util_warn): New function. Emits a warning
3912 * include/grub/util/misc.h (grub_util_warn): New declaration.
3914 * util/i386/pc/grub-install.in: Understand --force and pass it down
3917 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
3919 (setup): Improve error messages and add warnings when requested to
3920 install in odd layouts. Refuse to install using blocklists unless
3923 2009-05-04 martin f. krafft <madduck@madduck.net>
3925 * disk/raid.c (grub_raid_scan_device): Improve debug message.
3927 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3929 Updated copyright year
3931 * fs/hfsplus.c: updated copyright year
3933 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3937 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
3938 in the space previously used by unused3
3939 (grub_hfsplus_uuid): new function
3940 (grub_hfsplus_fs): added uuid field
3942 2009-05-03 Pavel Roskin <proski@gnu.org>
3944 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
3945 suppress warnings. It's no longer needed.
3946 * disk/host.c: Likewise.
3947 * disk/ata_pthru.c: Likewise.
3948 * disk/loopback.c: Likewise.
3949 * hook/datehook.c: Likewise.
3950 * parttool/pcpart.c: Likewise.
3951 * fs/i386/pc/pxe.c: Likewise.
3952 * fs/ntfscomp.c: Likewise.
3953 * efiemu/main.c: Likewise.
3954 * mmap/mmap.c: Likewise.
3955 * commands/crc.c: Likewise.
3956 * commands/hexdump.c: Likewise.
3957 * commands/hdparm.c: Likewise.
3958 * commands/acpi.c: Likewise.
3959 * commands/echo.c: Likewise.
3960 * commands/minicmd.c: Likewise.
3961 * commands/blocklist.c: Likewise.
3962 * commands/memrw.c: Likewise.
3963 * commands/loadenv.c: Likewise.
3964 * commands/usbtest.c: Likewise.
3965 * commands/lsmmap.c: Likewise.
3966 * commands/boot.c: Likewise.
3967 * commands/parttool.c: Likewise.
3968 * commands/configfile.c: Likewise.
3969 * commands/search.c: Likewise.
3970 * commands/ieee1275/suspend.c: Likewise.
3971 * commands/cat.c: Likewise.
3972 * commands/i386/pc/pxecmd.c: Likewise.
3973 * commands/i386/pc/play.c: Likewise.
3974 * commands/i386/pc/halt.c: Likewise.
3975 * commands/i386/pc/vbeinfo.c: Likewise.
3976 * commands/i386/pc/vbetest.c: Likewise.
3977 * commands/lspci.c: Likewise.
3978 * commands/date.c: Likewise.
3979 * commands/handler.c: Likewise.
3980 * commands/ls.c: Likewise.
3981 * commands/test.c: Likewise.
3982 * commands/cmp.c: Likewise.
3983 * commands/efi/loadbios.c: Likewise.
3984 * commands/efi/fixvideo.c: Likewise.
3985 * commands/halt.c: Likewise.
3986 * commands/help.c: Likewise.
3987 * commands/reboot.c: Likewise.
3988 * hello/hello.c: Likewise.
3989 * script/sh/main.c: Likewise.
3990 * loader/xnu.c: Likewise.
3991 * term/terminfo.c: Likewise.
3992 * term/i386/pc/serial.c: Likewise.
3993 * term/usb_keyboard.c: Likewise.
3995 2009-05-03 David S. Miller <davem@davemloft.net>
3997 * normal/menu.c: Include grub/parser.h
3999 2009-05-03 Pavel Roskin <proski@gnu.org>
4001 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
4003 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
4004 Suggested by Javier MartÃn <lordhabbit@gmail.com>
4006 * util/i386/pc/grub-mkrescue.in: Allow for the case when
4007 efiemu??.o doesn't exist.
4008 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
4011 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
4013 FreeBSD 64-bit support
4015 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
4016 and loader/i386/bsd_trampoline.S
4017 (bsd_mod_ASFLAGS): new variable
4018 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
4019 (FREEBSD_MODTYPE_KERNEL64): likewise
4020 (grub_bsd64_trampoline_start): likewise
4021 (grub_bsd64_trampoline_end): likewise
4022 (grub_bsd64_trampoline_selfjump): likewise
4023 (grub_bsd64_trampoline_gdt): likewise
4024 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
4025 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
4026 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
4027 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
4028 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4030 * loader/i386/bsd_pagetable.c: new file
4031 * loader/i386/bsd_trampoline.S: likewise
4032 * loader/i386/bsd.c (ALIGN_QWORD): new macro
4033 (ALIGN_VAR): likewise
4034 (entry_hi): new variable
4035 (kern_end_mdofs): likewise
4036 (is_64bit): likewise
4037 (grub_freebsd_add_meta): use ALIGN_VAR
4038 (grub_e820_mmap): new declaration
4039 (grub_freebsd_add_mmap): new function
4040 (grub_freebsd_add_meta_module): support 64 bit kernels
4041 (grub_freebsd_list_modules): use ALIGN_VAR
4042 (gdt_descriptor): new declaration
4043 (grub_freebsd_boot): support 64 bit kernels
4044 (grub_bsd_elf64_hook): new function
4045 (grub_bsd_load_elf): support elf64
4047 2009-05-03 Bean <bean123ch@gmail.com>
4049 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
4050 after we get the result of if statement.
4052 2009-05-03 Bean <bean123ch@gmail.com>
4054 * Makefile.in (enable_efiemu): New variable.
4056 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
4058 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
4060 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
4061 path, add -mno-red-zone option.
4062 (efiemu64_s.o): Likewise.
4063 (efiemu64.o): Use macro $^ for source file.
4065 * configure.ac (--enable-efiemu): New option.
4067 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4071 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
4072 (pkglib_MODULES): add xnu.mod
4073 (xnu_mod_SOURCES): new variable
4074 (xnu_mod_CFLAGS): likewise
4075 (xnu_mod_LDFLAGS): likewise
4076 (xnu_mod_ASFLAGS): likewise
4077 * conf/i386-pc.rmk: likewise
4078 * conf/x86_64-efi.rmk: likewise
4079 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
4081 * include/grub/i386/macho.h: new file
4082 * include/grub/i386/xnu.h: likewise
4083 * include/grub/macho.h: likewise
4084 * include/grub/machoload.h: likewise
4085 * include/grub/x86_64/macho.h: likewise
4086 * include/grub/x86_64/xnu.h: likewise
4087 * include/grub/xnu.h: likewise
4088 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
4089 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
4090 * loader/i386/efi/xnu.c: new file
4091 * loader/i386/pc/xnu.c: likewise
4092 * loader/i386/xnu.c: likewise
4093 * loader/i386/xnu_helper.S: likewise
4094 * loader/macho.c: likewise
4095 * loader/xnu.c: likewise
4096 * loader/xnu_resume.c: likewise
4097 * util/grub-dumpdevtree: likewise
4098 * include/grub/i386/pit.h: include grub/err.h
4099 (grub_pit_wait): export
4100 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
4102 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4106 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
4107 _linux_efi, linux_efi.
4108 new files in grub-emu
4109 new targets efiemu32.o and efiemu64.o
4110 * loader/linux_normal_efiemu.c: likewise
4111 * loader/i386/efi/linux.c: added preliminary efiemu support
4112 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
4114 * include/grub/autoefi.h: new file
4115 * include/grub/i386/efiemu.h: likewise
4116 * include/grub/i386/pc/efiemu.h: likewise
4117 * include/grub/efi/api.h: add LL suffix when necessary
4118 new definitions relating to tables
4119 * include/grub/efiemu/efiemu.h: new file
4120 * include/grub/efiemu/runtime.h: likewise
4121 * efiemu/prepare.c: likewise
4122 * efiemu/loadcore_common.c: likewise
4123 * efiemu/loadcore64.c: likewise
4124 * efiemu/runtime/efiemu.sh: likewise
4125 * efiemu/runtime/efiemu.S: likewise
4126 * efiemu/runtime/efiemu.c: likewise
4127 * efiemu/runtime/config.h: likewise
4128 * efiemu/prepare32.c: likewise
4129 * efiemu/main.c: likewise
4130 * efiemu/modules/pnvram.c: likewise
4131 * efiemu/modules/i386: likewise
4132 * efiemu/modules/i386/pc: likewise
4133 * efiemu/modules/acpi.c: likewise
4134 * efiemu/i386/pc/cfgtables.c: likewise
4135 * efiemu/i386/loadcore64.c: likewise
4136 * efiemu/i386/loadcore32.c: likewise
4137 * efiemu/prepare64.c: likewise
4138 * efiemu/loadcore.c: likewise
4139 * efiemu/symbols.c: likewise
4140 * efiemu/mm.c: likewise
4141 * efiemu/loadcore32.c: likewise
4143 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4147 * commands/acpi.c: new file
4148 * commands/i386/pc/acpi.c: likewise
4149 * commands/efi/acpi.c: likewise
4150 * include/grub/acpi.h: likewise
4151 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
4152 (acpi_mod_SOURCES): new variable
4153 (acpi_mod_CFLAGS): likewise
4154 (acpi_mod_LDFLAGS): likewise
4155 * conf/i386-efi.rmk: likewise
4156 * conf/x86_64-efi.rmk: likewise
4158 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4160 Missing part from mmap patch
4162 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
4163 (grub_mmap_unregister)
4164 (grub_mmap_free_and_unregister): use grub_mmap_register
4166 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4170 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
4171 * loader/i386/linux.c (find_mmap_size): likewise
4172 (allocate_pages): likewise
4173 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
4174 (grub_fill_multiboot_mmap): likewise
4175 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
4176 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
4177 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
4178 (OPENBSD_MMAP_RESERVED): likewise
4179 * include/grub/i386/pc/memory.h: include grub/memory.h
4180 (grub_lower_mem): removed
4181 (grub_upper_mem): likewise
4182 (GRUB_MACHINE_MEMORY_ACPI): new definition
4183 (GRUB_MACHINE_MEMORY_NVS): likewise
4184 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
4185 (GRUB_MACHINE_MEMORY_HOLE): likewise
4186 (grub_machine_mmap_register): likewise
4187 (grub_machine_mmap_unregister): likewise
4188 (grub_machine_get_upper): likewise
4189 (grub_machine_get_lower): likewise
4190 (grub_machine_get_post64): likewise
4191 * include/grub/i386/efi/memory.h: new file
4192 * include/grub/x86_64/efi/memory.h: likewise
4193 * include/grub/efi/memory.h: likewise
4194 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
4195 (mmap_mod_SOURCES): new variable
4196 (mmap_mod_LDFLAGS): likewise
4197 (mmap_mod_ASFLAGS): likewise
4198 * conf/i386-coreboot.rmk: likewise
4199 * conf/i386-ieee1275.rmk: likewise
4200 * conf/i386-efi.rmk: likewise
4201 * conf/x86_64-efi.rmk: likewise
4202 * include/grub/types.h (UINT_TO_PTR): new macro
4203 (PTR_TO_UINT32): likewise
4204 (PTR_TO_UINT64): likewise
4205 * include/grub/memory.h: new file
4206 * mmap/i386/pc/mmap.c: likewise
4207 * mmap/i386/pc/mmap_helper.S: likewise
4208 * mmap/i386/uppermem.c: likewise
4209 * mmap/mmap.c: likewise
4210 * mmap/efi/mmap.c: likewise
4211 * kern/i386/coreboot/init.c (grub_machine_init): don't use
4213 * kern/i386/pc/init.c (grub_lower_mem): removed variable
4214 (grub_upper_mem): likewise
4215 (grub_machine_init): don't use grub_upper_mem,
4216 make grub_lower_mem local
4217 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
4218 grub_mmap_iterate and grub_mmap_get_upper
4219 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
4221 2009-05-02 Bean <bean123ch@gmail.com>
4223 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
4225 (pkglib_MODULES): Add normal.mod and sh.mod.
4226 (normal_SOURCES): New variable.
4227 (normal_mod_CFLAGS): Likewise.
4228 (normal_mod_LDFLAGS): Likewise.
4229 (sh_mod_SOURCES): Likewise.
4230 (sh_mod_CFLAGS): Likewise.
4231 (sh_mod_LDFLAGS): Likewise.
4233 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
4234 script/sh/lexer.c_DEPENDENCIES.
4235 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
4236 kern/rescue_reader.c and kern/rescue_parser.c.
4237 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
4238 (grub_emu_SOURCES): Change source files.
4239 (pkglib_MODULES): Remove normal.mod.
4240 (normal_SOURCES): Removed.
4241 (normal_mod_CFLAGS): Likewise.
4242 (normal_mod_LDFLAGS): Likewise.
4243 * conf/i386-coreboot.rmk: Likewise.
4244 * conf/i386-efi.rmk: Likewise.
4245 * conf/i386-ieee1276.rmk: Likewise.
4246 * conf/powerpc-ieee1275.rmk: Likewise.
4247 * conf/sparc64-ieee1275.rmk: Likewise.
4248 * conf/x86_64-efi.rmk: Likewise.
4250 * include/grub/command.h (grub_command_execute): New inline function.
4252 * include/grub/menu.h (grub_menu_entry): Removed commands field.
4254 * include/grub/normal.h: Remove <grub/setjmp.h>.
4255 (grub_fs_module_list): Moved to normal/autofs.c.
4256 (grub_exit_env): Removed.
4257 (grub_command_execute): Likewise.
4258 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
4260 (read_command_list): New function declaration.
4261 (read_fs_list): Likewise.
4263 * include/parser.h: Include <grub/reader.h>.
4264 (grub_parser_split_cmdline): Change type of getline parameter.
4265 (grub_parser): New structure.
4266 (grub_parser_class): New variable.
4267 (grub_parser_execute): New function declaration.
4268 (grub_register_rescue_parser): Likewise.
4269 (grub_parser_register): New inline function.
4270 (grub_parser_unregister): Likewise.
4271 (grub_parser_get_current): Likewise.
4272 (grub_parser_set_current): Likewise.
4274 * include/grub/reader.h: New file.
4275 * kern/reader.c: Likewise.
4276 * kern/rescue_parser.c: Likewise.
4277 * kern/rescue_reader.c: Likewise.
4278 * normal/autofs.c: Likewise.
4279 * normal/dyncmd.c: Likewise.
4281 * include/grub/rescue.h: Removed.
4282 * normal/command.h: Likewise.
4284 * include/grub/script.h: Moved to ...
4285 * include/grub/script_sh.h: ... Moved here.
4286 * normal/execute.c: Moved to ...
4287 * script/sh/execute.c: ... Moved here.
4288 * normal/function.c: Moved to ...
4289 * script/sh/function.c: ... Moved here.
4290 * normal/lexer.c: Moved to ...
4291 * script/sh/lexer.c: ... Moved here.
4292 * normal/parser.y: Moved to ...
4293 * script/sh/parser.y: ... Moved here.
4294 * normal/script.c: Moved to ...
4295 * script/sh/script.c: ... Moved here.
4297 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
4299 (grub_exit_env): Removed.
4300 (fs_module_list): Moved to normal/autofs.c.
4301 (grub_file_getline): Don't handle comment here.
4302 (free_menu): Skip removed field entry->commands.
4303 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
4305 (read_config_file): Removed nested parameter, change getline function.
4306 (grub_enter_normal_mode): Removed.
4307 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
4308 (read_command_list): Likewise.
4309 (autoload_fs_module): Moved to normal/autofs.c.
4310 (read_fs_list): Likewise.
4311 (reader_nested): New variable.
4312 (grub_normal_execute): Run parser.sh to switch to sh parser.
4313 (grub_cmd_rescue): Removed.
4314 (cmd_normal): Removed.
4315 (grub_cmd_normal): Unregister itself at the beginning. Don't register
4317 (grub_cmdline_run): New function.
4318 (grub_normal_reader_init): Likewise.
4319 (grub_normal_read_line): Likewise.
4320 (grub_env_write_pager): Likewise.
4321 (cmdline): New variable.
4322 (grub_normal_reader): Likewise.
4323 (GRUB_MOD_INIT): Register normal reader and set as current, register
4324 pager hook, register normal command with grub_register_command_prio,
4325 so that it won't show up in command.lst.
4326 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
4327 grub_fs_autoload_hook.
4329 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
4330 (grub_menu_execute_entry): Replace grub_script_execute with
4331 grub_parser_execute, change parameter to grub_command_execute.
4333 * normal/menu_text.c: Remove <grub/script.h>.
4335 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
4336 and <grub/parser.h>.
4337 (run): Change editor_getline to use new parser interface. Change
4338 parameter to grub_command_execute.
4340 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
4341 <grub/reader.h> and <grub/parser.h>.
4342 (grub_load_normal_mode): Execute normal command.
4343 (grub_main): Call grub_register_core_commands,
4344 grub_register_rescue_parser and grub_register_rescue_reader, use
4345 grub_reader_loop to enter input loop.
4347 * kern/parser.c (grub_parser_split_cmdline): Change type of
4349 (grub_parser_class): New variable.
4350 (grub_parser_execute): New function.
4352 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
4353 * loader/multiboot2.c: Likewise.
4354 * loader/sparc64/ieee1275/linux.c: Likewise.
4356 * util/grub-emu.c (read_command_list): New dummy function.
4358 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4360 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
4361 count to 16 for CCISS and IDA.
4363 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4365 * normal/menu_text.c (grub_wait_after_message): Print a newline
4366 after waiting for user input.
4368 * loader/i386/linux.c: Include `<grub/normal.h>'.
4369 (grub_cmd_linux): Improve the error message about `ask' mode, by
4370 waiting for user input so it's not missed (we can do this, since
4371 user requested interaction).
4373 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4375 Added missing lst to grub-mkrescue
4377 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
4378 and ${input_dir}/parttool.lst
4380 2009-04-30 David S. Miller <davem@davemloft.net>
4382 * util/hostdisk.c (device_is_wholedisk): New function.
4383 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
4384 zero only if device_is_wholedisk() returns true.
4386 * util/hostdisk.c (convert_system_partition_to_system_disk):
4387 Handle virtual disk devices named /dev/vdiskX as found on sparc
4390 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
4391 lettered partition specifier is found, convert to numbered.
4393 2009-04-29 David S. Miller <davem@davemloft.net>
4395 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
4396 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4398 * normal/command.c: Add missing newline at end of file.
4400 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
4402 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
4403 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
4404 grub_ofdisk_read): Likewise, and deal similarly with the fact that
4405 ihandles have a 32-bit type but need to be stored in a "void *".
4407 2009-04-28 Pavel Roskin <proski@gnu.org>
4409 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
4410 not disk. Adjust all dependencies.
4411 (grub_fs_uuid_close): Use grub_device_close(), not
4414 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
4415 parent's partition, don't copy it by reference, as it gets freed
4418 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4420 Preboot hooks support
4422 * commands/boot.c (struct grub_preboot_t): new declaration
4423 (preboots_head): new variable
4424 (preboots_tail): likewise
4425 (grub_loader_register_preboot_hook): new function
4426 (grub_loader_unregister_preboot_hook): likewise
4427 (grub_loader_set): launch preboot hooks
4428 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
4429 (grub_loader_register_preboot_hook): new declaration
4430 (grub_loader_unregister_preboot_hook): likewise
4432 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4436 * disk/scsi.c (grub_scsi_open): added missing cast when
4437 calling grub_dprintf
4439 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4441 Bug and warning fixes
4443 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
4445 * commands/test.c (test_parse): fixed bug with file tests and corrected
4446 declaration of find_file
4448 2009-04-26 Pavel Roskin <proski@gnu.org>
4450 * Makefile.in: Don't install empty manual pages if help2man is
4451 missing. Use help2man option for output, not shell redirection.
4453 2009-04-26 David S. Miller <davem@davemloft.net>
4455 * util/grub-mkdevicemap.c (make_device_map): Add missing
4456 NESTED_FUNC_ATTR to process_device().
4458 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4462 * commands/test.c: rewritten to use bash-like test
4464 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4466 Parttool autoloading and improvements
4468 * Makefile.in (pkglib_DATA): add parttool.lst
4469 (parttool.lst): new target
4470 * genmk.rb: generate parttool-*
4471 (CLEANFILES): add #{parttool}
4472 (PARTTOOLFILES): new variable
4473 * genparttoollist.sh: new file
4474 * parttool/pcpart.c (grub_pcpart_boot): more feedback
4475 (grub_pcpart_type): likewise
4476 * commands/parttool.c (helpmsg): new variable
4477 (grub_cmd_parttool): output help if not enough arguments are supplied
4479 (GRUB_MOD_INIT(parttool)): use helpmsg
4481 2009-04-24 David S. Miller <davem@davemloft.net>
4483 Avoiding opening same device multiple times in device iterator.
4485 * kern/device.c: (grub_device_iterate): Define struct part_ent,
4486 and use it to build a list of partitions in iterate_disk() and
4487 iterate_partition().
4489 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
4492 * disk/ieee1275/nand.c (grub_nand_iterate): Return
4493 grub_devalias_iterate() result instead of unconditional 0.
4494 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
4495 Also, capture hook return value, either directly or via
4496 grub_children_iterate(), and propagate to caller.
4497 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
4498 grub_children_iterate): Return value is now 'int' instead of
4500 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
4501 like a proper iterator, stopping when hooks return non-zero.
4502 (grub_devalias_iterate): Likewise.
4504 2009-04-23 David S. Miller <davem@davemloft.net>
4506 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
4508 2009-04-22 David S. Miller <davem@davemloft.net>
4510 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
4511 is larger than address_cells, use that value for address_cells too.
4513 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
4514 IEEE1275_MAX_PATH_LEN): Define.
4515 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
4516 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
4517 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
4518 'devtype'. Explicitly NULL terminate devalias expansion.
4520 * util/sparc64/ieee1275/misc.c: New file.
4521 * util/sparc64/ieee1275/grub-setup.c: New file.
4522 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
4523 * util/sparc64/ieee1275/grub-mkimage.c: New file.
4524 * util/sparc64/ieee1275/grub-install.in: New file.
4525 * util/ieee1275/ofpath.c: New file.
4526 * util/ieee1275/devicemap.c: New file.
4527 * util/devicemap.c: New file.
4528 * util/deviceiter.c: New file.
4529 * kern/sparc64/ieee1275/init.c: New file.
4530 * include/grub/util/ofpath.h: New file.
4531 * include/grub/util/deviceiter.h: New file.
4532 * util/grub-mkdevicemap.c: Include deviceiter.h.
4533 Implement using grub_util_emit_devicemap_entry and
4534 grub_util_iterate_devices.
4535 * conf/i386-corebook.rmk: Build util/deviceiter.c and
4536 util/devicemap.c into grub-mkdevicemap
4537 * conf/i386-efi.rmk: Likewise.
4538 * conf/i386-ieee1275.rmk: Likewise.
4539 * conf/i386-pc.rmk: Likewise.
4540 * conf/powerpc-ieee1275.rmk: Likewise.
4541 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
4542 images and installation utilities. Build kernel as image
4543 instead of as elf binary. Use common rules as much as possible.
4545 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4547 Correct GPT definition
4549 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4552 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
4554 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
4556 2009-04-19 David S. Miller <davem@davemloft.net>
4558 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
4559 (grub_rescue_cmd_linux): Rename to...
4560 (grub_cmd_linux): and fix prototype.
4561 (grub_rescue_cmd_initrd): Rename to...
4562 (grub_cmd_initrd): and fix prototype.
4563 (cmd_linux, cmd_initrd): New.
4564 (GRUB_MOD_INIT(linux)): Use grub_register_command().
4565 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
4567 2009-04-17 Pavel Roskin <proski@gnu.org>
4569 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
4571 (grub_ohci_transfer): Likewise.
4573 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
4575 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
4576 return without a value. Fix inconsistent indentation.
4578 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
4579 match struct grub_fs.
4581 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
4582 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
4583 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
4584 * commands/lspci.c (grub_lspci_iter): Likewise.
4586 2009-04-16 Bean <bean123ch@gmail.com>
4588 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
4591 2009-04-15 Pavel Roskin <proski@gnu.org>
4593 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
4594 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
4595 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
4598 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4600 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
4601 that no multiple data or metadata areas are supported and `Unknown
4604 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4606 Move loader out of the kernel
4608 * kern/loader.c: moved to ...
4609 * commands/boot.c: ... moved here
4610 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
4611 * commands/boot.c (grub_cmd_boot): moved here. All users updated
4612 * include/grub/kernel.h (grub_machine_fini): export
4613 * include/grub/loader.h (grub_loader_is_loaded): update declaration
4614 (grub_loader_set): likewise
4615 (grub_loader_unset): likewise
4616 (grub_loader_boot): likewise
4617 * conf/common.rmk: new module boot.mod
4618 (pkglib_MODULES): add boot.mod
4619 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
4620 (grub_emu_SOURCES): likewise
4621 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
4622 (grub_emu_SOURCES): likewise
4623 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
4624 (grub_emu_SOURCES): likewise
4625 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
4626 (grub_emu_SOURCES): likewise
4627 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
4628 (grub_emu_SOURCES): likewise
4629 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
4630 (grub_emu_SOURCES): likewise
4631 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
4632 (grub_emu_SOURCES): likewise
4634 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4636 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
4638 * kern/misc.c (grub_itoa): Removed function
4639 (grub_ltoa): likewise
4640 (grub_vsprintf): use grub_lltoa
4642 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4646 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
4647 * conf/i386-coreboot.rmk: likewise
4648 * conf/i386-ieee1275.rmk: likewise
4649 * conf/powerpc-ieee1275.rmk: likewise
4651 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4653 * INSTALL: Add that `./autogen.sh' needs to be run before
4656 2009-04-14 Bean <bean123ch@gmail.com>
4658 * Makefile.in (pkglib_DATA): Add handler.lst.
4659 (handler.lst): New rule.
4661 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
4662 * conf/i386-coreboot.rmk: Likewise.
4663 * conf/i386-ieee1275.rmk: Likewise.
4664 * conf/i386-efi.rmk: Likewise.
4665 * conf/x86_64-efi.rmk: Likewise.
4666 * conf/powerpc-ieee1275.rmk: Likewise.
4667 * conf/sparc64-ieee1275.rmk: Likewise.
4669 * genhandlerlist.sh: New file.
4671 * genmk.rb: Add rules to generate handler.lst.
4673 * include/grub/normal.h (grub_file_getline): New function definition.
4674 (read_handler_list): Likewise.
4675 (free_handler_list): Likewise.
4677 * include/grub/term.h (grub_term_register_input): Add name parameter
4678 for auto generation of handler.lst.
4679 (grub_term_register_output): Likewise.
4681 * normal/handler.c: New file.
4683 * normal/main.c (get_line): Renamed to grub_file_getline.
4684 (read_config_file): Use the newly renamed grub_file_getline.
4685 (read_command_list): Likewise.
4686 (read_fs_list): Likewise.
4687 (grub_normal_execute): Call read_handler_list to parse handler.lst.
4688 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
4690 * term/efi/console.c (grub_console_init): Add name parameter for auto
4691 generation of handler.lst.
4692 * term/gfxterm.c: Likewise.
4693 * term/i386/pc/at_keyboard.c: Likewise.
4694 * term/i386/pc/console.c: Likewise.
4695 * term/i386/pc/serial.c: Likewise.
4696 * term/i386/pc/vesafb.c: Likewise.
4697 * term/i386/pc/vga.c: Likewise.
4698 * term/i386/pc/vga_text.c: Likewise.
4699 * term/ieee1275/ofconsole.c: Likewise.
4700 * term/usb_keyboard.c: Likewise.
4702 2009-04-14 Bean <bean123ch@gmail.com>
4704 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
4705 properly with null character.
4707 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4709 * configure: Remove.
4710 * config.h.in: Likewise.
4711 * stamp-h.in: Likewise.
4712 * DISTLIST: Likewise.
4713 * conf/common.mk: Likewise.
4714 * conf/i386-coreboot.mk: Likewise.
4715 * conf/i386-efi.mk: Likewise.
4716 * conf/i386-ieee1275.mk: Likewise.
4717 * conf/i386.mk: Likewise.
4718 * conf/i386-pc.mk: Likewise.
4719 * conf/powerpc-ieee1275.mk: Likewise.
4720 * conf/sparc64-ieee1275.mk: Likewise.
4721 * conf/x86_64-efi.mk: Likewise.
4723 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
4726 2009-04-14 John Stanley <jpsinthemix@verizon.net>
4727 David S. Miller <davem@davemloft.net>
4729 * util/hostdisk.c (make_device_name): Fix buffer length
4732 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4734 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
4735 <sys/param.h> and <sys/sysctl.h>.
4736 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
4737 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
4738 opening the device and reset them afterwards.
4740 2009-04-13 Pavel Roskin <proski@gnu.org>
4742 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
4743 Reported by John Stanley <jpsinthemix@verizon.net>
4745 2009-04-13 Robert Millan <rmh@aybabtu.com>
4747 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
4748 that name for menuentries when appropriate.
4750 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4752 * util/grub.d/10_freebsd.in: Add a missing `fi'.
4754 2009-04-13 Robert Millan <rmh@aybabtu.com>
4756 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
4757 to Linux, simply abort telling the user it's no longer supported.
4759 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4761 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
4762 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
4763 `freebsd_loadenv' only when devices.hints exist.
4765 2009-04-13 Pavel Roskin <proski@gnu.org>
4767 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
4769 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4771 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
4773 (grub_drive): Likewise.
4775 2009-04-13 David S. Miller <davem@davemloft.net>
4777 * kern/sparc64/ieee1275/ieee1275.c: New file.
4778 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
4779 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
4780 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
4781 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
4782 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
4783 grub_ieee1275_alloc_physmem): Declare new exported functions.
4785 * include/grub/sparc64/ieee1275/loader.h: New file.
4786 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4787 * include/grub/sparc64/kernel.h: Likewise.
4788 * loader/sparc64/ieee1275/linux.c: Likewise.
4790 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
4791 (grub_fstest_SOURCES): Likewise.
4793 * util/hostdisk.c (make_device_name): Do not make any assumptions
4794 about the length of drive names.
4796 * kern/dl.c (grub_dl_load_file): Close file immediately when
4797 we are done using it.
4799 2009-04-12 David S. Miller <davem@davemloft.net>
4801 * kern/misc.c (grub_ltoa): Fix cast when handling negative
4802 values. Noticed by Pavel Roskin.
4804 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
4807 * genmk.rb: Add more flexible image type specification, also
4808 pass --strip-unneeded to objcopy.
4809 * conf/i386-pc.rmk: Use *_FORMAT.
4810 * conf/i386-pc.mk: Rebuilt.
4812 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
4813 (OFDISK_HASH_SZ): Define.
4814 (ofdisk_hash): New hash table.
4815 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
4816 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
4817 instead of device phandle which is not unique.
4819 * kern/sparc64/ieee1275/init.c: Delete, replace with...
4820 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
4821 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
4822 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
4823 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
4824 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
4825 GRUB_KERNEL_MACHINE_DATA_END): Define.
4826 (grub_kernel_image_size, grub_total_module_size): Declare.
4828 2009-04-12 Pavel Roskin <proski@gnu.org>
4830 * configure.ac: Change the logic when we check for target tools.
4831 Do it when the target is specified and it's different from the
4832 specified value of the host.
4834 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
4836 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
4837 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
4838 GNU/kFreeBSD. Check if a device is a character device. Use
4839 DIOCGMEDIASIZE to get the size.
4840 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
4841 support for GNU/kFreeBSD.
4842 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: 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_kernel__]: Check if ENT
4847 is a character device instead of a block device.
4849 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
4850 is a character device instead of a block device.
4852 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
4854 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
4855 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
4856 FreeBSD. Check if a device is a character device. Use
4857 DIOCGMEDIASIZE to get the size.
4858 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
4859 support for FreeBSD.
4860 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
4861 is a character device instead of a block device. Add support for
4862 FreeBSD device names.
4864 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
4865 a character device instead of a block device.
4866 (grub_util_check_char_device): New function.
4868 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
4869 a character device instead of a block device.
4871 * include/grub/util/getroot.h (grub_util_check_char_device): New
4874 2009-04-11 David S. Miller <davem@davemloft.net>
4876 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
4878 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
4879 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
4880 function, if present.
4881 (__bswapdi2): Likewise.
4883 * include/grub/sparc64/ieee1275/boot.h: New file.
4884 * boot/sparc64/ieee1275/boot.S: Likewise.
4885 * boot/sparc64/ieee1275/diskboot.S: Likewise.
4887 * kern/misc.c (grub_ltoa): New function.
4888 (grub_vsprintf): Use it to format 'long' integers.
4890 2009-04-10 David S. Miller <davem@davemloft.net>
4892 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
4893 slots are of type grub_ieee1275_cell_t.
4894 (grub_nand_read): Likewise.
4895 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
4896 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
4897 macros are used to compare values in arg/ret block of the call.
4898 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
4899 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
4900 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
4901 grub_ieee1275_instance_to_path, grub_ieee1275_write,
4902 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
4903 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
4904 grub_ieee1275_close, grub_ieee1275_set_property,
4905 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
4906 grub_ieee1275_cell_t.
4907 * kern/ieee1275/openfw.c (grub_map): Likewise.
4908 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
4909 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
4911 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
4912 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
4913 (grub_devalias_iterate): Likewise.
4915 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4919 * fs/ufs.c (INODE_NBLOCKS): new definition
4920 (struct grub_ufs_dirent): added fields for non-BSD dirents
4921 (grub_ufs_get_file_block): fixed double indirect handling
4922 (grub_ufs_lookup_symlink): use more robust way to determine whether
4924 (grub_ufs_find_file): support for non-BSD dirents
4925 (grub_ufs_dir): support for non-BSD dirents
4927 2009-04-10 Bean <bean123ch@gnail.com>
4929 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
4930 attribute, otherwise the size would be wrong for i386 platform.
4932 * include/grub/pci.h (grub_pci_read_word): New inline function.
4933 (grub_pci_read_byte): Likewise.
4934 (grub_pci_write): Likewise.
4935 (grub_pci_write_word): Likewise.
4936 (grub_pci_write_byte): Likewise.
4938 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
4940 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
4941 (find_framebuf): Scan pci to locate the frame buffer address.
4943 * commands/efi/fixvideo.c: New file.
4945 * commands/efi/loadbios.c: Likewise.
4947 * commands/memrw.c: Likewise.
4949 * util/grub-dumpbios.in: Likewise.
4951 * conf/common.rmk (grub-dumpbios): New utility.
4952 (pkglib_MODULES): New module memrw.mod.
4953 (memrw_mod_SOURCE): New macro.
4954 (memrw_mod_CFLAGS): Likewise.
4955 (memrw_mod_LDFLAGS): Likewise.
4957 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
4959 (loadbios_mod_SOURCE): New macro.
4960 (loadbios_mod_CFLAGS): Likewise.
4961 (loadbios_mod_LDFLAGS): Likewise.
4962 (fixvideo_mod_SOURCE): Likewise.
4963 (fixvideo_mod_CFLAGS): Likewise.
4964 (fixvideo_mod_LDFLAGS): Likewise.
4966 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
4968 (loadbios_mod_SOURCE): New macro.
4969 (loadbios_mod_CFLAGS): Likewise.
4970 (loadbios_mod_LDFLAGS): Likewise.
4971 (fixvideo_mod_SOURCE): Likewise.
4972 (fixvideo_mod_CFLAGS): Likewise.
4973 (fixvideo_mod_LDFLAGS): Likewise.
4975 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
4977 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
4979 2009-04-07 David S. Miller <davem@davemloft.net>
4981 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
4982 support for R_SPARC_OLO10 relocations. Fix compile warning for
4983 R_SPARC_WDISP30 case.
4984 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
4986 2009-04-06 Pavel Roskin <proski@gnu.org>
4988 * include/grub/misc.h (ARRAY_SIZE): New macro.
4989 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
4991 * loader/i386/linux.c (allocate_pages): Use free_pages().
4992 (grub_linux_unload): Don't use free_pages().
4993 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
4994 wrong index. Treat all other modes as text modes.
4995 (grub_cmd_linux): Initialize vid_mode unconditionally to
4996 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
4998 * commands/help.c (print_command_help): Use cmd->prio, not
4999 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
5001 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5005 * parttool/pcpart.c: new file
5006 * commands/parttool.c: likewise
5007 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
5008 (parttool_mod_SOURCES): new variable
5009 (parttool_mod_CFLAGS): likewise
5010 (parttool_mod_LDFLAGS): likewise
5011 (pcpart_mod_SOURCES): likewise
5012 (pcpart_mod_CFLAGS): likewise
5013 (pcpart_mod_LDFLAGS): likewise
5014 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
5015 and parttool/pcpart.c
5016 * conf/i386-efi.rmk: likewise
5017 * conf/i386-ieee1275.rmk: likewise
5018 * conf/i386-pc.rmk: likewise
5019 * conf/powerpc-ieee1275.rmk: likewise
5020 * conf/sparc64-ieee1275.rmk: likewise
5021 * conf/x86_64-ieee1275.rmk: likewise
5023 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5025 Support for mtime and further expandability of dir command
5027 * include/grub/lib/datetime.h: moved to ...
5028 * include/grub/datetime.h: ... moved here and added
5029 declaration of grub_unixtime2datetime. All users updated
5030 * include/grub/fs.h: new syntax for dir and mtime functions in
5032 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
5033 and GRUB_FSHELP_FLAGS_MASK
5034 * commands/ls.c (grub_ls_list_files): Write mtime in long format
5035 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
5036 (grub_ext2_mtime): new function
5037 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
5038 (grub_hfsplus_mtime): new function
5039 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
5040 (GRUB_UFS_ATTR_FILE): likewise
5041 (GRUB_UFS_ATTR_LNK): likewise
5042 (struct grub_ufs_sblock): new fields mtime
5043 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
5045 (grub_ufs_dir): mtime support
5046 (grub_ufs_mtime): new function
5047 * fs/affs.c (grub_affs_dir): use new dir syntax
5048 * fs/afs.c (grub_afs_dir): likewise
5049 * fs/cpio.c (grub_cpio_dir): likewise
5050 * fs/fat.c (grub_fat_find_dir): likewise
5051 * fs/hfs.c (grub_hfs_dir): likewise
5052 * fs/iso9660.c (grub_iso9660_dir): likewise
5053 * fs/jfs.c (grub_jfs_dir): likewise
5054 * fs/minix.c (grub_minix_dir): likewise
5055 * fs/ntfs.c (grub_ntfs_dir): likewise
5056 * fs/reiserfs.c (grub_reiserfs_dir): likewise
5057 * fs/sfs.c (grub_sfs_dir): likewise
5058 * fs/xfs.c (grub_xfs_dir): likewise
5059 * util/hostfs.c (grub_hostfs_dir): likewise
5060 * lib/datetime.c: moved to ...
5061 * normal/datetime.c: ... moved here
5062 (grub_unixtime2datetime): new function
5063 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
5064 * normal/completion.c (iterate_dir): use new dir syntax
5065 * normal/misc.c (grub_normal_print_device_info): tell the
5066 last modification time of a volume
5067 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
5068 * conf/common.rmk: added lib/datetime.c to ls.mod
5069 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
5070 (normal_mod_SOURCES): likewise
5071 (datetime_mod_SOURCES): Removed lib/datetime.c
5072 * conf/i386-efi.rmk: likewise
5073 * conf/i386-ieee1275.rmk: likewise
5074 * conf/i386-pc.rmk: likewise
5075 * conf/powerpc-ieee1275.rmk: likewise
5076 * conf/sparc64-ieee1275.rmk: likewise
5077 * conf/x86_64-efi.rmk: likewise
5079 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5081 Trim trailing spaces in FAT label and support mtools-like labels
5083 * fs/fat.c (grub_fat_iterate_dir): New function based
5084 on grub_fat_find_dir
5085 (grub_fat_find_dir): use grub_fat_iterate_dir
5086 (grub_fat_label): likewise
5088 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5090 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
5092 remove extraneous kernel_elf_HEADERS
5094 2009-04-04 Bean <bean123ch@gnail.com>
5096 * include/grub/util/misc.h: Add dummy function fsync for mingw.
5098 * util/misc.c: Likewise.
5100 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
5102 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
5103 instead of grub_printf.
5105 2009-04-03 Robert Millan <rmh@aybabtu.com>
5107 * loader/i386/linux.c (grub_linux_setup_video): Fill
5108 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
5109 values from `mode info' structure instead of hardcoded
5112 2009-04-01 Pavel Roskin <proski@gnu.org>
5114 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
5116 * genmk.rb: Likewise.
5117 * configure.ac: Likewise.
5119 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
5121 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
5122 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
5124 2009-04-01 David S. Miller <davem@davemloft.net>
5126 * normal/sparc64/setjmp.S: Fix setjmp implementation.
5127 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5128 (grub_setjmp): Mark with 'returns_twice' attribute.
5129 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
5130 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
5131 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
5133 2009-04-01 Robert Millan <rmh@aybabtu.com>
5135 Reapply fix from 2008-07-28 which was accidentally reverted; also
5136 perform the same fix to a similar check in same function.
5138 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
5139 with the same number are found, just use issue a warning with
5140 grub_dprintf(), as this error has been reported to be non-fatal.
5142 2009-03-31 Pavel Roskin <proski@gnu.org>
5144 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
5145 for cross-compilation.
5147 2009-03-30 Robert Millan <rmh@aybabtu.com>
5149 Fix i386-ieee1275 build.
5151 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
5154 2009-03-30 Pavel Roskin <proski@gnu.org>
5156 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
5157 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
5158 zero-terminated, rely only on the strlen value. Fix comparison
5159 of strings differing in length.
5161 2009-03-30 Robert Millan <rmh@aybabtu.com>
5163 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
5164 checking for abi version. Improve error messages on BIOS to notify
5165 user about `linux16' command.
5167 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5171 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
5172 in case of collision
5173 * disk/scsi.c (grub_scsi_open): free scsi in case of error
5175 2009-03-29 Robert Millan <rmh@aybabtu.com>
5177 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
5178 set `vid_mode' accordingly.
5179 (grub_linux_boot): Process `vid_mode' and set video mode.
5181 2009-03-29 Robert Millan <rmh@aybabtu.com>
5183 * util/grub.d/10_linux.in (linux_entry): New function.
5184 Factorize generation of Linux boot entries.
5186 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
5188 Make the format of Environment Block plain text. The boot loader
5189 part is not tested well yet.
5191 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
5194 (usage): Remove "info" and "clear". Add "unset". Update the
5195 description of "set", as this does not delete variables any
5197 (create_envblk_file): Complete rewrite.
5198 (open_envblk_file): Likewise.
5199 (cmd_info): Removed.
5200 (cmd_list): Likewise.
5201 (cmd_set): Likewise.
5202 (cmd_clear): Likewise.
5203 (list_variables): New function.
5204 (write_envblk): Likewise.
5205 (set_variables): Likewise.
5206 (unset_variables): Likewise.
5207 (main): Complete rewrite.
5209 * commands/loadenv.c (buffer): Removed.
5211 (open_envblk_file): New function.
5212 (read_envblk_file): Complete rewrite.
5213 (grub_cmd_load_env): Likewise.
5214 (grub_cmd_list_env): Likewise.
5215 (struct blocklist): New struct.
5216 (free_blocklists): New function.
5217 (check_blocklists): Likewise.
5218 (write_blocklists): Likewise.
5219 (grub_cmd_save_env): Complete rewrite.
5221 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
5222 a plain text signature.
5223 (GRUB_ENVBLK_MAXLEN): Removed.
5224 (struct grub_envblk): Complete rewrite.
5225 (grub_envblk_find): Removed.
5226 (grub_envblk_insert): Likewise.
5227 (grub_envblk_open): New prototype.
5228 (grub_envblk_set): Likewise.
5229 (grub_envblk_delete): Put const to VALUE.
5230 (grub_envblk_iterate): Put const to NAME and VALUE.
5231 (grub_envblk_close): New prototype.
5232 (grub_envblk_buffer): New inline function.
5233 (grub_envblk_size): Likewise.
5235 * lib/envblk.c: Include grub/mm.h.
5236 (grub_env_find): Removed.
5237 (grub_envblk_open): New function.
5238 (grub_envblk_close): Likewise.
5239 (escaped_value_len): Likewise.
5240 (find_next_line): Likewise.
5241 (grub_envblk_insert): Removed.
5242 (grub_envblk_set): New function.
5243 (grub_envblk_delete): Complete rewrite.
5244 (grub_envblk_iterate): Likewise.
5246 2009-03-28 Robert Millan <rmh@aybabtu.com>
5248 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
5249 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
5250 variables. Use 16-bit loader.
5251 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
5253 * kern/i386/loader.S (grub_linux_boot): Rename to ...
5254 (grub_linux16_boot): ... this. Update all users.
5255 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
5256 (grub_linux_boot): ... this. Update all users.
5258 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
5259 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
5260 commands to `linux16' and `initrd16'.
5261 (GRUB_MOD_FINI(linux)): Rename to ...
5262 (GRUB_MOD_FINI(linux16)): ... this.
5264 2009-03-24 Pavel Roskin <proski@gnu.org>
5266 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
5267 not just for compilation.
5269 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
5271 Move multiboot helper out of kernel
5273 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
5274 `loader/i386/multiboot_helper.S'.
5275 * conf/i386-coreboot.rmk: Likewise
5276 * conf/i386-ieee1275.rmk: Likewise
5278 * kern/i386/loader.S: Move multiboot helpers from here...
5279 * loader/i386/multiboot_helper.S: ...moved here
5280 * include/grub/i386/loader.h: Move declarations of multiboot
5281 helpers from here...
5282 * include/grub/i386/multiboot.h: ...moved here
5283 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
5285 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5287 * kern/env.c (grub_env_context_open): Added an argument to specify
5288 whether a new context inherits exported variables from current
5289 one. This is useful when making a sandbox to interpret a config
5291 All callers updated.
5293 * include/grub/env.h (grub_env_context_open): Updated the prototype.
5295 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5297 * kern/env.c (grub_env_context_close): Fix memory leaks.
5299 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5301 * normal/main.c (grub_normal_execute): Added an argument
5302 BATCH to specify if an interactive interface should be provided
5303 after reading a config file.
5304 All callers updated.
5305 (read_command_list): Prevent being executed twice.
5306 (read_fs_list): Likewise.
5308 * include/grub/normal.h (grub_normal_execute): Updated the
5311 2009-03-22 Pavel Roskin <proski@gno.org>
5313 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
5315 * kern/i386/pc/startup.S: Likewise.
5316 * kern/i386/efi/startup.S: Likewise.
5317 * kern/i386/ieee1275/startup.S: Likewise.
5318 * kern/i386/coreboot/startup.S: Likewise.
5319 * kern/x86_64/efi/startup.S: Likewise.
5321 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
5322 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
5323 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
5325 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
5327 Bugfixes in multiboot for bugs uncovered by solaris kernel.
5329 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
5331 Use vaddr of correct segment for entry_point.
5333 2009-03-21 Bean <bean123ch@gmail.com>
5335 * commands/blocklist.c: Add include file <grub/command.h>, remove
5336 <grub/normal.h> and <grub/arg.h>.
5337 (grub_cmd_blocklist): Use the new command interface.
5338 (GRUB_MOD_INIT): Likewise.
5339 (GRUB_MOD_FINI): Likewise.
5340 * commands/boot.c: Likewise.
5341 * commands/cat.c: Likewise.
5342 * commands/cmp.c: Likewise.
5343 * commands/configfile.c: Likewise.
5344 * commands/crc.c: Likewise.
5345 * commands/echo.c: Likewise.
5346 * commands/halt.c: Likewise.
5347 * commands/handler.c: Likewise.
5348 * commands/hdparm.c: Likewise.
5349 * commands/help.c: Likewise.
5350 * commands/hexdump.c: Likewise.
5351 * commands/loadenv.c: Likewise.
5352 * commands/ls.c: Likewise.
5353 * commands/lsmmap.c: Likewise.
5354 * commands/lspci.c: Likewise.
5355 * commands/loadenv.c: Likewise.
5356 * commands/read.c: Likewise.
5357 * commands/reboot.c: Likewise.
5358 * commands/search.c: Likewise.
5359 * commands/sleep.c: Likewise.
5360 * commands/test.c: Likewise.
5361 * commands/usbtest.c: Likewise.
5362 * commands/videotest.c: Likewise.
5363 * commands/i386/cpuid.c: Likewise.
5364 * commands/i386/pc/halt.c: Likewise.
5365 * commands/i386/pc/play.c: Likewise.
5366 * commands/i386/pc/pxecmd.c: Likewise.
5367 * commands/i386/pc/vbeinfo.c: Likewise.
5368 * commands/i386/pc/vbetest.c: Likewise.
5369 * commands/ieee1275/suspend.c: Likewise.
5370 * disk/loopback.c: Likewise.
5371 * font/font_cmd.c: Likewise.
5372 * hello/hello.c: Likewise.
5373 * loader/efi/appleloader.c: Likewise.
5374 * loader/efi/chainloader.c: Likewise.
5375 * loader/i386/bsd.c: Likewise.
5376 * loader/i386/efi/linux.c: Likewise.
5377 * loader/i386/ieee1275/linux.c: Likewise.
5378 * loader/i386/linux.c: Likewise.
5379 * loader/i386/pc/chainloader.c: Likewise.
5380 * loader/i386/pc/linux.c: Likewise.
5381 * loader/powerpc/ieee1275/linux.c: Likewise.
5382 * loader/multiboot_loader.c: Likewise.
5383 * term/gfxterm.c: Likewise.
5384 * term/i386/pc/serial.c: Likewise.
5385 * term/terminfo.c: Likewise.
5387 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
5388 * term/i386/pc/vga.c: Likewise.
5389 * video/readers/jpeg.c: Likewise.
5390 * video/readers/png.c: Likewise.
5391 * video/readers/tga.c: Likewise.
5393 * util/grub-fstest (cmd_loopback): Removed.
5394 (cmd_blocklist): Likewise.
5396 (grub_register_command): Likewise.
5397 (grub_unregister_command): Likewise.
5398 (execute_command): Use grub_command_find to locate command and execute
5401 * include/grub/efi/chainloader.h: Removed.
5402 * loader/efi/chainloader_normal.c: Likewise.
5403 * loader/i386/bsd_normal.c: Likewise.
5404 * loader/i386/pc/chainloader_normal.c: Likewise.
5405 * loader/i386/pc/multiboot_normal.c: Likewise.
5406 * loader/linux_normal.c: Likewise.
5407 * loader/multiboot_loader_normal.c: Likewise.
5408 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
5410 * gencmdlist.sh: Scan new registration command grub_register_extcmd
5411 and grub_register_command_p1.
5413 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
5414 kern/command.c, lib/arg.c and commands/extcmd.c.
5415 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
5416 (minicmd_mod_SOURCES): New variable.
5417 (minicmd_mod_CFLAGS): Likewise.
5418 (minicmd_mod_LDFLAGS): Likewise.
5419 (extcmd_mod_SOURCES): Likewise.
5420 (extcmd_mod_CFLAGS): Likewise.
5421 (extcmd_mod_LDFLAGS): Likewise.
5422 (boot_mod_SOURCES): Removed.
5423 (boot_mod_CFLAGS): Likewise.
5424 (boot_mod_LDFLAGS): Likewise.
5426 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
5428 (kernel_img_HEADERS): Add command.h.
5429 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
5430 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
5432 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
5433 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
5434 remove the corresponding normal mode command.
5435 (normal_mod_SOURCES): Remove normal/arg.c.
5436 * conf/i386-coreboot.rmk: Likewise.
5437 * conf/i386-efi.rmk: Likewise.
5438 * conf/i386-ieee1275.rmk: Likewise.
5439 * conf/powerpc-ieee1275.rmk: Likewise.
5440 * conf/x86_64-efi.rmk: Likewise.
5442 * include/grub/arg.h: Move from here ...
5443 * include/grub/lib/arg.h: ... to here.
5445 * normal/arg.c: Move from here ...
5446 * lib/arg.c: ... to here.
5448 * commands/extcmd.c: New file.
5449 * commands/minicmd.c: Likewise.
5450 * include/grub/command.h: Likewise.
5451 * include/grub/extcmd.h: Likewise.
5452 * kern/command.c: Likewise.
5453 * kern/corecmd.c: Likewise.
5455 * kern/list.c (grub_list_iterate): Return int instead of void.
5456 (grub_list_insert): New function.
5457 (grub_prio_list_insert): Likewise.
5459 * kern/rescue.c (grub_rescue_command): Removed.
5460 (grub_rescue_command_list): Likewise.
5461 (grub_rescue_register_command): Likewise.
5462 (grub_rescue_unregister_command): Likewise.
5463 (grub_rescue_cmd_boot): Move to minicmd.c
5464 (grub_rescue_cmd_help): Likewise.
5465 (grub_rescue_cmd_info): Likewise.
5466 (grub_rescue_cmd_boot): Likewise.
5467 (grub_rescue_cmd_testload): Likewise.
5468 (grub_rescue_cmd_dump): Likewise.
5469 (grub_rescue_cmd_rmmod): Likewise.
5470 (grub_rescue_cmd_lsmod): Likewise.
5471 (grub_rescue_cmd_exit): Likewise.
5472 (grub_rescue_print_devices): Moved to corecmd.c.
5473 (grub_rescue_print_files): Likewise.
5474 (grub_rescue_cmd_ls): Likewise.
5475 (grub_rescue_cmd_insmod): Likewise.
5476 (grub_rescue_cmd_set): Likewise.
5477 (grub_rescue_cmd_unset): Likewise.
5478 (attempt_normal_mode): Use grub_command_find to get normal module.
5479 (grub_enter_rescue_mode): Use grub_register_core_commands to register
5480 commands, remove grub_rescue_register_command calls.
5482 * normal/command.c (grub_register_command): Removed.
5483 (grub_unregister_command): Likewise.
5484 (grub_command_find): Likewise.
5485 (grub_iterate_commands): Likewise.
5486 (rescue_command): Likewise.
5487 (export_command): Moved to corecmd.c.
5488 (set_command): Removed.
5489 (unset_command): Likewise.
5490 (insmod_command): Likewise.
5491 (rmmod_command): Likewise.
5492 (lsmod_command): Likewise.
5493 (grub_command_init): Likewise.
5495 * normal/completion.c (iterate_command): Use cmd->prio to check for
5497 (complete_arguments): Use grub_extcmd_t structure to find options.
5498 (grub_normal_do_completion): Change function grub_iterate_commands to
5499 grub_command_iterate.
5501 * normal/execute.c (grub_script_execute_cmd): No need to parse
5504 * normal/main.c (grub_dyncmd_dispatcher): New function.
5505 (read_command_list): Register unload commands as dyncmd.
5506 (grub_cmd_normal): Use new command interface, register rescue,
5507 unregister normal at entry, register normal, unregister rescue at exit.
5509 * include/grub/list.h (grub_list_test_t): New type.
5510 (grub_list_iterate): Return int instead of void.
5511 (grub_list_insert): New function.
5512 (GRUB_AS_NAMED_LIST_P): New macro.
5513 (GRUB_AS_PRIO_LIST): Likewise.
5514 (GRUB_AS_PRIO_LIST_P): Likewise.
5515 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
5516 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
5517 (grub_prio_list): New structure.
5518 (grub_prio_list_insert): New function.
5519 (grub_prio_list_remove): New inline function.
5521 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
5522 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
5523 (GRUB_COMMAND_FLAG_MENU): Likewise.
5524 (GRUB_COMMAND_FLAG_BOTH): Likewise.
5525 (GRUB_COMMAND_FLAG_TITLE): Likewise.
5526 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
5527 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
5528 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
5529 (grub_command): Likewise.
5530 (grub_register_command): Likewise.
5531 (grub_command_find): Likewise.
5532 (grub_iterate_commands): Likewise.
5533 (grub_command_init): Likewise.
5534 (grub_arg_parse): Likewise.
5535 (grub_arg_show_help): Likewise.
5537 * include/grub/rescue.h (grub_rescue_register_command): Removed.
5538 (grub_rescue_unregister_command): Likewise.
5540 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
5541 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
5542 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
5544 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
5545 grub_rescue_cmd_initrd.
5546 * include/grub/i386/loader.h: Likewise.
5547 * include/grub/x86_64/loader.h: Likewise.
5549 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
5551 2009-03-21 Bean <bean123ch@gmail.com>
5553 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
5554 instead of stat in mingw environment.
5556 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
5558 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
5560 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
5563 2009-03-21 Bean <bean123ch@gmail.com>
5565 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
5568 2009-03-18 Michel Dänzer <michel@daenzer.net>
5570 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
5571 checking inode flags for EXT4_EXTENTS_FLAG.
5573 2009-03-18 Robert Millan <rmh@aybabtu.com>
5575 * loader/i386/linux.c: Include `<grub/video.h>' and
5576 `<grub/i386/pc/vbe.h>'..
5577 (grub_linux_setup_video): New function. Loosely based on the EFI one.
5578 (grub_linux32_boot): Attempt to configure video settings with
5579 grub_linux_setup_video().
5580 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
5581 to avoid grub_console_fini() which would step out of graphical mode
5584 2009-03-14 Robert Millan <rmh@aybabtu.com>
5586 Fix build on powerpc.
5587 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
5589 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
5591 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
5592 background image command.
5594 2009-03-12 Colin D Bennett <colin@gibibit.com>
5596 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
5597 (grub_gfxterm_putchar): Extract pairs of identical calls to
5598 draw_cursor out of conditional blocks.
5600 2009-03-11 Pavel Roskin <proski@gnu.org>
5602 * fs/hfs.c (grub_hfs_strncasecmp): New function.
5603 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
5605 2009-03-11 Robert Millan <rmh@aybabtu.com>
5607 * loader/i386/multiboot_elfxx.c
5608 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
5610 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
5612 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
5615 2009-03-11 Robert Millan <rmh@aybabtu.com>
5617 * loader/i386/multiboot.c (code_size): New variable.
5618 (grub_multiboot): Define offsets by adding to `code_size' rather
5619 than subtracting from `grub_multiboot_payload_size'. Provide
5620 4-byte alignment to MBI and others by increasing
5621 `boot_loader_name_length' appropriately.
5623 * loader/i386/multiboot_elfxx.c
5624 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
5626 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
5628 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
5631 2009-03-08 Robert Millan <rmh@aybabtu.com>
5633 Make loader/i386/linux.c usable on i386-pc again.
5635 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
5637 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
5640 2009-03-07 Bean <bean123ch@gmail.com>
5642 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
5645 2009-03-06 Robert Millan <rmh@aybabtu.com>
5647 Fix display issue on terminals with screen size other than 80x25
5648 (e.g. gfxterm with resolution higher than 640x480).
5650 * normal/main.c (grub_normal_init_page): Display title text in a
5651 position relative to the center of the terminal instead of relying
5652 on a hardcoded offset.
5654 2009-03-04 Robert Millan <rmh@aybabtu.com>
5656 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
5659 * Makefile.in (host_kernel): New variable.
5660 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
5661 scripts instead of just the windows one.
5662 * configure.ac: Initialize and AC_SUBST `host_kernel'.
5664 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5666 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
5668 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5669 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5670 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5671 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5672 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5673 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5675 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5677 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
5678 or if there's no space for the disk label and print the partition number on a
5681 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5683 * util/misc.c: Include <time.h>.
5684 (grub_millisleep): New function.
5686 2009-03-04 Bean <bean123ch@gmail.com>
5688 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
5689 another option -mno-red-zone.
5691 * commands/handler.c: Change module description.
5693 * kern/handler.c: Add missing space at the end of description line.
5695 * kern/list.c: Likewise.
5697 2009-03-03 Robert Millan <rmh@aybabtu.com>
5699 Move more components to the relocation area, and fix mbi pointer
5700 handling to use the destination rather than the origin (thanks to
5701 Vladimir Serbinenko for spotting).
5703 * loader/i386/multiboot.c (mbi_dest): New variable.
5704 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
5705 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
5708 2009-03-01 Bean <bean123ch@gmail.com>
5710 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
5711 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
5712 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
5713 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
5715 * loader/i386/efi/linux.c (acpi_guid): New variable.
5716 (acpi_guid): Likewise.
5717 (EBDA_SEG_ADDR): New constant.
5718 (LOW_MEM_ADDR): Likewise.
5719 (FAKE_EBDA_SEG): Likewise.
5720 (fake_bios_data): New function.
5721 (grub_linux_boot): Call fake_bios_data.
5723 2009-03-01 Bean <bean123ch@gmail.com>
5725 * commands/terminal.c: Removed.
5727 * commands/handler.c: New file.
5729 * include/grub/list.h: Likewise.
5731 * include/grub/handler.h: Likewise.
5733 * kern/list.c: Likewise.
5735 * kern/handler.c: Likewise.
5737 * kern/term.h: Include header file <grub/handler.h>.
5738 (grub_term_input): Move next field to the beginning.
5739 (grub_term_output): Likewise.
5740 (grub_term_input_class): New variable.
5741 (grub_term_output_class): Likewise.
5742 (grub_term_register_input): Changed to inline function.
5743 (grub_term_register_output): Likewise.
5744 (grub_term_unregister_input): Likewise.
5745 (grub_term_unregister_output): Likewise.
5746 (grub_term_set_current_input): Likewise.
5747 (grub_term_set_current_output): Likewise.
5748 (grub_term_get_current_input): Likewise.
5749 (grub_term_get_current_output): Likewise.
5750 (grub_term_iterate_input): Removed.
5751 (grub_term_iterate_output): Likewise.
5753 * kern/term.c (grub_term_list_input): Removed.
5754 (grub_term_list_output): Likewise.
5755 (grub_term_input_class): New variable.
5756 (grub_term_output_class): Likewise.
5757 (grub_cur_term_input): Change variable as macro.
5758 (grub_cur_term_output): Likewise.
5759 (grub_term_register_input): Removed.
5760 (grub_term_register_output): Likewise.
5761 (grub_term_unregister_input): Likewise.
5762 (grub_term_unregister_output): Likewise.
5763 (grub_term_set_current_input): Likewise.
5764 (grub_term_set_current_output): Likewise.
5765 (grub_term_iterate_input): Likewise.
5766 (grub_term_iterate_output): Likewise.
5767 (grub_term_get_current_input): Likewise.
5768 (grub_term_get_current_output): Likewise.
5770 * util/grub-editenv.c: Include header file <grub/handler.h>.
5771 (grub_term_get_current_input): Removed.
5772 (grub_term_get_current_output): Likewise.
5773 (grub_term_input_class): New variable.
5774 (grub_term_output_class): Likewise.
5776 * util/grub-fstest.c (grub_term_get_current_input): Removed.
5777 (grub_term_get_current_output): Likewise.
5778 (grub_term_input_class): New variable.
5779 (grub_term_output_class): Likewise.
5781 * util/grub-probe.c (grub_term_get_current_input): Removed.
5782 (grub_term_get_current_output): Likewise.
5783 (grub_term_input_class): New variable.
5784 (grub_term_output_class): Likewise.
5786 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
5787 (grub_term_get_current_output): Likewise.
5788 (grub_term_input_class): New variable.
5789 (grub_term_output_class): Likewise.
5791 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
5792 (terminal_mod_SOURCES): Likewise.
5793 (terminal_mod_CFLAGS): Likewise.
5794 (terminal_mod_LDFLAGS): Likewise.
5796 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
5798 (kernel_img_SOURCES): Add list.c and handler.c.
5799 (kernel_img_HEADERS): Add list.h and handler.h.
5801 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5803 (kernel_mod_SOURCES): Add list.c and handler.c.
5804 (kernel_mod_HEADERS): Add list.h and handler.h.
5806 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
5808 (kernel_elf_SOURCES): Add list.c and handler.c.
5809 (kernel_elf_HEADERS): Add list.h and handler.h.
5811 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5813 (kernel_elf_SOURCES): Add list.c and handler.c.
5814 (kernel_elf_HEADERS): Add list.h and handler.h.
5816 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5818 (kernel_mod_SOURCES): Add list.c and handler.c.
5819 (kernel_mod_HEADERS): Add list.h and handler.h.
5821 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5823 (kernel_elf_SOURCES): Add list.c and handler.c.
5824 (kernel_elf_HEADERS): Add list.h and handler.h.
5826 2009-02-27 Robert Millan <rmh@aybabtu.com>
5828 Factorize elf32 / elf64 code in Multiboot loader. This will
5829 prevent it from getting out of sync again.
5831 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
5832 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
5833 grub_multiboot_load_elf64): Move from here ...
5834 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
5835 grub_multiboot_load_elf): ... to here (new file).
5837 2009-02-27 Robert Millan <rmh@aybabtu.com>
5839 * util/grub.d/10_linux.in: Rename "single-user mode" to
5842 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5844 Don't leak in SCSI code.
5845 * disk/scsi.c (grub_scsi_close): free `scsi'.
5847 2009-02-27 Robert Millan <rmh@aybabtu.com>
5849 * loader/i386/pc/multiboot.c: Move from here ...
5850 * loader/i386/multiboot.c: ... to here. Update all users.
5852 2009-02-27 Robert Millan <rmh@aybabtu.com>
5854 Patch from Alexandre Bique <bique.alexandre@gmail.com>
5855 * util/i386/pc/grub-setup.c (setup): Fix directory path.
5857 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
5859 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
5862 2009-02-27 Robert Millan <rmh@aybabtu.com>
5864 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
5865 `0x' qualifier as 0 when base is specified as parameter).
5867 2009-02-24 Bean <bean123ch@gmail.com>
5869 * configure.ac: Check for -mcmodel=large in x86_64 target.
5871 * include/grub/efi/api.h (efi_call_10): New macro.
5872 (efi_wrap_10): New function.
5874 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
5875 (GRUB_PE32_REL_BASED_HIGH): Likewise.
5876 (GRUB_PE32_REL_BASED_LOW): Likewise.
5877 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
5878 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
5879 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
5880 (GRUB_PE32_REL_BASED_SECTION): Likewise.
5881 (GRUB_PE32_REL_BASED_REL): Likewise.
5882 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
5883 (GRUB_PE32_REL_BASED_DIR64): Likewise.
5884 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
5886 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
5889 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
5890 (efi_wrap_10): New function.
5892 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
5894 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
5895 MB/MBP model (NV chipset).
5896 (devdata_devs): Add devpath_5 to the list.
5898 * load/i386/efi/linux.c (video_base): Remove variable.
5899 (RGB_MASK): New macro.
5900 (RGB_MAGIC): Likewise.
5901 (LINE_MIN): Likewise.
5902 (LINE_MAX): Likewise.
5903 (FBTEST_STEP): Likewise.
5904 (FBTEST_COUNT): Likewise.
5905 (fb_list): New variable.
5906 (grub_find_video_card): Remove function.
5907 (find_framebuf): New function.
5908 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
5911 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
5914 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
5916 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
5918 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
5921 2009-02-22 Robert Millan <rmh@aybabtu.com>
5923 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
5924 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
5925 in our relocation, instead of using it directly from heap. Also
5926 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
5928 2009-02-21 Robert Millan <rmh@aybabtu.com>
5930 Implement USB keyboard support (based on patch by Marco Gerards)
5932 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
5933 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
5934 (usb_keyboard_mod_LDFLAGS): New variables.
5936 * term/usb_keyboard.c: New file.
5938 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
5940 Corrected wrong declaration
5942 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
5944 2009-02-14 Christian Franke <franke@computer.org>
5946 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
5947 (grub_lspci_iter): Print class code and programming interface byte.
5949 2009-02-14 Christian Franke <franke@computer.org>
5951 * gendistlist.sh: Ignore `.svn' directories.
5953 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
5955 * fs/fat.c: Add 2009 to Copyright line.
5957 2009-02-14 Christian Franke <franke@computer.org>
5959 * commands/hdparm.c: New file. Provides `hdparm' command
5960 which sends ATA commands via grub_disk_ata_pass_through ().
5962 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
5964 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
5965 and <grub/cpu/io.h> to include/grub/ata.h.
5966 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
5967 (GRUB_CDROM_SECTOR_SIZE): Remove.
5968 (GRUB_ATA_*): Move to include/grub/ata.h.
5969 (GRUB_ATAPI_*): Likewise.
5970 (enum grub_ata_commands): Likewise.
5971 (enum grub_ata_timeout_milliseconds): Likewise.
5972 (struct grub_ata_device): Likewise.
5973 (grub_ata_regset): Likewise.
5974 (grub_ata_regget): Likewise.
5975 (grub_ata_regset2): Likewise.
5976 (grub_ata_regget2): Likewise.
5977 (grub_ata_check_ready): Likewise.
5978 (grub_ata_wait_not_busy): Remove static, exported in
5980 (grub_ata_wait_drq): Likewise.
5981 (grub_ata_pio_read): Likewise.
5983 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
5984 function for hdparm.mod.
5986 * include/grub/ata.h: New file, contains declarations from
5988 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
5990 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
5991 (grub_disk_ata_pass_through): New exported variable.
5993 * kern/disk.c (grub_disk_ata_pass_through): New variable.
5995 2009-02-13 Colin D Bennett <colin@gibibit.com>
5997 Support multiple fallback entries, and provide an API to support
5998 executing default+fallback menu entries. Renamed the `terminal' menu
6001 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
6002 variable declaration.
6003 (grub_menu_execute_callback): New structure declaration.
6004 (grub_menu_execute_callback_t): New typedef.
6005 (grub_menu_execute_with_fallback): New function declaration.
6006 (grub_menu_get_entry): Likewise.
6007 (grub_menu_get_timeout): Likewise.
6008 (grub_menu_set_timeout): Likewise.
6010 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
6012 * normal/menu.c (grub_wait_after_message): Moved to
6013 `normal/menu_text.c'.
6014 (draw_border): Likewise.
6015 (print_message): Likewise.
6016 (print_entry): Likewise.
6017 (print_entries): Likewise.
6018 (grub_menu_init_page): Likewise.
6019 (get_entry_number): Likewise.
6020 (print_timeout): Likewise.
6021 (run_menu): Likewise.
6022 (grub_menu_execute_entry): Likewise.
6023 (show_text_menu): Likewise.
6024 (get_and_remove_first_entry_number): New function.
6025 (grub_menu_execute_with_fallback): Likewise.
6026 (get_entry): Renamed to ...
6027 (grub_menu_get_entry): .. this and made it global.
6028 (get_timeout): Renamed to ...
6029 (grub_menu_get_timeout): ... this and made it global.
6030 (set_timeout): Renamed to ...
6031 (grub_menu_set_timeout): ... this and made it global.
6032 (grub_normal_terminal_menu_viewer): Renamed to ...
6033 (grub_normal_text_menu_viewer): ... this.
6035 * normal/menu_text.c: New file. Extracted text-menu-specific code
6038 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
6039 (normal_mod_SOURCES): Likewise.
6041 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6042 (normal_mod_SOURCES): Likewise.
6044 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6045 (normal_mod_SOURCES): Likewise.
6047 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
6048 (normal_mod_SOURCES): Likewise.
6050 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6051 (normal_mod_SOURCES): Likewise.
6053 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6054 (normal_mod_SOURCES): Likewise.
6056 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6057 (normal_mod_SOURCES): Likewise.
6059 2009-02-11 Robert Millan <rmh@aybabtu.com>
6061 * util/grub.d/00_header.in: Update old reference to `font' command.
6063 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
6065 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
6067 Based on patch from Javier MartÃn.
6069 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6071 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
6072 to avoid false positives with FAT.
6073 (grub_fstest_SOURCES): Likewise.
6074 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6075 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6076 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6077 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6078 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6079 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6081 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6083 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6084 bpb.version_specific.fat12_or_fat16.fstype and
6085 bpb.version_specific.fat32.fstype.
6087 2009-02-08 Robert Millan <rmh@aybabtu.com>
6089 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
6091 2009-02-08 Robert Millan <rmh@aybabtu.com>
6093 * Makefile.in (host_os, host_cpu): New variables.
6094 (target_os): Remove. Update all users.
6096 2009-02-08 Marco Gerards <marco@gnu.org>
6098 * Makefile.in (enable_grub_emu_usb): New variable.
6099 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
6100 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
6101 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
6102 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
6103 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
6104 `usbtest.mod' and `usbms.mod'.
6105 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
6106 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
6107 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
6108 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
6109 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
6112 * disk/usbms.c: New file.
6114 * include/grub/usb.h: Likewise.
6116 * include/grub/usbtrans.h: Likewise.
6118 * include/grub/usbdesc.h: Likewise.
6120 * bus/usb/usbtrans.c: Likewise.
6122 * bus/usb/ohci.c: Likewise.
6124 * bus/usb/uhci.c: Likewise.
6126 * bus/usb/usbhub.c: Likewise.
6128 * bus/usb/usb.c: Likewise.
6130 * commands/usbtest.c: Likewise.
6132 * util/usb.c: Likewise.
6134 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
6136 * configure.ac: Test for libusb presence.
6138 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
6140 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
6142 * kern/mm.c: Add more comments.
6144 2009-02-08 Robert Millan <rmh@aybabtu.com>
6146 Patch from Javier MartÃn.
6147 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
6148 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
6150 2009-02-08 Robert Millan <rmh@aybabtu.com>
6152 * fs/cpio.c: Split tar functionality to ...
6153 * fs/tar.c: ... here (new file). Update all users.
6155 2009-02-07 Robert Millan <rmh@aybabtu.com>
6157 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
6158 backward-incompatible features.
6160 Based on patch from Javier MartÃn, with some adjustments.
6162 2009-02-07 Michael Scherer <misc@mandriva.org>
6164 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
6166 2009-02-07 Robert Millan <rmh@aybabtu.com>
6168 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
6169 position of `disk/lvm.c' to ensure grub_init_all() always picks it
6170 after the RAID stuff.
6172 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
6174 Fixes problem when running vbetest command as reported by
6175 Vladimir Serbinenko <phcoder@gmail.com>.
6177 * (grub_vbe_set_video_mode): Fixed problem with text modes.
6179 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
6181 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
6182 /dev/md/NpN style mdraid devices.
6184 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6186 * util/unifont2pff.rb: Remove.
6188 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6190 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
6193 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6195 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
6196 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6197 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6198 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6199 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6200 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6201 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6203 2009-02-02 Christian Franke <franke@computer.org>
6205 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
6207 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
6209 * INSTALL: Note that we now require at least autoconf 2.59 and
6210 that LZO is optional.
6212 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6214 Base on patch on bug #24154 created by Tomas Tintera
6217 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
6219 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6221 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
6222 <bero@arklinux.org>.
6224 * normal/parser.y (script_init): Add missing semicolon.
6226 2009-01-31 Colin D Bennett <colin@gibibit.com>
6228 * normal/main.c: Add include to grub/menu_viewer.h.
6229 (free_menu_entry_classes): Added.
6230 (grub_normal_menu_addentry): Added class property handling.
6231 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
6232 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
6234 * normal/menu_viewer.c: New file.
6236 * normal/menu.c (run_menu_entry): Renamed to ...
6237 (grub_menu_execute_entry): ... this and made it as global.
6238 (grub_menu_run): Renamed to ...
6239 (show_text_menu): ... this and made it local.
6240 (show_text_menu): Adapt to new function names.
6241 (grub_normal_terminal_menu_viewer): New global variable.
6243 * include/grub/menu.h: New file.
6245 * include/grub/menu_viewer.h: New file.
6247 * include/grub/normal.h: Added include to grub/menu.h.
6248 (grub_menu_entry): Moved to include/grub/menu.h.
6249 (grub_menu_entry_t): Likewise.
6250 (grub_menu): Likewise.
6251 (grub_menu_t): Likewise.
6252 (grub_normal_terminal_menu_viewer): Added.
6253 (grub_menu_execute_entry): Likewise.
6254 (grub_menu_run): Removed.
6256 * DISTLIST: Added include/grub/menu.h.
6257 Added include/grub/menu_viewer.h.
6258 Added normal/menu_viewer.c.
6260 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
6262 * normal/execute.c (grub_script_execute_menuentry): Changed to use
6263 arglist for menutitle arguments.
6265 * normal/main.c (grub_normal_menu_addentry): Likewise.
6267 * normal/parser.y (menuentry): Likewise.
6269 * normal/script.c (grub_script_create_cmdmenu): Likewise.
6271 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
6272 (grub_script_create_cmdmenu): Likewise.
6274 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
6276 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
6279 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
6281 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
6283 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
6285 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6287 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6289 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6291 2009-01-30 Christian Franke <franke@computer.org>
6293 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
6294 in option help text.
6296 2009-01-27 Pavel Roskin <proski@gnu.org>
6298 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
6300 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6302 * commands/lsmmap.c: Add include to grub/machine/memory.h.
6304 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
6306 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
6307 unregister function.
6309 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6311 * disk/scsi.c (grub_scsi_read): Fix sign problem.
6313 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
6315 * util/grub-mkfont.c (usage): Fix typo.
6317 * util/elf/grub-mkimage.c (load_modules): Fix warning.
6319 2009-01-26 Daniel Mierswa <impulze@impulze.org>
6321 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
6323 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
6325 * kern/misc.c (grub_strcasecmp): New function.
6326 (grub_strcasecmp): Use grub_size_t instead of int for length.
6328 * include/grub/misc.h: Update function prototypes.
6330 2009-01-26 Robert Millan <rmh@aybabtu.com>
6332 * configure.ac: Fix cross-compilation check.
6334 2009-01-22 Christian Franke <franke@computer.org>
6336 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
6337 (precision) digit string. Allow `.format2' without `format1' (width).
6338 Limit input chars for `%s' output to `format2' if specified. This is
6339 compatible with standard printf ().
6341 2009-01-22 Christian Franke <franke@computer.org>
6343 * disk/ata.c (grub_ata_wait_status): Replace by ...
6344 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
6345 other status bits may be invalid while BSY is asserted.
6346 (grub_ata_check_ready): New function.
6347 (grub_ata_cmd): Removed.
6348 (grub_ata_wait_drq): New function.
6349 (grub_ata_strncpy): Remove inline.
6350 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
6351 and error check now done by grub_ata_wait_drq ().
6352 (grub_ata_pio_write): Likewise.
6353 (grub_atapi_identify): Set DEV before check for !BSY. Use
6354 grub_ata_wait_drq () to wait for data.
6355 (grub_ata_device_initialize): Add status register check to
6356 detect missing SATA slave devices. Add debug messages.
6357 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
6358 (grub_atapi_packet): Set DEV before check for !BSY. Replace
6359 transfer loop by grub_ata_pio_write ().
6360 (grub_ata_identify): Set DEV before check for !BSY. Use
6361 grub_ata_wait_drq () to wait for data.
6362 (grub_ata_setaddress): Set DEV before check for !BSY.
6363 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
6364 read/write in one loop. Fix invalid command on write. Fix incomplete
6365 command on (size % batch) == 0. Add missing error check after write of
6366 last block. Add debug messages.
6367 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
6369 2009-01-19 Christian Franke <franke@computer.org>
6371 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
6372 (GRUB_ATAPI_IREASON_*): Likewise.
6373 (grub_ata_pio_write): Fix timeout error return.
6374 (grub_atapi_identify): Add grub_ata_wait () after cmd.
6375 (grub_atapi_wait_drq): New function.
6376 (grub_atapi_packet): New parameter `size'.
6377 Use grub_atapi_wait_drq () and direct write instead of
6378 grub_ata_pio_write ().
6379 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
6380 reads the number of bytes requested by the device for each DRQ
6382 (grub_atapi_write): Remove old implementation, return not
6383 implemented instead.
6385 2009-01-19 Christian Franke <franke@computer.org>
6387 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
6388 of 512 to calculate data size.
6389 (grub_scsi_read12): Likewise.
6390 (grub_scsi_write10): Likewise.
6391 (grub_scsi_write12): Likewise.
6392 (grub_scsi_read): Adjust size according to blocksize.
6393 Add checks for invalid blocksize and unaligned transfer.
6395 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
6397 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
6399 * term/gfxterm.c (write_char): Fix background rendering for wide
6402 2009-01-19 Robert Millan <rmh@aybabtu.com>
6404 * config.guess: Update to latest version from config git.
6405 * config.sub: Likewise.
6407 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
6409 * Makefile.in: Change font compilation to use new grub-mkfont instead
6412 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
6413 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6414 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6415 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6416 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6417 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6418 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6419 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6420 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6422 2009-01-16 Christian Franke <franke@computer.org>
6424 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
6425 (enum grub_ata_timeout_milliseconds): New enum.
6426 (grub_ata_wait_status): Add parameter milliseconds.
6427 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
6428 recovery from timed-out commands.
6429 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
6430 return grub_errno instead of REG_ERROR.
6431 (grub_ata_pio_write): Add parameter milliseconds.
6432 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
6433 Pass milliseconds to grub_ata_wait_status () and
6434 grub_ata_pio_read ().
6435 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
6436 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
6437 grub_ata_wait_status (). Fix IDENTIFY timeout check.
6438 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
6439 It is not suitable for device detection, because DEV bit is ignored,
6440 the command may run too long, and not all devices set the signature
6442 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
6443 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
6444 Fix device selection, DEV bit must be set first to address the registers
6445 of the correct device.
6446 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
6447 grub_ata_pio_read/write ().
6448 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
6449 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
6451 2009-01-13 Carles Pina i Estany <carles@pina.cat>
6453 * util/grub-editenv.c (main): Use fseeko(), not fseek().
6455 2009-01-13 Bean <bean123ch@gmail.com>
6457 * util/grub-mkfont.c (write_font): forget to remove some debug code.
6459 2009-01-13 Bean <bean123ch@gmail.com>
6461 * Makefile.in: (enable_grub_mkfont): New variable.
6462 (freetype_cflags): Likewise.
6463 (freetype_libs): Likewise.
6465 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
6466 (grub_mkfont_SOURCES): New variable.
6467 (grub_mkfont_CFLAGS): Likewise.
6468 (grub_mkfont_LDFLAGS): Likewise.
6470 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
6471 library if `--enable-grub-mkfont' is requested.
6472 (enable_grub_mkfont): New variable.
6473 (freetype_cflags): Likewise.
6474 (freetype_libs): Likewise.
6476 * util/grub-mkfont.c: New file.
6478 2009-01-12 Christian Franke <franke@computer.org>
6480 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
6481 mode check. Fix setting of compat_use[].
6483 2009-01-10 Robert Millan <rmh@aybabtu.com>
6485 Update a few copyright years which we forgot to do in 2008 (only for
6486 files whose changes made in 2008 were copyright-significant)
6488 * Makefile.in: Add 2008 to Copyright line.
6489 * disk/ieee1275/ofdisk.c: Likewise.
6490 * disk/efi/efidisk.c: Likewise.
6491 * kern/dl.c: Likewise.
6492 * kern/sparc64/ieee1275/init.c: Likewise.
6493 * kern/mm.c: Likewise.
6494 * kern/efi/mm.c: Likewise.
6495 * boot/i386/pc/boot.S: Likewise.
6496 * genfslist.sh: Likewise.
6497 * fs/iso9660.c: Likewise.
6498 * fs/hfs.c: Likewise.
6499 * fs/jfs.c: Likewise.
6500 * fs/minix.c: Likewise.
6501 * fs/ufs.c: Likewise.
6502 * gensymlist.sh.in: Likewise.
6503 * genkernsyms.sh.in: Likewise.
6504 * include/grub/misc.h: Likewise.
6505 * include/grub/types.h: Likewise.
6506 * include/grub/symbol.h: Likewise.
6507 * include/grub/elf.h: Likewise.
6508 * include/grub/kernel.h: Likewise.
6509 * include/grub/disk.h: Likewise.
6510 * include/grub/dl.h: Likewise.
6511 * include/grub/i386/linux.h: Likewise.
6512 * include/grub/i386/pc/biosdisk.h: Likewise.
6513 * include/grub/efi/api.h: Likewise.
6514 * include/grub/efi/pe32.h: Likewise.
6515 * include/grub/util/misc.h: Likewise.
6516 * normal/execute.c: Likewise.
6517 * normal/arg.c: Likewise.
6518 * normal/completion.c: Likewise.
6519 * normal/lexer.c: Likewise.
6520 * normal/parser.y: Likewise.
6521 * normal/misc.c: Likewise.
6522 * commands/i386/pc/vbeinfo.c: Likewise.
6523 * commands/hexdump.c: Likewise.
6524 * commands/terminal.c: Likewise.
6525 * commands/ls.c: Likewise.
6526 * commands/help.c: Likewise.
6527 * partmap/pc.c: Likewise.
6528 * loader/efi/chainloader.c: Likewise.
6529 * loader/multiboot_loader.c: Likewise.
6530 * loader/i386/pc/multiboot2.c: Likewise.
6531 * term/efi/console.c: Likewise.
6532 * term/i386/pc/serial.c: Likewise.
6533 * util/lvm.c: Likewise.
6534 * util/console.c: Likewise.
6535 * util/i386/efi/grub-mkimage.c: Likewise.
6536 * util/raid.c: Likewise.
6538 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
6540 * commands/videotest.c: Removed include to grub/machine/memory.h.
6542 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
6543 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
6544 (video_mod_SOURCES): Removed.
6545 (video_mod_CFLAGS): Likewise.
6546 (video_mod_LDFLAGS): Likewise.
6547 (gfxterm_mod_SOURCES): Likewise.
6548 (gfxterm_mod_CFLAGS): Likewise.
6549 (gfxterm_mod_LDFLAGS): Likewise.
6550 (videotest_mod_SOURCES): Likewise.
6551 (videotest_mod_CFLAGS): Likewise.
6552 (videotest_mod_LDFLAGS): Likewise.
6553 (bitmap_mod_SOURCES): Likewise.
6554 (bitmap_mod_CFLAGS): Likewise.
6555 (bitmap_mod_LDFLAGS): Likewise.
6556 (tga_mod_SOURCES): Likewise.
6557 (tga_mod_CFLAGS): Likewise.
6558 (tga_mod_LDFLAGS): Likewise.
6559 (jpeg_mod_SOURCES): Likewise.
6560 (jpeg_mod_CFLAGS): Likewise.
6561 (jpeg_mod_LDFLAGS): Likewise.
6562 (png_mod_SOURCES): Likewise.
6563 (png_mod_CFLAGS): Likewise.
6564 (png_mod_LDFLAGS): Likewise.
6566 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
6567 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
6568 (video_mod_SOURCES): Added.
6569 (video_mod_CFLAGS): Likewise.
6570 (video_mod_LDFLAGS): Likewise.
6571 (videotest_mod_SOURCES): Likewise.
6572 (videotest_mod_CFLAGS): Likewise.
6573 (videotest_mod_LDFLAGS): Likewise.
6574 (bitmap_mod_SOURCES): Likewise.
6575 (bitmap_mod_CFLAGS): Likewise.
6576 (bitmap_mod_LDFLAGS): Likewise.
6577 (tga_mod_SOURCES): Likewise.
6578 (tga_mod_CFLAGS): Likewise.
6579 (tga_mod_LDFLAGS): Likewise.
6580 (jpeg_mod_SOURCES): Likewise.
6581 (jpeg_mod_CFLAGS): Likewise.
6582 (jpeg_mod_LDFLAGS): Likewise.
6583 (png_mod_SOURCES): Likewise.
6584 (png_mod_CFLAGS): Likewise.
6585 (png_mod_LDFLAGS): Likewise.
6586 (gfxterm_mod_SOURCES): Likewise.
6587 (gfxterm_mod_CFLAGS): Likewise.
6588 (gfxterm_mod_LDFLAGS): Likewise.
6590 * term/gfxterm.c: Removed include to grub/machine/memory.h,
6591 grub/machine/console.h.
6593 2009-01-04 Jerone Young <jerone@gmail.com>
6595 Make on screen instructions clearer
6597 Based on patch created by Jidanni <jidanni@jidanni.org>
6599 * normal/menu.c: print clearer instructions on the screen
6601 2009-01-02 Colin D Bennett <colin@gibibit.com>
6605 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
6606 build system and fixed gfxterm.c to work with different sized fonts.
6608 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
6610 * configure: Re-generated.
6612 * DISTLIST: Removed font/manager.c.
6614 Added font/font_cmd.c.
6616 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
6619 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
6621 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
6623 * kern/term.c: Changed users of grub_utf8_to_ucs4.
6625 * normal/menu.c: Likewise.
6627 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
6628 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
6630 * include/grub/font.h: Replaced with new file.
6632 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
6633 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
6634 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
6635 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
6636 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
6637 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
6638 fg_red, fg_green, fg_blue, fg_alpha.
6639 (grub_video_adapter): Removed blit_glyph.
6640 (grub_video_blit_glyph): Removed.
6642 * font/manager.c: Removed file.
6644 * font/font.c: New file.
6646 * font/font_cmd.c: Likewise.
6648 * video/video.c (grub_video_blit_glyph): Removed.
6650 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
6651 (grub_video_vbe_map_rgba): Likewise.
6652 (grub_video_vbe_unmap_color_int): Likewise.
6653 (grub_video_vbe_blit_glyph): Removed.
6654 (grub_video_vbe_adapter): Removed blit_glyph.
6656 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
6657 (get_pixel): Likewise.
6658 (set_pixel): Likewise.
6660 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
6662 * term/gfxterm.c: Adapted to new font engine.
6664 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
6666 * term/i386/pc/vga.c: Likewise.
6668 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
6670 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6672 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6674 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6676 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6678 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6680 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6682 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6684 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6686 * util/grub.d/00_header.in: Changed to use new loadfont command.
6688 * util/grub-mkconfig_lib.in: Changed font extension.
6690 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
6692 * util/getroot.c (grub_util_get_grub_dev): Add support for
6693 /dev/md/dNNpNN style partitionable mdraid devices.
6695 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
6697 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
6698 at a time limit of the PXE TFTP API correctly.
6699 (grub_pxefs_close): Likewise.
6701 2008-11-29 Robert Millan <rmh@aybabtu.com>
6703 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
6704 grub_ata_device_initialize() calls.
6706 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
6708 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
6710 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
6712 2008-11-28 Robert Millan <rmh@aybabtu.com>
6714 Fix build on powerpc-ieee1275. Based on patch created by
6715 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
6716 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
6717 `kern/ieee1275/mmap.c'.
6718 * include/grub/powerpc/ieee1275/memory.h: New file.
6720 Provide grub-install on coreboot.
6721 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
6722 (grub_install_SOURCES): New variable.
6723 * util/i386/pc/grub-install.in: Add a few condition checks to make it
6726 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
6728 * util/grub-fstest.c (grub_term_get_current_input): Change return type
6729 to `grub_term_input_t'.
6730 (grub_term_get_current_output): Change return type to
6731 `grub_term_output_t'.
6733 2008-11-22 Robert Millan <rmh@aybabtu.com>
6735 Fix breakage on coreboot due to declaration mismatch.
6736 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
6737 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
6738 grub_vga_text_cls().
6740 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
6741 comments. Avoid copying one more byte than necessary (just in case).
6743 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
6744 to 0x200000 (avoids trouble with some OFW implementations, and matches
6745 with the one in Yaboot).
6746 Reported by Manoel Abranches
6748 2008-11-20 Robert Millan <rmh@aybabtu.com>
6750 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
6751 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
6753 * util/grub-mkconfig_lib.in (grub_warn): New function.
6754 (convert_system_path_to_grub_path): Use grub_warn() when issuing
6755 warnings, to obtain consistent formatting.
6756 * util/grub.d/00_header.in: Likewise.
6757 * util/update-grub_lib.in: Likewise.
6759 * loader/i386/linux.c (allocate_pages): Fix a warning.
6760 Move comment text to `#error' stanza.
6762 Harmonize ieee1275's grub_available_iterate() with the generic
6763 grub_machine_mmap_iterate() interface (fixes a recently-introduced
6764 build problem on i386-ieee1275):
6765 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
6766 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
6767 parameter `type'. Update all users of this function.
6768 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
6769 `kern/ieee1275/mmap.c'.
6770 * kern/ieee1275/init.c
6771 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
6773 (grub_machine_mmap_iterate): ... this.
6774 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
6775 return type to `grub_err_t'. Update all implementations of this
6777 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
6780 Add `lsmmap' command (lists firmware-provided memory map):
6781 * commands/lsmmap.c: New file.
6782 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
6783 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
6785 * conf/powerpc-ieee1275.rmk: Likewise.
6786 * conf/i386-coreboot.rmk: Likewise.
6787 * conf/i386-ieee1275.rmk: Likewise.
6789 2008-11-19 Robert Millan <rmh@aybabtu.com>
6791 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
6792 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
6793 constraints to initrd allocation (based on code from
6794 loader/i386/pc/linux.c). Without them, initrd was allocated too high
6795 for Linux to find it.
6797 2008-11-14 Robert Millan <rmh@aybabtu.com>
6799 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
6800 order to cope with duplicate slashes.
6802 2008-11-14 Robert Millan <rmh@aybabtu.com>
6804 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
6805 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
6806 don't want to mess with lower memory, because it is used in the Linux
6809 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
6810 an appropriate place in lower memory, between 0x10000 and 0x90000,
6811 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
6812 is in our heap (probably as a result of it being corrupted during
6813 decompression). Add #error instance with comment to explain why this
6814 loader isn't currently usable on PC/BIOS.
6816 2008-11-14 Robert Millan <rmh@aybabtu.com>
6818 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
6819 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
6821 2008-11-12 Robert Millan <rmh@aybabtu.com>
6823 Make loader/i386/linux.c buildable on i386-pc (although disabled).
6825 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
6826 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
6828 * include/grub/i386/pc/memory.h: ... to here.
6830 2008-11-12 Robert Millan <rmh@aybabtu.com>
6832 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
6835 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
6836 (grub_console_cur_color, grub_console_real_putchar)
6837 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6838 (grub_console_setcolorstate, grub_console_setcolor)
6839 (grub_console_getcolor): Move from here ...
6840 * include/grub/i386/vga_common.h: ... to here (new file).
6842 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
6843 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
6845 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
6846 `<grub/i386/vga_common.h>'.
6848 2008-11-12 Robert Millan <rmh@aybabtu.com>
6850 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
6851 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
6852 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
6854 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6855 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
6857 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
6858 grub_console_init() with call to grub_vga_text_init().
6859 (grub_machine_fini): Replace call to
6860 grub_console_fini() with call to grub_vga_text_fini() and
6861 grub_at_keyboard_fini().
6863 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
6864 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6865 (grub_console_setcolorstate, grub_console_setcolor)
6866 (grub_console_getcolor): New function prototypes.
6868 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
6869 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
6870 (grub_vga_text_setcursor): Static-ize.
6871 (grub_vga_text_term): New structure.
6872 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
6874 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
6875 (grub_console_cur_color, grub_console_standard_color)
6876 (grub_console_normal_color, grub_console_highlight_color)
6877 (map_char, grub_console_putchar, grub_console_getcharwidth)
6878 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
6879 (grub_console_getcolor): Move from here ...
6880 * term/i386/vga_common.c: ... to here (same function names).
6882 2008-11-12 Robert Millan <rmh@aybabtu.com>
6884 Use newly-added Multiboot support in coreboot.
6886 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6887 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
6889 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
6890 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
6891 (codestart): Store the MBI in `startup_multiboot_info' when we're
6892 being loaded using Multiboot.
6894 * kern/i386/coreboot/init.c (grub_machine_init): Move
6895 grub_at_keyboard_init() call to beginning of function (useful for
6896 debugging). Call grub_machine_mmap_init() before attempting to use
6897 grub_machine_mmap_iterate().
6898 (grub_lower_mem, grub_upper_mem): Move from here ...
6899 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
6902 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
6905 2008-11-12 Robert Millan <rmh@aybabtu.com>
6907 Fix a regression introduced by the at_keyboard.mod split. Because
6908 some terminals are default on some platforms and non-default on
6909 others, the first terminal being registered determines which is
6910 going to be default.
6912 * kern/term.c (grub_term_register_input): If this is the first
6913 terminal being registered, set it as the current one.
6914 (grub_term_register_output): Likewise.
6916 * term/efi/console.c (grub_console_init): Do not call
6917 grub_term_set_current_output() or grub_term_set_current_input().
6918 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
6919 * term/i386/pc/console.c (grub_console_init): Likewise.
6920 (grub_console_fini): Do not call grub_term_set_current_input()
6921 (but leave grub_term_set_current_output() to restore text mode).
6923 2008-11-10 Robert Millan <rmh@aybabtu.com>
6925 * util/grub.d/00_header.in: Add backward compatibility check for
6926 versions of terminal.mod that don't understand `terminal_input' or
6929 2008-11-09 Robert Millan <rmh@aybabtu.com>
6931 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
6932 `terminal_input' / `terminal_output', not `terminal'.
6934 2008-11-08 Robert Millan <rmh@aybabtu.com>
6936 * Makefile.in (include_DATA): Fix srcdir=. assumption.
6937 (DISTCLEANFILES): Add `build_env.mk'.
6939 2008-11-08 Robert Millan <rmh@aybabtu.com>
6941 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
6942 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
6943 members. Update all users.
6944 * util/console.c (grub_ncurses_term): Split in ...
6945 (grub_ncurses_term_input): ... this, and ...
6946 (grub_ncurses_term_output): ... this. Update all users.
6947 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
6949 2008-11-08 Robert Millan <rmh@aybabtu.com>
6951 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
6952 (PKGDATA): Add $(pkgdata_SRCDIR).
6953 (pkglib_BUILDDIR): New variable.
6954 (pkgdata_SRCDIR): New variable.
6955 (build_env.mk): New target.
6956 (include_DATA): New variable.
6957 (install-local): Install $(include_DATA) files in $(includedir).
6959 2008-11-07 Pavel Roskin <proski@gnu.org>
6961 * gendistlist.sh: Use C locale for sorting to ensure consistent
6962 output on all systems.
6964 * util/grub.d/00_header.in: Remove incorrect space before
6967 2008-11-07 Robert Millan <rmh@aybabtu.com>
6969 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
6971 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
6972 * loader/multiboot_loader.c (find_multi_boot2_header): New function
6973 (based on find_multi_boot1_header).
6974 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
6975 using find_multi_boot2_header(), and abort if neither Multiboot or
6976 Multiboot headers were found.
6978 2008-11-07 Robert Millan <rmh@aybabtu.com>
6980 Modularize at_keyboard.mod:
6982 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
6983 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
6984 (at_keyboard_mod_LDFLAGS): New variables.
6986 Actual terminal split:
6988 * include/grub/term.h (struct grub_term): Split in ...
6989 (struct grub_term_input): ... this, and ...
6990 (struct grub_term_output): ... this. Update all users.
6991 (grub_term_set_current): Split in ...
6992 (grub_term_set_current_input): ... this, and ...
6993 (grub_term_set_current_output): ... this.
6994 (grub_term_get_current): Split in ...
6995 (grub_term_get_current_input): ... this, and ...
6996 (grub_term_get_current_output): ... this.
6997 (grub_term_register): Split in ...
6998 (grub_term_register_input): ... this, and ...
6999 (grub_term_register_output): ... this.
7000 (grub_term_unregister): Split in ...
7001 (grub_term_unregister_input): ... this, and ...
7002 (grub_term_unregister_output): ... this.
7003 (grub_term_iterate): Split in ...
7004 (grub_term_iterate_input): ... this, and ...
7005 (grub_term_iterate_output): ... this.
7007 * kern/term.c (grub_term_list): Split in ...
7008 (grub_term_list_input): ... this, and ...
7009 (grub_term_list_output): ... this. Update all users.
7010 (grub_cur_term): Split in ...
7011 (grub_cur_term_input): ... this, and ...
7012 (grub_cur_term_output): ... this. Update all users.
7013 (grub_term_set_current): Split in ...
7014 (grub_term_set_current_input): ... this, and ...
7015 (grub_term_set_current_output): ... this.
7016 (grub_term_get_current): Split in ...
7017 (grub_term_get_current_input): ... this, and ...
7018 (grub_term_get_current_output): ... this.
7019 (grub_term_register): Split in ...
7020 (grub_term_register_input): ... this, and ...
7021 (grub_term_register_output): ... this.
7022 (grub_term_unregister): Split in ...
7023 (grub_term_unregister_input): ... this, and ...
7024 (grub_term_unregister_output): ... this.
7025 (grub_term_iterate): Split in ...
7026 (grub_term_iterate_input): ... this, and ...
7027 (grub_term_iterate_output): ... this.
7029 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
7030 a check for input and one for output (and only attempt to get keys
7031 from user when input works).
7033 * util/grub-probe.c (grub_term_get_current): Split in ...
7034 (grub_term_get_current_input): ... this, and ...
7035 (grub_term_get_current_output): ... this.
7036 * util/grub-fstest.c: Likewise.
7037 * util/i386/pc/grub-setup.c: Likewise.
7038 * util/grub-editenv.c: Likewise.
7040 Portability adjustments:
7042 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
7043 `term/i386/pc/at_keyboard.c'.
7044 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
7045 grub_keyboard_controller_init() (now handled by terminal .init).
7046 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
7047 grub_at_keyboard_init().
7048 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
7049 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
7050 at_keyboard.mod via input terminal interface).
7051 * include/grub/i386/coreboot/console.h: Convert into a stub for
7052 `<grub/i386/pc/console.h>'.
7054 Migrate full terminals to new API:
7056 * term/efi/console.c (grub_console_term): Split into ...
7057 (grub_console_term_input): ... this, and ...
7058 (grub_console_term_output): ... this. Update all users.
7059 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
7060 (grub_ofconsole_init): Split into ...
7061 (grub_ofconsole_init_input): ... this, and ...
7062 (grub_ofconsole_init_output): ... this.
7063 (grub_ofconsole_term): Split into ...
7064 (grub_ofconsole_term_input): ... this, and ...
7065 (grub_ofconsole_term_output): ... this. Update all users.
7066 * term/i386/pc/serial.c (grub_serial_term): Split into ...
7067 (grub_serial_term_input): ... this, and ...
7068 (grub_serial_term_output): ... this. Update all users.
7069 * term/i386/pc/console.c (grub_console_term): Split into ...
7070 (grub_console_term_input): ... this, and ...
7071 (grub_console_term_output): ... this. Update all users.
7072 (grub_console_term_input): Only enable it on PC/BIOS platform.
7073 (grub_console_init): Remove grub_keyboard_controller_init() call.
7075 Migrate input terminals to new API:
7077 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
7078 `i386' and `i386/pc' to enable build on x86_64 (this driver is
7079 i386-specific anyway).
7080 (grub_console_checkkey): Rename to ...
7081 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
7083 (grub_keyboard_controller_orig): New variable.
7084 (grub_console_getkey): Rename to ...
7085 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
7087 (grub_keyboard_controller_init): Static-ize. Save original
7088 controller value so that it can be restored ...
7089 (grub_keyboard_controller_fini): ... here (new function).
7090 (grub_at_keyboard_term): New structure.
7091 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
7094 Migrate output terminals to new API:
7096 * term/i386/pc/vga.c (grub_vga_term): Change type to
7097 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7098 members. Update all users.
7099 * term/gfxterm.c (grub_video_term): Change type to
7100 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7101 members. Update all users.
7102 * include/grub/i386/pc/console.h (grub_console_checkkey)
7103 (grub_console_getkey): Do not export (no longer needed by gfxterm,
7106 Migrate `terminal' command and userland tools to new API:
7108 * commands/terminal.c (grub_cmd_terminal): Split into ...
7109 (grub_cmd_terminal_input): ... this, and ...
7110 (grub_cmd_terminal_output): ... this.
7111 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
7112 `terminal_input' and `terminal_output'.
7113 * util/grub.d/00_header.in: Adjust `terminal' calls to new
7114 `terminal_input' / `terminal_output' API.
7115 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
7116 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
7117 provided ${GRUB_TERMINAL}, convert it).
7119 2008-11-04 Robert Millan <rmh@aybabtu.com>
7121 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
7123 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
7125 2008-11-03 Bean <bean123ch@gmail.com>
7127 * kern/elf.c (grub_elf32_load): Revert to previous code.
7128 (grub_elf64_load): Likewise.
7130 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
7132 2008-11-01 Robert Millan <rmh@aybabtu.com>
7134 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
7135 (TARGET_CPPFLAGS): Likewise.
7136 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
7138 2008-11-01 Carles Pina i Estany <carles@pina.cat>
7140 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
7142 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7144 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
7145 addition of objects until the code is not going to be able to fail.
7147 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7149 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
7150 (add a missing NULL check, and correct them by moving the pointer
7151 operations after the actual check).
7153 2008-10-29 Robert Millan <rmh@aybabtu.com>
7155 * util/i386/pc/grub-install.in: Handle empty string as output from
7156 make_system_path_relative_to_its_root().
7158 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
7160 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
7161 circular metadata worst case scenario. If the metadata is circular
7162 then copy the wrap in place.
7163 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
7164 project lib/format_text/layout.h
7165 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
7167 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7169 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
7171 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7173 * util/update-grub_lib.in: Mention filename in warning message.
7175 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7177 * NEWS: Update for rename of update-grub to grub-mkconfig.
7179 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7181 * util/update-grub_lib.in: Copy to ...
7182 * util/grub-mkconfig_lib.in: ... this. Update all users.
7183 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
7184 * util/update-grub.in: Rename to ...
7185 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
7186 option. Add `--output' option to allow users to specify the generated
7187 configuration file. Default to stdout.
7188 (update_grub_dir): Rename to ...
7189 (grub_mkconfig_dir): ... this.
7190 (grub_cfg): Default to an empty string.
7191 * conf/common.rmk (update-grub): Rename to ...
7192 (grub-mkconfig): ... this.
7193 (update-grub_lib): Copy to ...
7194 (grub-mkconfig_lib): ... this.
7195 (update-grub_SCRIPTS): Copy to ...
7196 (grub-mkconfig_SCRIPTS): ... this. Update all users.
7197 (update-grub_DATA): Rename to ...
7198 (grub-mkconfig_DATA): ... this.
7200 2008-09-28 Robert Millan <rmh@aybabtu.com>
7202 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
7203 to `modified'. Add the real `created' field.
7204 (grub_iso9660_uuid): Use `modified' rather than `created' for
7205 constructing the UUID.
7207 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
7209 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
7210 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
7212 2008-09-28 Bean <bean123ch@gmail.com>
7214 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
7215 Thanks to Christian Franke for finding this bug.
7217 2008-09-25 Robert Millan <rmh@aybabtu.com>
7219 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
7220 instances of grub_util_get_disk_name() (see previous commit).
7222 2008-09-25 Robert Millan <rmh@aybabtu.com>
7224 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
7225 `util/i386/get_disk_name.c'.
7226 * conf/i386-efi.rmk: Likewise.
7227 * conf/x86_64-efi.rmk: Likewise.
7228 * conf/i386-coreboot.rmk: Likewise.
7229 * conf/i386-ieee1275.rmk: Likewise.
7230 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
7231 `util/ieee1275/get_disk_name.c'.
7232 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
7233 * util/ieee1275/get_disk_name.c: Remove file.
7234 * util/i386/get_disk_name.c: Remove file.
7235 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
7236 "hd%d" for device.map entries, rather than using
7237 grub_util_get_disk_name().
7239 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7241 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
7243 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
7245 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7247 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
7249 (GRUB_TERM_PPAGE): Changed to 0x4900.
7251 2008-09-24 Robert Millan <rmh@aybabtu.com>
7253 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
7254 macros (they were i386-pc specific).
7255 * include/grub/sparc64/ieee1275/console.h: Likewise.
7256 * include/grub/efi/console.h: Likewise.
7258 2008-09-22 Bean <bean123ch@gmail.com>
7260 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
7261 resident and in attribute list.
7263 * include/grub/ntfs.h (BMP_LEN): Removed.
7265 2008-09-22 Bean <bean123ch@gmail.com>
7267 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
7268 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
7270 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
7271 error occurs, as grub_disk_open will call grub_disk_close, which will
7272 call p->close (scsi).
7274 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7276 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
7277 (AC_PREREQ): Bumped to 2.59.
7278 (AC_TRY_COMPILE): Replace obsolete macro with ...
7279 (AC_COMPILE_IFELSE): ... this.
7280 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
7281 (AC_LINK_IFELSE): ... this.
7283 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7285 * autogen.sh: Add a call to `gendistlist.sh'.
7287 2008-09-19 Christian Franke <franke@computer.org>
7289 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
7290 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
7291 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
7292 Export __enable_execute_stack() to modules.
7293 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
7296 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7298 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
7301 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7303 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7304 #include <grub/util/hostdisk.h>.
7306 2008-09-08 Robert Millan <rmh@aybabtu.com>
7308 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
7309 segments when their filesz is zero (grub_file_read() interprets
7310 zero-size as "read until EOF", which results in memory corruption).
7311 Use `lowest_segment' rather than 0 for calculating the current
7312 segment load address.
7314 2008-09-08 Robert Millan <rmh@aybabtu.com>
7316 * util/hostdisk.c (open_device): Replace a grub_util_info() call
7317 with grub_dprintf("hostdisk", ...), as it was so verbose that it
7318 clobbered useful information.
7320 2008-09-08 Robert Millan <rmh@aybabtu.com>
7322 * include/grub/util/biosdisk.h: Move to ...
7323 * include/grub/util/hostdisk.h: ... here. Update all users.
7324 * util/biosdisk.c: Move to ...
7325 * util/hostdisk.c: ... here. Update all users.
7327 2008-09-07 Robert Millan <rmh@aybabtu.com>
7329 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
7331 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
7332 and length can be stored directly in the `mbi->mmap_addr' and
7333 `mbi->mmap_length' struct fields.
7335 2008-09-07 Robert Millan <rmh@aybabtu.com>
7337 * conf/i386.rmk: New file. Provides declaration for building
7339 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
7340 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
7342 Include `conf/i386.mk'.
7343 * conf/i386-efi.rmk: Likewise.
7344 * conf/x86_64-efi.rmk: Likewise.
7345 * conf/i386-coreboot.rmk: Likewise.
7346 * conf/i386-ieee1275.rmk: Likewise.
7348 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
7350 Based on patch created by Colin D Bennett <colin@gibibit.com>.
7351 Adds optimization support for BGR based modes.
7353 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
7354 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7355 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7356 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7357 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7358 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7359 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7360 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7361 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7362 (grub_video_i386_vbeblit_index_index): Likewise.
7363 (grub_video_i386_vbeblit_replace_directN): Added.
7364 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7365 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7366 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7367 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7368 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7369 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7370 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7371 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7372 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7373 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7374 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7375 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7376 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7378 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
7379 (grub_video_i386_vbefill_R8G8B8): Likewise.
7380 (grub_video_i386_vbefill_index): Likewise.
7381 (grub_video_i386_vbefill_direct32): Added.
7382 (grub_video_i386_vbefill_direct24): Likewise.
7383 (grub_video_i386_vbefill_direct16): Likewise.
7384 (grub_video_i386_vbefill_direct8): Likewise.
7386 * include/grub/video.h (grub_video_blit_format): Removed
7387 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
7388 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
7389 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
7390 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
7391 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
7393 * video/video.c (grub_video_get_blit_format): Updated to use new
7394 blit formats. Added handling for 16 bit color modes.
7396 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
7398 (common_blitter): Updated to use new blitters.
7400 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
7402 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7403 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7404 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7405 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7406 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7407 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7408 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7409 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7410 (grub_video_i386_vbeblit_index_index): Likewise.
7411 (grub_video_i386_vbeblit_replace_directN): Added.
7412 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7413 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7414 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7415 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7416 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7417 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7418 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7419 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7420 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7421 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7422 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7423 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7424 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7426 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
7427 (grub_video_i386_vbefill_R8G8B8): Likewise.
7428 (grub_video_i386_vbefill_index): Likewise.
7429 (grub_video_i386_vbefill_direct32): Added.
7430 (grub_video_i386_vbefill_direct24): Likewise.
7431 (grub_video_i386_vbefill_direct16): Likewise.
7432 (grub_video_i386_vbefill_direct8): Likewise.
7434 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
7437 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
7440 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
7443 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
7446 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7448 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
7451 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7453 * fs/iso9660.c (grub_iso9660_date): New structure.
7454 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
7455 (grub_iso9660_uuid): New function.
7457 2008-09-05 Bean <bean123ch@gmail.com>
7459 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
7461 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
7462 insensitive bit for names in Win32 and Win32 & DOS namespace.
7464 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
7466 * include/grub/types.h (LONG_MAX): Likewise.
7468 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7470 * util/getroot.c: Include <config.h>.
7471 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
7472 add support for /dev/md/N devices and handle LVM double dash escaping.
7474 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7476 * config.guess: Update to latest version from config git.
7477 * config.sub: Likewise.
7479 2008-09-03 Robert Millan <rmh@aybabtu.com>
7481 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
7482 `disk->total_sectors'.
7484 2008-09-01 Colin D Bennett <colin@gibibit.com>
7486 * include/grub/normal.h: Fixed incorrect comment for
7487 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
7489 2008-09-01 Colin D Bennett <colin@gibibit.com>
7491 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
7492 values with defines.
7494 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
7495 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
7496 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
7497 (GRUB_VBE_MODEATTR_COLOR): Likewise.
7498 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
7499 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
7500 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
7501 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
7502 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
7503 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
7504 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
7505 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
7506 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
7507 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
7508 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
7509 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
7510 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
7511 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
7512 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
7514 2008-08-31 Robert Millan <rmh@aybabtu.com>
7516 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
7518 (grub_multiboot): Fix a few warnings.
7520 2008-08-31 Robert Millan <rmh@aybabtu.com>
7522 * loader/i386/pc/multiboot.c: Update comment not to say that
7523 boot_device support is unimplemented.
7525 2008-08-31 Robert Millan <rmh@aybabtu.com>
7527 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
7528 or memory map support are unimplemented.
7530 2008-08-31 Colin D Bennett <colin@gibibit.com>
7532 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
7534 2008-08-31 Colin D Bennett <colin@gibibit.com>
7536 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
7537 total video memory in 'vbeinfo' output; show color format details for
7540 2008-08-30 Pavel Roskin <proski@gnu.org>
7542 * util/genmoddep.c: Remove for real this time.
7543 * DISTLIST: Remove util/genmoddep.c.
7545 2008-08-30 Robert Millan <rmh@aybabtu.com>
7547 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
7548 as required by Multiboot spec (it was already 4-byte aligned, but
7551 2008-08-29 Pavel Roskin <proski@gnu.org>
7553 * kern/powerpc/ieee1275/crt0.S: Rename to ...
7554 * kern/powerpc/ieee1275/startup.S: ... this.
7555 * conf/powerpc-ieee1275.rmk: Adjust for the above.
7556 * DISTLIST: Likewise.
7558 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
7559 grub/cpu/kernel.h. Add start label for consistency with other
7560 platforms. Add grub_prefix immediately after start. Add jump
7561 to the code after grub_prefix.
7562 * include/grub/powerpc/kernel.h: Provide valid values for
7563 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
7565 2008-08-29 Bean <bean123ch@gmail.com>
7567 * configure.ac: Change host_os to cygwin for mingw.
7568 (asprintf): New check for function.
7570 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
7571 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
7573 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
7574 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
7575 sync, sleep and grub_util_get_disk_size for mingw.
7577 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
7578 to get size in mingw.
7579 (open_device): Use flag O_BINARY if it's defined.
7580 (find_root_device): Add dummy code for mingw.
7582 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
7583 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
7584 (get_scsi_disk_name): Return 0 for mingw.
7586 * util/hostfs.c: #include <grub/util/misc.h>.
7587 (grub_hostfs_open): Use "rb" flag to open file, use
7588 grub_util_get_disk_size to get disk size for mingw.
7590 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
7591 (asprintf): New function if HAVE_ASPRINTF is not set.
7592 (sync): New function for mingw.
7594 (grub_util_get_disk_size): Likewise.
7596 2008-08-28 Pavel Roskin <proski@gnu.org>
7598 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7601 2008-08-28 Robert Millan <rmh@aybabtu.com>
7603 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
7605 2008-08-28 Robert Millan <rmh@aybabtu.com>
7607 Change find_grub_drive() syntax so it doesn't prevent it from
7608 detecting NULL names as errors.
7610 * util/biosdisk.c (find_grub_drive): Move free slot search code
7612 (find_free_slot): ... to here.
7613 (read_device_map): Use find_free_slot() to search for free slots.
7615 2008-08-27 Marco Gerards <marco@gnu.org>
7617 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
7618 (scsi_mod_SOURCES): New variable.
7619 (scsi_mod_CFLAGS): Likewise
7620 (scsi_mod_LDFLAGS): Likewise.
7622 * disk/scsi.c: New file.
7624 * include/grub/scsi.h: Likewise.
7626 * include/grub/scsicmd.h: Likewise.
7628 * disk/ata.c: Include <grub/scsi.h>.
7629 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
7631 (grub_ata_iterate): Skip ATAPI devices.
7632 (grub_ata_open): Only handle ATAPI devices.
7633 (struct grub_atapi_read): Removed.
7634 (grub_atapi_readsector): Likewise.
7635 (grub_ata_read): No longer handle ATAPI devices.
7636 (grub_ata_write): Likewise.
7637 (grub_atapi_iterate): New function.
7638 (grub_atapi_read): Likewise.
7639 (grub_atapi_write): Likewise.
7640 (grub_atapi_open): Likewise.
7641 (grub_atapi_close): Likewise.
7642 (grub_atapi_dev): New variable.
7643 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
7644 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
7646 * include/grub/disk.h (enum grub_disk_dev_id): Add
7647 `GRUB_DISK_DEVICE_SCSI_ID'.
7649 2008-08-26 Robert Millan <rmh@aybabtu.com>
7651 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
7652 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
7655 2008-08-23 Bean <bean123ch@gmail.com>
7657 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
7658 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7659 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
7660 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
7662 (raid5rec_mod_SOURCES): New macro.
7663 (raid5rec_mod_CFLAGS): Likewise.
7664 (raid5rec_mod_LDFLAGS): Likewise.
7665 (raid6rec_mod_SOURCES): Likewise.
7666 (raid6rec_mod_CFLAGS): Likewise.
7667 (raid6rec_mod_LDFLAGS): Likewise.
7668 (mdraid_mod_SOURCES): Likewise.
7669 (mdraid_mod_CFLAGS): Likewise.
7670 (mdraid_mod_LDFLAGS): Likewise.
7671 (dm_nv_mod_SOURCES): Likewise.
7672 (dm_nv_mod_CFLAGS): Likewise.
7673 (dm_nv_mod_LDFLAGS): Likewise.
7675 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
7676 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7677 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7679 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
7680 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7682 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7684 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7686 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7688 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7690 * disk/raid5_recover.c: New file.
7692 * disk/raid6_recover.c: Likewise.
7694 * disk/mdraid_linux.c: Likewise.
7696 * disk/dmraid_nvidia.c: Likewise.
7698 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
7701 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
7702 calculate the size of raid device.
7703 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
7704 different layout of raid5.
7705 (grub_raid_scan_device): Remove code specific to mdraid.
7706 (grub_raid_list): New variable.
7707 (free_array): New function.
7708 (grub_raid_register): Likewise.
7709 (grub_raid_unregister): Likewise.
7710 (grub_raid_rescan): Likewise.
7711 (GRUB_MOD_INIT): Don't iterate device here.
7712 (GRUB_MOD_FINI): Use free_array to release resource.
7714 * include/grub/raid.h: Remove macro and structure specific to mdraid.
7715 (grub_raid5_recover_func_t): New function variable type.
7716 (grub_raid6_recover_func_t): Likewise.
7717 (grub_raid5_recover_func): New variable.
7718 (grub_raid6_recover_func): Likewise.
7719 (grub_raid_register): New function.
7720 (grub_raid_unregister): Likewise.
7721 (grub_raid_rescan): Likewise.
7722 (grub_raid_block_xor): Likewise.
7724 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
7725 (CMD_CRC): New macro.
7727 (read_file): Handle device as well as file.
7728 (cmd_crc): New function.
7729 (fstest): Handle multiple disks.
7730 (options): Remove part, raw and long, add root and diskcount.
7731 (usage): Add crc, remove -p, -r, -l, add -r and -c.
7732 (main): Find the first non option entry and ignore subsequent options,
7733 add handling for the new options, support multiple disks.
7735 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
7737 2008-08-23 Bean <bean123ch@gmail.com>
7739 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
7741 * genfslist.sh: Ignore kernel.mod.
7743 * genpartmaplist.sh: Likewise.
7745 2008-08-23 Robert Millan <rmh@aybabtu.com>
7747 * util/getroot.c (find_root_device): Skip anything that starts with
7748 a dot, not just directories. This avoids things like /dev/.tmp.md0.
7750 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
7752 * util/update-grub.in (GRUB_GFXMODE): Export variable.
7753 * util/grub.d/00_header.in: Allow the administrator to change default
7754 gfxmode via ${GRUB_GFXMODE}.
7756 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
7758 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
7760 2008-08-21 Robert Millan <rmh@aybabtu.com>
7762 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
7764 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
7765 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
7767 2008-08-20 Carles Pina i Estany <carles@pina.cat>
7769 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
7770 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
7772 2008-08-19 Robert Millan <rmh@aybabtu.com>
7774 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
7775 (struct grub_virtual_screen): Remove `cursor_color'.
7776 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
7778 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
7780 2008-08-18 Robert Millan <rmh@aybabtu.com>
7782 Unify (identical) linux_normal.c files.
7783 * loader/i386/efi/linux_normal.c: Move from here ...
7784 * loader/linux_normal.c: ... to here. Update all users.
7785 * loader/i386/pc/linux_normal.c: Delete. Update all users.
7786 * loader/i386/ieee1275/linux_normal.c: Likewise.
7788 2008-08-18 Robert Millan <rmh@aybabtu.com>
7790 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
7791 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
7792 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
7793 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
7794 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
7796 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
7797 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
7798 (GRUB_LINUX_CL_END_OFFSET): ... to here.
7799 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
7800 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
7801 (GRUB_EFI_CL_END_OFFSET): Rename to ...
7802 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
7803 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
7804 Initialize `params->video_cursor_x' and `params->video_cursor_y'
7805 portably using grub_getxy().
7806 Replace `-EFI' with `-bzImage' in boot message.
7808 2008-08-17 Robert Millan <rmh@aybabtu.com>
7810 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
7812 2008-08-17 Robert Millan <rmh@aybabtu.com>
7814 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
7816 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
7817 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
7818 (grub_machine_mmap_iterate): New function declaration.
7819 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
7821 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
7824 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
7825 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
7826 Move e820 parsing from here ...
7827 * kern/i386/pc/mmap.c: New file.
7828 (grub_machine_mmap_iterate): ... to here.
7830 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
7831 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
7832 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
7833 (grub_available_iterate): Redeclare to return `void', and redeclare
7834 its hook to use grub_uint64_t as addr and size parameters, and rename
7836 (grub_machine_mmap_iterate): ... this. Update all users.
7838 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
7839 to make it more readable. Rename to ...
7840 (grub_machine_mmap_iterate): ... this.
7842 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
7843 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
7844 (grub_multiboot): Allocate an extra region after the payload, and fill
7845 it with a Multiboot memory map. Adjust a.out loader to calculate size
7846 with the extra space.
7847 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
7848 with the extra space.
7850 2008-08-17 Carles Pina i Estany <carles@pina.cat>
7852 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
7854 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
7856 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
7857 mdate-sh to the list `find' searches for.
7858 * DISTLIST: Regenerated.
7860 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
7862 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
7863 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
7864 genmoddep.awk, gensymlist.sh.in.
7865 (DISTDIRS): Add bus, docs, hook, lib.
7866 * DISTLIST: Regenerated.
7867 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
7869 2008-08-16 Robert Millan <rmh@aybabtu.com>
7871 * disk/raid.c (grub_raid_init): Handle/report errors set by
7872 grub_device_iterate().
7873 * disk/lvm.c (grub_lvm_init): Likewise.
7875 2008-08-15 Bean <bean123ch@gmail.com>
7877 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7879 (datetime_mod_SOURCES): New macro.
7880 (datetime_mod_CFLAGS): Likewise.
7881 (datetime_mod_LDFLAGS): Likewise.
7882 (date_mod_SOURCES): Likewise.
7883 (date_mod_CFLAGS): Likewise.
7884 (date_mod_LDFLAGS): Likewise.
7885 (datehook_mod_SOURCES): Likewise.
7886 (datehook_mod_CFLAGS): Likewise.
7887 (datehook_mod_LDFLAGS): Likewise.
7889 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7891 (datetime_mod_SOURCES): New macro.
7892 (datetime_mod_CFLAGS): Likewise.
7893 (datetime_mod_LDFLAGS): Likewise.
7894 (date_mod_SOURCES): Likewise.
7895 (date_mod_CFLAGS): Likewise.
7896 (date_mod_LDFLAGS): Likewise.
7897 (datehook_mod_SOURCES): Likewise.
7898 (datehook_mod_CFLAGS): Likewise.
7899 (datehook_mod_LDFLAGS): Likewise.
7901 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7903 (datetime_mod_SOURCES): New macro.
7904 (datetime_mod_CFLAGS): Likewise.
7905 (datetime_mod_LDFLAGS): Likewise.
7906 (date_mod_SOURCES): Likewise.
7907 (date_mod_CFLAGS): Likewise.
7908 (date_mod_LDFLAGS): Likewise.
7909 (datehook_mod_SOURCES): Likewise.
7910 (datehook_mod_CFLAGS): Likewise.
7911 (datehook_mod_LDFLAGS): Likewise.
7913 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7915 (datetime_mod_SOURCES): New macro.
7916 (datetime_mod_CFLAGS): Likewise.
7917 (datetime_mod_LDFLAGS): Likewise.
7918 (date_mod_SOURCES): Likewise.
7919 (date_mod_CFLAGS): Likewise.
7920 (date_mod_LDFLAGS): Likewise.
7921 (datehook_mod_SOURCES): Likewise.
7922 (datehook_mod_CFLAGS): Likewise.
7923 (datehook_mod_LDFLAGS): Likewise.
7925 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7927 (datetime_mod_SOURCES): New macro.
7928 (datetime_mod_CFLAGS): Likewise.
7929 (datetime_mod_LDFLAGS): Likewise.
7930 (date_mod_SOURCES): Likewise.
7931 (date_mod_CFLAGS): Likewise.
7932 (date_mod_LDFLAGS): Likewise.
7933 (datehook_mod_SOURCES): Likewise.
7934 (datehook_mod_CFLAGS): Likewise.
7935 (datehook_mod_LDFLAGS): Likewise.
7937 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
7939 * commands/date.c: New file.
7941 * hook/datehook.c: Likewise.
7943 * include/grub/lib/datetime.h: Likewise.
7945 * include/grub/i386/cmos.h: Likewise.
7947 * lib/datetime.c: Likewise.
7949 * lib/i386/datetime.c: Likewise.
7951 * lib/efi/datetime.c: Likewise.
7953 2008-08-14 Robert Millan <rmh@aybabtu.com>
7955 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
7956 (grub_mkelfimage_SOURCES): New variable.
7957 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
7959 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
7960 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
7961 * conf/powerpc-ieee1275.rmk: Likewise.
7962 * conf/i386-ieee1275.rmk: Likewise.
7964 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
7965 * kern/i386/coreboot/init.c: Likewise.
7967 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
7968 with `<grub/cpu/kernel.h>'.
7969 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
7971 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
7972 * kern/i386/coreboot/startup.S: Likewise.
7974 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
7975 (GRUB_MOD_GAP): Remove.
7976 * include/grub/powerpc/kernel.h: New file.
7977 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
7978 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
7979 * include/grub/i386/kernel.h: New file.
7980 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
7981 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
7982 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
7984 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
7986 Use --directory when invoking grub_mkimage.
7988 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
7989 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
7990 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
7991 and GRUB_KERNEL_CPU_PREFIX.
7993 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
7995 * include/grub/err.h (grub_err_printf): New function prototype.
7996 * util/misc.c (grub_err_printf): New function.
7997 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
7999 * kern/err.c (grub_print_error): Use grub_err_printf.
8001 2008-08-13 Robert Millan <rmh@aybabtu.com>
8003 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
8005 2008-08-13 Robert Millan <rmh@aybabtu.com>
8007 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
8010 2008-08-12 Robert Millan <rmh@aybabtu.com>
8012 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
8013 of the relocation code from here ...
8014 (grub_multiboot): ... to here.
8015 (forward_relocator, backward_relocator): Move from here ...
8016 * kern/i386/loader.S (grub_multiboot_forward_relocator)
8017 (grub_multiboot_backward_relocator): ... to here.
8018 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
8019 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
8020 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
8021 (grub_multiboot_forward_relocator_end)
8022 (grub_multiboot_backward_relocator)
8023 (grub_multiboot_backward_relocator_end): New variables.
8025 2008-08-12 Bean <bean123ch@gmail.com>
8027 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
8029 2008-08-11 Robert Millan <rmh@aybabtu.com>
8031 * kern/i386/linuxbios/startup.S: Move from here ...
8032 * kern/i386/coreboot/startup.S: ... to here.
8034 * kern/i386/linuxbios/init.c: Move from here ...
8035 * kern/i386/coreboot/init.c: ... to here.
8037 * kern/i386/linuxbios/table.c: Move from here ...
8038 * kern/i386/coreboot/mmap.c: ... to here.
8040 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
8042 2008-08-11 Robert Millan <rmh@aybabtu.com>
8044 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
8045 errors. Leave it to the upper layer to handle them.
8047 2008-08-09 Christian Franke <franke@computer.org>
8049 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
8050 * conf/common.rmk: Install `grub-pe2elf' only if requested.
8051 Install `grub.d/10_windows' only on Cygwin.
8052 * configure.ac: Add subst of `target_os'.
8053 Check `target_os' also before setting TARGET_OBJ2ELF.
8054 Add `--enable-grub-pe2elf'.
8056 2008-08-08 Robert Millan <rmh@aybabtu.com>
8058 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8059 (grub_last_time): Change type to grub_uint64_t.
8060 (grub_disk_open): Migrate code from to using grub_get_time_ms().
8061 (grub_disk_close): Likewise.
8063 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8064 (run_menu): Migrate code from to using grub_get_time_ms().
8066 * util/misc.c (grub_get_time_ms): New function.
8068 2008-08-08 Marco Gerards <marco@gnu.org>
8070 * disk/ata.c (grub_ata_regget): Change return type to
8072 (grub_ata_regget2): Likewise.
8073 (grub_ata_wait_status): New function.
8074 (grub_ata_wait_busy): Removed function, updated all users to use
8075 `grub_ata_wait_status'.
8076 (grub_ata_wait_drq): Likewise.
8077 (grub_ata_cmd): New function.
8078 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
8080 (grub_ata_pio_write): Add error handling.
8081 (grub_atapi_identify): Likewise.
8082 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
8084 (grub_ata_identify): Use `grub_ata_cmd' and improve error
8085 handling. Actually use the detected registers. Reorder the
8086 detection logic such that it is easier to read.
8087 (grub_ata_pciinit): Do not assign the same ID to each controller.
8088 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
8090 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
8092 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
8094 2008-08-08 Marco Gerards <marco@gnu.org>
8098 2008-08-07 Bean <bean123ch@gmail.com>
8100 * include/grub/x86_64/pci.h: New file.
8102 2008-08-07 Christian Franke <franke@computer.org>
8104 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
8105 (TIMER2_GATE): Likewise.
8106 (grub_pit_wait): Add enable/disable of the timer2 gate
8107 bit of port 0x61. This fixes a possible infinite loop.
8109 2008-08-07 Bean <bean123ch@gmail.com>
8111 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
8112 kern/i386/tsc.c and kern/i386/pit.c.
8114 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
8117 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
8120 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
8122 2008-08-07 Bean <bean123ch@gmail.com>
8124 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
8126 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
8128 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
8129 multiple inclusion. Add #include <grub/types.h>.
8131 2008-08-06 Christian Franke <franke@computer.org>
8133 * conf/common.rmk: Build and install `10_windows'.
8134 * util/grub.d/10_windows.in: New script.
8136 2008-08-06 Pavel Roskin <proski@gnu.org>
8138 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
8140 2008-08-06 Robert Millan <rmh@aybabtu.com>
8142 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
8143 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
8145 2008-08-06 Bean <bean123ch@gmail.com>
8147 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
8148 (grub_pxefs_fs_int): Remove dummy definition.
8149 (grub_pxefs_open): Use data->block_size to store the current block
8151 (grub_pxefs_read): Use block size stored in data->block_size. As the
8152 value of grub_pxe_blksize can be changed after the file is opened.
8154 2008-08-06 Bean <bean123ch@gmail.com>
8156 * fs/i386/pc/pxe.c (curr_file): new variable.
8157 (grub_pxefs_open): Simply the handling of pxe file system. Don't
8158 require the dummy internal file system anymore.
8159 (grub_pxefs_read): Removed.
8160 (grub_pxefs_close): Likewise.
8161 (grub_pxefs_fs_int): Likewise.
8162 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
8163 connection when we switch file.
8164 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
8166 2008-08-06 Robert Millan <rmh@aybabtu.com>
8168 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
8170 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
8171 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
8173 * kern/i386/halt.c: New file.
8174 * kern/i386/reboot.c: Likewise.
8175 * include/grub/i386/reboot.h: Likewise.
8176 * include/grub/i386/halt.h: Likewise.
8178 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
8179 Include `<grub/cpu/halt.h>'.
8180 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
8181 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
8183 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
8184 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
8185 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
8186 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
8187 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
8188 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
8190 * include/grub/i386/at_keyboard.h: ... to here.
8192 2008-08-05 Robert Millan <rmh@aybabtu.com>
8194 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
8195 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
8196 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
8197 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8198 `kern/generic/millisleep.c'.
8200 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
8201 instead of grub_get_rtc().
8202 (grub_tsc_init): Initialize `tsc_boot_time'.
8204 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
8205 (grub_machine_init): Use grub_tsc_init() rather than
8206 installing an RTC-based handler via grub_install_get_time_ms().
8208 * kern/i386/pit.c: New file.
8209 * include/grub/i386/pit.h: Likewise.
8211 2008-08-05 Bean <bean123ch@gmail.com>
8213 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
8215 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
8216 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
8217 (pxe_mod_SOURCES): New macro.
8218 (pxe_mod_CFLAGS): Likewise.
8219 (pxe_mod_LDFLAGS): Likewise.
8220 (pxecmd_mod_SOURCES): Likewise.
8221 (pxecmd_mod_CFLAGS): Likewise.
8222 (pxecmd_mod_LDFLAGS): Likewise.
8224 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
8225 (grub_pxe_call): Likewise.
8227 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
8229 * commands/i386/pc/pxecmd.c: New file.
8231 * fs/i386/pc/pxe.c: Likewise.
8233 * include/grub/i386/pc/pxe.h: Likewise.
8235 2008-08-05 Bean <bean123ch@gmail.com>
8237 * util/console.c (grub_console_cur_color): New variable.
8238 (grub_console_standard_color): Likewise.
8239 (grub_console_normal_color): Likewise.
8240 (grub_console_highlight_color): Likewise.
8241 (color_map): Likewise.
8242 (use_color): Likewise.
8243 (NUM_COLORS): New macro.
8244 (grub_ncurses_setcolorstate): Handle color properly.
8245 (grub_ncurses_setcolor): Don't change color here, just remember the
8246 settings, color will be set in grub_ncurses_setcolorstate.
8247 (grub_ncurses_getcolor): New function.
8248 (grub_ncurses_init): Initialize color pairs.
8249 (grub_ncurses_term): New member grub_ncurses_getcolor.
8251 2008-08-05 Colin D Bennett <colin@gibibit.com>
8253 High resolution timer support. Implemented for x86 CPUs using TSC.
8254 Extracted generic grub_millisleep() so it's linked in only as needed.
8255 This requires a Pentium compatible CPU; if the RDTSC instruction is
8256 not supported, then it falls back on the generic grub_get_time_ms()
8257 implementation that uses the machine's RTC.
8259 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
8260 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8261 `kern/generic/millisleep.c'.
8263 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
8264 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
8266 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
8267 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
8269 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8271 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
8272 `kern/generic/millisleep.c'.
8274 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8276 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
8278 * kern/generic/rtc_get_time_ms.c: New file.
8280 * kern/generic/millisleep.c: New file.
8282 * kern/misc.c: Don't include
8283 <kern/time.h> anymore.
8284 (grub_millisleep_generic): Removed.
8286 * commands/sleep.c (grub_interruptible_millisleep): Uses
8287 grub_get_time_ms() instead of grub_get_rtc().
8289 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
8291 (grub_cpu_is_cpuid_supported): New inline function.
8292 (grub_cpu_is_tsc_supported): New inline function.
8293 (grub_tsc_init): New function prototype.
8294 (grub_tsc_get_time_ms): New function prototype.
8296 * kern/i386/tsc.c (grub_get_time_ms): New file.
8298 * include/grub/time.h: Include <grub/types.h.
8299 (grub_millisleep_generic): Removed.
8300 (grub_get_time_ms): New prototype.
8301 (grub_install_get_time_ms): New prototype.
8302 (grub_rtc_get_time_ms): New prototype.
8304 * kern/time.c (grub_get_time_ms): New function.
8305 (grub_install_get_time_ms): New function.
8307 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
8308 <grub/time.h> anymore.
8309 (grub_millisleep): Removed.
8310 (grub_machine_init): Call grub_tsc_init.
8312 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
8313 get_time_ms() implementation.
8315 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
8316 (ieee1275_get_time_ms): New function.
8317 (grub_machine_init): Install get_time_ms() implementation.
8319 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
8320 (grub_machine_init): Call grub_tsc_init().
8321 (grub_millisleep): Removed.
8323 * kern/ieee1275/init.c (grub_millisleep): Removed.
8324 (grub_machine_init): Install ieee1275_get_time_ms()
8326 (ieee1275_get_time_ms): New function.
8327 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
8330 2008-08-05 Marco Gerards <marco@gnu.org>
8332 * disk/ata.c: Include <grub/pci.h>.
8333 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
8334 (grub_ata_initialize): Rewritten.
8335 (grub_ata_device_initialize): New function.
8337 2008-08-04 Pavel Roskin <proski@gnu.org>
8339 * kern/main.c: Include grub/mm.h.
8341 2008-08-04 Robert Millan <rmh@aybabtu.com>
8343 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
8344 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
8345 corruption problem).
8347 2008-08-04 Robert Millan <rmh@aybabtu.com>
8349 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
8350 warnings introduced in my last commit.
8352 2008-08-03 Robert Millan <rmh@aybabtu.com>
8354 Make PCI available on all i386 architectures.
8356 * include/grub/i386/pc/pci.h: Move from here ...
8357 * include/grub/i386/pci.h: ... to here.
8359 * include/grub/i386/pc/pci.h: Remove.
8360 * include/grub/i386/efi/pci.h: Remove.
8361 * include/grub/x86_64/efi/pci.h: Remove.
8363 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
8366 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
8367 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
8368 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
8370 * conf/i386-ieee1275.rmk: Likewise.
8372 2008-08-03 Robert Millan <rmh@aybabtu.com>
8374 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
8375 (grub_console_setcursor): Make it possible to set cursor off.
8377 2008-08-03 Robert Millan <rmh@aybabtu.com>
8379 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
8380 of modules instead of assuming which platform provides what.
8381 * util/update-grub.in: Likewise.
8383 2008-08-03 Robert Millan <rmh@aybabtu.com>
8385 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
8386 instead of `grub_install_dos_part' to determine whether a drive needs
8387 to be prepended to prefix (`grub_install_dos_part' is not reliable,
8388 because it can be overridden when loading GRUB via Multiboot).
8390 2008-08-02 Robert Millan <rmh@aybabtu.com>
8392 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
8394 2008-08-02 Robert Millan <rmh@aybabtu.com>
8396 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
8397 of informational grub_dprintf() calls.
8399 2008-08-02 Robert Millan <rmh@aybabtu.com>
8401 * disk/memdisk.c (memdisk_size): Don't initialize.
8402 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
8404 * include/grub/i386/pc/kernel.h
8405 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
8406 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
8407 (grub_memdisk_image_size, grub_arch_memdisk_addr)
8408 (grub_arch_memdisk_size): Remove.
8410 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
8411 field (was only used to transfer a constant). Add `type' field to
8412 support multiple module types.
8413 (grub_module_iterate): New function.
8415 * kern/device.c (grub_device_open): Do not hide error messages
8416 when grub_disk_open() fails. Use grub_print_error() instead.
8418 * kern/i386/pc/init.c (grub_arch_modules_addr)
8419 (grub_arch_memdisk_size): Remove functions.
8420 (grub_arch_modules_addr): Return the module address in high memory
8421 (now that it isn't copied anymore).
8423 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
8424 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
8425 decompression routine (grub_total_module_size already includes that
8426 now). Don't copy modules back to low memory.
8428 * kern/main.c: Include `<grub/mm.h>'.
8429 (grub_load_modules): Split out (and use) ...
8430 (grub_module_iterate): ... this function, which iterates through
8431 module objects and runs a hook.
8432 Comment out grub_mm_init_region() call, as it would cause non-ELF
8433 modules to be overwritten.
8435 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
8436 the memdisk image in its own region, make it part of the module list.
8437 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
8438 (main): Parse --memdisk|-m option, and pass user-provided path as
8439 parameter to generate_image().
8440 (add_segments): Pass `memdisk_path' down to load_modules().
8441 (load_modules): Embed memdisk image in module section when requested.
8442 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
8443 `header.type' instead of `header.offset'.
8445 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
8446 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
8447 (memdisk_mod_LDFLAGS): New variables.
8448 * conf/i386-coreboot.rmk: Likewise.
8449 * conf/i386-ieee1275.rmk: Likewise.
8451 2008-08-02 Robert Millan <rmh@aybabtu.com>
8453 * loader/i386/pc/multiboot.c (playground, forward_relocator)
8454 (backward_relocator): New variables. Used to allocate and relocate
8455 the payload, respectively.
8456 (grub_multiboot_load_elf32): Load into heap instead of requested
8457 address, install the appropriate relocator code in each bound of
8458 the payload, and set the entry point such that
8459 grub_multiboot_real_boot() will jump to one of them.
8461 * kern/i386/loader.S (grub_multiboot_payload_size)
8462 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8463 (grub_multiboot_payload_entry_offset): New variables.
8464 (grub_multiboot_real_boot): Set cpu context to what the relocator
8465 expects, and jump to the relocator instead of the payload.
8467 * include/grub/i386/loader.h (grub_multiboot_payload_size)
8468 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8469 (grub_multiboot_payload_entry_offset): Export.
8471 2008-08-01 Bean <bean123ch@gmail.com>
8473 * normal/menu_entry.c (editor_getline): Don't return the original
8474 string as result, as it will be released by lexer once it has done
8477 2008-08-01 Robert Millan <rmh@aybabtu.com>
8479 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
8480 within menuentries, not before them.
8481 util/grub.d/10_hurd.in: Likewise.
8483 2008-08-01 Bean <bean123ch@gmail.com>
8485 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
8486 (bufio_mod_SOURCES): New macro.
8487 (bufio_mod_CFLAGS): Likewise.
8488 (bufio_mod_LDFLAGS): Likewise.
8490 * include/grub/bufio.h: New file.
8492 * io/bufio.c: Likewise.
8494 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
8495 (grub_video_reader_png): Use grub_buffile_open to open file.
8497 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
8498 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
8500 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
8501 (grub_video_reader_tga): Use grub_buffile_open to open file.
8503 * font/manager.c: Include <grub/bufio.h>.
8504 (add_font): Use grub_buffile_open to open file.
8506 2008-07-31 Robert Millan <rmh@aybabtu.com>
8508 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
8509 ELF segments, use a macro for arbitrarily accessing any of them instead
8510 of preparing a pointer that allows access to one at a time.
8511 (grub_multiboot_load_elf64): Likewise.
8513 2008-07-31 Bean <bean123ch@gmail.com>
8515 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
8516 GRUB_KERNEL_MACHINE_DATA_END.
8518 2008-07-30 Robert Millan <rmh@aybabtu.com>
8520 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
8521 Increase from 0x50 to 0x60.
8522 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
8523 use UUIDs to identify the root drive for them. If that's not
8525 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
8526 check, for cross-disk installs.
8528 2008-07-30 Robert Millan <rmh@aybabtu.com>
8530 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
8531 is non-empty, use it to set the `prefix' environment variable instead
8532 of the usual approach.
8533 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
8534 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
8535 environment variable instead of dummy make_install_device().
8537 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
8538 (start): Insert a data section, with `grub_prefix' variable.
8539 * kern/i386/linuxbios/startup.S: Likewise.
8541 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
8542 New variable reference.
8543 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
8544 New macro. Defines offset of `grub_prefix' within startup.S (relative
8546 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
8547 section within startup.S (relative to `start').
8548 * include/grub/i386/coreboot/kernel.h: Likewise.
8550 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
8551 Overwrite grub_prefix with its contents, at the beginning of the
8553 (main): Understand -p|--prefix.
8555 2008-07-30 Robert Millan <rmh@aybabtu.com>
8557 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
8559 2008-07-30 Robert Millan <rmh@aybabtu.com>
8561 * term/i386/pc/vga_text.c (grub_console_cls): Use
8562 grub_console_gotoxy() to go back to beginning of the screen.
8563 Found by Patrick Georgi <patrick.georgi@coresystems.de>
8565 2008-07-29 Christian Franke <franke@computer.org>
8567 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
8568 Add conversion of emulated mount points on Cygwin.
8570 2008-07-29 Christian Franke <franke@computer.org>
8572 * util/update-grub.in: Add a check for admin
8574 Remove old `grub.cfg.new' before creation.
8575 Add `-f' to `mv' to handle the different filesystem
8576 semantics of Windows.
8578 2008-07-29 Bean <bean123ch@gmail.com>
8580 * normal/main.c (get_line): Fix buffer overflow bug.
8582 2008-07-28 Robert Millan <rmh@aybabtu.com>
8584 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
8585 (struct grub_apple_header): New struct. Describes the layout of
8587 (apple_partition_map_iterate): Check the header magic as well as the
8588 partition magic (which was already being checked).
8590 2008-07-28 Pavel Roskin <proski@gnu.org>
8592 * genmk.rb: Add a warning to the beginning of the output that
8593 it's a generated file and should not be edited.
8595 2008-07-28 Robert Millan <rmh@aybabtu.com>
8597 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
8598 with the same number are found, just use issue a warning with
8599 grub_dprintf(), as this error has been reported to be non-fatal.
8601 2008-07-27 Robert Millan <rmh@aybabtu.com>
8603 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
8606 2008-07-27 Bean <bean123ch@gmail.com>
8608 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
8609 (grub_fat_find_dir): Ignore case when comparing filename.
8611 2008-07-27 Bean <bean123ch@gmail.com>
8613 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
8614 smallino, as it's more descriptive, and i8count can be confused with
8615 the other field count.
8616 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
8619 2008-07-27 Bean <bean123ch@gmail.com>
8621 * commands/crc.c: New file.
8623 * lib/crc.c: Likewise.
8625 * include/grub/lib/crc.h: Likewise.
8627 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
8629 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
8630 (hexdump): Move this function to ...
8632 * lib/hexdump.c: ... here.
8634 * include/grub/hexdump.h: Renamed to ...
8636 * include/grub/lib/hexdump.h: ... this.
8638 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
8640 * util/grub-editenv.c: Likewise.
8642 * include/envblk.h: Renamed to ...
8644 * include/lib/envblk.h: ... this.
8646 * util/envblk.c: Renamed to ...
8648 * lib/envblk.c: ... this.
8650 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
8652 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
8653 (pkglib_MODULES): Add crc.mod.
8654 (hexdump_mod_SOURCES): Add lib/hexdump.c.
8655 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
8656 (crc_mod_SOURCES): New macro.
8657 (crc_mod_CFLAGS): Likewise.
8658 (crc_mod_LDFLAGS): Likewise.
8660 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
8662 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8664 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8666 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8668 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8670 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
8672 * commands/help.c: Include <grub/term.h>.
8673 (TERM_WIDTH): Removed. Updated all users.
8675 2008-07-27 Pavel Roskin <proski@gnu.org>
8677 * util/getroot.c (find_root_device): Rephrase a comment to avoid
8678 spurious warnings about a comment within a comment.
8680 2008-07-25 Robert Millan <rmh@aybabtu.com>
8682 * util/getroot.c (find_root_device): Skip devices that match
8683 /dev/dm-[0-9]. This lets the real device be found for any type of
8684 abstraction (LVM, EVMS, RAID..).
8685 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
8686 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
8687 device is found first, find_root_device() will now skip it.
8689 2008-07-24 Pavel Roskin <proski@gnu.org>
8691 * include/grub/types.h: Use __builtin_bswap32() and
8692 __builtin_bswap64() with gcc 4.3 and newer.
8694 2008-07-24 Christian Franke <franke@computer.org>
8696 * util/i386/pc/grub-install.in: If `--debug' is specified,
8697 pass `--verbose' to grub-setup.
8698 Abort script if make_system_path_relative_to_its_root() fails.
8700 2008-07-24 Bean <bean123ch@gmail.com>
8702 * configure.ac: Fixed a bug caused by the previous cygwin patch,
8703 variable `target_platform' should be `platform'.
8705 2008-07-24 Bean <bean123ch@gmail.com>
8707 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
8708 (grub_png_init_fixed_block): New function.
8709 (grub_png_decode_image_data): Handle fixed huffman code compression.
8711 2008-07-24 Bean <bean123ch@gmail.com>
8713 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
8714 (grub_pe2elf_SOURCES): New macro.
8715 (CLEANFILES): Add grub-pe2elf.
8717 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
8718 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
8719 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
8720 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
8721 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
8722 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
8723 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
8724 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
8725 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
8726 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
8727 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
8728 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
8729 (GRUB_PE32_DT_FUNCTION): Likewise.
8730 (GRUB_PE32_REL_I386_DIR32): Likewise.
8731 (GRUB_PE32_REL_I386_REL32): Likewise.
8732 (grub_pe32_symbol): New structure.
8733 (grub_pe32_reloc): Likewise.
8735 * util/grub-pe2elf.c: New file.
8737 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
8738 start symbol in non pc platform.
8740 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
8742 The following patches are from Christian Franke.
8744 * include/grub/dl.h: Remove .previous, gas supports this only
8747 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
8748 Remove .type, gas supports this only for ELF format.
8750 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
8751 nullbytes in symbol table. This fixes an infinite loop if table is
8754 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
8755 TARGET_IMG_LDFLAGS and EXEEXT.
8757 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
8758 TARGET_IMG_LDFLAGS_AC.
8759 (grub_CHECK_STACK_ARG_PROBE): New function.
8761 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
8763 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
8765 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
8766 to set TARGET_IMG_LD* accordingly.
8767 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
8768 Add call to grub_CHECK_STACK_ARG_PROBE.
8769 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
8771 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
8773 * genmk.rb: Add EXEEXT to CLEANFILES.
8775 2008-07-23 Robert Millan <rmh@aybabtu.com>
8777 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
8778 define the codes for arrows and lines used for the menu).
8779 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
8782 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
8783 fonts, because the latter are too slow.
8785 2008-07-21 Bean <bean123ch@gmail.com>
8787 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
8788 a20. Run keyboard test last, as it will cause macbook to halt.
8790 2008-07-18 Pavel Roskin <proski@gnu.org>
8792 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
8793 load foreign architecture modules correctly anyway. Keep
8794 support for loading host architecture modules, whether we
8795 compile them or not.
8797 2008-07-17 Pavel Roskin <proski@gnu.org>
8799 * configure.ac: Use -m32 or -m64 regardless of whether we had to
8800 change target_cpu. The compiler default can mismatch target_cpu
8803 * disk/efi/efidisk.c: Fix format warnings on x86_64.
8804 * kern/efi/efi.c: Likewise.
8806 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
8807 target compiler is functional.
8808 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
8811 * configure.ac: Default to efi platform for x86_64-apple. Allow
8812 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
8813 adjustments from the rest, only do them if target is not
8814 explicitly given. Merge other adjustments with the final sanity
8815 check. Remove an extraneous check for supported CPU. Be
8816 specific which CPU and which platform is not supported.
8818 * configure.ac: Default to pc platform for x86_64.
8820 2008-07-17 Robert Millan <rmh@aybabtu.com>
8822 Partial LinuxBIOS -> Coreboot rename.
8824 * conf/i386-linuxbios.rmk: Renamed to ...
8825 * conf/i386-coreboot.rmk: ... this.
8826 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
8827 * configure.ac: Accept "coreboot" as input platform (but maintain
8828 compatibility with "linuxbios").
8829 * include/grub/i386/linuxbios: Renamed to ...
8830 * include/grub/i386/coreboot: ... this.
8832 2008-07-17 Bean <bean123ch@gmail.com>
8834 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
8835 (appleldr_mod_SOURCE): New variable.
8836 (appleldr_mod_CFLAGS): Likewise.
8837 (appleldr_mod_LDFLAGS): Likewise.
8838 (pci_mod_SOURCES): Likewise.
8839 (pci_mod_CFLAGS): Likewise.
8840 (pci_mod_LDFLAGS): Likewise.
8841 (lspci_mod_SOURCES): Likewise.
8842 (lspci_mod_CFLAGS): Likewise.
8843 (lspci_mod_LDFLAGS): Likewise.
8845 * conf/x86_64-efi.rmk: New file.
8847 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
8849 (grub_efidisk_write): Likewise.
8851 * include/efi/api.h (efi_call_0): New macro.
8852 (efi_call_1): Likewise.
8853 (efi_call_2): Likewise.
8854 (efi_call_3): Likewise.
8855 (efi_call_4): Likewise.
8856 (efi_call_5): Likewise.
8857 (efi_call_6): Likewise.
8859 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
8860 grub_rescue_cmd_chainloader.
8862 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
8863 (grub_pe32_optional_header): Change some fields based on i386 or
8865 (GRUB_PE32_PE32_MAGIC): Likewise.
8867 * include/grub/efi/uga_draw.h: New file.
8869 * include/grub/elf.h (STN_ABS): New constant.
8870 (R_X86_64_NONE): Relocation constant for x86_64.
8871 (R_X86_64_64): Likewise.
8872 (R_X86_64_PC32): Likewise.
8873 (R_X86_64_GOT32): Likewise.
8874 (R_X86_64_PLT32): Likewise.
8875 (R_X86_64_COPY): Likewise.
8876 (R_X86_64_GLOB_DAT): Likewise.
8877 (R_X86_64_JUMP_SLOT): Likewise.
8878 (R_X86_64_RELATIVE): Likewise.
8879 (R_X86_64_GOTPCREL): Likewise.
8880 (R_X86_64_32): Likewise.
8881 (R_X86_64_32S): Likewise.
8882 (R_X86_64_16): Likewise.
8883 (R_X86_64_PC16): Likewise.
8884 (R_X86_64_8): Likewise.
8885 (R_X86_64_PC8): Likewise.
8887 * include/grub/i386/efi/pci.h: New file.
8889 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
8890 Change it value based on platform.
8891 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
8892 (GRUB_E820_RAM): Likewise.
8893 (GRUB_E820_RESERVED): Likewise.
8894 (GRUB_E820_ACPI): Likewise.
8895 (GRUB_E820_NVS): Likewise.
8896 (GRUB_E820_EXEC_CODE): Likewise.
8897 (GRUB_E820_MAX_ENTRY): Likewise.
8898 (grub_e820_mmap): New structure.
8899 (linux_kernel_header): Change the efi field according to different
8900 kernel version, also field from linux_kernel_header.
8902 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
8904 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
8905 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
8906 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
8907 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
8908 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
8909 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
8910 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
8911 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
8912 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
8913 (GRUB_PCI_ADDR_IO_MASK): Likewise.
8915 * include/grub/x86_64/efi/kernel.h: New file.
8917 * include/grub/x86_64/efi/loader.h: Likewise.
8919 * include/grub/x86_64/efi/machine.h: Likewise.
8921 * include/grub/x86_64/efi/pci.h: Likewise.
8923 * include/grub/x86_64/efi/time.h: Likewise.
8925 * include/grub/x86_64/linux.h: Likewise.
8927 * include/grub/x86_64/setjmp.h: Likewise.
8929 * include/grub/x86_64/time.h: Likewise.
8931 * include/grub/x86_64/types.h: Likewise.
8933 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
8934 GRUB_TARGET_SIZEOF_VOID_P.
8936 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
8937 (grub_efi_locate_handle): Likewise.
8938 (grub_efi_open_protocol): Likewise.
8939 (grub_efi_set_text_mode): Likewise.
8940 (grub_efi_stall): Likewise.
8941 (grub_exit): Likewise.
8942 (grub_reboot): Likewise.
8943 (grub_halt): Likewise.
8944 (grub_efi_exit_boot_services): Likewise.
8945 (grub_get_rtc): Likewise.
8947 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
8948 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
8949 (grub_efi_allocate_pages): Wrap efi calls.
8950 (grub_efi_free_pages): Wrap efi calls.
8951 (grub_efi_get_memory_map): Wrap efi calls.
8953 * kern/x86_64/dl.c: New file.
8955 * kern/x86_64/efi/callwrap.S: Likewise.
8957 * kern/x86_64/efi/startup.S: Likewise.
8959 * loader/efi/appleloader.c: Likewise.
8961 * loader/efi/chainloader.c (cmdline): New variable.
8962 (grub_chainloader_unload): Wrap efi calls.
8963 (grub_chainloader_boot): Likewise.
8964 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
8967 * loader/efi/chainloader_normal.c (chainloader_command):
8968 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
8971 * loader/i386/efi/linux.c (allocate_pages): Change allocation
8973 (grub_e820_add_region): New function.
8974 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
8976 (grub_find_video_card): New function.
8977 (grub_linux_setup_video): New function.
8978 (grub_rescue_cmd_linux): Probe for video information.
8980 * normal/x86_64/setjmp.S: New file.
8982 * term/efi/console.c (map_char): New function.
8983 (grub_console_putchar): Map unicode char.
8984 (grub_console_checkkey): Wrap efi calls.
8985 (grub_console_getkey): Likewise.
8986 (grub_console_getwh): Likewise.
8987 (grub_console_gotoxy): Likewise.
8988 (grub_console_cls): Likewise.
8989 (grub_console_setcolorstate): Likewise.
8990 (grub_console_setcursor): Likewise.
8992 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
8994 2008-07-16 Pavel Roskin <proski@gnu.org>
8996 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
8999 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
9000 pointer, not an integer. This fixes a warning and prevents
9001 precision loss on 64-bit systems.
9002 (relocate_addresses): Remove unneeded cast.
9004 2008-07-15 Pavel Roskin <proski@gnu.org>
9006 * kern/i386/ieee1275/init.c: Include grub/cache.h.
9008 * term/ieee1275/ofconsole.c: Disable code unused on i386.
9010 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
9011 Fix comparison between signed and unsigned.
9013 * include/grub/i386/ieee1275/console.h: Declare
9014 grub_console_init() and grub_console_fini().
9016 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
9017 It's empty and unused.
9019 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
9020 beginning to avoid warnings with some compilers.
9022 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
9023 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
9025 2008-07-14 Pavel Roskin <proski@gnu.org>
9027 * kern/env.c (grub_register_variable_hook): Don't copy empty
9028 string, it leaks memory. Pass "" to grub_env_set(), it should
9029 handle constant strings.
9031 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
9032 * commands/cmp.c (grub_cmd_cmp): Likewise.
9033 * kern/dl.c (grub_dl_flush_cache): Likewise.
9034 (grub_dl_load_core): Likewise.
9035 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
9036 (grub_elf64_load_phdrs): Likewise.
9038 2008-07-13 Pavel Roskin <proski@gnu.org>
9040 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
9041 between signed and unsigned.
9042 (LzmaEnc_Finish): Fix warning about an unused parameter.
9044 2008-07-13 Bean <bean123ch@gmail.com>
9046 * Makefile.in (enable_lzo): New rule.
9048 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
9050 * configure.ac (ENABLE_LZO): New option --enable-lzo.
9052 * boot/i386/pc/lnxboot.S: #include <config.h>.
9054 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
9055 its value according to the compression algorithm used, lzo or lzma.
9057 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
9058 compression algorithm according to configure macro.
9060 * kern/i386/pc/startup.S (codestart): Likewise.
9062 * kern/i386/pc/lzma_decode.S: New file.
9064 * include/grub/lib/LzFind.h: Likewise.
9066 * include/grub/lib/LzHash.h: Likewise.
9068 * include/grub/lib/LzmaDec.h: Likewise.
9070 * include/grub/lib/LzmaEnc.h: Likewise.
9072 * include/grub/lib/LzmaTypes.h: Likewise.
9074 * lib/LzFind.c: Likewise.
9076 * lib/LzmaDec.c: Likewise.
9078 * lib/LzmaEnc.c: Likewise.
9080 2008-07-13 Bean <bean123ch@gmail.com>
9082 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
9083 (grub_ext4_extent_header): New structure.
9084 (grub_ext4_extent): Likewise.
9085 (grub_ext4_extent_idx): Likewise.
9086 (grub_ext4_find_leaf): New function.
9087 (grub_ext2_read_block): Handle extents.
9089 2008-07-12 Robert Millan <rmh@aybabtu.com>
9091 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
9093 2008-07-11 Robert Millan <rmh@aybabtu.com>
9095 * util/grub.d/40_custom.in: New file. Example on how to add custom
9096 entries to /etc/grub.d.
9097 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
9098 40_custom (implicitly, by merging all the grub.d rules).
9100 2008-07-11 Pavel Roskin <proski@gnu.org>
9102 * commands/read.c (grub_getline): Fix invalid memory access.
9103 Don't add newline to the variable value.
9105 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
9106 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
9107 (serial_hw_get_port): Check validity of the port number.
9108 (grub_cmd_serial): Check return value of serial_hw_get_port().
9110 2008-07-07 Pavel Roskin <proski@gnu.org>
9112 * boot/i386/pc/diskboot.S (notification_string): Replace
9113 "Loading kernel" with just "loading". This is shorter, less
9114 confusing and saves a few bytes for possible future changes.
9116 2008-07-05 Pavel Roskin <proski@gnu.org>
9118 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
9119 size for ATAPI devices, they are undefined. Output sector
9120 number in decimal form.
9122 * disk/ata.c: Use named constants for status bits.
9124 2008-07-04 Pavel Roskin <proski@gnu.org>
9126 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
9127 grub_addr_t before casting it to the void pointer to fix a
9128 warning. Non-addressable regions are discarded earlier.
9129 (grub_arch_modules_addr): Cast _end to grub_addr_t.
9130 * kern/i386/linuxbios/table.c: Include grub/misc.h.
9131 (check_signature): Don't shadow table_header.
9132 (grub_linuxbios_table_iterate): Cast numeric constants to
9133 grub_linuxbios_table_header_t.
9134 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
9137 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
9140 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
9141 pointer, which can cause warnings. Support 64-bit addresses.
9143 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
9144 of sizeof(long). This fixes PowerPC image generation on x86_64.
9146 2008-07-04 Robert Millan <rmh@aybabtu.com>
9148 This fixes a performance issue when pc & gpt partmap iterators
9149 didn't abort iteration even after our hook found what it was
9150 looking for (often causing expensive probes of non-existent drives).
9152 Some callers relied on previous buggy behaviour, since they would
9153 raise an error when their own hooks caused early abortion of its
9156 * kern/device.c (grub_device_open): Improve error message.
9157 * disk/lvm.c (grub_lvm_open): Likewise.
9158 * disk/raid.c (grub_raid_open): Likewise.
9160 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
9161 when hook requests it, independently of grub_errno.
9162 (pc_partition_map_probe): Do not fail when find_func() caused
9163 early abortion of pc_partition_map_iterate().
9165 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
9166 when hook requests it, independently of grub_errno.
9167 (gpt_partition_map_probe): Do not fail when find_func() caused
9168 early abortion of gpt_partition_map_iterate().
9170 * kern/partition.c (grub_partition_iterate): Abort parent iteration
9171 when hook requests it, independently of grub_errno. Do not fail when
9172 part_map_iterate_hook() caused early abortion of p->iterate().
9174 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
9175 when grub_partition_iterate() returned with non-zero.
9177 2008-07-03 Pavel Roskin <proski@gnu.org>
9179 * disk/ata.c (grub_ata_pio_write): Check status before writing,
9180 like we do in grub_ata_pio_read().
9181 (grub_ata_readwrite): Always write individual sectors. Fix the
9182 sector count for the remainder.
9183 (grub_ata_write): Enable writing to ATA devices. Correctly
9184 report error for ATAPI devices.
9186 2008-07-02 Pavel Roskin <proski@gnu.org>
9188 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
9191 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
9192 for every read sector, we already increment it for the whole
9193 batch. This fixes reading more than 256 sectors at once.
9195 * util/grub-editenv.c (cmd_info): Cast argument to long
9196 explicitly. ptrdiff_t reduces to int on i386.
9198 * util/grub-editenv.c (main): Be specific which parameter is
9201 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
9202 (memdisk): Make memdisk_orig_addr a pointer.
9204 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
9205 for file offsets, use grub_off_t instead. Fix printf format
9208 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
9209 there. Real unexpected warnings should not drown in the noise
9210 about known problems.
9212 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
9213 grub_disk_addr_t for memory addresses.
9215 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
9216 explicitly to fix a warning.
9218 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
9220 * Makefile.in (MODULE_LDFLAGS): New variable.
9221 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
9222 the linker accepts --build-id=none.
9223 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
9225 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
9227 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
9228 those in Linux XFS code. Provide a way to access 64-bit parent
9230 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
9231 the end of struct grub_xfs_dir_header.
9233 2008-07-02 Bean <bean123ch@gmail.com>
9235 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
9236 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9237 and GRUB_IEEE1275_FLAG_NO_ANSI.
9239 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
9240 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9241 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
9243 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
9244 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
9246 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
9247 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
9249 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
9250 esc sequence on non ANSI terminal.
9251 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
9253 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
9256 2008-07-02 Bean <bean123ch@gmail.com>
9258 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
9259 (grub_editenv_SOURCES): New variable.
9260 (pkglib_MODULES): Add loadenv.mod.
9261 (loadenv_mod_SOURCES): New variable.
9262 (loadenv_mod_CFLAGS): Likewise.
9263 (loadenv_mod_LDFLAGS): Likewise.
9265 * include/grub/envblk.h: New file.
9267 * util/envblk.c: New file.
9269 * util/grub-editenv.c: New file.
9271 * commands/loadenv.c: New file.
9273 2008-07-01 Pavel Roskin <proski@gnu.org>
9275 * include/multiboot2.h (struct multiboot_tag_module): Use char,
9276 not unsigned char. This fixes warnings and is consistent with
9279 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
9281 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
9283 * term/tparm.c (analyze): Always set *popcount.
9285 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
9286 cast to fix a warning.
9288 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
9289 cast to suppress a warning.
9291 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
9292 grub_fshelp_read_file() expects.
9294 * fs/fat.c: Fix UUID calculation on big-endian systems. We
9295 write uuid as a 32-bit value in CPU byte order, so declare and
9298 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
9299 long if the format specifier expects it.
9300 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
9301 * partmap/pc.c (pc_partition_map_iterate): Likewise.
9302 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
9303 long to fix a warning.
9304 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
9305 grub_dprintf() arguments to fix warnings.
9307 2008-06-30 Pavel Roskin <proski@gnu.org>
9309 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
9310 install_bsd_part immediately before core.img is embedded or
9311 modified on disk. This fixes core.img verification if core.img
9314 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
9315 core_path to calculate the blocklist.
9316 Patch from Javier MartÃn <lordhabbit@gmail.com>
9318 2008-06-29 Robert Millan <rmh@aybabtu.com>
9320 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
9321 block to disk block.
9322 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
9323 Patch from Niels Böhm <bitbucket@arcor.de>
9325 2008-06-29 Robert Millan <rmh@aybabtu.com>
9327 * util/update-grub_lib.in (font_path): Search for fonts in
9328 /boot/grub first, which is more likely to be readable (we aren't
9329 deciding where fonts live, just looking for them).
9331 2008-06-26 Pavel Roskin <proski@gnu.org>
9333 * util/biosdisk.c (read_device_map): Don't leave dead map
9334 entries for devices failing stat() check.
9336 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
9337 core_path_dev for the core.img path on the target device.
9339 2008-06-26 Robert Millan <rmh@aybabtu.com>
9341 * disk/fs_uuid.c: New file.
9342 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
9343 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
9344 (fs_uuid_mod_LDFLAGS): New variables.
9345 * include/grub/disk.h (grub_disk_dev_id): Add
9346 `GRUB_DISK_DEVICE_UUID_ID'.
9347 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
9348 implement iterate().
9350 2008-06-26 Robert Millan <rmh@aybabtu.com>
9352 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
9353 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
9354 Linux image includes no initrd.
9356 2008-06-21 Javier MartÃn <lordhabbit@gmail.com>
9358 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
9359 call to resolve the core image location that effectively appended the
9362 2008-06-21 Robert Millan <rmh@aybabtu.com>
9364 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
9367 * util/grub.d/10_hurd.in: ... to here ...
9368 * util/grub.d/10_linux.in: ... and here.
9370 2008-06-19 Robert Millan <rmh@aybabtu.com>
9372 * kern/main.c (grub_main): Export `prefix' variable immediately
9373 after it has been set by grub_machine_set_prefix().
9375 2008-06-19 Robert Millan <rmh@aybabtu.com>
9377 * commands/search.c (search_label, search_fs_uuid, search_file): Print
9378 search result when not saving to variable, not the other way around.
9379 When saving to variable, abort iteration as soon as a match is found.
9381 2008-06-19 Robert Millan <rmh@aybabtu.com>
9383 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
9384 check for partition that provides /boot/grub. Its logic is flawed,
9385 as it prevents prepare_grub_to_access_device() from being called
9388 2008-06-19 Robert Millan <rmh@aybabtu.com>
9390 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
9391 "insmod" command directly when abstraction modules are needed,
9392 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
9393 since it had already been processed).
9395 2008-06-19 Pavel Roskin <proski@gnu.org>
9397 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
9398 changed. This is needed in case GRUB_LIBDIR changes.
9399 * conf/i386-ieee1275.rmk: Likewise.
9400 * conf/i386-linuxbios.rmk: Likewise.
9401 * conf/i386-pc.rmk: Likewise.
9402 * conf/powerpc-ieee1275.rmk: Likewise.
9404 2008-06-18 Pavel Roskin <proski@gnu.org>
9406 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
9407 kernel_elf_symlist.c to symlist.c for consistency with other
9408 architectures. Update all users.
9409 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9411 2008-06-18 Robert Millan <rmh@aybabtu.com>
9413 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
9416 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
9417 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
9418 a RAID device, run setup() for all members independently on whether
9419 LVM abstraction is being used.
9420 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
9421 If grub-mkimage has set `*install_dos_part == -2', don't override this
9423 Perform *install_dos_part adjustments independently on whether
9424 we're embedding or not.
9425 Clarify error message when image is too big for embedding.
9426 Remove duplicate *install_dos_part stanza.
9428 2008-06-17 Robert Millan <rmh@aybabtu.com>
9430 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
9431 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
9433 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
9434 values in grub_ofconsole_normal_color and
9435 grub_ofconsole_highlight_color (they're not directly related to
9436 background and foreground).
9437 (grub_ofconsole_setcolorstate): Extract background and foreground
9438 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
9440 2008-06-17 Robert Millan <rmh@aybabtu.com>
9442 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
9443 /boot/grub for the check in last commit, not /boot (they could be
9444 different partitions).
9446 2008-06-16 Robert Millan <rmh@aybabtu.com>
9448 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
9449 asked to setup access for the same partition that provides /boot,
9450 don't bother using UUIDs since our root already has the value we
9453 2008-06-16 Robert Millan <rmh@aybabtu.com>
9455 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
9457 Patch from Sven Mueller <sven@debian.org>.
9459 2008-06-16 Robert Millan <rmh@aybabtu.com>
9461 * util/update-grub.in: Check for $EUID instead of $UID.
9462 Reported by Vincent Zweije.
9464 2008-06-16 Bean <bean123ch@gmail.com>
9466 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
9467 (grub_ext2_read_block): Likewise.
9468 (grub_ext2_read_inode): Likewise.
9469 (grub_ext2_mount): Likewise.
9470 (grub_ext2_close): Likewise.
9471 (grub_ext3_get_journal): Removed.
9473 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
9474 (grub_reiserfs_read_symlink): Likewise.
9475 (grub_reiserfs_mount): Likewise.
9476 (grub_reiserfs_open): Likewise.
9477 (grub_reiserfs_read): Likewise.
9478 (grub_reiserfs_close): Likewise.
9479 (grub_reiserfs_get_journal): Removed.
9481 * fs/fshelp.c (grub_fshelp_read): Removed.
9482 (grub_fshelp_map_block): Likewise.
9484 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
9485 (grub_fshelp_journal): Likewise.
9486 (grub_fshelp_read): Likewise.
9487 (grub_fshelp_map_block): Likewise.
9489 2008-06-16 Pavel Roskin <proski@gnu.org>
9491 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
9492 floating point anymore.
9493 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
9495 2008-06-15 Pavel Roskin <proski@gnu.org>
9497 * commands/ls.c (grub_ls_list_files): Use integer calculations
9498 for human readable format, avoid floating point use.
9499 * kern/misc.c (grub_ftoa): Remove.
9500 (grub_vsprintf): Remove floating point support.
9502 2008-06-15 Robert Millan <rmh@aybabtu.com>
9504 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
9506 Reported by Max Vozeler.
9508 2008-06-15 Robert Millan <rmh@aybabtu.com>
9510 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
9511 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
9513 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
9514 the beginning of the prefix.
9516 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
9517 It is assumed that if we have a memdisk, grub-mkimage has set
9518 grub_prefix to include the "(memdisk)" drive in it.
9520 2008-06-15 Robert Millan <rmh@aybabtu.com>
9522 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
9523 Initialize keyboard controller after registering the terminal, so that
9524 grub_printf() can be called from grub_keyboard_controller_init().
9526 2008-06-15 Robert Millan <rmh@aybabtu.com>
9528 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
9529 extent-btree which is written as big endian on disk.
9530 Reported by Alain Greppin <al@chilibi.org>.
9532 2008-06-14 Robert Millan <rmh@aybabtu.com>
9534 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
9535 * util/i386/pc/grub-install.in (modules): Likewise.
9537 2008-06-13 Pavel Roskin <proski@gnu.org>
9539 * commands/ls.c (grub_ls_list_files): Fix format warnings.
9541 2008-06-13 Bean <bean123ch@gmail.com>
9543 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
9545 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
9547 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
9548 to indicate sparse block.
9550 2008-06-12 Pavel Roskin <proski@gnu.org>
9552 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
9553 number, grub_fshelp_read() does it for us.
9555 * fs/fshelp.c (grub_fshelp_read): New function. Implement
9556 linear disk read with journal translation.
9557 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
9558 * include/grub/fshelp.h: Declare grub_fshelp_read().
9560 2008-06-09 Pavel Roskin <proski@gnu.org>
9562 * fs/minix.c (grub_minix_mount): Handle error reading
9565 2008-06-08 Robert Millan <rmh@aybabtu.com>
9567 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
9568 don't append the RAID prefix afterwards.
9569 Reported by Clint Adams.
9571 2008-06-08 Robert Millan <rmh@aybabtu.com>
9573 Based on description from Pavel:
9574 * kern/disk.c (grub_disk_check_range): Rename to ...
9575 (grub_disk_adjust_range): ... this. Add a comment explaining the
9576 tasks performed by this function.
9578 2008-06-08 Robert Millan <rmh@aybabtu.com>
9580 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
9581 `num_serial' (for consistency with other variables).
9582 (struct grub_ntfs_data): Add `uuid' member.
9583 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
9584 (grub_ntfs_uuid): New function.
9585 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
9587 2008-06-07 Pavel Roskin <proski@gnu.org>
9589 * util/biosdisk.c (open_device): Revert last change to the
9590 function, it broke installation. The sector needs to be
9591 different dependent on which device is opened.
9593 2008-06-06 Robert Millan <rmh@aybabtu.com>
9595 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
9596 rest of GRUB, and breakage doesn't happen if its value were modified.
9598 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
9599 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
9600 a constant (same value).
9601 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
9602 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
9604 2008-06-06 Robert Millan <rmh@aybabtu.com>
9606 * util/biosdisk.c (open_device): Do not modify sector offset when
9607 accessing a partition. kern/disk.c already handles this for us.
9609 2008-06-06 Robert Millan <rmh@aybabtu.com>
9611 * util/grub-emu.c (grub_machine_init): Move code in this function from
9613 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
9614 segfault in case grub_printf() is called).
9616 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
9617 grub_probe. Update all users not to explicitly add it again.
9618 (grub_device): New variable; contains corresponding device for grubdir.
9619 (fs_module, partmap_module, devabstraction_module): Pass
9620 `--device ${grub_device}' to grub_probe to avoid traversing /dev
9623 2008-06-05 Robert Millan <rmh@aybabtu.com>
9625 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
9626 is found, print it (same layout as with labels).
9628 2008-06-04 Robert Millan <rmh@aybabtu.com>
9630 * util/biosdisk.c (get_drive): Rename to ...
9631 (find_grub_drive): ... this. Update all users.
9633 (get_os_disk): Rename to ...
9634 (convert_system_partition_to_system_disk): ... this. Update all users.
9636 (find_drive): Rename to ...
9637 (find_system_device): ... this. Update all users.
9639 2008-06-04 Robert Millan <rmh@aybabtu.com>
9641 * util/biosdisk.c (get_os_disk): Handle IDA devices.
9642 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9643 (make_device_map): Likewise.
9645 2008-06-01 Robert Millan <rmh@aybabtu.com>
9647 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
9648 before dereferencing it.
9650 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
9651 union with fat12/fat16-specific ones. Add some new fields, including
9652 `num_serial' for both versions.
9653 (struct grub_fat_data): Add `uuid' member.
9654 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
9655 names. Initialize `data->uuid' using `num_serial'.
9656 (grub_fat_uuid): New function.
9657 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
9659 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
9660 (grub_reiserfs_uuid): New function.
9661 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
9664 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
9665 (grub_xfs_uuid): New function.
9666 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
9668 2008-06-01 Robert Millan <rmh@aybabtu.com>
9670 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
9671 code that is backward compatible with pre-uuid search command.
9673 2008-05-31 Robert Millan <rmh@aybabtu.com>
9675 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
9676 floppies after everything else, to ensure floppy drive isn't accessed
9677 unnecessarily (patch from Bean).
9679 2008-05-31 Robert Millan <rmh@aybabtu.com>
9681 * commands/search.c (search_label, search_fs_uuid, search_file): Do
9682 not print device names when we were asked to set a variable.
9684 2008-05-31 Robert Millan <rmh@aybabtu.com>
9686 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
9687 using "cursor-on" and "cursor-off" commands (understood at least by
9688 the Open Firmware flavour on OLPC).
9690 2008-05-31 Michael Gorven <michael@gorven.za.net>
9692 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
9693 on and off sequences.
9695 2008-05-31 Robert Millan <rmh@aybabtu.com>
9697 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
9698 * util/update-grub.in: Likewise.
9700 2008-05-30 Pavel Roskin <proski@gnu.org>
9702 * util/biosdisk.c (linux_find_partition): Simplify logic and
9703 make the code more universal. Keep special processing for
9704 devfs, but use a simple rule for all other devices. If the
9705 device ends with a number, append 'p' and the partition number.
9706 Otherwise, append only the partition number.
9708 2008-05-30 Robert Millan <rmh@aybabtu.com>
9710 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
9711 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
9712 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
9713 the `root' parameter to Linux.
9715 2008-05-30 Robert Millan <rmh@aybabtu.com>
9717 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
9718 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
9719 --fs_uuid with --fs-uuid.
9720 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
9721 all filesystems support them).
9723 2008-05-30 Robert Millan <rmh@aybabtu.com>
9725 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
9726 grub_printf() flags, since we're printing in units of 2 bytes.
9728 2008-05-30 Robert Millan <rmh@aybabtu.com>
9730 * util/grub.d/00_header.in: Remove obsolete comment referencing
9731 convert_system_path_to_grub_path().
9732 * util/update-grub.in: Likewise.
9733 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
9734 (convert_system_path_to_grub_path): Add a warning message explaining
9735 that this function is deprecated. Rely on is_path_readable_by_grub()
9736 for the readability checks.
9737 (font_path): Use is_path_readable_by_grub() for the readability
9738 check rather than convert_system_path_to_grub_path().
9740 2008-05-30 Robert Millan <rmh@aybabtu.com>
9742 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
9743 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
9744 converting it first.
9745 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
9746 grub.cfg for access to font file, and afterwards call it again to set
9749 2008-05-30 Robert Millan <rmh@aybabtu.com>
9751 * commands/search.c (options): Add --fs_uuid option.
9752 (search_fs_uuid): New function.
9753 (grub_cmd_search): Fix --set argument passing.
9754 Use search_fs_uuid() when requested via --fs_uuid.
9755 (grub_search_init): Update help message.
9756 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
9757 and redeclare it as an array of 16-bit words.
9758 (grub_ext2_uuid): New function.
9759 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
9760 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
9761 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
9762 (GRUB_DEVICE_BOOT_UUID): New variables.
9763 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
9764 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
9766 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
9767 just assume `root' variable has the right value.
9768 * util/grub.d/10_linux.in: Likewise.
9769 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
9771 (main): Recognise `-t fs_uuid' argument.
9773 2008-05-30 Robert Millan <rmh@aybabtu.com>
9775 * util/biosdisk.c (map): Redefine structure to hold information
9776 about GRUB drive name.
9777 (get_drive): Reimplement without assuming (and verifying) BIOS-like
9779 (call_hook): Remove.
9780 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
9781 member. Assume drive has partitions.
9782 (grub_util_biosdisk_open): Access device names via `.device' struct
9784 (open_device): Likewise.
9785 (find_drive): Likewise.
9786 (read_device_map): Adjust map[] usage to match the new struct
9787 definition. Don't check for duplicates (still possible, but not cheap
9789 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
9790 (make_device_name): Remove assumption of BIOS-like drive names.
9792 2008-05-30 Pavel Roskin <proski@gnu.org>
9794 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
9795 compiling execute.c doesn't need grub_script.tab.h anymore.
9796 (normal/command.c_DEPENDENCIES): Likewise.
9797 (normal/function.c_DEPENDENCIES): Likewise.
9798 * conf/i386-ieee1275.rmk: Likewise.
9799 * conf/i386-linuxbios.rmk: Likewise.
9800 * conf/i386-pc.rmk: Likewise.
9801 * conf/powerpc-ieee1275.rmk: Likewise.
9802 * conf/sparc64-ieee1275.rmk: Likewise.
9804 2008-05-29 Pavel Roskin <proski@gnu.org>
9806 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
9807 when scanning metadata for volume group name.
9809 * include/grub/script.h: Don't include grub_script.tab.h. It's
9810 a generated file, which may only be included from the files with
9811 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
9812 use union YYSTYPE, as the later allows forward declaration.
9813 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
9815 2008-05-29 Robert Millan <rmh@aybabtu.com>
9817 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
9818 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
9819 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
9820 (grub_console_checkkey): Add grub_dprintf() call to report unknown
9823 2008-05-29 Robert Millan <rmh@aybabtu.com>
9825 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
9826 control key combinations.
9828 2008-05-29 Robert Millan <rmh@aybabtu.com>
9830 * util/powerpc/ieee1275/grub-install.in: Move from here ...
9831 * util/ieee1275/grub-install.in: ... to here.
9832 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
9833 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
9834 (grub_install_SOURCES): Likewise.
9836 2008-05-29 Robert Millan <rmh@aybabtu.com>
9838 * fs/affs.c: Update copyright year.
9839 * fs/ext2.c: Likewise.
9840 * fs/fshelp.c: Likewise.
9841 * fs/hfsplus.c: Likewise.
9842 * fs/ntfs.c: Likewise.
9843 * fs/xfs.c: Likewise.
9844 * include/grub/fshelp.h: Likewise.
9845 * util/grub-mkdevicemap.c: Likewise.
9847 2008-05-28 Robert Millan <rmh@aybabtu.com>
9849 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
9850 might need to be fatfs to support some firmware implementations
9853 2008-05-28 Robert Millan <rmh@aybabtu.com>
9855 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
9857 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9858 (make_device_map): Likewise.
9860 2008-05-20 Bean <bean123ch@gmail.com>
9862 * fs/fshelp.c (grub_fshelp_map_block): New function.
9863 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
9864 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
9866 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
9867 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
9868 (grub_fshelp_journal): New structure.
9869 (grub_fshelp_map_block): New function prototype.
9870 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
9871 (grub_fshelp_map_block): Likewise.
9873 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
9874 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
9875 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
9876 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
9877 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
9878 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
9879 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
9880 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
9881 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
9882 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
9883 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
9884 (grub_ext2_sblock): New members for journal support.
9885 (grub_ext3_journal_header): New structure.
9886 (grub_ext3_journal_revoke_header): Likewise.
9887 (grub_ext3_journal_block_tag): Likewise.
9888 (grub_ext3_journal_sblock): Likewise.
9889 (grub_fshelp_node): New members logfile and journal.
9890 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
9891 grub_fshelp_map_block to get real block number.
9892 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
9894 (grub_ext2_read_inode): Likewise.
9895 (grub_ext3_get_journal): New function.
9896 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
9897 (grub_ext2_close): Release memory used by journal.
9899 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
9900 (REISERFS_MAGIC_DESC_BLOCK): New macro.
9901 (grub_reiserfs_transaction_header): Renamed to
9902 grub_reiserfs_description_block, replace field data with real_blocks.
9903 (grub_reiserfs_commit_block): New structure.
9904 (grub_reiserfs_data): New member journal.
9905 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
9907 (grub_reiserfs_read_symlink): Likewise.
9908 (grub_reiserfs_iterate_dir): Likewise.
9909 (grub_reiserfs_open): Likewise.
9910 (grub_reiserfs_read): Likewise.
9911 (grub_reiserfs_get_journal): New function.
9912 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
9913 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
9914 using grub_reiserfs_get_journal.
9915 (grub_reiserfs_close): Release memory used by journal.
9917 * fs/affs.c (grub_affs_read_block): Change block type to
9918 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
9920 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
9922 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
9924 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
9926 * fs/udf.c (grub_udf_read_block): Change block type to
9927 grub_disk_addr_t. Use type cast to avoid warning.
9929 * fs/xfs.c (grub_xfs_read_block): Likewise.
9931 2008-05-16 Christian Franke <franke@computer.org>
9933 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
9934 to ensure that break with ESC will always work.
9935 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
9936 Remove ESC from keyboard queue.
9938 2008-05-16 Christian Franke <franke@computer.org>
9940 * util/biosdisk.c: [__CYGWIN__] Add includes.
9941 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
9942 (get_os_disk): Move variable declarations to OS specific
9943 parts to avoid warning.
9944 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
9945 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
9946 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
9948 * util/getroot.c: [__CYGWIN__] Add includes.
9949 (strip_extra_slashes): Fix "/" case.
9950 [__CYGWIN__] (get_win32_path): New function.
9951 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
9952 [__CYGWIN__] (find_root_device): Disable.
9953 [__CYGWIN__] (get_bootsec_serial): New function.
9954 [__CYGWIN__] (find_cygwin_root_device): Likewise.
9955 [__linux__] (grub_guess_root_device): Add early returns to simplify
9957 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
9958 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
9959 check for Linux only.
9961 2008-05-15 Bean <bean123ch@gmail.com>
9963 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
9964 keyboard hang problem in apple's intel mac.
9966 2008-05-09 Robert Millan <rmh@aybabtu.com>
9968 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
9970 * util/grub-mkdevicemap.c (get_virtio_disk_name)
9971 (make_device_map): Likewise.
9972 Reported by Aurelien Jarno <aurel32@debian.org>
9974 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
9976 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
9977 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
9978 (make_device_map): Output entries for xvd type disks.
9980 2008-05-07 Robert Millan <rmh@aybabtu.com>
9982 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
9984 * util/grub-mkdevicemap.c (get_cciss_disk_name)
9985 (make_device_map): Likewise.
9986 Reported by Roland Dreier <rdreier@cisco.com>
9988 2008-05-07 Robert Millan <rmh@aybabtu.com>
9990 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
9991 grub_strstr() call. Correct a few mistakes in failure path handling.
9993 2008-05-06 Robert Millan <rmh@aybabtu.com>
9995 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
9996 Do not print a trailing slash (therefore, the root directory is an
9998 (convert_system_path_to_grub_path): Do not remove trailing slash
9999 from make_system_path_relative_to_its_root() output.
10001 * util/i386/pc/grub-install.in: Add trailing slash to output from
10002 make_system_path_relative_to_its_root().
10004 2008-05-06 Robert Millan <rmh@aybabtu.com>
10006 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
10007 ensures that output lines aren't intermangled with those sent to
10008 stderr (via grub_util_info()).
10009 * util/grub-probe.c (grub_refresh): Likewise.
10010 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
10012 2008-05-05 Christian Franke <franke@computer.org>
10014 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
10015 Add Cygwin device names.
10016 (get_ide_disk_name) [__CYGWIN__]: Likewise.
10017 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
10018 (check_device): Return error instead of success on empty name.
10019 (make_device_map): Move label inside linux specific code to
10020 prevent compiler warning.
10022 2008-04-30 Robert Millan <rmh@aybabtu.com>
10024 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
10025 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
10027 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
10029 2008-04-29 Robert Millan <rmh@aybabtu.com>
10031 * docs/grub.cfg: New file (example GRUB configuration).
10033 2008-04-26 Robert Millan <rmh@aybabtu.com>
10035 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
10036 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
10037 and `disk/ieee1275/nand.c'.
10039 2008-04-25 Bean <bean123ch@gmail.com>
10041 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
10044 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
10045 change the buffer size to 4096 for cdrom device.
10047 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
10049 (_linux_mod_SOURCES): New variable.
10050 (_linux_mod_CFLAGS): Likewise.
10051 (_linux_mod_LDFLAGS): Likewise.
10052 (linux_mod_SOURCES): Likewise.
10053 (linux_mod_CFLAGS): Likewise.
10054 (linux_mod_LDFLAGS): Likewise.
10055 (nand_mod_SOURCES): Likewise.
10056 (nand_mod_CFLAGS): Likewise.
10057 (nand_mod_LDFLAGS): Likewise.
10059 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
10060 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
10061 type property. (nand device in olpc don't have this property)
10063 * include/grub/disk.h (grub_disk_dev_id): New macro
10064 GRUB_DISK_DEVICE_NAND_ID.
10066 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
10067 function prototype.
10068 (grub_rescue_cmd_initrd): Likewise.
10070 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
10071 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
10072 ofw_cif_handler and ofw_idt, adjust padding number.
10074 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
10075 GRUB_MACHINE_IEEE1275 is defined.
10077 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
10078 Use NESTED_FUNC_ATTR attribute on the hook parameter.
10080 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
10081 on nested function heap_init.
10082 (grub_upper_mem): New variable for i386-ieee1275.
10083 (grub_get_extended_memory): New function for i386-ieee1275.
10084 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
10086 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
10087 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
10090 * loader/i386/ieee1275/linux.c: New file.
10092 * loader/i386/ieee1275/linux_normal.c: New file.
10094 * disk/ieee1275/nand.c: New file.
10096 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
10098 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
10100 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
10102 2008-04-18 Robert Millan <rmh@aybabtu.com>
10104 Restructures early code path on ieee1275 to unify grub_main() as
10105 the first C function that is executed in every platform.
10107 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
10108 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
10110 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
10111 * kern/ieee1275/cmain.c (cmain): Rename to ...
10112 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
10113 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
10116 2008-04-18 Robert Millan <rmh@aybabtu.com>
10118 * util/update-grub.in: Fix syntax error when setting
10119 `GRUB_PRELOAD_MODULES'.
10120 Reported by Stephane Chazelas <stephane@artesyncp.com>
10122 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
10124 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
10125 section into account, newer toolchains generate unique build ids
10126 * configure.ac: remove the test for --build-id=none acceptance,
10127 we want build ids to be preserved
10128 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
10129 far from other sections don't cause the raw binary images grow
10132 2008-04-15 Robert Millan <rmh@aybabtu.com>
10134 * disk/lvm.c: Update copyright year.
10135 * kern/misc.c: Likewise.
10137 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10139 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
10140 there is no memory left for physical volume name.
10142 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10144 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
10145 volume name mapping to support bigger than 9 character names properly.
10147 2008-04-13 Robert Millan <rmh@aybabtu.com>
10149 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
10150 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
10152 2008-04-13 Christian Franke <franke@computer.org>
10154 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
10155 to create a floppy emulation boot CD when non emulation mode
10157 Enable Joliet CD filesystem extension.
10159 2008-04-13 Robert Millan <rmh@aybabtu.com>
10161 * kern/misc.c (grub_strncat): Fix off-by-one error.
10162 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
10164 * kern/env.c (grub_env_context_close): Clear current context, not
10166 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
10168 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
10170 2008-04-13 Robert Millan <rmh@aybabtu.com>
10172 Improve robustness when handling LVM.
10174 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
10175 (and leave `*p' unmodified).
10176 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
10178 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
10179 iterating through it.
10180 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
10182 (grub_lvm_scan_device): Check the return value (and fail gracefully
10183 when due) on each grub_lvm_getvalue() or grub_strstr() call.
10184 Don't assume `vg->pvs != NULL' when iterating through it.
10186 2008-04-13 Robert Millan <rmh@aybabtu.com>
10188 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
10189 * genmk.rb (partmap): New variable.
10190 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
10191 (#{partmap}): New target rule.
10192 * genpartmaplist.sh: New file.
10193 * Makefile.in (pkglib_DATA): Add partmap.lst.
10194 (partmap.lst): New target rule.
10195 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
10196 modules (including all partition maps), instead of preloading them.
10198 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
10200 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
10201 `linux-boot-prober' (if installed) to detect other operating
10202 systems which are installed on the computer and add them to
10204 * conf/common.rmk: Build and install 30_os-prober.
10206 2008-04-12 Robert Millan <rmh@aybabtu.com>
10208 * kern/powerpc/ieee1275/init.c: Move from here ...
10209 * kern/ieee1275/init.c: ... to here. Update all users.
10211 * kern/powerpc/ieee1275/cmain.c: Move from here ...
10212 * kern/ieee1275/cmain.c: ... to here. Update all users.
10214 * kern/powerpc/ieee1275/openfw.c: Move from here ...
10215 * kern/ieee1275/openfw.c: ... to here. Update all users.
10217 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
10218 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
10220 2008-04-10 Pavel Roskin <proski@gnu.org>
10222 * configure.ac: Always use "_cv_" in cache variables for
10223 compatibility with Autoconf 2.62.
10225 2008-04-07 Robert Millan <rmh@aybabtu.com>
10227 Revert grub/machine/init.h addition by Pavel (since it breaks on
10228 i386-ieee1275 and others):
10229 * util/i386/pc/misc.c: Remove grub/machine/init.h.
10230 * util/powerpc/ieee1275/misc.c: Likewise.
10232 2008-04-07 Robert Millan <rmh@aybabtu.com>
10234 * util/grub-probe.c (probe): Improve error message.
10236 2008-04-07 Robert Millan <rmh@aybabtu.com>
10238 * util/biosdisk.c (read_device_map): Skip devices that don't exist
10239 (this prevents the presence of a bogus entry from ruining the whole
10242 2008-04-06 Pavel Roskin <proski@gnu.org>
10244 * util/biosdisk.c: Include grub/util/biosdisk.h.
10245 * util/grub-fstest.c (execute_command): Make static.
10246 * util/grub-mkdevicemap.c (check_device): Likewise.
10247 * util/i386/pc/misc.c: Include grub/machine/init.h.
10248 * util/powerpc/ieee1275/misc.c: Likewise.
10249 * util/lvm.c: Include grub/util/lvm.h.
10250 * util/misc.c: Include grub/kernel.h, grub/misc.h and
10252 * util/raid.c: Include grub/util/raid.h.
10253 (grub_util_getdiskname): Make static.
10255 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
10256 grub_hostfs_fini(), as they are called from grub_init_all() and
10257 grub_fini_all() respectively. This fixes an infinite loop in
10258 grub-fstest due to double registration of hostfs.
10259 Reported by Christian Franke <Christian.Franke@t-online.de>
10261 2008-04-05 Pavel Roskin <proski@gnu.org>
10263 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
10264 all 8 functions. Otherwise, probe function 0 only.
10266 2008-04-04 Pavel Roskin <proski@gnu.org>
10268 * commands/lspci.c (grub_lspci_iter): Print the bus number
10271 * commands/lspci.c (grub_pci_classes): Fix typos.
10272 (grub_lspci_iter): Don't print func twice. Print vendor ID
10273 before device ID, as it's normally done.
10275 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
10276 Fix signedness warnings.
10277 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
10279 * util/ieee1275/get_disk_name.c: Include config.h so that
10280 _GNU_SOURCE is defined and getline() is declared. Mark an
10281 unused argument as such. Fix a signedness warning.
10283 2008-04-02 Pavel Roskin <proski@gnu.org>
10285 * genkernsyms.sh.in: Use more robust assignments for CC and
10286 srcdir. Quote srcdir.
10287 * gensymlist.sh.in: Likewise. Assert at the compile time that
10288 the symbol table is not empty.
10290 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
10291 * fs/cpio.c (grub_cpio_read): Likewise.
10293 2008-04-01 Pavel Roskin <proski@gnu.org>
10295 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
10296 * disk/host.c (grub_host_open): Likewise.
10297 * disk/loopback.c (grub_loopback_open): Likewise.
10298 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
10299 disk->id as in disk/host.c, not a multi-character constant.
10301 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
10302 later is obsolete, potentially dangerous and sets a bad example.
10303 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
10304 * util/misc.c (grub_util_get_image_size): Likewise.
10306 * disk/loopback.c (options): Improve help for "--partitions".
10308 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
10309 options to align them with the short options, e.g. "echo -e".
10311 2008-03-31 Bean <bean123ch@gmail.com>
10313 * video/reader/png.c (grub_png_data): New member is_16bit and
10315 (grub_png_decode_image_header): Detect 16 bit png image.
10316 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
10317 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
10318 (grub_video_reader_png): Release memory occupied by image_data.
10320 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
10322 (grub_nfs_mount): Skip the test for sector per cluster.
10324 * include/grub/ntfs.h (MAX_SPC): Removed.
10326 2008-03-31 Bean <bean123ch@gmail.com>
10328 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
10329 (grub_probe_SOURCES): Add fs/afs.c.
10330 (grub_fstest_SOURCES): Likewise.
10331 (afs_mod_SOURCES): New variable.
10332 (afs_mod_CFLAGS): Likewise.
10333 (afs_mod_LDFLAGS): Likewise.
10335 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
10336 (grub_emu_SOURCES): Likewise.
10338 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10340 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10342 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10344 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10346 * fs/afs.c: New file.
10348 2008-03-30 Pavel Roskin <proski@gnu.org>
10350 * disk/host.c: Include grub/misc.h to fix a warning.
10351 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
10352 warnings about implicit declarations.
10354 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
10356 * include/grub/i386/loader.h: Change declaration of
10357 grub_linux_boot() to match what grub_loader_set() expects.
10358 * util/getroot.c (grub_guess_root_device): Return const char* to
10360 * util/grub-probe.c (probe): Fix a warning about uninitialized
10361 abstraction_name variable.
10362 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
10363 second argument as unused to fix a warning.
10365 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
10366 missing grub_error() call.
10368 * util/update-grub_lib.in: Define datarootdir, since Autoconf
10369 2.60 and newer uses it to define datadir.
10371 * commands/sleep.c: Fix warning about implicit declaration.
10372 * disk/memdisk.c: Likewise.
10373 * loader/aout.c: Likewise.
10374 * loader/i386/bsd_normal.c: Likewise.
10375 * util/grub-probe.c: Likewise.
10377 * commands/i386/cpuid.c (has_longmode): Make static.
10378 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
10379 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
10381 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
10382 GDT. This is more robust, as %ds can change.
10383 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
10384 calling real_to_prot().
10385 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
10387 2008-03-28 Pavel Roskin <proski@gnu.org>
10389 * kern/i386/pc/startup.S: Assert that uncompressed functions
10390 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
10391 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
10392 code, as they push parts of the code (error handlers) beyond
10393 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
10394 code as correctness and size.
10396 2008-03-28 Pavel Roskin <proski@gnu.org>
10398 * kern/i386/pc/startup.S
10399 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
10400 data block address to the real mode, keep offset minimal. This
10401 works around a bug in AWARD BIOS on old Athlon systems, which
10402 makes CD detection hang.
10404 2008-03-26 Pavel Roskin <proski@gnu.org>
10406 * normal/color.c (grub_parse_color_name_pair): Make `name' a
10408 * include/grub/normal.h: Add grub_parse_color_name_pair()
10411 2008-03-24 Bean <bean123ch@gmail.com>
10413 * disk/i386/pc/biosdisk.c (cd_start): Removed.
10414 (cd_count): Removed.
10415 (cd_drive): New variable.
10416 (grub_biosdisk_get_drive): Don't check for (cdN) device.
10417 (grub_biosdisk_call_hook): Likewise.
10418 (grub_biosdisk_iterate): Change cdrom detection method.
10419 (grub_biosdisk_open): Replace cd_start with cd_drive.
10420 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
10421 detect cdrom device.
10423 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
10425 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
10426 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
10427 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
10428 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
10429 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
10430 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
10431 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
10432 (grub_biosdisk_cdrp): New structure.
10433 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
10435 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
10437 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
10440 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
10443 2008-03-20 Robert Millan <rmh@aybabtu.com>
10445 Remove 2 TiB limit in ata.mod.
10446 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
10447 (grub_ata_dumpinfo): Print sector count with 0x%llx.
10448 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
10449 grub_uint64_t instead of grub_uint32_t.
10451 2008-03-05 Bean <bean123ch@gmail.com>
10453 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
10454 (grub_multiboot): Set boot device.
10456 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
10458 2008-03-02 Bean <bean123ch@gmail.com>
10460 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
10463 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
10465 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
10468 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
10471 * docs/fdl.texi: New file.
10473 * docs/mdate-sh: New file. Copied from gnulib.
10474 * docs/texinfo.tex: Likewise.
10476 * config.guess: Updated from gnulib.
10477 * install-sh: Likewise.
10479 2008-02-28 Robert Millan <rmh@aybabtu.com>
10481 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
10482 (aout_mod_SOURCES): New variable.
10483 (aout_mod_CFLAGS): Likewise.
10484 (aout_mod_LDFLAGS): Likewise.
10486 * conf/i386-ieee1275.rmk: Likewise.
10488 2008-02-28 Robert Millan <rmh@aybabtu.com>
10490 * util/update-grub.in: Reorganise terminal validity check. Accept
10491 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
10492 Based on suggestion by Franklin PIAT.
10494 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
10496 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
10498 * util/getroot.c (grub_util_check_block_device): New function that
10499 returns the given argument if it is a block device and returns NULL else.
10500 * util/grub-probe.c (argument_is_device): New variable.
10501 (probe): Promote device_name from a variable to an argument. Receive
10502 device_name from grub_util_check_block_device() if path is NULL and from
10503 grub_guess_root_device() else. Do not free() device_name anymore.
10504 (options): Introduce new parameter '-d, --device'.
10505 (main): Add description of the new parameter to the help screen.
10506 Rename path variable to argument. Set argument_is_device if the '-d'
10507 option is given. Pass argument to probe() depending on
10508 argument_is_device.
10510 2008-02-24 Bean <bean123ch@gmail.com>
10512 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
10513 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
10514 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
10515 (GRUB_ISO9660_VOLDESC_PART): Likewise.
10516 (GRUB_ISO9660_VOLDESC_END): Likewise.
10517 (grub_iso9660_primary_voldesc): New member escape.
10518 (grub_iso9660_data): New member joliet.
10519 (grub_iso9660_convert_string): New function.
10520 (grub_iso9660_mount): Detect joliet extension.
10521 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
10522 (grub_iso9660_iso9660_label): Likewise.
10524 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
10525 (grub_setup_SOURCES): Add fs/udf.c.
10526 (grub_fstest_SOURCES): Likewise.
10527 (udf_mod_SOURCES): New variable.
10528 (udf_mod_CFLAGS): Likewise.
10529 (udf_mod_LDFLAGS): Likewise.
10531 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
10532 (grub_emu_SOURCES): Likewise.
10534 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10536 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10538 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10540 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10542 * fs/udf.c: New file.
10544 2008-02-24 Robert Millan <rmh@aybabtu.com>
10546 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
10547 (normal/lexer.c_DEPENDENCIES): New variables.
10548 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10549 (normal/lexer.c_DEPENDENCIES): Likewise.
10550 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
10551 (normal/lexer.c_DEPENDENCIES): Likewise.
10552 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
10553 (normal/lexer.c_DEPENDENCIES): Likewise.
10554 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10555 (normal/lexer.c_DEPENDENCIES): Likewise.
10556 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10557 (normal/lexer.c_DEPENDENCIES): Likewise.
10559 2008-02-23 Robert Millan <rmh@aybabtu.com>
10561 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
10562 since they were intended to be in hex. This didn't break previously
10563 because of a bug in gpt_partition_map_iterate() (see below).
10565 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
10566 when checking the validity of GPT header.
10567 Remove `partno', since it always provides the same information as `i'.
10569 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
10571 * include/grub/efi/time.h: Fix a wrong comment.
10573 2008-02-19 Pavel Roskin <proski@gnu.org>
10575 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
10578 2008-02-19 Bean <bean123ch@gmail.com>
10580 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
10581 (aout_mod_SOURCES): New variable.
10582 (aout_mod_CFLAGS): Likewise.
10583 (aout_mod_LDFLAGS): Likewise.
10584 (_bsd_mod_SOURCES): New variable.
10585 (_bsd_mod_CFLAGS): Likewise.
10586 (_bsd_mod_LDFLAGS): Likewise.
10587 (bsd_mod_SOURCES): New variable.
10588 (bsd_mod_CFLAGS): Likewise.
10589 (bsd_mod_LDFLAGS): Likewise.
10591 * include/grub/aout.h: New file.
10593 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
10595 * include/grub/i386/bsd.h: New file.
10597 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
10600 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
10601 function is called, so that it's possible to change it inside the hook.
10602 (grub_elf64_load): Likewise.
10603 (grub_elf_file): Don't close the file if elf header is not found.
10604 (grub_elf_close): Close the file if grub_elf_file fails (The new
10605 grub_elf_file won't close it).
10606 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
10607 (grub_elf64_size): Likewise.
10609 * kern/i386/loader.S (grub_unix_real_boot): New function.
10611 * loader/aout.c: New file.
10613 * loader/i386/bsd.c: New file.
10615 * loader/i386/bsd_normal.c: New file.
10617 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
10619 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
10620 can test other formats.
10622 2008-02-19 Robert Millan <rmh@aybabtu.com>
10624 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
10625 (grub_gpt_partition_type_empty): Redefine with macro from
10626 `<grub/gpt_partition.h>'.
10627 (gpt_partition_map_iterate): Adjust partition type comparison.
10629 Export `entry' as partmap-specific `part.data' struct.
10630 (grub_gpt_header, grub_gpt_partentry): Move from here ...
10632 * include/grub/gpt_partition.h (grub_gpt_header)
10633 (grub_gpt_partentry): ... to here (new file).
10635 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
10637 (grub_gpt_partition_type_bios_boot): New const variable, defined
10638 with macro from `<grub/gpt_partition.h>'.
10640 (setup): Replace `first_start' with `embed_region', which keeps
10641 track of the embed region (and is partmap-agnostic).
10643 Replace find_first_partition_start() with find_usable_region(),
10644 which finds a usable region for embedding using partmap-specific
10645 knowledge (supports PC/MSDOS and GPT).
10647 Fix all assumptions that the embed region start at sector 1, using
10648 `embed_region.start' from now on. Similarly, use `embed_region.end'
10649 rather than `first_start' to calculate available size.
10651 In grub_util_info() message, replace "into after the MBR" with an
10652 indication of the specific sector our embed region starts at.
10654 2008-02-19 Robert Millan <rmh@aybabtu.com>
10656 * DISTLIST: Replace `commands/ieee1275/halt.c' and
10657 `commands/ieee1275/reboot.c' with `commands/halt.c' and
10658 `commands/reboot.c'.
10659 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10660 (halt_mod_SOURCES): Likewise.
10661 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10662 (halt_mod_SOURCES): Likewise.
10664 2008-02-17 Christian Franke <franke@computer.org>
10666 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
10668 2008-02-17 Robert Millan <rmh@aybabtu.com>
10670 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10671 set `first_start' to 0 for non-PC/MSDOS partition maps.
10673 2008-02-16 Robert Millan <rmh@aybabtu.com>
10675 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10676 do not assume partition map is PC/MSDOS before performing checks that
10677 are specific to that layout.
10679 2008-02-13 Robert Millan <rmh@aybabtu.com>
10681 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
10682 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
10683 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
10685 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
10687 * configure.ac: Only a cosmetic change on the handling of
10688 -fno-stack-protector.
10690 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
10692 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
10693 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
10695 (grub_install_SOURCES): Add halt.mod and reboot.mod.
10696 (halt_mod_SOURCES): New variable.
10697 (halt_mod_CFLAGS): Likewise.
10698 (halt_mod_LDFLAGS): Likewise.
10699 (reboot_mod_SOURCES): Likewise.
10700 (reboot_mod_CFLAGS): Likewise.
10701 (reboot_mod_LDFLAGS): Likewise.
10703 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
10704 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
10706 (halt_mod_SOURCES): Likewise.
10707 (reboot_mod_SOURCES): Likewise.
10709 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
10710 commands/i386/pc/reboot.c by commands/reboot.c.
10711 (reboot_mod_SOURCES): Likewise.
10713 * commands/i386/pc/reboot.c: merge this file ...
10715 * commands/ieee1275/reboot.c: ... and this file ...
10717 * commands/reboot.c: ... to this file.
10718 Add some precompiler directive to include the correct header for
10721 * commands/ieee1275/halt.c: move this file ...
10723 * commands/halt.c: ... to here.
10724 Add some precompiler directive to include the correct header for
10727 * include/grub/efi/efi.h (grub_reboot): New function declaration.
10728 (grub_halt): Likewise.
10730 * kern/efi/efi.c (grub_reboot): New function.
10731 (grub_halt): Likewise.
10733 2008-02-12 Robert Millan <rmh@aybabtu.com>
10735 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
10736 /dev (like it is done for /dev/mapper). This doesn't provide support
10737 for EVMS, but at least it is now easy to identify the problem when it
10740 2008-02-11 Robert Millan <rmh@aybabtu.com>
10742 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
10743 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
10744 comparing it with -1, not 0.
10746 2008-02-10 Robert Millan <rmh@aybabtu.com>
10748 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
10750 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10751 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10753 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
10754 `disk/lvm.c' to the end of the list.
10755 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10756 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10758 2008-02-10 Robert Millan <rmh@aybabtu.com>
10760 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
10761 grub_print_error() instead. This will let user know why we're entering
10763 Based on suggestions from Sam Morris.
10765 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
10767 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
10768 on remaining N args, instead of "--" arg N times.
10770 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
10772 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
10773 (fill_with_default_glyph): Changed to use unknown_glyph for fill
10774 pattern for unknown glyphs.
10776 2008-02-09 Robert Millan <rmh@aybabtu.com>
10778 * configure.ac: Probe for `help2man'.
10779 * Makefile.in (builddir): New variable.
10780 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
10781 or otherwise add a few flags/options to it.
10782 (install-local): For every executable utility or script that is
10783 installed, invoke $(HELP2MAN) to install a manpage based on --help
10786 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
10787 that it doesn't prevent --help from working in build tree.
10789 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
10790 with `bug-grub@gnu.org'.
10791 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
10792 * util/update-grub.in (usage): New function.
10793 Implement proper argument check, with support for --help and --version
10794 (as well as existing -y).
10796 2008-02-09 Christian Franke <franke@computer.org>
10798 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
10799 avoid overwriting previous output.
10800 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
10802 2008-02-09 Robert Millan <rmh@aybabtu.com>
10804 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
10807 2008-02-09 Robert Millan <rmh@aybabtu.com>
10809 * commands/sleep.c: New file.
10810 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
10811 (sleep_mod_SOURCES): New variable.
10812 (sleep_mod_CFLAGS): Likewise.
10813 (sleep_mod_LDFLAGS): Likewise.
10815 2008-02-09 Robert Millan <rmh@aybabtu.com>
10817 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
10818 situations in which we can deduce the RAID size and the superblock
10821 2008-02-09 Robert Millan <rmh@aybabtu.com>
10823 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
10824 and return a grub_diskmemberlist_t composed of LVM physical volumes.
10825 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
10827 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
10828 and return a grub_diskmemberlist_t composed of physical array members.
10829 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
10831 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
10833 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
10834 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
10835 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
10837 * util/grub-probe.c (probe): Move partmap probing code from here ...
10838 (probe_partmap): ... to here.
10839 (probe): Use probe_partmap() once for the disk we're probing, and
10840 additionally, when such disk contains a memberlist() struct member,
10841 once for each disk that is contained in the structure returned by
10844 2008-02-09 Robert Millan <rmh@aybabtu.com>
10846 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
10847 environment variable to 'all' in order to obtain debug output from
10849 * util/i386/pc/grub-setup.c (main): Likewise.
10851 2008-02-08 Robert Millan <rmh@aybabtu.com>
10853 * disk/raid.c (grub_raid_scan_device): Check for
10854 `array->device[sb.this_disk.number]' rather than for
10855 `array->device[sb.this_disk.number]->name', since the latter is not
10856 guaranteed to be accessible.
10858 2008-02-08 Robert Millan <rmh@aybabtu.com>
10860 * disk/raid.c: Update copyright.
10861 * fs/cpio.c: Likewise.
10862 * include/grub/raid.h: Likewise.
10863 * loader/i386/pc/multiboot.c: Likewise.
10864 * util/hostfs.c: Likewise.
10866 2008-02-08 Robert Millan <rmh@aybabtu.com>
10868 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
10869 to a grub_disk_t array.
10870 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
10872 (grub_raid_scan_device): Replace `device[x].name' accesses with
10873 `device[x]->name'. Simplify initialization of `array->device[x]'.
10875 2008-02-08 Robert Millan <rmh@aybabtu.com>
10877 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
10878 grub_dprintf() calls.
10879 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
10882 2008-02-07 Christian Franke <franke@computer.org>
10884 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
10885 instead of fseek and ftell to support large files.
10886 (grub_hostfs_read): Likewise.
10888 2008-02-07 Robert Millan <rmh@aybabtu.com>
10890 Patch from Jeroen Dekkers.
10891 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
10892 failure, since successfully reading all array members might not be
10895 2008-02-06 Robert Millan <rmh@aybabtu.com>
10897 * util/grub-probe.c (probe): Simplify partmap probing (with the
10898 assumption that the first word up to the underscore equals to
10901 2008-02-06 Christian Franke <franke@computer.org>
10903 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
10904 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
10905 last block of a cpio or tar stream.
10906 Check for "TRAILER!!!" instead of any empty data
10907 block to detect last block of a cpio stream.
10908 (grub_cpio_dir): Fix constness of variable np.
10909 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
10910 cpio or tar trailer is detected. This fixes a crash
10911 on open of a non existing file.
10913 2008-02-05 Bean <bean123ch@gmail.com>
10915 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
10917 (grub_multiboot_load_elf64): Likewise.
10918 (grub_multiboot): Initialize mbi structure.
10920 * util/grub-fstest.c: Don't include unused header file script.h.
10922 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
10924 (grub_fstest_SOURCES): Likewise.
10926 2008-02-05 Robert Millan <rmh@aybabtu.com>
10928 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
10929 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
10930 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
10931 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
10933 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
10934 (translation_table): Replace hardcoded values with macros
10935 provided by `<grub/term.h>'.
10937 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
10938 (keyboard_map): Correct/add a few values, with macros provided
10939 by `<grub/term.h>'.
10940 (keyboard_map_shift): Zero values that don't differ from their
10941 `keyboard_map' equivalents.
10942 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
10943 Discard the second scan code that is always sent by Caps lock.
10944 Only use `keyboard_map_shift' when it provides a non-zero value,
10945 otherwise fallback to `keyboard_map'.
10947 2008-02-04 Bean <bean123ch@gmail.com>
10949 * Makefile.in (enable_grub_fstest): New variable.
10951 * conf/common.rmk (grub_fstest_init.lst): New rule.
10952 (grub_fstest_init.h): Likewise.
10953 (grub_fstest_init.c): Likewise.
10954 (util/grub-fstest.c_DEPENDENCIES): New variable.
10955 (grub_fstest_SOURCES): Likewise.
10957 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
10959 * util/grub-fstest.c: New file.
10961 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10963 Make grub-setup handle a separate root device.
10965 * util/i386/pc/grub-setup.c (setup): Always open the root device,
10966 so that the root device can be compared with the destination
10968 When embedding the core image, if the root and destination devices
10969 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
10971 When not embedding, set ROOT_DRIVE to 0xFF.
10973 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10975 Add support for having a grub directory in a different drive. This
10976 is still only the data handling part.
10978 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
10979 (codestart): Save %dh in GRUB_ROOT_DRIVE.
10980 (grub_root_drive): New variable.
10982 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
10983 instead of GRUB_BOOT_DRIVE to construct a device name. Set
10984 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
10987 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
10989 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
10991 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
10993 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
10994 is bogus, because PXE booting does not specify any drive
10997 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
10998 am not sure if this is really correct.
11000 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
11001 is always identical to the boot drive when booting from a CD.
11003 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
11005 (root_drive): New variable.
11006 (real_start): Unconditionally set %dh to ROOT_DRIVE.
11007 (setup_sectors): Push %dx right after popping it, because %dh will
11009 (copy_buffer): Restore %dx.
11011 2008-02-03 Robert Millan <rmh@aybabtu.com>
11013 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
11014 use `cdboot.img' for cdrom images.
11016 2008-02-03 Robert Millan <rmh@aybabtu.com>
11018 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
11019 only setup gfxterm when `font' command has succeeded.
11021 2008-02-03 Robert Millan <rmh@aybabtu.com>
11023 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
11024 (grub_rescue_cmd_multiboot_loader)
11025 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
11027 2008-02-03 Pavel Roskin <proski@gnu.org>
11029 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
11030 %edx and %esi from stack only after grub_gate_a20() is called.
11031 grub_gate_a20() clobbers %edx.
11033 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11035 * configure.ac (AC_INIT): Bumped to 1.96.
11037 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
11038 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
11039 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
11040 video/readers/png.c.
11042 2008-02-03 Bean <bean123ch@gmail.com>
11044 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
11045 (cdboot_img_SOURCES): New variable.
11046 (cdboot_img_ASFLAGS): New variable.
11047 (cdboot_img_LDFLAGS): New variable.
11049 * boot/i386/pc/cdboot.S: New file.
11051 * disk/i386/pc/biosdisk.c (cd_start): New variable.
11052 (cd_count): Likewise.
11053 (grub_biosdisk_get_drive): Add support for cd device.
11054 (grub_biosdisk_call_hook): Likewise.
11055 (grub_biosdisk_iterate): Likewise.
11056 (grub_biosdisk_open): Likewise.
11057 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
11058 (grub_biosdisk_rw): Support reading from cd device.
11059 (GRUB_MOD_INIT): Iterate cd devices.
11061 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
11062 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
11063 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
11065 * kern/i386/pc/init.c (make_install_device): Check for cd device.
11067 2008-02-02 Robert Millan <rmh@aybabtu.com>
11069 * commands/read.c: New file.
11070 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
11071 (read_mod_SOURCES): New variable.
11072 (read_mod_CFLAGS): Likewise.
11073 (read_mod_LDFLAGS): Likewise.
11075 2008-02-02 Robert Millan <rmh@aybabtu.com>
11077 * normal/main.c (grub_normal_execute): Check for `menu->size' when
11078 determining whether menu has to be displayed.
11080 2008-02-02 Marco Gerards <marco@gnu.org>
11082 * bus/pci.c: New file.
11084 * include/grub/pci.h: Likewise.
11086 * include/grub/i386/pc/pci.h: Likewise.
11088 * commands/lspci.c: Likewise.
11090 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
11092 (pci_mod_SOURCES): New variable.
11093 (pci_mod_CFLAGS): Likewise.
11094 (pci_mod_LDFLAGS): Likewise.
11095 (lspci_mod_SOURCES): Likewise.
11096 (lspci_mod_CFLAGS): Likewise.
11097 (lspci_mod_LDFLAGS): Likewise.
11099 2008-02-02 Bean <bean123ch@gmail.com>
11101 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
11102 (grub_ufs_get_file_block): Fix indirect block calculation problem.
11104 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
11105 (grub_xfs_btree_node): New structure.
11106 (grub_xfs_btree_root): New structure.
11107 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
11108 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
11109 (GRUB_XFS_EXTENT_BLOCK): Likewise.
11110 (GRUB_XFS_EXTENT_SIZE): Likewise.
11111 (grub_xfs_read_block): Support btree format type.
11112 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
11113 Use directory block as basic unit.
11115 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
11117 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
11118 __attribute__ ((__regparm__ (1))).
11120 2008-02-01 Robert Millan <rmh@aybabtu.com>
11122 Correct a mistake in previous commit.
11124 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
11126 (normal/command.c_DEPENDENCIES): New variable.
11128 2008-02-01 Robert Millan <rmh@aybabtu.com>
11130 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
11132 (normal/command.c_DEPENDENCIES): New variable.
11133 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
11134 * conf/i386-ieee1275.rmk: Likewise.
11135 * conf/i386-linuxbios.rmk: Likewise.
11136 * conf/i386-pc.rmk: Likewise.
11137 * conf/sparc64-ieee1275.rmk: Likewise.
11138 * conf/powerpc-ieee1275.rmk: Likewise.
11139 (grub_emu_SOURCES): Add `fs/fshelp.c'.
11141 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
11143 2008-02-01 Robert Millan <rmh@aybabtu.com>
11145 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
11146 call at beginning of function.
11148 2008-01-31 Pavel Roskin <proski@gnu.org>
11150 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
11151 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
11152 (grub_mkrescue_SOURCES): Likewise.
11153 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
11155 2008-01-30 Robert Millan <rmh@aybabtu.com>
11157 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
11158 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
11159 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
11160 (grub_probe_SOURCES): ... to here.
11162 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
11163 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
11164 * conf/i386-ieee1275.rmk: Likewise.
11165 * conf/i386-linuxbios.rmk: Likewise.
11166 * conf/powerpc-ieee1275.rmk: Likewise.
11168 2008-01-30 Tristan Gingold <gingold@free.fr>
11170 * kern/rescue.c: Silently accept empty lines.
11172 2008-01-29 Bean <bean123ch@gmail.com>
11174 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
11175 (real_code_2): Code cleanup and change comment style.
11176 (move_memory): Avoid using 32-bit address mode.
11178 2008-01-29 Bean <bean123ch@gmail.com>
11180 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
11181 (png_mod_SOURCES): New variable.
11182 (png_mod_CFLAGS): Likewise.
11183 (png_mod_LDFLAGS): Likewise.
11185 * video/readers/png.c: New file.
11187 2008-01-28 Robert Millan <rmh@aybabtu.com>
11189 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
11190 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
11191 `ifndef GRUB_MOD_GAP' hack.
11192 * util/elf/grub-mkimage.c (add_segments): Likewise.
11194 2008-01-27 Robert Millan <rmh@aybabtu.com>
11196 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
11197 `GRUB_MOD_GAP' for platforms in which it's not defined.
11198 * util/elf/grub-mkimage.c (add_segments): Likewise.
11200 2008-01-27 Robert Millan <rmh@aybabtu.com>
11202 Get grub-emu to build again (including parallel builds).
11204 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
11206 (util/grub-emu.c_DEPENDENCIES): ... this, ...
11207 (normal/execute.c_DEPENDENCIES): ... this, ...
11208 (grub-emu_DEPENDENCIES): ... and this.
11210 * conf/i386-efi.rmk: Likewise.
11211 * conf/i386-linuxbios.rmk: Likewise.
11212 * conf/i386-ieee1275.rmk: Likewise.
11213 * conf/powerpc-ieee1275.rmk: Likewise.
11214 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
11216 2008-01-27 Robert Millan <rmh@aybabtu.com>
11218 * NEWS: Add a few items.
11220 2008-01-27 Robert Millan <rmh@aybabtu.com>
11222 Fix parallel builds with grub-emu. Based on earlier commit for
11223 grub-probe and grub-setup.
11225 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11226 (util/grub-emu.c_DEPENDENCIES): ... this.
11227 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11228 (util/grub-emu.c_DEPENDENCIES): ... this.
11229 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11230 (util/grub-emu.c_DEPENDENCIES): ... this.
11231 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11232 (util/grub-emu.c_DEPENDENCIES): ... this.
11233 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11234 (util/grub-emu.c_DEPENDENCIES): ... this.
11236 2008-01-27 Pavel Roskin <proski@gnu.org>
11238 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
11239 to create a gap between _end and the modules added to the image
11240 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
11241 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
11242 * util/elf/grub-mkimage.c (add_segments): Likewise.
11244 2008-01-26 Pavel Roskin <proski@gnu.org>
11246 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
11247 just return an error.
11249 2008-01-26 Bean <bean123ch@gmail.com>
11251 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
11252 (grub_reiserfs_get_item): Save offset of the next item.
11253 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
11255 2008-01-25 Robert Millan <rmh@aybabtu.com>
11257 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
11258 make all filesystem sources appear together (possibly fixing omissions
11260 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11261 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11262 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11263 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11265 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
11267 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
11268 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11269 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
11270 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11272 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
11273 (probe): Add a sanity check to make sure of our ability to read
11274 requested files when probing for filesystem type.
11276 * genmk.rb: Update copyright year (2007).
11278 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
11279 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
11280 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
11281 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
11282 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
11283 : Remove function prototypes.
11285 2008-01-25 Robert Millan <rmh@aybabtu.com>
11287 Revert my previous commits (based on wrong assumption of how grub_errno
11290 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
11291 * kern/file.c (grub_file_open): Likewise.
11293 2008-01-24 Pavel Roskin <proski@gnu.org>
11295 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
11296 that hang if GRUB tries to setup colors.
11297 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
11298 colors for firmwares that don't support it.
11299 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
11300 Recognize Open Hack'Ware, set flags to work around its
11303 2008-01-24 Robert Millan <rmh@aybabtu.com>
11305 * kern/file.c (grub_file_open): Do not account previous failures of
11306 unrelated functions when grub_errno is checked for.
11307 Reported by Oleg Strikov.
11309 2008-01-24 Bean <bean123ch@gmail.com>
11311 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
11312 (grub_ufs_sblock): New member volume name.
11313 (grub_ufs_find_file): Fix string copy bug.
11314 (grub_ufs_label): Implement this function properly.
11316 * fs/hfs.c (grub_hfs_cnid_type): New enum.
11317 (grub_hfs_iterate_records): Use the correct file number for extents
11318 and catalog file. Fix problem in next index calculation.
11319 (grub_hfs_find_node): Replace recursive function call with loop.
11320 (grub_hfs_iterate_dir): Replace recursive function call with loop.
11322 2008-01-23 Robert Millan <rmh@aybabtu.com>
11324 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
11325 `<grub/symbol.h>' and `<grub/multiboot.h>'.
11326 (grub_multiboot2_real_boot): New function prototype.
11328 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
11329 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
11331 * kern/i386/ieee1275/init.c (grub_os_area_addr)
11332 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
11334 2008-01-23 Robert Millan <rmh@aybabtu.com>
11336 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
11337 #ifdef'ed out grub_printf().
11339 2008-01-23 Robert Millan <rmh@aybabtu.com>
11341 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
11342 grub_dprintf calls, since they make "debug=all" mode unusable.
11343 (grub_console_checkkey): Likewise.
11345 2008-01-23 Robert Millan <rmh@aybabtu.com>
11347 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
11348 `term/i386/pc/at_keyboard.c'.
11349 (pkglib_MODULES): Add `serial.mod'.
11350 (serial_mod_SOURCES): New variable.
11351 (serial_mod_CFLAGS): Likewise.
11352 (serial_mod_LDFLAGS): Likewise.
11354 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
11355 `<grub/powerpc/ieee1275/console.h>'.
11356 (grub_keyboard_controller_init): New function prototype.
11357 (grub_console_checkkey): Likewise.
11358 (grub_console_getkey): Likewise.
11360 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
11363 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
11364 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
11366 2008-01-23 Robert Millan <rmh@aybabtu.com>
11368 * kern/i386/pc/init.c (make_install_device): When memdisk image is
11369 present, "(memdisk)/boot/grub" becomes the default prefix.
11371 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
11372 a memdisk tarball with all the modules. Add --overlay=DIR option that
11373 allows users to overlay additional files into the image.
11375 2008-01-23 Robert Millan <rmh@aybabtu.com>
11377 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
11378 and `machine/memory.h'.
11379 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
11380 (_multiboot_mod_SOURCES): New variable.
11381 (_multiboot_mod_CFLAGS): Likewise.
11382 (_multiboot_mod_LDFLAGS): Likewise.
11383 (multiboot_mod_SOURCES): Likewise.
11384 (multiboot_mod_CFLAGS): Likewise.
11385 (multiboot_mod_LDFLAGS): Likewise.
11387 * include/grub/i386/ieee1275/loader.h: New file.
11389 * include/grub/i386/ieee1275/machine.h: Likewise.
11391 * include/grub/i386/ieee1275/memory.h: Likewise.
11393 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
11394 variable declaration.
11395 (grub_os_area_size): Likewise.
11397 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
11398 (grub_lower_mem, grub_upper_mem): New variables.
11399 (grub_stop_floppy): New function (just to make
11400 grub_multiboot2_real_boot() happy).
11402 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
11403 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
11404 (grub_stop): New function.
11405 Include `"../realmode.S"' and `"../loader.S"'.
11407 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
11408 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
11410 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
11411 rely on grub_multiboot2_real_boot() for final boot.
11413 2008-01-22 Robert Millan <rmh@aybabtu.com>
11415 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
11416 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
11417 device that doesn't look like an SD card.
11418 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
11419 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
11420 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
11421 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
11424 2008-01-22 Robert Millan <rmh@aybabtu.com>
11426 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
11427 avoid claiming over our own code.
11429 2008-01-22 Bean <bean123ch@gmail.com>
11431 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
11432 (jpeg_mod_SOURCES): New variable.
11433 (jpeg_mod_CFLAGS): Likewise.
11434 (jpeg_mod_LDFLAGS): Likewise.
11436 * video/readers/jpeg.c : New file.
11438 2008-01-22 Bean <bean123ch@gmail.com>
11440 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
11441 there are no more items.
11443 2008-01-21 Robert Millan <rmh@aybabtu.com>
11445 * kern/mm.c (grub_mm_init_region): Improve debug message.
11447 2008-01-21 Robert Millan <rmh@aybabtu.com>
11449 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
11450 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
11452 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
11454 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
11455 Indicates start of upper memory.
11456 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
11457 (generate_image): Abort when image size is big enough to corrupt
11460 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
11461 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
11462 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11463 instead of hardcoding 0xA0000.
11464 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
11465 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11466 instead of hardcoding 0xA0000.
11468 2008-01-21 Robert Millan <rmh@aybabtu.com>
11470 * disk/memdisk.c (memdisk_size): New variable.
11471 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
11473 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
11474 image to dynamic memory.
11475 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
11476 `memdisk_size'. Free memdisk block.
11478 2008-01-21 Robert Millan <rmh@aybabtu.com>
11480 Fix detection of very small filesystems (like tar).
11482 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
11483 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
11484 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
11485 a problem with this disk).
11487 2008-01-21 Robert Millan <rmh@aybabtu.com>
11489 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
11490 on grub_biosdisk_rw_standard() error.
11492 2008-01-21 Robert Millan <rmh@aybabtu.com>
11494 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
11496 * kern/elf.c: Likewise.
11497 * kern/ieee1275/ieee1275.c: Likewise.
11498 * kern/powerpc/ieee1275/openfw.c: Likewise.
11499 * term/ieee1275/ofconsole.c: Likewise.
11501 2008-01-21 Robert Millan <rmh@aybabtu.com>
11503 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
11505 * include/grub/kernel.h (grub_arch_memdisk_addr)
11506 (grub_arch_memdisk_size): Moved from here ...
11508 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
11509 (grub_arch_memdisk_size): ... to here.
11511 2008-01-21 Robert Millan <rmh@aybabtu.com>
11513 Mostly based on bugfix from Bean.
11515 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
11516 attribute with hook() parameter.
11517 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
11519 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
11520 attribute with hook() parameter.
11521 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
11524 2008-01-21 Robert Millan <rmh@aybabtu.com>
11526 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
11527 (pkglib_MODULES): Add `memdisk.mod'.
11528 (memdisk_mod_SOURCES): New variable.
11529 (memdisk_mod_CFLAGS): Likewise.
11530 (memdisk_mod_LDFLAGS): Likewise.
11532 * disk/memdisk.c: New file.
11534 * include/grub/disk.h (grub_disk_dev_id): Add
11535 `GRUB_DISK_DEVICE_MEMDISK_ID'.
11537 * include/grub/i386/pc/kernel.h
11538 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
11539 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
11540 (grub_kernel_image_size): New variable declaration.
11541 (grub_total_module_size): Likewise.
11542 (grub_memdisk_image_size): Likewise.
11544 * include/grub/i386/pc/memory.h
11545 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
11547 * include/grub/kernel.h: Include `<grub/symbol.h>'.
11548 (grub_arch_memdisk_addr): New variable declaration.
11549 (grub_arch_memdisk_size): Likewise.
11551 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
11552 (grub_arch_memdisk_size): Likewise.
11554 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
11555 (codestart): Replace hardcoded `0x100000' with
11556 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
11558 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
11559 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
11560 not NULL, append the contents of the file it refers to, at the end of
11561 the compressed kernel image. Initialize `grub_memdisk_image_size'
11562 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
11563 (options): Add "memdisk"|'m' option.
11564 (main): Parse --memdisk|-m option, and pass user-provided path as
11565 parameter to generate_image().
11567 2008-01-20 Robert Millan <rmh@aybabtu.com>
11569 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
11570 grub_dprintf() calls from here ...
11571 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
11573 2008-01-20 Robert Millan <rmh@aybabtu.com>
11575 Fix detection of "real mode" when /options/real-mode? doesn't exist.
11577 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
11579 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
11580 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
11581 `GRUB_IEEE1275_FLAG_REAL_MODE'.
11582 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
11584 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
11585 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
11587 2008-01-19 Robert Millan <rmh@aybabtu.com>
11589 Get rid of confusing function (superseded by
11590 `grub_ieee1275_get_integer_property')
11591 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
11593 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
11595 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
11596 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
11597 in native endianness from grub_ieee1275_get_integer_property().
11599 2008-01-19 Robert Millan <rmh@aybabtu.com>
11601 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
11602 command after "shut-down", since implementations differ on which
11603 the command for halt is.
11605 2008-01-19 Robert Millan <rmh@aybabtu.com>
11607 * include/grub/i386/linuxbios/console.h: Add header protection.
11608 (grub_keyboard_controller_init): New function prototype.
11609 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
11610 (KEYBOARD_COMMAND_READ): Likewise.
11611 (KEYBOARD_COMMAND_WRITE): Likewise.
11612 (KEYBOARD_SCANCODE_SET1): Likewise.
11613 (grub_keyboard_controller_write): New function.
11614 (grub_keyboard_controller_read): Likewise.
11615 (grub_keyboard_controller_init): Likewise.
11617 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
11618 (grub_console_init): On coreboot/LinuxBIOS, call
11619 grub_keyboard_controller_init().
11621 2008-01-19 Robert Millan <rmh@aybabtu.com>
11623 PowerPC changes provided by Pavel Roskin.
11625 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
11626 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
11627 don't rely on cmain() doing it.
11628 * kern/i386/ieee1275/startup.S (_start): Store %eax in
11629 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
11631 2008-01-16 Robert Millan <rmh@aybabtu.com>
11633 * include/grub/i386/linuxbios/memory.h
11634 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
11635 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
11636 receive `table_header' as argument. Instead, probe for it in the
11637 known memory ranges where it can be present.
11638 (grub_available_iterate): Do not pass a fixed `table_header' address
11639 to grub_linuxbios_table_iterate().
11641 2008-01-15 Robert Millan <rmh@aybabtu.com>
11643 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
11644 * conf/i386-ieee1275.rmk: New file.
11645 * include/grub/i386/ieee1275/console.h: Likewise.
11646 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
11647 * include/grub/i386/ieee1275/kernel.h: Likewise.
11648 * include/grub/i386/ieee1275/time.h: Likewise.
11649 * kern/i386/ieee1275/init.c: Likewise.
11650 * kern/i386/ieee1275/startup.S: Likewise.
11652 2008-01-15 Robert Millan <rmh@aybabtu.com>
11654 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
11655 when pointers are 32-bit (but still do set it to one when they are
11658 2008-01-15 Robert Millan <rmh@aybabtu.com>
11660 * include/grub/ieee1275/ieee1275.h
11661 (grub_ieee1275_get_integer_property): New function prototype.
11663 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
11664 (grub_ieee1275_get_integer_property): New function. Wraps around
11665 grub_ieee1275_get_property() to handle endianness.
11667 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
11668 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
11670 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
11671 (grub_map): Likewise.
11672 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
11674 2008-01-15 Bean <bean123ch@gmail.com>
11676 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
11677 (grub_script_execute_cmdline): Reset grub_errno.
11679 * normal/main.c (read_config_file): Reset grub_errno.
11681 * normal/parse.y (script_init): New.
11682 (script): Move function and menuentry here.
11684 (command): Add delimiter at the end of command.
11685 (commands): Adjust to match the new command.
11686 (commandblock): Remove grub_script_lexer_record_start.
11687 (menuentry): Add grub_script_lexer_record_start, use the new commands.
11688 (if): Use the new commands.
11690 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
11692 2008-01-15 Robert Millan <rmh@aybabtu.com>
11694 * normal/menu.c (run_menu): Move timeout message from here ...
11695 (print_timeout): ... to here.
11696 (run_menu): Use print_timeout() once during initial draw to print
11697 the whole message, and again in every clock tick to update only
11698 the number of seconds.
11700 2008-01-15 Robert Millan <rmh@aybabtu.com>
11702 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
11703 actual size of `available' from grub_ieee1275_get_property(), and
11704 restrict parsing to that bound.
11706 2008-01-15 Christian Franke <franke@computer.org>
11708 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
11709 (argp_program_version): Remove variable.
11710 (argp_program_bug_address): Likewise.
11711 (options): Convert from struct argp_option to struct option.
11712 (struct arguments): Remove.
11713 (parse_opt): Remove.
11714 (usage): New function.
11715 (main): Replace struct args members by simple variables.
11716 Replace argp_parse() by getopt_long().
11717 Add switch to evaluate options.
11718 Add missing "(...)" around root_dev in prefix string.
11720 2008-01-14 Robert Millan <rmh@aybabtu.com>
11722 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
11723 for grub_ieee1275_exit(), in order to improve portability.
11725 2008-01-14 Robert Millan <rmh@aybabtu.com>
11727 * util/grub.d/10_linux.in (prefix): Define.
11728 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
11730 2008-01-13 Pavel Roskin <proski@gnu.org>
11732 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
11733 grub_errno if no errors have been detected.
11735 2008-01-12 Robert Millan <rmh@aybabtu.com>
11737 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
11738 (grub_util_get_dev_abstraction): New function prototype.
11740 * util/getroot.c: Include `<grub/util/getroot.h>'
11741 (grub_util_get_grub_dev): Move detection of abstraction type to ...
11742 (grub_util_get_dev_abstraction): ... here (new function).
11744 * util/grub-probe.c: Convert PRINT_* to an enum. Add
11745 `PRINT_ABSTRACTION'.
11746 (probe): Probe for abstraction type when requested.
11747 (main): Understand `--target=abstraction'.
11749 * util/i386/efi/grub-install.in: Add abstraction module to core
11750 image when it is found to be necessary.
11751 * util/i386/pc/grub-install.in: Likewise.
11752 * util/powerpc/ieee1275/grub-install.in: Likewise.
11754 * util/update-grub_lib.in (font_path): Return system path without
11755 converting to GRUB path.
11756 * util/update-grub.in: Convert system path returned by font_path()
11757 to a GRUB path. Use `grub-probe -t abstraction' to determine what
11758 abstraction module is needed for loading fonts (if any). Export
11759 that as `GRUB_PRELOAD_MODULES'.
11760 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
11763 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
11765 Remove some unused code from reiserfs.
11767 * fs/reiserfs.c (struct grub_reiserfs_key)
11768 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
11769 (struct grub_reiserfs_node_body): Removed.
11770 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11772 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11774 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11776 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11778 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11780 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
11782 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11783 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11784 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11786 2008-01-10 Robert Millan <rmh@aybabtu.com>
11788 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
11789 Determines if a file is garbage left by packaging systems, etc.
11790 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
11791 for processing /etc/grub.d scripts.
11792 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
11793 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
11794 as a condition for processing Linux images.
11796 2008-01-10 Pavel Roskin <proski@gnu.org>
11798 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
11799 to compile reiserfs.c on PowerPC.
11801 2008-01-10 Robert Millan <rmh@aybabtu.com>
11803 * kern/device.c (grub_device_iterate): Do not abort device iteration
11804 when one of the devices cannot be opened.
11805 * kern/disk.c (grub_disk_open): Do not account previous failures of
11806 unrelated functions when grub_errno is checked for.
11808 2008-01-08 Robert Millan <rmh@aybabtu.com>
11810 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
11811 `! grub_linux_is_bzimage', change order of address comparison to make
11812 it more intuitive, and improve "too big zImage" error message.
11814 2008-01-08 Robert Millan <rmh@aybabtu.com>
11816 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
11817 `$(update-grub_DATA)'.
11818 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
11821 2008-01-07 Robert Millan <rmh@aybabtu.com>
11823 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
11824 which instruction is modified by grub-setup during installation
11825 (since it wasn't obvious by only looking at this file).
11827 2008-01-07 Robert Millan <rmh@aybabtu.com>
11829 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
11830 listing actual TODO items.
11832 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11834 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
11836 (grub_reiserfs_get_key_offset): Likewise.
11837 (grub_reiserfs_set_key_offset): Likewise.
11838 (grub_reiserfs_set_key_type): Likewise.
11839 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
11841 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
11842 better to remove the bitfield version completely.
11844 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11846 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
11847 allocated from the heap, due to the fshelp implementation.
11848 (grub_reiserfs_dir): Free NODE, due to the same reason.
11850 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11852 Mostly from Vincent Pelletier:
11854 * fs/reiserfs.c: New file.
11856 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
11857 (reiserfs_mod_SOURCES): New variable.
11858 (reiserfs_mod_CFLAGS): Likewise.
11859 (reiserfs_mod_LDFLAGS): Likewise.
11861 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
11862 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
11863 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
11866 2008-01-06 Robert Millan <rmh@aybabtu.com>
11868 * normal/color.c: Remove `<grub/env.h>'.
11870 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
11872 * include/grub/normal.h: Include <grub/env.h>.
11874 2008-01-05 Robert Millan <rmh@aybabtu.com>
11876 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
11877 usage example with `(hd0,1)'.
11878 Reported by Samuel Thibault.
11880 2008-01-05 Robert Millan <rmh@aybabtu.com>
11882 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
11883 (grub_linux_boot_zimage): Rename to ...
11884 (grub_linux_boot): ... this.
11885 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
11886 (grub_linux_boot_zimage): Conditionalize zImage copy.
11888 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
11889 (grub_linux_boot_bzimage): Remove prototype.
11890 (grub_linux_boot_zimage): Rename to ...
11891 (grub_linux_boot): ... this.
11893 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
11894 (grub_linux_boot): Remove function.
11896 2008-01-05 Robert Millan <rmh@aybabtu.com>
11898 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
11899 (grub_env_write_color_highlight): Likewise.
11900 (grub_wait_after_message): Likewise.
11902 * normal/color.c: New file.
11904 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11905 (normal_mod_DEPENDENCIES): Likewise.
11907 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11908 (normal_mod_DEPENDENCIES): Likewise.
11910 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11911 (normal_mod_DEPENDENCIES): Likewise.
11913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11914 (normal_mod_DEPENDENCIES): Likewise.
11916 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
11917 for waiting after a message is printed.
11918 * normal/main.c (read_config_file): Likewise.
11919 (grub_normal_init): Register grub_env_write_color_normal() and
11920 grub_env_write_color_highlight() hooks. Mark `color_normal' and
11921 `color_highlight' variables as global.
11923 * normal/menu.c (grub_wait_after_message): New function.
11924 (grub_color_menu_normal): New variable. Replaces ...
11925 (GRUB_COLOR_MENU_NORMAL): ... this macro.
11926 (grub_color_menu_highlight): New variable. Replaces ...
11927 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
11928 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
11929 `GRUB_TERM_COLOR_STANDARD'.
11930 (print_message): Use `grub_setcolorstate' to reload colors. Rename
11931 `normal_code' and `highlight_code' to `old_color_normal' and
11932 `old_color_highlight', respectively.
11933 (grub_menu_init_page): Update colors when drawing the menu, based on
11934 `menu_color_normal' and `menu_color_highlight' variables.
11935 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
11936 a message is printed.
11938 2008-01-05 Robert Millan <rmh@aybabtu.com>
11940 * kern/env.c (grub_env_context_open): Propagate hooks for global
11941 variables to new context.
11943 * kern/main.c (grub_set_root_dev): Export `root' variable.
11945 2008-01-05 Robert Millan <rmh@aybabtu.com>
11947 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
11948 discs unconditionally, since udev and others have options to provide
11951 2008-01-05 Robert Millan <rmh@aybabtu.com>
11953 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
11955 2008-01-04 Christian Franke <franke@computer.org>
11957 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
11960 2008-01-03 Pavel Roskin <proski@gnu.org>
11962 * kern/i386/linuxbios/init.c: Put "void" to all function
11963 declarations with no arguments.
11964 * kern/powerpc/ieee1275/init.c: Likewise.
11965 * term/i386/pc/at_keyboard.c: Likewise.
11966 * term/i386/pc/vga_text.c: Likewise.
11967 * util/grub-mkdevicemap.c: Likewise.
11969 2008-01-02 Robert Millan <rmh@aybabtu.com>
11971 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
11972 message when loaded image is out of bounds.
11973 (grub_multiboot_load_elf64): Likewise.
11975 2008-01-02 Pavel Roskin <proski@gnu.org>
11977 * util/grub.d/10_linux.in: Try version without ".old" when
11978 looking for initrd. It's better to use initrd from the newer
11979 kernel of the same version than no initrd at all.
11981 2008-01-01 Robert Millan <rmh@aybabtu.com>
11983 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
11985 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
11987 * include/grub/video.h: Added grub_video_unmap_color and
11988 grub_video_get_active_render_target.
11989 (grub_video_adapter): Added unmap_color and get_active_render_target.
11991 * video/video.c: Added grub_video_unmap_color and
11992 grub_video_get_active_render_target.
11993 (grub_video_get_info): Changed method to accept NULL pointer as an
11994 argument to allow detection of active video adapter.
11996 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
11997 grub_video_vbe_unmap_color_int.
11998 Added grub_video_vbe_unmap_color and
11999 grub_video_vbe_get_active_render_target.
12000 (grub_video_vbe_adapter): Added unmap_color and
12001 get_active_render_target.
12003 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
12004 with grub_video_vbe_unmap_color_int.
12006 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
12007 (DEFAULT_NORMAL_COLOR): Likewise.
12008 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
12009 (DEFAULT_FG_COLOR): Removed.
12010 (DEFAULT_BG_COLOR): Likewise.
12011 (DEFAULT_CURSOR_COLOR): Changed value.
12012 (grub_virtual_screen): Added standard_color_setting,
12013 normal_color_setting, highlight_color_setting and term_color.
12014 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
12015 (bitmap_width): Added.
12016 (bitmap_height): Likewise.
12017 (bitmap): Likewise.
12018 (set_term_color): Likewise.
12019 (grub_virtual_screen_setup): Changed to use new terminal coloring
12021 (grub_gfxterm_init): Added init for bitmap.
12022 (grub_gfxterm_fini): Added destroy for bitmap.
12023 (redraw_screen_rect): Updated to use background bitmap and new
12025 (scroll_up): Added optimization for case when there is no bitmap.
12026 (grub_gfxterm_cls): Fixed to use correct background color.
12027 (grub_virtual_screen_setcolorstate): Changed to use new terminal
12029 (grub_virtual_screen_setcolor): Likewise.
12030 (grub_virtual_screen_getcolor): Added.
12031 (grub_gfxterm_background_image_cmd): Likewise.
12032 (grub_video_term): Added setcolor and getcolor.
12033 (MOD_INIT): Added registration of background_image command.
12034 (MOD_TERM): Added unregistration for background_image command.
12036 2007-12-30 Pavel Roskin <proski@gnu.org>
12038 * loader/multiboot_loader.c: Fix multiboot command
12039 unregistration. Fix all typos in the word "multiboot".
12041 2007-12-29 Pavel Roskin <proski@gnu.org>
12043 * util/grub.d/10_linux.in: Refactor search for initrd. Add
12044 support for initrd names used in Fedora.
12046 2007-12-26 Bean <bean123ch@gmail.com>
12048 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
12049 (cpio_mod_SOURCES): New variable.
12050 (cpio_mod_CFLAGS): Likewise.
12051 (cpio_mod_LDFLAGS): Likewise.
12053 * fs/cpio.c: New file.
12055 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
12057 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12059 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
12061 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12063 2007-12-25 Robert Millan <rmh@aybabtu.com>
12065 * include/grub/term.h (struct grub_term): Add `getcolor' function.
12066 (grub_getcolor): New function.
12068 * kern/term.c (grub_getcolor): New function.
12069 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
12070 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
12071 (print_entry): Set normal and highlight colors to
12072 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
12073 respectively, before printing and restore them to old
12075 (grub_menu_init_page): Likewise. Fill an additional colored space
12076 that would otherwise be left blank.
12078 * term/efi/console.c (grub_console_getcolor): New function.
12079 (struct grub_console_term.getcolor): New variable.
12080 * term/i386/pc/console.c (grub_console_getcolor): New function.
12081 (struct grub_console_term.getcolor): New variable.
12082 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
12083 (struct grub_console_term.getcolor): New variable.
12085 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
12086 (struct grub_console_term.setcolor): Remove variable.
12087 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
12088 (struct grub_console_term.setcolor): Remove variable.
12089 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
12090 (struct grub_console_term.setcolor): Remove variable.
12091 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
12092 (struct grub_console_term.setcolor): Remove variable.
12094 2007-12-25 Robert Millan <rmh@aybabtu.com>
12096 * configure.ac: Search for possible unifont.hex locations, and
12097 define UNIFONT_HEX if found.
12099 * Makefile.in (UNIFONT_HEX): Define variable.
12100 (DATA): Rename to ...
12101 (PKGLIB): ... this. Update all users.
12102 (PKGDATA): New variable.
12103 (pkgdata_IMAGES): Rename to ...
12104 (pkglib_IMAGES): ... this. Update all users.
12105 (pkgdata_MODULES): Rename to ...
12106 (pkglib_MODULES): ... this. Update all users.
12107 (pkgdata_PROGRAMS): Rename to ...
12108 (pkglib_PROGRAMS): ... this. Update all users.
12109 (pkgdata_DATA): Rename to ...
12110 (pkglib_DATA): ... this. Update all users.
12111 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
12112 (unicode.pff, ascii.pff): New rules.
12113 (all-local): Add `$(PKGDATA)' dependency.
12114 (install-local): Process `$(PKGDATA)'.
12116 * util/update-grub_lib.in (font_path): Search for *.pff files in
12117 a few more locations, including `${pkgdata}'.
12119 2007-12-23 Robert Millan <rmh@aybabtu.com>
12121 Patch from Bean <bean123ch@gmail.com>:
12122 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
12125 2007-12-21 Bean <bean123ch@gmail.com>
12127 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
12128 (ntfscomp_mod_SOURCES): New variable.
12129 (ntfscomp_mod_CFLAGS): Likewise.
12130 (ntfscomp_mod_LDFLAGS): Likewise.
12132 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
12133 (grub_probe_SOURCES): Likewise.
12134 (grub_emu_SOURCES): Likewise.
12136 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12137 (grub_emu_SOURCES): Likewise.
12139 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12140 (grub_emu_SOURCES): Likewise.
12142 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12143 (grub_emu_SOURCES): Likewise.
12145 * fs/ntfs.c (grub_ntfscomp_func): New variable.
12146 (read_run_list): Renamed to grub_ntfs_read_run_list.
12147 (decomp_nextvcn): Moved to ntfscomp.c.
12148 (decomp_getch): Likewise.
12149 (decomp_get16): Likewise.
12150 (decomp_block): Likewise.
12151 (read_block): Likewise.
12152 (read_data): Partially moved to ntfscomp.c.
12153 (fixup): Change unsigned to grub_uint16_t.
12154 (read_mft): Change unsigned long to grub_uint32_t.
12155 (read_attr): Likewise.
12156 (read_data): Likewise.
12157 (read_run_data): Likewise.
12158 (read_run_list): Likewise.
12159 (read_mft): Likewise.
12161 * fs/ntfscomp.c: New file.
12163 * include/grub/ntfs.h: New file.
12165 2007-12-16 Robert Millan <rmh@aybabtu.com>
12167 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
12168 IDE disk check, since Linux is known to support 20 IDE disks.
12169 Reported by Colin Watson.
12171 2007-12-15 Bean <bean123ch@gmail.com>
12173 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
12174 (lnxboot_img_SOURCES): New variable.
12175 (lnxboot_img_ASFLAGS): Likewise.
12176 (lnxboot_img_LDFLAGS): Likewise.
12178 * boot/i386/pc/lnxboot.S: New file.
12180 2007-11-24 Pavel Roskin <proski@gnu.org>
12182 * configure.ac: Test if '--build-id=none' is supported by the
12183 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
12184 objcopy to generate incorrect binary files (binutils
12185 2.17.50.0.18-1 as shipped by Fedora 8).
12186 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
12187 linking, so that build ID doesn't break the test.
12189 2007-11-24 Pavel Roskin <proski@gnu.org>
12191 * include/grub/i386/time.h: use "void" in the argument list
12192 of grub_cpu_idle().
12193 * include/grub/powerpc/time.h: Likewise.
12194 * include/grub/sparc64/time.h: Likewise.
12196 2007-11-18 Christian Franke <franke@computer.org>
12198 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
12199 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
12200 This fixes the problem that function keys did not work in grub-emu.
12202 2007-11-18 Christian Franke <franke@computer.org>
12204 * disk/host.c (grub_host_open): Remove attribute unused from
12205 name parameter. Add check for "host". This fixes the problem
12206 that grub-emu does not find partitions.
12208 2007-11-18 Christian Franke <franke@computer.org>
12210 * util/hostfs.c (is_dir): New function.
12211 (grub_hostfs_dir): Handle missing dirent.d_type case.
12212 (grub_hostfs_read): Add missing fseek().
12213 (grub_hostfs_label): Clear label pointer. This fixes a crash
12214 of grub-emu on "ls (host)".
12216 2007-11-18 Christian Franke <franke@computer.org>
12218 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
12219 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
12220 to 64 bit boundary by default.
12222 2007-11-18 Bean <bean123ch@gmail.com>
12224 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
12225 (hexdump_mod_SOURCES): New variable.
12226 (hexdump_mod_CFLAGS): Likewise.
12227 (hexdump_mod_LDFLAGS): Likewise.
12229 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12231 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12233 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12235 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12237 * include/grub/hexdump.h: New file.
12239 * commands/hexdump.c: New file.
12241 2007-11-10 Robert Millan <rmh@aybabtu.com>
12243 * commands/i386/pc/play.c (beep_off): Switch order of arguments
12244 in grub_outb() calls.
12245 (beep_on): Likewise.
12247 2007-11-10 Christian Franke <franke@computer.org>
12249 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
12250 (grub_menu_run): Likewise.
12252 2007-11-10 Robert Millan <rmh@aybabtu.com>
12254 * include/grub/i386/efi/machine.h: New file.
12255 * include/grub/i386/linuxbios/machine.h: Likewise.
12256 * include/grub/i386/pc/machine.h: Likewise.
12257 * include/grub/powerpc/ieee1275/machine.h: Likewise.
12258 * include/grub/sparc64/ieee1275/machine.h: Likewise.
12260 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
12261 (serial_hw_io_addr): New variable.
12262 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
12263 instead of `(unsigned short *) 0x400'.
12265 2007-11-10 Bean <bean123ch@gmail.com>
12267 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
12269 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12271 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
12272 (vga_mod_SOURCES): Added.
12273 (vga_mod_CFLAGS): Likewise.
12274 (vga_mod_LDFLAGS): Likewise.
12276 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
12278 (set_map_mask): Likewise.
12279 (set_read_map): Likewise.
12280 (set_read_address): Likewise.
12281 (vga_font): Removed variable.
12282 (get_vga_glyph): Removed function.
12283 (invalidate_char): Likewise.
12284 (write_char): Changed to use grub_font_get_glyph() for font
12286 (grub_vga_putchar): Likewise.
12287 (grub_vga_getcharwidth): Likewise.
12289 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12291 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
12293 (pxeboot_img_LDFLAGS): Likewise.
12294 (diskboot_img_LDFLAGS): Likewise.
12295 (kernel_img_LDFLAGS): Likewise.
12297 2007-11-06 Robert Millan <rmh@aybabtu.com>
12299 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
12300 in grub_outb() calls.
12301 (serial_hw_init): Likewise.
12303 2007-11-05 Robert Millan <rmh@aybabtu.com>
12305 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
12306 spaces. Skip non-regular files.
12308 2007-11-05 Robert Millan <rmh@aybabtu.com>
12310 * kern/disk.c (grub_disk_firmware_fini)
12311 (grub_disk_firmware_is_tainted): New variables.
12313 * include/grub/disk.h (grub_disk_firmware_fini)
12314 (grub_disk_firmware_is_tainted): Likewise.
12316 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
12317 (grub_disk_biosdisk_fini): ... to here.
12318 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
12319 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
12320 is set. Register grub_disk_biosdisk_fini() in
12321 `grub_disk_firmware_fini'.
12323 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
12324 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
12325 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
12326 to finish existing firmware disk interface.
12328 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
12329 (ata_mod_SOURCES): New variable.
12330 (ata_mod_CFLAGS): Likewise.
12331 (ata_mod_LDFLAGS): Likewise.
12333 2007-11-05 Robert Millan <rmh@aybabtu.com>
12335 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
12336 (grub_ata_wait): Reimplement using grub_millisleep().
12338 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
12339 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
12341 2007-11-03 Marco Gerards <marco@gnu.org>
12343 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
12344 (CRTC_ADDR_PORT): New macro.
12345 (CRTC_DATA_PORT): Likewise.
12346 (CRTC_CURSOR): Likewise.
12347 (CRTC_CURSOR_ADDR_HIGH): Likewise.
12348 (CRTC_CURSOR_ADDR_LOW): Likewise.
12349 (update_cursor): New function.
12350 (grub_console_real_putchar): Call `update_cursor'.
12351 (grub_console_gotoxy): Likewise.
12352 (grub_console_cls): Set the default color when clearing the
12354 (grub_console_setcursor): Implemented.
12356 2007-11-03 Marco Gerards <marco@gnu.org>
12358 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
12360 (grub_ata_pio_write): Likewise.
12362 (grub_atapi_identify): Wait after issuing an ATA command.
12363 (grub_atapi_packet): Likewise.
12364 (grub_ata_identify): Likewise.
12365 (grub_ata_readwrite): Likewise.
12367 2007-11-03 Marco Gerards <marco@gnu.org>
12369 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
12370 (grub_ata_pio_write): Likewise.
12371 (grub_ata_readwrite): Use `grub_error', instead of
12372 returning `grub_errno'.
12374 2007-11-03 Marco Gerards <marco@gnu.org>
12376 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
12377 grub_ata_pio_write once for every single sector, instead of for
12380 2007-10-31 Robert Millan <rmh@aybabtu.com>
12382 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
12384 * conf/i386-linuxbios.rmk: New file.
12386 * kern/i386/pc/hardware.c: Likewise.
12387 * term/i386/pc/at_keyboard.c: Likewise.
12388 * term/i386/pc/vga_text.c: Likewise.
12390 * include/grub/i386/linuxbios/boot.h: Likewise.
12391 * include/grub/i386/linuxbios/console.h: Likewise.
12392 * include/grub/i386/linuxbios/init.h: Likewise.
12393 * include/grub/i386/linuxbios/kernel.h: Likewise.
12394 * include/grub/i386/linuxbios/loader.h: Likewise.
12395 * include/grub/i386/linuxbios/memory.h: Likewise.
12396 * include/grub/i386/linuxbios/serial.h: Likewise.
12397 * include/grub/i386/linuxbios/time.h: Likewise.
12399 * kern/i386/linuxbios/init.c: Likewise.
12400 * kern/i386/linuxbios/startup.S: Likewise.
12401 * kern/i386/linuxbios/table.c: Likewise.
12403 2007-10-31 Marco Gerards <marco@gnu.org>
12405 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
12406 (ata_mod_SOURCES): New variable.
12407 (ata_mod_CFLAGS): Likewise.
12408 (ata_mod_LDFLAGS): Likewise.
12410 * disk/ata.c: New file.
12412 * include/grub/disk.h (grub_disk_dev_id): Add
12413 `GRUB_DISK_DEV_ATA_ID'.
12415 2007-10-31 Robert Millan <rmh@aybabtu.com>
12417 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
12418 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
12420 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
12421 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
12423 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
12426 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
12428 2007-10-27 Robert Millan <rmh@aybabtu.com>
12430 * include/grub/types.h (ULONG_MAX): Define macro.
12432 2007-10-22 Robert Millan <rmh@aybabtu.com>
12434 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
12436 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
12438 2007-10-22 Robert Millan <rmh@aybabtu.com>
12440 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
12441 (pkgdata_MODULES): Add `biosdisk.mod'.
12442 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
12445 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
12446 (grub_biosdisk_init): Replace with ...
12447 (GRUB_MOD_INIT(biosdisk)): ... this.
12448 (grub_biosdisk_fini): Replace with ...
12449 (GRUB_MOD_FINI(biosdisk)): ... this.
12451 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
12452 (grub_machine_init): Remove call to grub_biosdisk_init().
12453 (grub_machine_fini): Remove call to grub_machine_fini().
12455 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
12457 2007-10-22 Robert Millan <rmh@aybabtu.com>
12459 * include/grub/time.h: New file.
12460 * include/grub/i386/time.h: Likewise.
12461 * include/grub/powerpc/time.h: Likewise.
12462 * include/grub/sparc64/time.h: Likewise.
12464 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
12466 (KERNEL_MACHINE_TIME_HEADER): ... this.
12467 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12469 (KERNEL_MACHINE_TIME_HEADER): ... this.
12470 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12472 (KERNEL_MACHINE_TIME_HEADER): ... this.
12474 * kern/i386/efi/init.c: Include `<grub/time.h>'.
12475 (grub_millisleep): New function.
12476 * kern/i386/pc/init.c: Include `<grub/time.h>'.
12477 (grub_millisleep): New function.
12478 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
12479 Remove `grub/machine/time.h' include.
12480 (grub_millisleep): New function.
12481 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
12482 Remove `grub/machine/time.h' include.
12483 (grub_millisleep): New function.
12485 * include/grub/misc.h (grub_div_roundup): New function.
12487 * kern/misc.c: Include `<grub/time.h>'.
12488 (grub_millisleep_generic): New function.
12490 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
12492 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
12494 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
12495 `machine/time.h'. Add `time.h'.
12496 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
12498 2007-10-21 Robert Millan <rmh@aybabtu.com>
12500 * include/grub/misc.h (grub_max): New function.
12502 2007-10-21 Robert Millan <rmh@aybabtu.com>
12504 * util/misc.c (grub_util_info): Call fflush() before returning.
12506 2007-10-20 Robert Millan <rmh@aybabtu.com>
12508 * genmk.rb (Image): Copy `extra_flags' from here ...
12509 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
12511 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
12512 to `argc' and `args' arguments.
12514 2007-10-17 Robert Millan <rmh@aybabtu.com>
12516 * kern/i386/loader.S: New file.
12518 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
12519 * kern/i386/loader.S (grub_linux_prot_size)... to here.
12520 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
12521 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
12522 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
12523 * kern/i386/loader.S (grub_linux_real_addr)... to here.
12524 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
12525 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
12526 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
12527 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
12528 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
12529 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
12530 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
12531 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
12533 * kern/i386/realmode.S: New file.
12535 * kern/i386/pc/startup.S (protstack): Moved from here ...
12536 * kern/i386/realmode.S (protstack)... to here.
12537 * kern/i386/pc/startup.S (gdt): Moved from here ...
12538 * kern/i386/realmode.S (gdt)... to here.
12539 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
12540 * kern/i386/realmode.S (prot_to_real)... to here.
12542 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
12543 `kern/i386/realmode.S'.
12545 2007-10-17 Robert Millan <rmh@aybabtu.com>
12547 * include/grub/i386/loader.h: New file.
12549 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
12550 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12551 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12552 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12553 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
12554 * include/grub/i386/loader.h (grub_linux_prot_size)
12555 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12556 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12557 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12558 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
12560 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
12562 2007-10-15 Robert Millan <rmh@aybabtu.com>
12564 * normal/misc.c (grub_normal_print_device_info): Do not probe for
12565 filesystem when dev->disk is unset.
12566 Do probe for filesystem even when dev->disk->has_partitions is set.
12567 In case a filesystem is found, always report it.
12568 In case it isn't, if dev->disk->has_partitions is set, report that
12569 a partition table was found instead of reporting that no filesystem
12570 could be identified.
12572 2007-10-12 Robert Millan <rmh@aybabtu.com>
12574 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
12575 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
12577 * include/grub/types.h (grub_host_to_target16): New macro.
12578 (grub_host_to_target32): Likewise.
12579 (grub_host_to_target64): Likewise.
12580 (grub_target_to_host16): Likewise.
12581 (grub_target_to_host32): Likewise.
12582 (grub_target_to_host64): Likewise.
12584 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
12585 Renamed from to ...
12586 (GRUB_MOD_ALIGN): ...this. Update all users.
12588 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
12589 grub_host_to_target32.
12590 Replace grub_be_to_cpu32 with grub_target_to_host32.
12591 (load_modules): Likewise.
12592 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
12593 Replace grub_be_to_cpu32 with grub_target_to_host32.
12594 Replace grub_cpu_to_be16 with grub_host_to_target16.
12595 Replace grub_cpu_to_be32 grub_host_to_target32.
12597 2007-10-12 Robert Millan <rmh@aybabtu.com>
12599 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
12600 * util/elf/grub-mkimage.c: ... here.
12602 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
12603 `util/powerpc/ieee1275/grub-mkimage.c'.
12605 2007-10-07 Robert Millan <rmh@aybabtu.com>
12607 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
12608 and make it easier to figure out.
12609 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
12610 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
12611 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
12612 leave us with less than HEAP_MIN_SIZE total heap.
12613 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
12615 2007-10-03 Robert Millan <rmh@aybabtu.com>
12617 * include/grub/i386/io.h: New file.
12618 * commands/i386/pc/play.c (inb): Removed.
12620 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12622 * term/i386/pc/serial.c (inb): Removed.
12624 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12626 * term/i386/pc/vga.c (inb): Removed.
12628 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12631 2007-10-02 Robert Millan <rmh@aybabtu.com>
12633 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
12634 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12635 Reported by Marcin Kurek.
12637 2007-09-07 Robert Millan <rmh@aybabtu.com>
12639 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
12640 SmartFirmware version updates (as released by Sven Luther), and avoid
12641 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
12642 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
12645 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12647 From Hitoshi Ozeki:
12648 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
12649 when merging two regions.
12651 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12653 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
12654 * normal/completion.c (grub_normal_do_completion): Likewise.
12655 Reported by Hitoshi Ozeki.
12657 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12659 Do not use devices at boot in chainloading.
12661 * loader/i386/pc/chainloader.c (boot_drive): New variable.
12662 (boot_part_addr): Likewise.
12663 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
12664 with BOOT_DRIVE and BOOT_PART_ADDR.
12665 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
12666 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
12668 2007-08-29 Robert Millan <rmh@aybabtu.com>
12670 Patch from Simon Peter <dn.tlp@gmx.net>:
12671 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
12672 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
12673 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
12674 util/i386/pc/grub-setup.c_DEPENDENCIES.
12675 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
12676 util/grub-probe.c_DEPENDENCIES.
12677 * conf/powerpc-ieee1275.rmk: Likewise.
12679 2007-08-28 Robert Millan <rmh@aybabtu.com>
12681 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
12682 to tell grub-mkdevicemap how to name devices.
12683 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
12686 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
12687 util/i386/get_disk_name.c.
12688 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
12689 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
12690 util/ieee1275/get_disk_name.c.
12692 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
12694 * DISTLIST: Add util/i386/get_disk_name.c and
12695 util/ieee1275/get_disk_name.c.
12697 * util/grub-mkdevicemap.c: Replace device naming logic with
12698 grub_util_get_disk_name() calls.
12700 2007-08-20 Robert Millan <rmh@aybabtu.com>
12702 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
12703 (so that it works for both plural and singular quantities).
12705 2007-08-05 Robert Millan <rmh@aybabtu.com>
12707 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
12708 so that [xz] isn't taken into account when determining order.
12710 2007-08-02 Marco Gerards <marco@gnu.org>
12712 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
12713 `include/multiboot2.h', `include/grub/elfload.h',
12714 `include/multiboot.h', `include/grub/multiboot.h',
12715 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
12716 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
12717 `kern/elf.c', `loader/multiboot_loader.c',
12718 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
12719 `loader/i386/pc/multiboot2.c',
12720 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
12721 `util/i386/pc/grub-mkrescue.in'. Remove
12722 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
12723 `include/grub/i386/pc/util/biosdisk.h' and
12724 `include/grub/powerpc/ieee1275/multiboot.h'.
12726 2007-08-02 Bean <bean123ch@gmail.com>
12728 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
12729 (ntfs_mod_SOURCES): New variable.
12730 (ntfs_mod_CFLAGS): Likewise.
12731 (ntfs_mod_LDFLAGS): Likewise.
12733 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
12734 (grub_probe_SOURCES): Likewise.
12735 (grub_emu_SOURCES): Likewise.
12737 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12738 (grub_emu_SOURCES): Likewise.
12740 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12741 (grub_emu_SOURCES): Likewise.
12743 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
12745 * fs/ntfs.c: New file.
12747 2007-08-02 Bean <bean123ch@gmail.com>
12749 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
12751 * file.h (grub_file): Likewise.
12753 * fshelp.h (grub_fshelp_read_file): Likewise.
12755 * util/i386/pc/grub-setup.c (setup): Likewise.
12756 (save_first_sector): Likewise.
12757 (save_blocklists): Likewise.
12759 * fs/affs.c (grub_affs_read_file): Likewise.
12761 * fs/ext2.c (grub_ext2_read_file): Likewise.
12763 * fs/fat.c (grub_fat_read_data): Likewise.
12765 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
12767 * fs/hfs.c (grub_hfs_read_file): Likewise.
12769 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
12771 * fs/jfs.c (grub_jfs_read_file): Likewise.
12773 * fs/minix.c (grub_minix_read_file): Likewise.
12775 * fs/sfs.c (grub_sfs_read_file): Likewise.
12777 * fs/ufs.c (grub_ufs_read_file): Likewise.
12779 * fs/xfs.c (grub_xfs_read_file): Likewise.
12781 * command/blocklist.c (read_blocklist): Likewise.
12782 (print_blocklist): Likewise.
12784 2007-08-02 Marco Gerards <marco@gnu.org>
12786 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
12789 * disk/host.c: New file.
12791 * util/hostfs.c: Likewise.
12793 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
12794 return `GRUB_ERR_BAD_FS'.
12795 * fs/sfs.c (grub_sfs_mount): Likewise.
12796 * fs/xfs.c (grub_xfs_mount): Likewise.
12798 * include/grub/disk.h (enum grub_disk_dev_id): Add
12799 `GRUB_DISK_DEVICE_HOST_ID'.
12801 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
12803 2007-07-24 Jerone Young <jerone@gmail.com>
12805 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
12806 modules for compilation.
12807 * conf/powerpc-ieee1275.rmk: Likewise.
12809 * include/multiboot.h: Move multiboot definitions to one file. Rename
12810 many definitions to not get grub specific.
12811 * include/multiboot2.h: Create header with multiboot 2 definitions.
12812 * include/grub/multiboot.h: Header for grub specific function
12813 prototypes and definitions.
12814 * include/grub/multiboot2.h: Likewise.
12815 * include/grub/multiboot_loader.h: Likewise.
12816 * include/grub/i386/pc/multiboot.h: Removed.
12817 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
12819 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
12820 and 2 to allow for one multiboot and module commands.
12821 * loader/multiboot2.c: Add multiboot2 functionality.
12822 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
12823 and definition names.
12824 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
12826 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
12827 ieee1275 specific multiboot2 code.
12829 * kern/i386/pc/startup.S: Change headers and definition names for
12830 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
12832 2007-07-22 Robert Millan <rmh@aybabtu.com>
12834 * geninitheader.sh: Process file specified in first parameter rather
12835 than hardcoding grub_modules_init.lst.
12836 * geninit.sh: Likewise. Also, construct header name dynamically rather
12837 than hardcoding grub_modules_init.h.
12839 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
12840 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
12841 grub_probe_init.[ch] and grub_setup_init.[ch].
12843 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
12844 grub_modules_init.h with grub_emu_init.h.
12845 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
12846 grub_probe_init.[ch] files.
12847 * conf/i386-efi.rmk: Likewise.
12848 * conf/i386-pc.rmk: Likewise.
12849 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
12850 grub_setup_init.[ch] files.
12852 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
12853 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
12854 to initialize modules rather than a list of hardcoded functions.
12855 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
12856 grub_init_all() to initialize modules rather than a list of hardcoded
12859 2007-07-22 Robert Millan <rmh@aybabtu.com>
12861 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12862 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
12864 2007-07-22 Robert Millan <rmh@aybabtu.com>
12866 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
12867 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
12868 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
12869 flag when running on SmartFirmware.
12870 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
12871 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
12874 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12875 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
12876 rather than decreasing it.
12878 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
12879 there's not enough space to do it, fail in the same way as when it
12880 can't be done because there are no partitions.
12882 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
12883 when nvsetenv failed.
12885 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12887 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
12888 because this rule is automatically generated.
12889 (grub-mkrescue): Removed for the same reason as above.
12891 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12893 Migrate to GNU General Public License Version 3.
12895 * COPYING: Replaced with the plain text version of GPLv3.
12897 * config.guess: Updated from gnulib.
12898 * config.sub: Likewise.
12900 * geninit.sh: Output a GPLv3 copyright notice.
12901 * geninitheader.sh: Likewise.
12902 * genmodsrc.sh: Likewise.
12903 * gensymlist.sh.in: Likewise.
12905 * boot/i386/pc/boot.S: Upgraded to GPLv3.
12906 * boot/i386/pc/diskboot.S: Likewise.
12907 * boot/i386/pc/pxeboot.S: Likewise.
12908 * commands/blocklist.c: Likewise.
12909 * commands/boot.c: Likewise.
12910 * commands/cat.c: Likewise.
12911 * commands/cmp.c: Likewise.
12912 * commands/configfile.c: Likewise.
12913 * commands/echo.c: Likewise.
12914 * commands/help.c: Likewise.
12915 * commands/ls.c: Likewise.
12916 * commands/search.c: Likewise.
12917 * commands/terminal.c: Likewise.
12918 * commands/test.c: Likewise.
12919 * commands/videotest.c: Likewise.
12920 * commands/i386/cpuid.c: Likewise.
12921 * commands/i386/pc/halt.c: Likewise.
12922 * commands/i386/pc/play.c: Likewise.
12923 * commands/i386/pc/reboot.c: Likewise.
12924 * commands/i386/pc/vbeinfo.c: Likewise.
12925 * commands/i386/pc/vbetest.c: Likewise.
12926 * commands/ieee1275/halt.c: Likewise.
12927 * commands/ieee1275/reboot.c: Likewise.
12928 * commands/ieee1275/suspend.c: Likewise.
12929 * disk/loopback.c: Likewise.
12930 * disk/lvm.c: Likewise.
12931 * disk/raid.c: Likewise.
12932 * disk/efi/efidisk.c: Likewise.
12933 * disk/i386/pc/biosdisk.c: Likewise.
12934 * disk/ieee1275/ofdisk.c: Likewise.
12935 * font/manager.c: Likewise.
12936 * fs/affs.c: Likewise.
12937 * fs/ext2.c: Likewise.
12938 * fs/fat.c: Likewise.
12939 * fs/fshelp.c: Likewise.
12940 * fs/hfs.c: Likewise.
12941 * fs/hfsplus.c: Likewise.
12942 * fs/iso9660.c: Likewise.
12943 * fs/jfs.c: Likewise.
12944 * fs/minix.c: Likewise.
12945 * fs/sfs.c: Likewise.
12946 * fs/ufs.c: Likewise.
12947 * fs/xfs.c: Likewise.
12948 * hello/hello.c: Likewise.
12949 * include/grub/acorn_filecore.h: Likewise.
12950 * include/grub/arg.h: Likewise.
12951 * include/grub/bitmap.h: Likewise.
12952 * include/grub/boot.h: Likewise.
12953 * include/grub/cache.h: Likewise.
12954 * include/grub/device.h: Likewise.
12955 * include/grub/disk.h: Likewise.
12956 * include/grub/dl.h: Likewise.
12957 * include/grub/elfload.h: Likewise.
12958 * include/grub/env.h: Likewise.
12959 * include/grub/err.h: Likewise.
12960 * include/grub/file.h: Likewise.
12961 * include/grub/font.h: Likewise.
12962 * include/grub/fs.h: Likewise.
12963 * include/grub/fshelp.h: Likewise.
12964 * include/grub/gzio.h: Likewise.
12965 * include/grub/hfs.h: Likewise.
12966 * include/grub/kernel.h: Likewise.
12967 * include/grub/loader.h: Likewise.
12968 * include/grub/lvm.h: Likewise.
12969 * include/grub/misc.h: Likewise.
12970 * include/grub/mm.h: Likewise.
12971 * include/grub/net.h: Likewise.
12972 * include/grub/normal.h: Likewise.
12973 * include/grub/parser.h: Likewise.
12974 * include/grub/partition.h: Likewise.
12975 * include/grub/pc_partition.h: Likewise.
12976 * include/grub/raid.h: Likewise.
12977 * include/grub/rescue.h: Likewise.
12978 * include/grub/script.h: Likewise.
12979 * include/grub/setjmp.h: Likewise.
12980 * include/grub/symbol.h: Likewise.
12981 * include/grub/term.h: Likewise.
12982 * include/grub/terminfo.h: Likewise.
12983 * include/grub/tparm.h: Likewise.
12984 * include/grub/types.h: Likewise.
12985 * include/grub/video.h: Likewise.
12986 * include/grub/efi/api.h: Likewise.
12987 * include/grub/efi/chainloader.h: Likewise.
12988 * include/grub/efi/console.h: Likewise.
12989 * include/grub/efi/console_control.h: Likewise.
12990 * include/grub/efi/disk.h: Likewise.
12991 * include/grub/efi/efi.h: Likewise.
12992 * include/grub/efi/pe32.h: Likewise.
12993 * include/grub/efi/time.h: Likewise.
12994 * include/grub/i386/linux.h: Likewise.
12995 * include/grub/i386/setjmp.h: Likewise.
12996 * include/grub/i386/types.h: Likewise.
12997 * include/grub/i386/efi/kernel.h: Likewise.
12998 * include/grub/i386/efi/loader.h: Likewise.
12999 * include/grub/i386/efi/time.h: Likewise.
13000 * include/grub/i386/pc/biosdisk.h: Likewise.
13001 * include/grub/i386/pc/boot.h: Likewise.
13002 * include/grub/i386/pc/chainloader.h: Likewise.
13003 * include/grub/i386/pc/console.h: Likewise.
13004 * include/grub/i386/pc/init.h: Likewise.
13005 * include/grub/i386/pc/kernel.h: Likewise.
13006 * include/grub/i386/pc/loader.h: Likewise.
13007 * include/grub/i386/pc/memory.h: Likewise.
13008 * include/grub/i386/pc/multiboot.h: Likewise.
13009 * include/grub/i386/pc/serial.h: Likewise.
13010 * include/grub/i386/pc/time.h: Likewise.
13011 * include/grub/i386/pc/vbe.h: Likewise.
13012 * include/grub/i386/pc/vbeblit.h: Likewise.
13013 * include/grub/i386/pc/vbefill.h: Likewise.
13014 * include/grub/i386/pc/vbeutil.h: Likewise.
13015 * include/grub/i386/pc/vga.h: Likewise.
13016 * include/grub/ieee1275/ieee1275.h: Likewise.
13017 * include/grub/ieee1275/ofdisk.h: Likewise.
13018 * include/grub/powerpc/libgcc.h: Likewise.
13019 * include/grub/powerpc/setjmp.h: Likewise.
13020 * include/grub/powerpc/types.h: Likewise.
13021 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
13022 * include/grub/powerpc/ieee1275/console.h: Likewise.
13023 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
13024 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
13025 * include/grub/powerpc/ieee1275/loader.h: Likewise.
13026 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
13027 * include/grub/powerpc/ieee1275/time.h: Likewise.
13028 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
13029 * include/grub/sparc64/libgcc.h: Likewise.
13030 * include/grub/sparc64/setjmp.h: Likewise.
13031 * include/grub/sparc64/types.h: Likewise.
13032 * include/grub/sparc64/ieee1275/console.h: Likewise.
13033 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
13034 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13035 * include/grub/sparc64/ieee1275/time.h: Likewise.
13036 * include/grub/util/biosdisk.h: Likewise.
13037 * include/grub/util/getroot.h: Likewise.
13038 * include/grub/util/lvm.h: Likewise.
13039 * include/grub/util/misc.h: Likewise.
13040 * include/grub/util/raid.h: Likewise.
13041 * include/grub/util/resolve.h: Likewise.
13042 * io/gzio.c: Likewise.
13043 * kern/device.c: Likewise.
13044 * kern/disk.c: Likewise.
13045 * kern/dl.c: Likewise.
13046 * kern/elf.c: Likewise.
13047 * kern/env.c: Likewise.
13048 * kern/err.c: Likewise.
13049 * kern/file.c: Likewise.
13050 * kern/fs.c: Likewise.
13051 * kern/loader.c: Likewise.
13052 * kern/main.c: Likewise.
13053 * kern/misc.c: Likewise.
13054 * kern/mm.c: Likewise.
13055 * kern/parser.c: Likewise.
13056 * kern/partition.c: Likewise.
13057 * kern/rescue.c: Likewise.
13058 * kern/term.c: Likewise.
13059 * kern/efi/efi.c: Likewise.
13060 * kern/efi/init.c: Likewise.
13061 * kern/efi/mm.c: Likewise.
13062 * kern/i386/dl.c: Likewise.
13063 * kern/i386/efi/init.c: Likewise.
13064 * kern/i386/efi/startup.S: Likewise.
13065 * kern/i386/pc/init.c: Likewise.
13066 * kern/i386/pc/lzo1x.S: Likewise.
13067 * kern/i386/pc/startup.S: Likewise.
13068 * kern/ieee1275/ieee1275.c: Likewise.
13069 * kern/powerpc/cache.S: Likewise.
13070 * kern/powerpc/dl.c: Likewise.
13071 * kern/powerpc/ieee1275/cmain.c: Likewise.
13072 * kern/powerpc/ieee1275/crt0.S: Likewise.
13073 * kern/powerpc/ieee1275/init.c: Likewise.
13074 * kern/powerpc/ieee1275/openfw.c: Likewise.
13075 * kern/sparc64/cache.S: Likewise.
13076 * kern/sparc64/dl.c: Likewise.
13077 * kern/sparc64/ieee1275/init.c: Likewise.
13078 * kern/sparc64/ieee1275/openfw.c: Likewise.
13079 * loader/efi/chainloader.c: Likewise.
13080 * loader/efi/chainloader_normal.c: Likewise.
13081 * loader/i386/efi/linux.c: Likewise.
13082 * loader/i386/efi/linux_normal.c: Likewise.
13083 * loader/i386/pc/chainloader.c: Likewise.
13084 * loader/i386/pc/chainloader_normal.c: Likewise.
13085 * loader/i386/pc/linux.c: Likewise.
13086 * loader/i386/pc/linux_normal.c: Likewise.
13087 * loader/i386/pc/multiboot.c: Likewise.
13088 * loader/i386/pc/multiboot_normal.c: Likewise.
13089 * loader/powerpc/ieee1275/linux.c: Likewise.
13090 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13091 * normal/arg.c: Likewise.
13092 * normal/cmdline.c: Likewise.
13093 * normal/command.c: Likewise.
13094 * normal/completion.c: Likewise.
13095 * normal/execute.c: Likewise.
13096 * normal/function.c: Likewise.
13097 * normal/lexer.c: Likewise.
13098 * normal/main.c: Likewise.
13099 * normal/menu.c: Likewise.
13100 * normal/menu_entry.c: Likewise.
13101 * normal/misc.c: Likewise.
13102 * normal/parser.y: Likewise.
13103 * normal/script.c: Likewise.
13104 * normal/i386/setjmp.S: Likewise.
13105 * normal/powerpc/setjmp.S: Likewise.
13106 * normal/sparc64/setjmp.S: Likewise.
13107 * partmap/acorn.c: Likewise.
13108 * partmap/amiga.c: Likewise.
13109 * partmap/apple.c: Likewise.
13110 * partmap/gpt.c: Likewise.
13111 * partmap/pc.c: Likewise.
13112 * partmap/sun.c: Likewise.
13113 * term/gfxterm.c: Likewise.
13114 * term/terminfo.c: Likewise.
13115 * term/efi/console.c: Likewise.
13116 * term/i386/pc/console.c: Likewise.
13117 * term/i386/pc/serial.c: Likewise.
13118 * term/i386/pc/vesafb.c: Likewise.
13119 * term/i386/pc/vga.c: Likewise.
13120 * term/ieee1275/ofconsole.c: Likewise.
13121 * util/biosdisk.c: Likewise.
13122 * util/console.c: Likewise.
13123 * util/genmoddep.c: Likewise.
13124 * util/getroot.c: Likewise.
13125 * util/grub-emu.c: Likewise.
13126 * util/grub-mkdevicemap.c: Likewise.
13127 * util/grub-probe.c: Likewise.
13128 * util/lvm.c: Likewise.
13129 * util/misc.c: Likewise.
13130 * util/raid.c: Likewise.
13131 * util/resolve.c: Likewise.
13132 * util/update-grub.in: Likewise.
13133 * util/update-grub_lib.in: Likewise.
13134 * util/grub.d/00_header.in: Likewise.
13135 * util/grub.d/10_hurd.in: Likewise.
13136 * util/grub.d/10_linux.in: Likewise.
13137 * util/i386/efi/grub-install.in: Likewise.
13138 * util/i386/efi/grub-mkimage.c: Likewise.
13139 * util/i386/pc/grub-install.in: Likewise.
13140 * util/i386/pc/grub-mkimage.c: Likewise.
13141 * util/i386/pc/grub-mkrescue.in: Likewise.
13142 * util/i386/pc/grub-setup.c: Likewise.
13143 * util/i386/pc/misc.c: Likewise.
13144 * util/powerpc/ieee1275/grub-install.in: Likewise.
13145 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
13146 * util/powerpc/ieee1275/misc.c: Likewise.
13147 * video/bitmap.c: Likewise.
13148 * video/video.c: Likewise.
13149 * video/i386/pc/vbe.c: Likewise.
13150 * video/i386/pc/vbeblit.c: Likewise.
13151 * video/i386/pc/vbefill.c: Likewise.
13152 * video/i386/pc/vbeutil.c: Likewise.
13153 * video/readers/tga.c: Likewise.
13155 2007-07-02 Robert Millan <rmh@aybabtu.com>
13157 * conf/i386-efi.rmk: Replace obsolete reference to
13158 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
13159 with util/getroot.c.
13160 * conf/powerpc-ieee1275.rmk: Likewise.
13161 * conf/sparc64-ieee1275.rmk: Likewise.
13163 * util/grub-emu.c (main): Fix unchecked pointer handling.
13165 2007-07-02 Robert Millan <rmh@aybabtu.com>
13167 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
13168 invocation to fail, in order to support partition-less media.
13170 * util/i386/pc/grub-install.in: Likewise.
13172 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
13173 which fs or partmap modules are needed (akin to its sister scripts).
13175 Also use grub-probe to get rid of unportable /proc/mounts check.
13177 Print the same informational message that the other scripts do, before
13180 2007-06-23 Robert Millan <rmh@aybabtu.com>
13182 * util/update-grub_lib.in (font_path): New function. Determine whether
13183 a font file can be found and, if so, echo the GRUB path to it.
13185 * util/update-grub.in: Handle multiple terminals depending on user
13186 input, platform availability and font file presence. Propagate
13187 variables of our findings to /etc/grub.d/ children.
13189 * util/grub.d/00_header.in: Handle multiple terminals, based on
13190 environment setup by update-grub.
13192 2007-06-23 Robert Millan <rmh@aybabtu.com>
13194 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
13196 2007-06-21 Robert Millan <rmh@aybabtu.com>
13198 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
13199 indicate end of data section in kernel image.
13200 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
13201 GRUB_KERNEL_MACHINE_DATA_END.
13203 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
13205 * kern/i386/efi/startup.S: Likewise.
13207 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
13208 during image generation. Implement --prefix option to override this
13210 * util/i386/efi/grub-mkimage.c: Likewise.
13212 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
13213 code to make path relative to its root into a separate function.
13215 * util/i386/pc/grub-install.in: Use newly provided
13216 make_system_path_relative_to_its_root() to convert ${grubdir}, then
13217 pass the result to grub-install --prefix.
13219 2007-06-13 Robert Millan <rmh@aybabtu.com>
13221 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
13222 DEFAULT_DEVICE_MAP.
13223 * util/grub-emu.c: Use above definitions from misc.h instead of
13225 * util/grub-mkdevicemap.c: Likewise.
13226 * util/i386/pc/grub-setup.c: Likewise.
13227 * util/grub-probe.c: Likewise.
13228 (probe): Abort with grub_util_error() when either
13229 grub_guess_root_device or grub_util_get_grub_dev fails.
13231 2007-06-12 Robert Millan <rmh@aybabtu.com>
13233 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
13234 "pager" assignment.
13235 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
13237 * util/grub-probe.c (probe): Likewise for "drive_name".
13239 2007-06-11 Robert Millan <rmh@aybabtu.com>
13241 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
13242 not just the cdrom one.
13244 2007-06-11 Robert Millan <rmh@aybabtu.com>
13246 * util/i386/pc/grub-mkrescue.in: Add "set -e".
13247 Add --pkglibdir=DIR option to override pkglibdir.
13248 Mention --image-type=TYPE in help output.
13249 Fix --grub-mkimage (it was a no-op).
13250 Abort gracefully when no parameter is given.
13252 2007-06-11 Robert Millan <rmh@aybabtu.com>
13254 * util/i386/pc/grub-mkrescue.in: New file.
13255 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
13256 * Makefile.in: Handle bin_SCRIPTS.
13258 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
13260 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
13261 list of video modes.
13263 2007-06-06 Robert Millan <rmh@aybabtu.com>
13265 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
13266 file doesn't exist, or if it is in a filesystem grub can't read.
13268 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
13269 not abort if GRUB_DRIVE could not be defined. Rearrange generated
13270 header comment to fit in 80 columns when the variables are resolved.
13272 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
13273 could be identified by update-grub. Remove redundant check for
13274 unifont.pff existence (since convert_system_path_to_grub_path now
13277 2007-06-04 Robert Millan <rmh@aybabtu.com>
13279 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
13281 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
13283 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
13285 2007-06-04 Robert Millan <rmh@aybabtu.com>
13287 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
13289 * include/grub/partition.h: Declare grub_apple_partition_map_init and
13290 grub_apple_partition_map_fini.
13293 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
13294 to access >2 TiB disks).
13296 Print disk->total_sectors with %llu instead of %lu, since this
13297 variable is always 64-bit (prevents wrong disk size from being displayed
13298 on either >2 TiB disk or big-endian CPU).
13300 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
13301 into a generic case that supports all (sane) partition maps.
13303 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
13306 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
13307 and grub_apple_partition_map_fini() after that.
13309 2007-06-01 Robert Millan <rmh@aybabtu.com>
13311 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
13313 * util/grub.d/00_header.in: Only enable gfxterm when
13314 convert_system_path_to_grub_path() succeeds.
13316 2007-05-20 Robert Millan <rmh@aybabtu.com>
13318 * util/update-grub_lib.in: New file.
13319 * DISTLIST: Add update-grub_lib.in.
13320 * conf/common.rmk: Generate update-grub_lib and install it in
13322 * Makefile.in: Add install routine for $(lib_DATA).
13324 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
13325 function provided by update-grub_lib to support arbitrary paths of
13327 * util/update-grub.in: Use convert_system_path_to_grub_path() to
13328 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
13330 2007-05-19 Robert Millan <rmh@aybabtu.com>
13332 * commands/i386/cpuid.c: New module.
13333 * DISTLIST: Add it.
13334 * conf/i386-efi.rmk: Enable cpuid.mod.
13335 * conf/i386-pc.rmk: Likewise.
13337 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13339 * kern/disk.c (grub_disk_read): Check return value of
13342 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13344 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
13346 * disk/raid.c (grub_raid_open): Likewise.
13348 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13350 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
13351 stack instead of on the heap.
13353 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
13354 before doing a read on it.
13356 * configure.ac: Only use -fno-stack-protector for the target
13359 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13361 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
13362 __attribute_ ((unused)) to mode_type argument.
13364 * util/getroot.c (grub_guess_root_device): Fix #endif.
13366 * kern/misc.c (memcmp): Fix prototype.
13368 * include/grub/partition.h [GRUB_UTIL]
13369 (grub_gpt_partition_map_init): Add prototype.
13370 (grub_gpt_partition_map_fini): Likewise.
13372 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
13373 at the right place.
13375 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
13376 (grub_fat_read_data): Likewise.
13377 (grub_fat_find_dir): Likewise.
13379 * font/manager.c (find_glyph): Make table a const.
13380 (grub_font_get_glyph): Remove bitmap from if statement.
13382 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
13384 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
13385 code, first search for device in /dev/mapper, then in /dev.
13386 (grub_util_get_grub_dev): New function.
13387 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
13389 * util/grub-probe.c (probe): Remove check for RAID, call
13390 grub_util_get_grub_dev() instead of
13391 grub_util_biosdisk_get_grub_dev().
13392 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
13393 grub_util_biosdisk_get_grub_dev().
13394 * util/i386/pc/grub-setup.c (main): Likewise.
13396 2007-05-16 Robert Millan <rmh@aybabtu.com>
13398 * DISTLIST: Update for the latest changes.
13399 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
13400 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
13401 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
13402 grub/util/biosdisk.h.
13403 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
13404 grub/util/biosdisk.h.
13406 2007-05-16 Robert Millan <rmh@aybabtu.com>
13408 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
13410 2007-05-16 Robert Millan <rmh@aybabtu.com>
13412 * util/i386/efi/grub-install.in: New.
13413 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
13414 newly added grub-install.
13415 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
13417 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
13418 grub/util/biosdisk.h.
13419 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
13420 grub/util/biosdisk.h.
13422 2007-05-16 Robert Millan <rmh@aybabtu.com>
13424 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
13425 * include/grub/util/biosdisk.h: ... here.
13426 * util/i386/pc/biosdisk.c: Moved to ...
13427 * util/biosdisk.c: ... here.
13428 * util/i386/pc/getroot.c: Moved to ...
13429 * util/getroot.c: ... here.
13430 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
13431 * util/grub-mkdevicemap.c: ... here.
13432 * util/i386/pc/grub-probe.c: Moved to ...
13433 * util/grub-probe.c: ... here.
13435 2007-05-15 Robert Millan <rmh@aybabtu.com>
13437 * util/update-grub.in: Remove duplicated line in grub.cfg header
13440 2007-05-13 Robert Millan <rmh@aybabtu.com>
13442 * util/update-grub.in: Fix a few assumptions about the devices holding
13443 /, /boot and /boot/grub being the same.
13444 * util/grub.d/00_header.in: Likewise.
13445 * util/grub.d/10_hurd.in: Likewise.
13446 * util/grub.d/10_linux.in: Likewise.
13448 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
13449 patterns. Use that to define the `.old' suffix as older than `'.
13451 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
13453 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
13454 the grub.cfg header message.
13456 2007-05-11 Robert Millan <rmh@aybabtu.com>
13458 * util/update-grub.in: Create device.map if it doesn't already exist,
13459 before attempting to run grub-probe.
13460 Check for grub-probe and grub-mkdevicemap with the same code
13461 grub-install is using.
13464 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
13466 * Makefile.in: Add the datarootdir autoconf variable.
13468 2007-05-09 Robert Millan <rmh@aybabtu.com>
13470 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
13471 fail gracefully if dev->disk->partition == NULL.
13473 2007-05-07 Robert Millan <rmh@aybabtu.com>
13475 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
13476 determine partition map module.
13477 * util/i386/pc/grub-install.in: Use this feature to decide which
13478 partition module to load, instead of hardcoding pc and gpt.
13480 2007-05-07 Robert Millan <rmh@aybabtu.com>
13482 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
13483 source directory differs from build directory.
13485 2007-05-05 Robert Millan <rmh@aybabtu.com>
13487 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
13490 2007-05-05 Robert Millan <rmh@aybabtu.com>
13492 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
13494 2007-05-05 Robert Millan <rmh@aybabtu.com>
13496 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
13497 command-line arguments via ${GRUB_CMDLINE_LINUX}.
13499 2007-05-05 Robert Millan <rmh@aybabtu.com>
13501 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
13502 (grub_probe_SOURCES): Likewise.
13503 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
13504 GPT and initialize dos_part and bsd_part accordingly.
13505 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
13507 (main): Activate gpt module for use during partition identification,
13508 and deactivate it afterwards.
13509 * util/i386/pc/grub-install.in: Add gpt module to core.img.
13510 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
13511 partition identification, and deactivate it afterwards.
13513 2007-05-05 Robert Millan <rmh@aybabtu.com>
13515 * term/i386/pc/console.c (grub_console_fini): Call
13516 grub_term_set_current() before grub_term_unregister().
13518 2007-05-04 Robert Millan <rmh@aybabtu.com>
13520 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
13521 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
13522 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
13523 and update-grub_DATA.
13524 * conf/common.rmk: Build and install update-grub components.
13525 * conf/common.mk: Regenerate.
13526 * util/update-grub.in: New. Core of update-grub.
13527 * util/grub.d/00_header.in: New. Generates grub.cfg header.
13528 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
13529 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
13530 * util/grub.d/README: New. Document grub.d directory layout.
13532 2007-05-01 Robert Millan <rmh@aybabtu.com>
13534 * util/grub-emu.c: Move initialization functions
13535 grub_util_biosdisk_init() and grub_init_all() before
13536 grub_util_biosdisk_get_grub_dev(), which relies on them.
13538 2007-04-19 Robert Millan <rmh@aybabtu.com>
13540 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
13543 2007-04-18 Jerone Young <jerone@gmail.com>
13545 * kernel/elf.c: Add missing parenthesis for conditional statement
13548 2007-04-10 Jerone Young <jerone@gmail.com>
13550 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
13551 continue on and look for device node with real device name.
13553 2007-04-10 Jerone Young <jerone@gmail.com>
13555 * configure.ac: Add argument for autoconf to use transformation
13557 * Makefile.in: Add autoconf package transformation code.
13558 * util/i386/pc/grub-install.in: Likewise.
13559 * util/powerpc/ieee1275/grub-install.in: Likewise.
13561 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
13563 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
13564 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
13565 (EXT2_REVISION): Likewise.
13566 (EXT2_INODE_SIZE): Likewise.
13567 (struct grub_ext2_block_group): Added a missing member
13569 (grub_ext2_read_inode): Divide by the inode size in a superblock
13570 instead of 128 to obtain INODES_PER_BLOCK.
13571 Use the macro EXT2_INODE_SIZE instead of directly using
13572 SBLOCK->INODE_SIZE.
13574 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
13576 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
13577 superblock instead of the structure size to compute an
13578 offset. This fixes the problem that GRUB could not read a
13579 filesystem when inode size is different from 128-byte.
13581 2007-03-05 Marco Gerards <marco@gnu.org>
13583 * normal/main.c (read_config_file): When "menu" is not set, create
13584 an initial context.
13586 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13588 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
13589 (HEAP_LIMIT): New macro.
13590 (grub_claim_heap): Claim memory up to `heaplimit'.
13592 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13594 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
13595 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
13596 (_start): Likewise.
13597 (grub_arch_modules_addr): Return address after `_end'.
13598 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
13599 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
13600 (add_segments): Calculate `_end' from phdr size and location.
13601 (ALIGN_UP): Moved to ...
13602 * include/grub/misc.h: here.
13603 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
13605 (GRUB_IEEE1275_MODULE_BASE): Removed.
13607 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13609 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
13612 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13614 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
13616 (grub_elf64_load_hook_t): Likewise.
13617 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
13620 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13622 * kern/mm.c: Update copyright.
13623 (grub_mm_debug): Correct syntax error.
13624 (grub_mm_dump_free): New function.
13625 (grub_debug_free): Call `grub_free'.
13626 * include/grub/mm.h: Update copyright.
13627 (grub_mm_dump_free): Add declaration.
13629 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13631 * include/grub/ieee1275/ieee1275.h: Update copyright.
13632 * kern/powerpc/ieee1275/init.c: Likewise.
13633 * kern/powerpc/ieee1275/openfw.c: Likewise.
13635 * loader/powerpc/ieee1275/linux.c: Likewise.
13636 * include/grub/elfload.h: Likewise.
13637 * kern/elf.c: Likewise.
13638 (grub_elf32_load): Pass `base' and `size' parameters. Update all
13640 (grub_elf64_load): Likewise.
13641 (grub_elf32_load_segment): Move to a nested function.
13642 (grub_elf64_load_segment): Likewise.
13644 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13646 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
13648 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
13649 (grub_heap_len): Likewise.
13650 (HEAP_SIZE): New macro.
13651 (grub_claim_heap): New function.
13652 (grub_machine_init): Don't claim heap directly. Call
13654 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
13655 (grub_available_iterate): New function.
13657 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
13659 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
13660 * configure.ac: Use it for testing the HOST and TARGET compilers.
13662 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
13664 * Makefile.in (enable_grub_emu): New variable.
13665 * configure.ac (--enable-grub-emu): New option.
13666 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
13667 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
13668 * conf/i386-pc.rmk: Likewise.
13669 * conf/powerpc-ieee1275.rmk: Likewise.
13670 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
13672 2006-12-12 Marco Gerards <marco@gnu.org>
13674 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
13676 * kern/env.c (grub_env_unset): Don't free the member `value' when
13677 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
13680 * normal/main.c (current_menu): Removed.
13681 (free_menu): Unset the `menu' environment variable.
13682 (grub_normal_menu_addentry): Make use of the environment variable
13683 `menu', instead of using the global `current_menu'. Allocate
13684 memory for the sourcecode of this entry.
13685 (read_config_file): New argument `nested', changed all callers.
13686 Only in the case of a new context, initialize a new menu. Set the
13687 `menu' environment variable.
13688 (grub_normal_execute): Don't set and unset the environment
13689 variable `menu' here anymore. Only free the menu when leaving the
13692 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
13695 2006-12-11 Marco Gerards <marco@gnu.org>
13697 * normal/menu_entry.c (run): Fix off by one bug so the last line
13698 is executed. Move the loader check to outside the loop.
13700 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
13702 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
13704 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
13706 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
13707 the number of sectors. Reported by Andrey Shuvikov
13708 <mr_hyro@yahoo.com>.
13710 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
13712 * kern/disk.c (grub_disk_read): When there is a read error, always
13713 try to read only the necessary data.
13715 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
13717 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
13719 [GRUB_UTIL] (grub_raid_fini): Likewise.
13720 [GRUB_UTIL] (grub_lvm_init): Likewise.
13721 [GRUB_UTIL] (grub_lvm_fini): Likewise.
13722 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
13723 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
13724 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
13725 and grub_raid_fini().
13727 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
13729 * include/grub/types.h (__unused): Rename to UNUSED.
13730 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
13731 (grub_elf64_size): Likewise.
13733 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13735 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
13736 grub_error_push and grub_error_pop in the error-handling path.
13737 (grub_elf32_load_segment): Only call grub_file_read with non-zero
13740 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13742 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
13743 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13744 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13745 (kernel_elf_SOURCES): Likewise.
13746 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
13747 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
13748 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13749 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13750 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
13751 (elf_mod_SOURCES): New variable.
13752 (elf_mod_CFLAGS): Likewise.
13753 (elf_mod_LDFLAGS): Likewise.
13754 * include/grub/types.h (__unused): New macro.
13755 * include/grub/elfload.h: New file.
13756 * kern/elf.c: Likewise.
13757 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
13758 (ELF32_LOADMASK): New macro.
13759 (ELF64_LOADMASK): Likewise.
13760 (vmlinux): Removed.
13761 (grub_linux_load32): New function.
13762 (grub_linux_load64): Likewise.
13763 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
13764 Use grub_elf_t instead of grub_file_t.
13766 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
13768 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
13769 `catch_result' to struct set_color_args.
13771 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
13773 * normal/menu.c: Include grub/script.h.
13774 * normal/menu_entry.c: Likewise.
13775 * include/grub/normal.h: Do not include grub/script.h.
13777 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13779 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
13781 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13783 * kern/disk.c (grub_disk_open): Print debug messages when opening a
13785 (grub_disk_close): Print debug messages when closing a disk.
13786 (grub_disk_read): Print debug messages when disk read fails.
13787 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
13789 * kern/partition.c: Include misc.h.
13790 (grub_partition_iterate): Print debug messages when detecting
13793 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13795 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
13797 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
13799 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
13801 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13802 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
13804 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
13806 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
13807 instead of sizeof(lv). Patch by Michael Guntsche.
13809 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
13811 * disk/lvm.c: Rename VGS to VG_LIST.
13812 (grub_lvm_iterate): Change VGS->LV to VG-LV.
13813 (grub_lvm_open): Likewise.
13814 Thanks to Michael Guntsche for finding this bug.
13816 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
13818 * configure.ac (AC_INIT): Bumped to 1.95.
13820 2006-10-14 Robert Millan <rmh@aybabtu.com>
13822 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
13823 with "/dev/.static/dev/md".
13825 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13827 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
13828 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
13829 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
13830 DRIVE_NAME are always freed.
13832 * util/i386/pc/biosdisk.c (make_device_name): Add one into
13833 DOS_PART, as a DOS partition is counted from one instead of zero
13834 now. Reported by Robert Millan.
13836 2006-10-14 Robert Millan <rmh@aybabtu.com>
13838 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
13839 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
13840 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
13841 string returned by grub_guess_root_device.
13842 * util/i386/pc/grub-setup.c: Likewise.
13843 * util/i386/pc/grub-probefs.c: Likewise.
13845 * util/i386/pc/grub-probefs.c: Rename to ...
13846 * util/i386/pc/grub-probe.c: ... this.
13847 * DISTLIST: Remove grub-probefs, add grub-probe.
13848 * conf/i386-efi.rmk: Likewise.
13849 * conf/i386-pc.rmk: Likewise.
13850 * util/i386/pc/grub-install.in: Likewise.
13852 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
13853 choose which information we want to print.
13855 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13857 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
13858 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
13859 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
13860 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
13861 video/readers/tga.c and video/i386/pc/vbeutil.c.
13863 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
13865 Added support for RAID and LVM.
13867 * disk/lvm.c: New file.
13868 * disk/raid.c: Likewise.
13869 * include/grub/lvm.h: Likewise.
13870 * include/grub/raid.h: Likewise.
13871 * include/grub/util/lvm.h: Likewise.
13872 * include/grub/util/raid.h: Likewise.
13873 * util/lvm.c: Likewise.
13874 * util/raid.c: Likewise.
13876 * include/grub/disk.h (grub_disk_dev_id): Add
13877 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
13878 (grub_disk_get_size): New prototype.
13879 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
13880 returns a partition.
13881 (grub_disk_get_size): New function.
13883 * kern/i386/pc/init.c (make_install_device): Copy the prefix
13884 verbatim if grub_install_dos_part is -2.
13886 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
13889 * util/i386/pc/grub-setup.c (setup): New argument
13890 MUST_EMBED. Force embedding of GRUB when the argument is
13891 true. Close FILE before returning.
13892 (main): Add support for RAID and LVM.
13894 * conf/common.rmk: Add RAID and LVM modules.
13895 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
13897 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
13899 * kern/misc.c (grub_strstr): New function.
13900 * include/grub/misc.h (grub_strstr): New prototype.
13902 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
13904 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
13906 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
13908 * kern/misc.c (grub_strtoull): Guess the base only if not
13911 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13913 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
13916 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13918 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
13920 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
13921 Remove `flags' argument. All callers changed.
13922 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
13923 (IEEE1275_IHANDLE_INVALID): New variable.
13924 (IEEE1275_CELL_INVALID): New variable.
13925 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
13926 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
13927 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
13928 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
13929 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
13930 codes from Open Firmware. All callers updated.
13931 (grub_ieee1275_next_property): Directly return Open Firmware return
13933 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
13934 Standardize error checking from `grub_ieee1275_get_property'.
13935 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
13936 `devalias' to `aliases'. Correct comments. Consolidate error paths.
13938 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13940 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
13941 `instance_to_package_args' to `instance_to_path_args'.
13943 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
13944 `grub_ieee1275_chosen'.
13946 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
13947 `grub_ieee1275_interpret'.
13949 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13951 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
13953 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13955 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
13956 (__cmpdi): Likewise.
13958 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
13959 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
13962 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
13964 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
13965 to type `grub_ssize_t'.
13966 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
13968 2006-09-22 Marco Gerards <marco@gnu.org>
13970 * normal/script.c (grub_script_create_cmdmenu): Skip leading
13973 2006-09-22 Marco Gerards <marco@gnu.org>
13975 * commands/echo.c: New file.
13977 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
13979 * conf/common.rmk (echo_mod_SOURCES): New variable.
13980 (echo_mod_CFLAGS): Likewise.
13981 (echo_mod_LDFLAGS): Likewise.
13983 2006-09-22 Marco Gerards <marco@gnu.org>
13985 * normal/main.c (get_line): Malloc memory instead of using
13986 preallocated memory. Removed the arguments `cmdline' and
13987 `max_len'. Updated all callers.
13989 2006-09-22 Marco Gerards <marco@gnu.org>
13991 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
13992 (normal_mod_DEPENDENCIES): Likewise.
13994 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
13995 (normal_mod_DEPENDENCIES): Likewise.
13997 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
13999 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
14001 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
14003 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
14004 (normal_mod_DEPENDENCIES): Likewise.
14005 * conf/i386-pc.mk: Regenerate.
14006 * conf/i386-efi.mk: Likewise
14007 * conf/common.mk: Likewise.
14008 * conf/powerpc-ieee1275.mk: Likewise.
14009 * conf/sparc64-ieee1275.mk: Likewise.
14011 2006-09-22 Robert Millan <rmh@aybabtu.com>
14013 Sync with i386 version.
14014 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
14015 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
14017 2006-09-21 Robert Millan <rmh@aybabtu.com>
14019 Import from GRUB Legacy (lib/device.c):
14020 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
14021 (init_device_map) [__linux__]: Add support for I2O devices.
14023 2006-09-14 Marco Gerards <marco@gnu.org>
14025 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
14028 2006-09-14 Robert Millan <rmh@aybabtu.com>
14030 * util/i386/pc/grub-install.in: Skip menu.lst when removing
14033 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
14035 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
14036 before adding it to device.map.
14038 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
14040 * genmk.rb: Let GCC generate dependencies the first time it
14041 compiles a file; using the -MD option.
14042 * conf/common.mk: Regenerate.
14043 * conf/i386-pc.mk: Likewise.
14044 * conf/i386-efi.mk: Likewise.
14045 * conf/powerpc-ieee1275.mk: Likewise.
14046 * conf/sparc64-ieee1275.mk: Likewise.
14048 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
14050 Move the prototypes of grub_setjmp and grub_longjmp to
14051 cpu/setjmp.h, so that each architecture may specify different
14054 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
14055 (grub_longjmp): Likewise.
14056 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
14057 (grub_longjmp): Likewise.
14058 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
14059 (grub_longjmp): Likewise.
14061 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
14062 [!GRUB_UTIL] (grub_longjmp): Removed.
14064 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
14066 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
14067 "color!" method does not return any value.
14069 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14071 * include/grub/bitmap.h: New file.
14073 * include/grub/i386/pc/vbeutil.h: Likewise.
14075 * video/bitmap.c: Likewise.
14077 * video/readers/tga.c: Likewise.
14079 * video/i386/pc/vbeutil.c: Likewise.
14081 * commands/videotest.c: Code cleanup and updated to reflect to new
14084 * term/gfxterm.c: Likewise.
14086 * video/video.c: Likewise.
14088 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
14089 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
14090 (bitmap_mod_SOURCES): New entry.
14091 (bitmap_mod_CFLAGS): Likewise.
14092 (bitmap_mod_LDFLAGS): Likewise.
14093 (tga_mod_SOURCES): Likewise.
14094 (tga_mod_CFLAGS): Likewise.
14095 (tga_mod_LDFLAGS): Likewise.
14097 * include/grub/video.h (grub_video_blit_operators): New enum type.
14098 (grub_video_render_target): Changed as forward declaration and moved
14099 actual definition to be video driver specific.
14100 (grub_video_adapter.blit_bitmap): Added blitting operator.
14101 (grub_video_adapter.blit_render_target): Likewise.
14102 (grub_video_blit_bitmap): Likewise.
14103 (grub_video_blit_render_target): Likewise.
14105 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
14106 driver specific render target definition.
14107 (grub_video_vbe_map_rgba): Added driver internal helper.
14108 (grub_video_vbe_unmap_color): Updated to use
14109 grub_video_i386_vbeblit_info.
14110 (grub_video_vbe_get_video_ptr): Likewise.
14112 * include/grub/i386/pc/vbeblit.h
14113 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
14114 grub_video_i386_vbeblit_info.
14115 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14116 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14117 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14118 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14119 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14120 (grub_video_i386_vbeblit_index_index): Likewise.
14121 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
14122 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14123 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14124 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
14126 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
14129 * video/i386/pc/vbeblit.c: Updated to reflect changes on
14130 include/grub/i386/pc/vbeblit.h.
14132 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
14133 Updated to use grub_video_i386_vbeblit_info.
14134 (grub_video_i386_vbefill_R8G8B8): Likewise.
14135 (grub_video_i386_vbefill_index): Likewise.
14136 (grub_video_i386_vbefill): Added generic filler.
14138 * video/i386/pc/vbefill.c: Updated to reflect changes on
14139 include/grub/i386/pc/vbefill.h.
14141 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
14142 grub_video_i386_vbeblit_info.
14143 (grub_video_vbe_unmap_color): Likewise.
14144 (grub_video_vbe_blit_glyph): Likewise.
14145 (grub_video_vbe_scroll): Likewise.
14146 (grub_video_vbe_draw_pixel): Removed function.
14147 (grub_video_vbe_get_pixel): Likewise.
14148 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
14149 updated code to use it.
14150 (common_blitter): Added common blitter for render target and bitmap.
14151 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
14152 (grub_video_vbe_blit_render_target): Likewise.
14154 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
14156 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
14157 is in text mode if there is no console control protocol instance
14160 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14162 * include/grub/video.h: Code cleanup.
14164 * include/grub/i386/pc/vbe.h: Likewise.
14166 * video/i386/pc/vbe.c: Likewise.
14168 * video/i386/pc/vbeblit.c: Likewise.
14170 * video/i386/pc/vbefill.c: Likewise.
14172 * video/video.c: Likewise. Also added more comments.
14174 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14176 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
14177 (struct grub_biosdisk_dap): Likewise.
14179 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
14180 linkage settings for all functions.
14182 2006-07-12 Marco Gerards <marco@gnu.org>
14184 * configure.ac (--enable-mm-debug): Fix typo.
14186 * genkernsyms.sh.in: Use proper quoting for `CC'.
14188 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
14190 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
14191 (normal_mod_ASFLAGS): Remove "-m32".
14193 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
14195 * util/misc.c: Include config.h.
14196 [!HAVE_MEMALIGN]: Do not include malloc.h.
14197 (grub_memalign): Use posix_memalign, if present. Then, use
14198 memalign, if present. Otherwise, emit an error.
14200 * util/grub-emu.c: Do not include malloc.h.
14202 * include/grub/util/misc.h: Include unistd.h. This is required for
14203 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
14204 D. Eades III <hde@foobar-qux.org>.
14206 * configure.ac (AC_GNU_SOURCE): Added.
14207 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
14210 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
14212 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
14213 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
14215 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
14217 * include/grub/types.h (grub_host_addr_t): Rename to
14218 grub_target_addr_t.
14219 (grub_host_off_t): Rename to grub_target_off_t.
14220 (grub_host_size_t): Rename to grub_target_size_t.
14221 (grub_host_ssize_t): Rename to grub_target_ssize_t.
14222 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
14224 * include/grub/kernel.h (struct grub_module_header): Change type
14225 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
14226 (grub_module_info): Likewise.
14228 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14230 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
14231 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
14232 Velazquez <jesus.velazquez@gmail.com>.
14234 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14236 Count partitions from 1 instead of 0 in the string representation
14237 of partitions. Still use 0-based internally.
14239 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
14240 (sun_partition_map_iterate): Use grub_partition_t instead of
14241 struct grub_partition *. Cast DESC->START_CYLINDER to
14242 grub_uint64_t after converting the endian.
14243 (sun_partition_map_probe): Subtract 1 for PARTNUM.
14244 (sun_partition_map_get_name): Add 1 to P->INDEX.
14246 * partmap/pc.c (grub_partition_parse): Subtract 1 for
14248 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
14250 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
14251 zero instead of one.
14252 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
14253 (gpt_partition_map_get_name): Add 1 into P->INDEX.
14255 * partmap/apple.c (apple_partition_map_iterate): Change the type
14256 of POS to unsigned.
14257 (apple_partition_map_probe): Subtract 1 for PARTNUM.
14258 (apple_partition_map_get_name): Add 1 into P->INDEX.
14260 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
14261 of POS to unsigned.
14262 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
14263 calculate the offset of a partition.
14264 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
14265 (amiga_partition_map_get_name): Add 1 into P->INDEX.
14267 * partmap/acorn.c (acorn_partition_map_find): Change the type of
14268 SECTOR to grub_disk_addr_t.
14269 (acorn_partition_map_iterate): Likewise.
14270 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
14271 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
14273 (acorn_partition_map_get_name): Add 1 into P->INDEX.
14275 * kern/i386/pc/init.c (make_install_device): Add 1 into
14276 GRUB_INSTALL_DOS_PART.
14278 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
14281 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14283 Clean up the code to support 64-bit addressing in disks and
14284 files. This change is not enough for filesystems yet.
14286 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
14287 type of "start" to grub_uint64_t.
14288 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
14289 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
14290 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
14293 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
14294 to grub_disk_addr_t.
14296 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
14299 * partmap/pc.c (pc_partition_map_iterate): Likewise.
14301 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
14304 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
14306 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
14308 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
14310 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
14311 to grub_off_t, to detect an error from grub_file_seek.
14312 (grub_multiboot_load_elf32): Likewise.
14314 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
14315 maximum unsigned long value when an overflow is detected.
14316 (grub_strtoull): New function.
14317 (grub_divmod64): Likewise.
14318 (grub_lltoa): use grub_divmod64.
14320 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
14322 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
14323 the pointer to next character. Use grub_strtoull instead of
14325 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
14326 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
14329 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
14330 return value is signed.
14331 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
14332 test if OFFSET is less than zero, as OFFSET is unsigned now.
14334 * kern/disk.c (struct grub_disk_cache): Change the type of
14335 "sector" to grub_disk_addr_t.
14336 (grub_disk_cache_get_index): Change the type of SECTOR to
14337 grub_disk_addr_t. Calculate the hash with SECTOR casted to
14338 unsigned after shifting.
14339 (grub_disk_cache_invalidate): Change the type of SECTOR to
14341 (grub_disk_cache_unlock): Likewise.
14342 (grub_disk_cache_store): Likewise.
14343 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
14344 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
14345 grub_disk_addr_t and grub_uint64_t, respectively.
14346 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
14347 body, as the value of OFFSET is tweaked by
14348 grub_disk_check_range. Change the types of START_SECTOR, LEN and
14349 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
14351 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
14352 body, as the value of OFFSET is tweaked by
14353 grub_disk_check_range. Change the types of LEN and N to
14356 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
14357 and "saved_offset" to grub_off_t.
14358 (test_header): Cast BUF to char *.
14359 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
14361 (grub_gzio_read): Change the types of OFFSET and SIZE to
14362 grub_off_t and grub_size_t, respectively.
14364 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
14366 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
14367 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
14368 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
14369 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
14370 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
14372 * include/grub/types.h (grub_off_t): Unconditionally set to
14374 (grub_disk_addr_t): Changed to grub_uint64_t.
14376 * include/grub/partition.h (struct grub_partition): Change the
14377 types of "start", "len" and "offset" to grub_disk_addr_t,
14378 grub_uint64_t and grub_disk_addr_t, respectively.
14379 (grub_partition_get_start): Return grub_disk_addr_t.
14380 (grub_partition_get_len): Return grub_uint64_t.
14382 * include/grub/misc.h (grub_strtoull): New prototype.
14383 (grub_divmod64): Likewise.
14385 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
14386 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
14387 grub_off_t, respectively.
14388 All callers and references changed.
14390 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
14391 grub_size_t in "read".
14392 All callers and references changed.
14394 * include/grub/file.h (struct grub_file): Change the types of
14395 "offset" and "size" to grub_off_t and grub_off_t,
14396 respectively. Change the type of SECTOR to grub_disk_addr_t in
14398 (grub_file_read): Change the type of LEN to grub_size_t.
14399 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
14401 (grub_file_size): Return grub_off_t.
14402 (grub_file_tell): Likewise.
14403 All callers and references changed.
14405 * include/grub/disk.h (struct grub_disk_dev): Change the types of
14406 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
14408 (struct grub_disk): Change the type of "total_sectors" to
14409 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
14411 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
14412 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
14413 (grub_disk_write): Likewise.
14414 All callers and references changed.
14416 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
14417 char * for grub_strncmp to silence gcc.
14418 (grub_iso9660_mount): Likewise.
14419 (grub_iso9660_mount): Likewise.
14420 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
14422 (grub_iso9660_iterate_dir): Likewise.
14423 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
14425 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
14426 LEN to grub_disk_addr_t and grub_size_t, respectively.
14428 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
14430 * fs/jfs.c (grub_jfs_read_file): Likewise.
14432 * fs/minix.c (grub_jfs_read_file): Likewise.
14434 * fs/sfs.c (grub_jfs_read_file): Likewise.
14436 * fs/ufs.c (grub_jfs_read_file): Likewise.
14438 * fs/xfs.c (grub_jfs_read_file): Likewise.
14440 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
14441 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
14444 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
14445 BLKNR to -1 instead of returning GRUB_ERRNO.
14446 (grub_ext2_read_file): Change the types of SECTOR and
14447 LEN to grub_disk_addr_t and grub_size_t, respectively.
14449 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
14450 LEN to grub_disk_addr_t and grub_size_t, respectively.
14452 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
14455 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
14456 string. Do not cast SECTOR explicitly.
14458 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
14459 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
14460 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
14461 grub_disk_addr_t and grub_size_t, respectively. If the sector is
14462 over 2TB and LBA mode is not supported, raise an error.
14463 (get_safe_sectors): New function.
14464 (grub_biosdisk_read): Use get_safe_sectors.
14465 (grub_biosdisk_write): Likewise.
14467 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
14468 (grub_efidisk_write): Likewise.
14470 * disk/loopback.c (delete_loopback): Cosmetic changes.
14471 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
14473 (grub_loopback_open): Likewise.
14474 (grub_loopback_read): Likewise. Also, change the type of POS to
14475 grub_off_t, and fix the usage of grub_memset.
14477 * commands/i386/pc/play.c: Include grub/machine/time.h.
14479 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
14482 * commands/configfile.c: Include grub/env.h.
14484 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
14485 GRUB_ERRNO directly instead. Change the type of POS to
14486 grub_off_t. Follow the coding standard.
14488 * commands/blocklist.c: Include grub/partition.h.
14489 (grub_cmd_blocklist): Return an error if the underlying device is
14490 not a disk. Take the starting sector of a partition into account,
14491 if a partition is used.
14493 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
14495 (lba_mode): Support 64-bit addresses.
14496 (chs_mode): Likewise.
14497 (copy_buffer): Adapted to the new offsets of a length field and a
14499 (blocklist_default_start): Allocate 64-bit space.
14501 * boot/i386/pc/boot.S (force_lba): Removed.
14502 (boot_drive): Moved to under KERNEL_SECTOR.
14503 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
14505 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
14507 (lba_mode): Refactored to support a 64-bit address. More size
14509 (setup_sectors): Likewise.
14511 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14513 * DISTLIST: Added include/grub/i386/linux.h. Removed
14514 include/grub/i386/pc/linux.h
14516 * configure.ac (AC_INIT): Bumped to 1.94.
14518 * config.guess: Updated from gnulib.
14519 * config.sub: Likewise.
14520 * install-sh: Likewise.
14521 * mkinstalldirs: Likewise.
14523 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14525 * conf/common.rmk (grub_modules_init.lst): Depended on
14526 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
14529 * genmk.rb (PModule::rule): Reverted the previous change.
14531 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14533 * conf/common.rmk (grub_modules_init.lst): Depends on
14534 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
14535 that the target does not exist before producing.
14536 (grub_modules_init.h): Remove the target before generating.
14537 (grub_emu_init.c): Likewise.
14539 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
14541 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
14543 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
14544 for the target-specific tests. Make sure that we also have the
14545 up-to-date target variables for those tests.
14547 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14549 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
14550 (PModule::rule): Likewise.
14552 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14554 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
14555 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
14556 target-specific flags should be prefixed.
14557 (PModule::rule): Likewise.
14559 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
14561 * configure.ac (CMP): Check if cmp is available explicitly.
14563 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
14565 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
14566 (target_cpu): New variable.
14567 (pkglibdir): Use target_cpu instead of host_cpu.
14569 * util/i386/pc/grub-install.in (host_cpu): Removed.
14570 (target_cpu): New variable.
14571 (pkglibdir): Use target_cpu instead of host_cpu.
14573 * util/genmoddep.c: Removed.
14575 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
14576 instead of GRUB_HOST_SIZEOF_VOID_P.
14577 * kern/dl.c: Likewise.
14579 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
14581 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14582 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14583 (GRUB_TARGET_SIZEOF_LONG): ... this.
14584 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14585 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14586 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14588 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14589 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14590 (GRUB_TARGET_SIZEOF_LONG): ... this.
14591 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14592 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14593 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14595 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14596 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14597 (GRUB_TARGET_SIZEOF_LONG): ... this.
14598 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14599 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14601 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
14602 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
14603 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
14604 instead of GRUB_HOST_SIZEOF_LONG.
14605 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
14606 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
14607 GRUB_CPU_WORDS_BIGENDIAN.
14608 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
14609 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
14612 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
14613 (genmoddep_SOURCES): Likewise.
14614 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
14615 (genmoddep_SOURCES): Likewise.
14616 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
14617 (genmoddep_SOURCES): Likewise.
14618 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
14620 (genmoddep_SOURCES): Likewise.
14622 * genmoddep.awk: New file.
14624 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
14625 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
14626 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
14627 (PModule::rule): Likewise.
14628 (Program::rule): Likewise.
14629 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
14630 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
14633 * configure.ac: Rewritten intensively to use host and target
14634 instead of build and host, respectively.
14636 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
14637 (host_cpu): Removed.
14638 (target_cpu): New variable.
14639 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
14640 (BUILD_CC): Removed.
14641 (BUILD_CFLAGS): Likewise.
14642 (BUILD_CPPFLAGS): Likewise.
14643 (TARGET_CC): New variable.
14644 (TARGET_CFLAGS): Likewise.
14645 (TARGET_CPPFLAGS): Likewise.
14646 (TARGET_LDFLAGS): Likewise.
14648 (include): Use target_cpu instead of host_cpu.
14649 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
14651 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
14653 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
14655 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
14656 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
14657 field 'false' to 'exec_on_false'.
14658 (grub_script_create_cmdif): Renamed argument names to reflect above
14661 * normal/execute.c (grub_script_execute_cmdif): Likewise.
14663 * normal/script.c (grub_script_create_cmdif): Likewise.
14665 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
14667 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
14669 (grub_hfsplus_btree_recptr): Likewise.
14670 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
14671 FILEBLOCK both to pass a block number and store next block
14673 (grub_hfsplus_read_block): Rewritten heavily to support an extent
14674 overflow file correctly. Specify errors appropriately, because
14675 fshelp expects that GRUB_ERRNO is set when fails. Reuse
14676 grub_hfsplus_btree_recptr to get the pointer to a found key.
14677 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
14680 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
14682 (_linux_mod_SOURCES): New variable.
14683 (_linux_mod_CFLAGS): Likewise.
14684 (_linux_mod_LDFLAGS): Likewise.
14685 (linux_mod_SOURCES): Likewise.
14686 (linux_mod_CFLAGS): Likewise.
14687 (linux_mod_LDFLAGS): Likewise.
14689 * DISTLIST: Added loader/i386/efi/linux.c,
14690 loader/i386/efi/linux_normal.c and
14691 include/grub/i386/efi/loader.h.
14693 * loader/i386/efi/linux.c: New file.
14694 * loader/i386/efi/linux_normal.c: Likewise.
14695 * include/grub/i386/efi/loader.h: Likewise.
14697 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
14699 * commands/blocklist.c: New file.
14701 * DISTLIST: Added commands/blocklist.c.
14703 * term/efi/console.c (grub_console_highlight_color): Use a lighter
14704 color for the background, and a darker color for the foreground.
14705 (grub_console_checkkey): Return READ_KEY.
14706 (grub_console_cls): Set the background to
14707 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
14709 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
14711 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
14712 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
14714 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
14717 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
14718 BG. The spec is wrong again.
14720 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
14722 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
14724 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
14725 commands/blocklist.c.
14726 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14728 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
14729 (blocklist_mod_SOURCES): New variable.
14730 (blocklist_mod_CFLAGS): Likewise.
14731 (blocklist_mod_LDFLAGS): Likewise.
14733 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
14735 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
14737 (lba_mode): Use %eax more intensively to reduce the code size.
14739 2006-05-20 Marco Gerards <marco@gnu.org>
14741 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
14743 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
14745 (script): Accept leading newlines.
14746 (newlines): New rule to describe 0 or more newlines.
14747 (commands): Accept `command' with trailing newline. Fixed the
14748 order in which arguments were passed to `grub_script_add_cmd'.
14749 Accept commands separated by newlines.
14750 (function): Changed to accept newlines.
14751 (menuentry) Rewritten.
14753 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
14754 front of the list, instead of to the end.
14756 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
14758 * util/i386/pc/grub-install.in (bindir): New variable.
14759 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
14760 Shaver <lbgwjl@gmail.com>.
14762 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
14764 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
14765 grub/machine/linux.h
14766 * loader/i386/pc/linux.c: Likewise.
14768 * include/grub/i386/pc/linux.h: Moved to ...
14769 * include/grub/i386/linux.h: ... here.
14771 * include/grub/i386/linux.h (struct linux_kernel_params): New
14774 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
14776 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
14778 (grub_video_vbe_blit_glyph): Likewise.
14779 (grub_video_vbe_blit_bitmap): Likewise.
14780 (grub_video_vbe_blit_render_target): Likewise.
14782 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
14784 * configure.ac (--with-platform): Properly quote the square
14787 2006-05-08 Marco Gerards <marco@gnu.org>
14789 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
14791 (kernel_elf_HEADERS): ...to this. Updated all users.
14792 (grubof_symlist.c): Renamed from this...
14793 (kernel_elf_symlist.c): ...to this. Updated all users.
14794 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14795 (grubof_SOURCES): Renamed from this...
14796 (kernel_elf_SOURCES): ...to this.
14797 (grubof_HEADERS): Renamed from this...
14798 (kernel_elf_HEADERS): ...to this.
14799 (grubof_CFLAGS): Renamed from this...
14800 (kernel_elf_CFLAGS): ...to this.
14801 (grubof_ASFLAGS): Renamed from this...
14802 (kernel_elf_ASFLAGS): ...to this.
14803 (grubof_LDFLAGS): Renamed from this...
14804 (kernel_elf_LDFLAGS): ...to this.
14806 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
14808 (kernel_elf_HEADERS): ...to this. Updated all users.
14809 (grubof_symlist.c): Renamed from this...
14810 (kernel_elf_symlist.c): ...to this. Updated all users.
14811 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14812 (grubof_SOURCES): Renamed from this...
14813 (kernel_elf_SOURCES): ...to this.
14814 (grubof_HEADERS): Renamed from this...
14815 (kernel_elf_HEADERS): ...to this.
14816 (grubof_CFLAGS): Renamed from this...
14817 (kernel_elf_CFLAGS): ...to this.
14818 (grubof_ASFLAGS): Renamed from this...
14819 (kernel_elf_ASFLAGS): ...to this.
14820 (grubof_LDFLAGS): Renamed from this...
14821 (kernel_elf_LDFLAGS): ...to this.
14823 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
14824 `kernel.elf' instead of `grubof'.
14826 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
14828 Add --with-platform to configure. Use pkglibdir instead of
14829 pkgdatadir. This is reported by Roger Leigh.
14831 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
14832 (host_vendor): Likewise.
14833 (host_os): Likewise.
14834 (pkgdatadir): Likewise.
14835 (platform): New variable.
14836 (pkglibdir): Likewise.
14837 Use PKGLIBDIR instead of PKGDATADIR.
14839 * util/i386/pc/grub-install.in (datadir): Removed.
14840 (host_vendor): Likewise.
14841 (host_os): Likewise.
14842 (pkgdatadir): Likewise.
14843 (platform): New variable.
14844 (pkglibdir): Likewise.
14845 Use PKGLIBDIR instead of PKGDATADIR.
14847 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
14848 instead of GRUB_DATADIR.
14850 * util/i386/pc/grub-mkimage.c (usage): Likewise.
14852 * util/i386/efi/grub-mkimage.c (usage): Likewise.
14855 * configure.ac (--with-platform): New option.
14856 Use PLATFORM instead of HOST_VENDOR to specify a platform.
14858 * Makefile.in: Include a makefile based on PLATFORM instead of
14860 (pkgdatadir): Not appended by the machine type.
14861 (pkglibdir): Appended by the machine type.
14862 (host_vendor): Removed.
14863 (platform): New variable.
14864 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
14865 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
14866 (uninstall): Likewise.
14868 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
14870 Use the environment context in the menu. Remove the commands
14871 "default" and "timeout", and use variables instead.
14873 * normal/menu.c: Include grub/env.h.
14874 (print_entry): Cast TITLE to silence gcc.
14875 (get_timeout): New function.
14876 (set_timeout): Likewise.
14877 (get_entry_number): Likewise.
14878 (run_menu): Use a default entry, a fallback entry and a timeout
14879 in the environment variables "default", "fallback" and
14880 "timeout". Also, tweak the default entry if it is not within the
14881 current menu entries.
14882 (grub_menu_run): Use a fallback entry in the environment variable
14885 * normal/main.c (read_config_file): Do not initialize
14886 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
14888 (grub_normal_execute): Use a data slot to store the menu.
14890 * include/grub/normal.h (struct grub_menu): Removed default_entry,
14891 fallback_entry and timeout.
14892 (struct grub_menu_list): Removed.
14893 (grub_menu_list_t): Likewise.
14894 (struct grub_context): Likewise.
14895 (grub_context_t): Likewise.
14896 (grub_context_get): Likewise.
14897 (grub_context_get_current_menu): Likewise.
14898 (grub_context_push_menu): Likewise.
14899 (grub_context_pop_menu): Likewise.
14900 (grub_default_init): Likewise.
14901 (grub_default_fini): Likewise.
14902 (grub_timeout_init): Likewise.
14903 (grub_timeout_fini): Likewise.
14905 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
14907 (normal_mod_SOURCES): Removed normal/context.c.
14909 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
14910 commands/default.c, commands/timeout.c and normal/context.c.
14911 (normal_mod_SOURCES): Removed normal/context.c.
14913 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
14914 commands/timeout.c and normal/context.c.
14915 (normal_mod_SOURCES): Removed normal/context.c.
14917 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
14918 commands/default.c, commands/timeout.c and normal/context.c.
14919 (normal_mod_SOURCES): Removed normal/context.c.
14921 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
14923 (default_mod_SOURCES): Removed.
14924 (default_mod_CFLAGS): Likewise.
14925 (default_mod_LDFLAGS): Likewise.
14926 (timeout_mod_SOURCES): Removed.
14927 (timeout_mod_CFLAGS): Likewise.
14928 (timeout_mod_LDFLAGS): Likewise.
14930 * DISTLIST: Removed commands/default.c, commands/timeout.c and
14933 * commands/default.c: Removed.
14934 * commands/timeout.c: Likewise.
14935 * normal/context.c: Likewise.
14937 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
14939 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
14941 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
14943 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
14944 "next" to "prev" for readability.
14945 (struct grub_env_sorted_var): New struct.
14946 (grub_env_context): Renamed to ...
14947 (initial_context): ... this.
14948 (grub_env_var_context): Renamed to ...
14949 (current_context): ... this.
14950 (grub_env_find): Look only at CURRENT_CONTEXT.
14951 (grub_env_context_open): Rewritten to copy exported variables from
14953 (grub_env_context_close): Rewritten according to the new
14954 scheme. Also, add an assertion to prevent the initial context from
14956 (grub_env_insert): Removed the code for the sorted list.
14957 (grub_env_remove): Likewise.
14958 (grub_env_export): Simply mark the variable with
14959 GRUB_ENV_VAR_GLOBAL.
14960 (grub_env_set): A cosmetic change for naming consistency.
14961 (grub_env_get): Likewise.
14962 (grub_env_unset): Likewise.
14963 (grub_env_iterate): Rewritten to sort variables within this
14965 (grub_register_variable_hook): Fixed for naming consistency. Call
14966 grub_env_find again, only if NAME is not found at the first time.
14967 (mangle_data_slot_name): New function.
14968 (grub_env_set_data_slot): Likewise.
14969 (grub_env_get_data_slot): Likewise.
14970 (grub_env_unset_data_slot): Likewise.
14972 * include/grub/env.h (grub_env_var_type): New enum.
14973 (GRUB_ENV_VAR_LOCAL): New constant.
14974 (GRUB_ENV_VAR_GLOBAL): Likewise.
14975 (GRUB_ENV_VAR_DATA): Likewise.
14976 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
14978 (grub_env_set): Replace VAR with NAME for consistency.
14979 (grub_register_variable_hook): Likewise.
14980 (grub_env_export): Specify the name of the argument.
14981 (grub_env_set_data_slot): New prototype.
14982 (grub_env_get_data_slot): Likewise.
14983 (grub_env_unset_data_slot): Likewise.
14985 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
14987 Extend the loader so that GRUB can accept a loader which comes
14988 back to GRUB when a loaded image exits. Also, this change adds
14989 support for a chainloader on EFI.
14991 * term/efi/console.c: Include grub/misc.h.
14992 (grub_console_checkkey): Display a scan code on the top for
14993 debugging. This will be removed once the EFI port gets stable.
14994 Correct the scan code mapping.
14996 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
14997 allocate memory from larger regions, in order to reduce the number
14998 of allocated regions. Otherwise, the MacOSX loader panics.
14999 (filter_memory_map): Avoid less than 1MB for compatibility with
15001 (add_memory_regions): Allocate from the tail of a region, if
15002 possible, to avoid allocating a region near to 1MB, for the MacOSX
15005 * kern/efi/init.c (grub_efi_set_prefix): Specify
15006 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
15008 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
15009 argument IMAGE_HANDLE and specify it to get a loaded image.
15010 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
15011 grub_efi_get_loaded_image.
15012 (grub_efi_get_filename): Divide the length by the size of
15014 (grub_efi_get_device_path): New function.
15015 (grub_efi_print_device_path): Print End Device Path nodes. Divide
15016 the length by the size of grub_efi_char16_t for a file path device
15019 * kern/loader.c (grub_loader_noreturn): New variable.
15020 (grub_loader_set): Accept a new argument NORETURN. Set
15021 GRUB_LOADER_NORETURN to NORETURN.
15022 All callers changed.
15023 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
15026 * include/grub/efi/efi.h (grub_efi_get_device_path): New
15028 (grub_efi_get_loaded_image): Take an argument to specify an image
15031 * include/grub/loader.h (grub_loader_set): Added one more argument
15034 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
15035 instead of grub_efi_open_protocol.
15036 (grub_efidisk_get_device_name): Likewise.
15037 (grub_efidisk_close): Print a newline.
15038 (grub_efidisk_get_device_handle): Fixed to use
15039 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
15040 GRUB_EFI_DEVICE_PATH_TYPE.
15042 * disk/efi/efidisk.c (device_path_guid): Moved to ...
15043 * kern/efi/efi.c (device_path_guid): ... here.
15045 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
15047 (kernel_mod_HEADERS): Added efi/disk.h.
15048 (_chain_mod_SOURCES): New variable.
15049 (_chain_mod_CFLAGS): Likewise.
15050 (_chain_mod_LDFLAGS): Likewise.
15051 (chain_mod_SOURCES): Likewise.
15052 (chain_mod_CFLAGS): Likewise.
15053 (chain_mod_LDFLAGS): Likewise.
15055 * DISTLIST: Added include/grub/efi/chainloader.h,
15056 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
15058 * include/grub/efi/chainloader.h: New file.
15059 * loader/efi/chainloader.c: Likewise.
15060 * loader/efi/chainloader_normal.c: Likewise.
15062 2006-04-30 Marco Gerards <marco@gnu.org>
15064 * commands/configfile.c (grub_cmd_source): New function.
15065 (GRUB_MOD_INIT): Register the commands `source' and `.'.
15066 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
15068 2006-04-30 Marco Gerards <marco@gnu.org>
15070 * normal/execute.c (grub_script_execute_cmd): Change the return
15071 type to `grub_err_t'. Correctly return the error.
15072 (grub_script_execute_cmdline): In case a command line is not a
15073 command or a function, try to interpret it as an assignment.
15075 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
15077 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
15078 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
15079 skip a node whose name is obviously invalid as UTF-16,
15080 i.e. contains a NUL character. Stop the iteration when the last
15081 directory entry is found. Instead of using the return value of
15082 grub_hfsplus_btree_iterate_node, store the value in RET and use
15083 it, because the iterator can be stopped by the last directory
15086 2006-04-30 Marco Gerards <marco@gnu.org>
15088 * include/grub/env.h (grub_env_export): New prototype. Reported
15089 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
15091 2006-04-30 Marco Gerards <marco@gnu.org>
15093 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
15094 size of the extents in a catalog file record.
15096 2006-04-29 Marco Gerards <marco@gnu.org>
15098 * commands/configfile.c (grub_cmd_configfile): Execute the
15099 configfile within its own context.
15101 * include/grub/env.h (grub_env_context_open): New prototype.
15102 (grub_env_context_close): Likewise.
15104 * kern/env.c (grub_env): Removed.
15105 (grub_env_sorted): Likewise.
15106 (grub_env_context): New variable.
15107 (grub_env_var_context): Likewise.
15108 (grub_env_find): Search both the active context and the global
15110 (grub_env_context_open): New function.
15111 (grub_env_context_close): Likewise.
15112 (grub_env_insert): Likewise.
15113 (grub_env_remove): Likewise.
15114 (grub_env_export): Likewise.
15115 (grub_env_set): Changed to use helper functions to avoid code
15117 (grub_env_iterate): Rewritten so both the current context and the
15118 global context are being used.
15120 * normal/command.c (export_command): New function.
15121 (grub_command_init): Register the `export' function.
15123 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
15125 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
15126 explicitly to suppress gcc's warnings.
15127 * fs/fat.c (grub_fat_find_dir): Likewise.
15128 (grub_fat_label): Likewise.
15129 * fs/xfs.c (grub_xfs_read_inode): Likewise.
15130 (grub_xfs_mount): Likewise.
15131 (grub_xfs_label): Likewise.
15132 * fs/affs.c (grub_affs_mount): Likewise.
15133 (grub_affs_label): Likewise.
15134 (grub_affs_iterate_dir): Likewise.
15135 * fs/sfs.c (grub_sfs_mount): Likewise.
15136 (grub_sfs_iterate_dir): Likewise.
15137 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
15138 * fs/hfs.c (grub_hfs_mount): Likewise.
15139 (grub_hfs_cmp_catkeys): Likewise.
15140 (grub_hfs_find_dir): Likewise.
15141 (grub_hfs_dir): Likewise.
15142 (grub_hfs_label): Likewise.
15143 * fs/jfs.c (grub_jfs_mount): Likewise.
15144 (grub_jfs_opendir): Likewise.
15145 (grub_jfs_getent): Likewise.
15146 (grub_jfs_lookup_symlink): Likewise.
15147 (grub_jfs_label): Likewise.
15148 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
15149 (grub_hfsplus_iterate_dir): Likewise.
15150 (grub_hfsplus_btree_iterate_node): Made static.
15152 * util/grub-emu.c (prefix): New variable.
15153 (grub_machine_set_prefix): New function.
15154 (main): Do not set the environment variable "prefix" here. Only
15155 set PREFIX, which is used later by grub_machine_set_prefix.
15157 * include/grub/video.h: Do not include grub/symbol.h.
15158 (grub_video_register): Not exported. This symbol is not defined in
15160 (grub_video_unregister): Likewise.
15161 (grub_video_iterate): Likewise.
15162 (grub_video_setup): Likewise.
15163 (grub_video_restore): Likewise.
15164 (grub_video_get_info): Likewise.
15165 (grub_video_get_blit_format): Likewise.
15166 (grub_video_set_palette): Likewise.
15167 (grub_video_get_palette): Likewise.
15168 (grub_video_set_viewport): Likewise.
15169 (grub_video_get_viewport): Likewise.
15170 (grub_video_map_color): Likewise.
15171 (grub_video_map_rgb): Likewise.
15172 (grub_video_map_rgba): Likewise.
15173 (grub_video_fill_rect): Likewise.
15174 (grub_video_blit_glyph): Likewise.
15175 (grub_video_blit_bitmap): Likewise.
15176 (grub_video_blit_render_target): Likewise.
15177 (grub_video_scroll): Likewise.
15178 (grub_video_swap_buffers): Likewise.
15179 (grub_video_create_render_target): Likewise.
15180 (grub_video_delete_render_target): Likewise.
15181 (grub_video_set_active_render_target): Likewise.
15183 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
15185 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
15187 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
15188 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15189 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15190 instead of $(srcdir)/genkernsyms.sh.
15192 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
15193 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15194 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15195 instead of $(srcdir)/genkernsyms.sh.
15197 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
15198 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15199 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15200 instead of $(srcdir)/genkernsyms.sh.
15202 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
15203 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15204 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15205 instead of $(srcdir)/genkernsyms.sh.
15207 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
15210 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
15212 (gensymlist.sh): New target.
15213 (genkernsyms.sh): Likewise.
15215 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
15216 genkernsyms.sh.in and gensymlist.sh.in.
15218 * genkernsyms.sh: Removed.
15219 * gensymlist.sh: Likewise.
15221 * genkernsyms.sh.in: New file.
15222 * gensymlist.sh.in: Likewise.
15224 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15226 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
15227 clobber "prefix", since we may have already set it manually.
15229 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15231 * kern/misc.c (abort): New alias for grub_abort.
15233 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
15235 A new machine-specific function "grub_machine_set_prefix" is
15236 defined. This is called after loading modules, so that a prefix
15237 initialization can use modules. Also, this change adds an
15238 intensive debugging feature for the memory manager via the
15239 configure option "--enable-mm-debug".
15241 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
15244 * kern/sparc64/ieee1275/init.c (abort): Removed.
15245 (grub_stop): Likewise.
15246 (grub_exit): New function.
15247 (grub_set_prefix): Renamed to ...
15248 (grub_machine_set_prefix): ... this.
15249 (grub_machine_init): Do not call grub_set_prefix.
15251 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
15252 (grub_machine_set_prefix): ... this.
15253 (grub_machine_init): Do not call grub_set_prefix.
15255 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
15256 (grub_machine_init): Do not set the prefix here.
15258 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
15260 * kern/efi/init.c: Include grub/mm.h.
15261 (grub_efi_set_prefix): New function.
15263 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
15264 (grub_efi_get_filename): New function.
15265 (grub_print_device_path): Renamed to ...
15266 (grub_efi_print_device_path): ... this.
15268 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
15269 [MM_DEBUG] (grub_realloc): Likewise.
15270 [MM_DEBUG] (grub_free): Likewise.
15271 [MM_DEBUG] (grub_memalign): Likewise.
15272 [MM_DEBUG] (grub_mm_debug): New variable.
15273 [MM_DEBUG] (grub_debug_malloc): New function.
15274 [MM_DEBUG] (grub_debug_free): New function.
15275 [MM_DEBUG] (grub_debug_realloc): New function.
15276 [MM_DEBUG] (grub_debug_memalign): New function.
15278 * kern/misc.c (grub_abort): Print a newline to distinguish
15281 * kern/main.c (grub_main): Call grub_machine_set_prefix and
15282 grub_set_root_dev after loading modules. This is necessary when
15283 setting a prefix depends on modules.
15285 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
15286 (grub_efi_print_device_path): ... this.
15287 (grub_efi_get_filename): New prototype.
15288 (grub_efi_set_prefix): Likewise.
15290 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
15292 (grub_efidisk_get_device_handle): New prototype.
15293 (grub_efidisk_get_device_name): Likewise.
15295 * include/grub/mm.h: Include config.h.
15296 (MM_DEBUG): Removed.
15297 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
15298 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
15299 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
15300 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
15301 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
15302 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
15303 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
15304 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
15305 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
15307 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
15309 * disk/efi/efidisk.c: Include grub/partition.h.
15310 (iterate_child_devices): New function.
15311 (add_device): First, compare only last device path nodes, so that
15312 devices are sorted by the types.
15313 (grub_efidisk_get_device_handle): New function.
15314 (grub_efidisk_get_device_name): Likewise.
15316 * configure.ac (--enable-mm-debug): New option to enable the
15317 memory manager debugging feature. This makes the binary much
15318 bigger, so is disabled by default.
15320 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
15322 Use grub_abort instead of grub_stop, and grub_exit must be
15323 define in each architecture now. Also, this change adds support
15326 * util/i386/pc/grub-probefs.c: Include grub/term.h.
15327 (grub_getkey): New function.
15328 (grub_term_get_current): Likewise.
15330 * util/i386/pc/grub-setup.c: Include grub/term.h.
15331 (grub_getkey): New function.
15332 (grub_term_get_current): Likewise.
15334 * util/misc.c (grub_stop): Renamed to ...
15335 (grub_exit): ... this.
15337 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
15338 (grub_exit): ... this.
15339 (grub_machine_init): Use grub_abort instead of abort.
15340 (grub_stop): Removed.
15342 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
15345 * kern/i386/pc/startup.S (grub_exit): New function.
15346 (cold_reboot): New label.
15348 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
15349 (grub_efi_init): Call grub_efidisk_init.
15350 (grub_efi_fini): Call grub_efidisk_fini.
15352 * kern/efi/efi.c: Include grub/mm.h.
15353 (grub_efi_console_control_guid): Renamed to ...
15354 (console_control_guid): ... this.
15355 (grub_efi_loaded_image_guid): Renamed to ...
15356 (loaded_image_guid): ... this.
15357 (grub_efi_locate_handle): New function.
15358 (grub_efi_open_protocol): Likewise.
15359 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
15360 GRUB_EFI_CONSOLE_CONTROL_GUID.
15361 (grub_efi_exit): Removed.
15362 (grub_stop): Likewise.
15363 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
15364 (grub_exit): New function.
15365 (grub_print_device_path): Likewise.
15367 * kern/rescue.c (grub_rescue_cmd_exit): New function.
15368 (grub_enter_rescue_mode): Register "exit".
15370 * kern/misc.c (grub_real_dprintf): A cosmetic change.
15371 (grub_abort): New function.
15373 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
15375 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
15377 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
15379 * include/grub/efi/efi.h (grub_efi_exit): Removed.
15380 (grub_print_device_path): New prototype.
15381 (grub_efi_locate_handle): Likewise.
15382 (grub_efi_open_protocol): Likewise.
15384 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
15385 * disk/efi/efidisk.c: Likewise.
15387 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
15389 * include/grub/efi/console_control.h
15390 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
15392 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
15393 last 8 bytes as an array.
15394 (GRUB_EFI_DISK_IO_GUID): New macro.
15395 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
15396 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
15397 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
15399 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
15400 (struct grub_efi_device_path): Rename the member "sub_type" to
15402 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
15403 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
15404 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
15405 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
15406 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
15407 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
15408 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
15409 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
15410 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
15411 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
15412 (struct grub_efi_pci_device_path): New structure.
15413 (grub_efi_pci_device_path_t): New type.
15414 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
15415 (struct grub_efi_pccard_device_path): New structure.
15416 (grub_efi_pccard_device_path_t): New type.
15417 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
15418 (struct grub_efi_memory_mapped_device_path): New structure.
15419 (grub_efi_memory_mapped_device_path_t): New type.
15420 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
15421 (struct grub_efi_vendor_device_path): New structure.
15422 (grub_efi_vendor_device_path_t): New type.
15423 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
15424 (struct grub_efi_controller_device_path): New structure.
15425 (grub_efi_controller_device_path_t): New type.
15426 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
15427 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
15428 (struct grub_efi_acpi_device_path): New structure.
15429 (grub_efi_acpi_device_path_t): New type.
15430 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
15431 (struct grub_efi_expanded_acpi_device_path): New structure.
15432 (grub_efi_expanded_acpi_device_path_t): New type.
15433 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
15434 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
15435 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
15436 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
15437 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
15438 (struct grub_efi_atapi_device_path): New structure.
15439 (grub_efi_atapi_device_path_t): New type.
15440 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
15441 (struct grub_efi_fibre_channel_device_path): New structure.
15442 (grub_efi_fibre_channel_device_path_t): New type.
15443 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
15444 (struct grub_efi_1394_device_path): New structure.
15445 (grub_efi_1394_device_path_t): New type.
15446 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
15447 (struct grub_efi_usb_device_path): New structure.
15448 (grub_efi_usb_device_path_t): New type.
15449 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
15450 (struct grub_efi_usb_class_device_path): New structure.
15451 (grub_efi_usb_class_device_path_t): New type.
15452 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
15453 (struct grub_efi_i2o_device_path): New structure.
15454 (grub_efi_i2o_device_path_t): New type.
15455 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
15456 (struct grub_efi_mac_address_device_path): New structure.
15457 (grub_efi_mac_address_device_path_t): New type.
15458 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
15459 (struct grub_efi_ipv4_device_path): New structure.
15460 (grub_efi_ipv4_device_path_t): New type.
15461 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
15462 (struct grub_efi_ipv6_device_path): New structure.
15463 (grub_efi_ipv6_device_path_t): New type.
15464 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
15465 (struct grub_efi_infiniband_device_path): New structure.
15466 (grub_efi_infiniband_device_path_t): New type.
15467 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
15468 (struct grub_efi_uart_device_path): New structure.
15469 (grub_efi_uart_device_path_t): New type.
15470 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
15471 (struct grub_efi_vendor_messaging_device_path): New structure.
15472 (grub_efi_vendor_messaging_device_path_t): New type.
15473 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
15474 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
15475 (struct grub_efi_hard_drive_device_path): New structure.
15476 (grub_efi_hard_drive_device_path_t): New type.
15477 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
15478 (struct grub_efi_cdrom_device_path): New structure.
15479 (grub_efi_cdrom_device_path_t): New type.
15480 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
15481 (struct grub_efi_vendor_media_device_path): New structure.
15482 (grub_efi_vendor_media_device_path_t): New type.
15483 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
15484 (struct grub_efi_file_path_device_path): New structure.
15485 (grub_efi_file_path_device_path_t): New type.
15486 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
15487 (struct grub_efi_protocol_device_path): New structure.
15488 (grub_efi_protocol_device_path_t): New type.
15489 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
15490 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
15491 (struct grub_efi_bios_device_path): New structure.
15492 (grub_efi_bios_device_path_t): New type.
15493 (struct grub_efi_disk_io): New structure.
15494 (grub_efi_disk_io_t): New type.
15495 (struct grub_efi_block_io_media): New structure.
15496 (grub_efi_block_io_media_t): New type.
15497 (struct grub_efi_block_io): New structure.
15498 (grub_efi_block_io_t): New type.
15500 * include/grub/misc.h (grub_stop): Removed.
15501 (grub_exit): New prototype.
15502 (grub_abort): Likewise.
15504 * include/grub/disk.h (enum grub_disk_dev_id): Added
15505 GRUB_DISK_DEVICE_EFIDISK_ID.
15507 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
15508 disk/efi/efidisk.c.
15509 (kernel_syms.lst): Remove the target if an error occurs.
15511 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
15513 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
15514 as it was simply too buggy.
15516 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
15518 * kern/misc.c (grub_lltoa): New function.
15519 (grub_vsprintf): Added support for the long long suffix,
15522 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
15524 * Makefile.in (LDFLAGS): Add variable.
15525 (LD): Remove variable.
15526 * configure.ac: Add -m32 to LDFLAGS.
15527 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
15528 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
15529 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
15530 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
15531 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
15533 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
15534 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
15535 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
15537 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
15539 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
15540 length for unknown glyph.
15542 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15544 Add support for pre-loaded modules into the EFI port.
15546 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
15547 completely. Accept one more argument DIR. The caller has changed.
15549 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
15551 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
15552 (grub_efi_loaded_image_guid): New variable.
15553 (grub_efi_get_loaded_image): New function.
15554 (grub_arch_modules_addr): Likewise.
15556 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
15559 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
15560 (struct grub_efi_loaded_image): New structure.
15561 (grub_efi_loaded_image_t): New type.
15563 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15565 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
15566 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
15567 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
15569 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
15571 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
15573 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
15575 * DISTLIST: Added include/grub/efi/console.h,
15576 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
15577 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15579 * include/grub/efi/console.h: New file.
15580 * include/grub/efi/time.h: Likewise.
15581 * include/grub/i386/efi/kernel.h: Likewise.
15582 * kern/efi/init.c: Likewise.
15583 * kern/efi/mm.c: Likewise.
15584 * term/efi/console.c: Likewise.
15586 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
15587 (grub_stop): Removed.
15588 (grub_get_rtc): Likewise.
15589 (grub_machine_init): Simply call grub_efi_init.
15590 (grub_machine_fini): Call grub_efi_fini.
15592 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
15593 (grub_efi_output_string): Removed.
15594 (grub_efi_stall): New function.
15595 (grub_stop): Likewise.
15596 (grub_get_rtc): Likewise.
15598 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
15599 (grub_efi_stall): New prototype.
15600 (grub_efi_allocate_pages): Likewise.
15601 (grub_efi_free_pages): Likewise.
15602 (grub_efi_get_memory_map): Likewise.
15603 (grub_efi_mm_init): Likewise.
15604 (grub_efi_mm_fini): Likewise.
15605 (grub_efi_init): Likewise.
15606 (grub_efi_fini): Likewise.
15608 * include/grub/i386/efi/time.h: Do not include
15609 grub/symbol.h. Include grub/efi/time.h.
15610 (GRUB_TICKS_PER_SECOND): Removed.
15611 (grub_get_rtc): Likewise.
15613 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
15614 Added padding. The EFI spec is buggy.
15615 (GRUB_EFI_BLACK): New macro.
15616 (GRUB_EFI_BLUE): Likewise.
15617 (GRUB_EFI_GREEN): Likewise.
15618 (GRUB_EFI_CYAN): Likewise.
15619 (GRUB_EFI_RED): Likewise.
15620 (GRUB_EFI_MAGENTA): Likewise.
15621 (GRUB_EFI_BROWN): Likewise.
15622 (GRUB_EFI_LIGHTGRAY): Likewise.
15623 (GRUB_EFI_BRIGHT): Likewise.
15624 (GRUB_EFI_DARKGRAY): Likewise.
15625 (GRUB_EFI_LIGHTBLUE): Likewise.
15626 (GRUB_EFI_LIGHTGREEN): Likewise.
15627 (GRUB_EFI_LIGHTCYAN): Likewise.
15628 (GRUB_EFI_LIGHTRED): Likewise.
15629 (GRUB_EFI_LIGHTMAGENTA): Likewise.
15630 (GRUB_EFI_YELLOW): Likewise.
15631 (GRUB_EFI_WHITE): Likewise.
15632 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
15633 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
15634 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
15635 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
15636 (GRUB_EFI_BACKGROUND_RED): Likewise.
15637 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
15638 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
15639 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
15640 (GRUB_EFI_TEXT_ATTR): Likewise.
15642 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
15643 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15644 (kernel_mod_HEADERS): Added efi/time.h.
15646 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
15648 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
15649 include/grub/efi/api.h, include/grub/efi/console_control.h,
15650 include/grub/efi/efi.h, include/grub/efi/pe32.h,
15651 include/grub/i386/efi/time.h, kern/efi/efi.c,
15652 kern/i386/efi/init.c, kern/i386/efi/startup.S,
15653 and util/i386/efi/grub-mkimage.c.
15655 * Makefile.in (RMKFILES): Added i386-efi.rmk.
15657 * genmk.rb (PModule#rule): Do not export symbols if
15658 #{prefix}_EXPORTS is set to "no".
15660 * conf/i386-efi.mk: New file.
15661 * conf/i386-efi.rmk: Likewise.
15662 * include/grub/efi/api.h: Likewise.
15663 * include/grub/efi/console_control.h: Likewise.
15664 * include/grub/efi/efi.h: Likewise.
15665 * include/grub/efi/pe32.h: Likewise.
15666 * include/grub/i386/efi/time.h: Likewise.
15667 * kern/efi/efi.c: Likewise.
15668 * kern/i386/efi/init.c: Likewise.
15669 * kern/i386/efi/startup.S: Likewise.
15670 * util/i386/efi/grub-mkimage.c: Likewise.
15672 2006-04-17 Marco Gerards <marco@gnu.org>
15674 * include/grub/script.h: Include <grub/parser.h> and
15675 "grub_script.tab.h".
15676 (struct grub_lexer_param): New struct.
15677 (struct grub_parser_param): Likewise.
15678 (grub_script_create_arglist): Pass the state in an argument.
15679 (grub_script_add_arglist): Likewise.
15680 (grub_script_create_cmdline): Likewise.
15681 (grub_script_create_cmdblock): Likewise.
15682 (grub_script_create_cmdif): Likewise.
15683 (grub_script_create_cmdmenu): Likewise.
15684 (grub_script_add_cmd): Likewise.
15685 (grub_script_arg_add): Likewise.
15686 (grub_script_lexer_ref): Likewise.
15687 (grub_script_lexer_deref): Likewise.
15688 (grub_script_lexer_record_start): Likewise.
15689 (grub_script_lexer_record_stop): Likewise.
15690 (grub_script_mem_record): Likewise.
15691 (grub_script_mem_record_stop): Likewise.
15692 (grub_script_malloc): Likewise.
15693 (grub_script_yylex): Likewise.
15694 (grub_script_yyparse): Likewise.
15695 (grub_script_yyerror): Likewise.
15696 (grub_script_yylex): Likewise.
15697 (grub_script_lexer_init): Return the state.
15699 * normal/lexer.c (grub_script_lexer_state): Removed variable.
15700 (grub_script_lexer_done): Likewise.
15701 (grub_script_lexer_getline): Likewise.
15702 (grub_script_lexer_refs): Likewise.
15703 (script): Likewise.
15704 (newscript): Likewise.
15705 (record): Likewise.
15706 (recording): Likewise.
15707 (recordpos): Likewise.
15708 (recordlen): Likewise.
15709 (grub_script_lexer_init): Return the state instead of setting
15711 (grub_script_lexer_ref): Use the newly added argument for state
15712 instead of globals.
15713 (grub_script_lexer_deref): Likewise.
15714 (grub_script_lexer_record_start): Likewise.
15715 (grub_script_lexer_record_stop): Likewise.
15716 (recordchar): Likewise.
15717 (nextchar): Likewise.
15718 (grub_script_yylex2): Likewise.
15719 (grub_script_yylex): Likewise.
15720 (grub_script_yyerror): Likewise.
15722 * normal/parser.y (func_mem): Removed variable.
15723 (menu_entry): Likewise.
15725 (%lex-param): New parser option.
15726 (%parse-param): Likewise.
15727 (script): Always return the AST.
15728 (argument): Pass the state around.
15729 (arguments): Likewise.
15730 (grubcmd): Likewise.
15731 (commands): Likewise.
15732 (function): Likewise.
15733 (menuentry): Likewise.
15734 (if_statement): Likewise.
15737 * normal/script.c (grub_script_memused): Removed variable.
15738 (grub_script_parsed): Likewise.
15739 (grub_script_malloc): Added a state argument. Use that instead of
15741 (grub_script_mem_record): Likewise.
15742 (grub_script_mem_record_stop): Likewise.
15743 (grub_script_arg_add): Likewise.
15744 (grub_script_add_arglist): Likewise.
15745 (grub_script_create_cmdline): Likewise.
15746 (grub_script_create_cmdif): Likewise.
15747 (grub_script_create_cmdmenu): Likewise.
15748 (grub_script_add_cmd): Likewise.
15749 (grub_script_parse): Setup the state before calling the parser.
15751 2006-04-16 Marco Gerards <marco@gnu.org>
15753 * normal/command.c (grub_command_init): Remove the title command.
15755 * normal/lexer.c (grub_script_yylex): Renamed from this...
15756 (grub_script_yylex2): ... to this.
15757 (grub_script_yylex): New function. Temporary
15758 introduced to filter some tokens.
15759 (grub_script_yyerror): Print a newline.
15761 * normal/main.c (read_config_file): Output information about the
15762 lines that contain errors. Wait for a key after all lines have
15763 been processed. Don't return an empty menu.
15765 * normal/parser.y (func_mem): Don't initialize.
15766 (menu_entry): Likewise.
15767 (err): New variable.
15768 (script): Don't return anything when an error was encountered.
15769 (ws, returns): Removed rules.
15770 (argument): Disabled concatenated variable support.
15771 (arguments): Remove explicit separators.
15772 (grubcmd): Likewise.
15773 (function): Likewise.
15774 (menuentry): Likewise.
15776 (commands): Likewise. Add error handling.
15778 * normal/script.c (grub_script_create_cmdline): If
15779 `grub_script_parsed' is 0, assume the parser encountered an error.
15781 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
15783 * configure.ac: Add support for EFI. Fix the typo
15784 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
15786 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15788 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
15789 foreign multibyte characters should be shown correctly.
15791 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15793 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
15795 (read_config_file): Made it to close file before returning.
15797 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
15799 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
15800 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
15801 video/i386/pc/vbefill.c.
15803 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
15804 video/i386/pc/vbefill.c.
15806 * include/grub/video.h (grub_video_blit_format): New enum.
15807 (grub_video_mode_info): Added new member blit_format.
15808 (grub_video_get_blit_format): New function prototype.
15810 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
15811 function prototype.
15812 (grub_video_vbe_map_rgb): Likewise.
15813 (grub_video_vbe_unmap_color): Likewise.
15815 * include/grub/i386/pc/vbeblit.h: New file.
15817 * include/grub/i386/pc/vbefill.h: New file.
15819 * video/video.c (grub_video_get_blit_format): New function.
15820 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
15821 (grub_video_vbe_map_rgb): Likewise.
15822 (grub_video_vbe_unmap_color): Likewise.
15824 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
15826 (grub_video_vbe_blit_render_target): Changed to use more optimized
15828 (grub_video_vbe_setup): Added detection for optimized settings.
15829 (grub_video_vbe_create_render_target): Likewise.
15831 * video/i386/pc/vbeblit.c: New file.
15833 * video/i386/pc/vbefill.c: New file.
15835 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
15837 * font/manager.c (grub_font_get_glyph): Removed font fixup from
15840 * util/unifont2pff.rb: ... and moved it to here. Improved argument
15841 parsing to support both hex and dec ranges. If filename was missing
15842 show usage information.
15844 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
15846 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
15847 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
15849 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
15850 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
15851 (video_mod_SOURCES): Added.
15852 (video_mod_CFLAGS): Likewise.
15853 (video_mod_LDFLAGS): Likewise.
15854 (gfxterm_mod_SOURCES): Likewise.
15855 (gfxterm_mod_CFLAGS): Likewise.
15856 (gfxterm_mod_LDFLAGS): Likewise.
15857 (videotest_mod_SOURCES): Likewise.
15858 (videotest_mod_CFLAGS): Likewise.
15859 (videotest_mod_LDFLAGS): Likewise.
15860 (vesafb_mod_SOURCES): Removed.
15861 (vesafb_mod_CFLAGS): Likewise.
15862 (vesafb_mod_LDFLAGS): Likewise.
15863 (vga_mod_SOURCES): Likewise.
15864 (vga_mod_CFLAGS): Likewise.
15865 (vga_mod_LDFLAGS): Likewise.
15867 * commands/videotest.c: New file.
15869 * font/manager.c (fill_with_default_glyph): Modified to use
15871 (grub_font_get_glyph): Likewise.
15872 (fontmanager): Renamed from this...
15873 (font_manager): ... to this.
15875 * include/grub/font.h (grub_font_glyph): Added new structure.
15876 (grub_font_get_glyph): Modified to use grub_font_glyph.
15878 * include/grub/misc.h (grub_abs): Added as inline function.
15880 * include/grub/video.h: New file.
15882 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
15883 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
15884 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
15885 (grub_vbe_get_controller_info): Renamed from this...
15886 (grub_vbe_bios_get_controller_info): ... to this.
15887 (grub_vbe_get_mode_info): Renamed from this...
15888 (grub_vbe_bios_get_mode_info): ... to this.
15889 (grub_vbe_set_mode): Renamed from this...
15890 (grub_vbe_bios_set_mode): ... to this.
15891 (grub_vbe_get_mode): Renamed from this...
15892 (grub_vbe_bios_get_mode): ... to this.
15893 (grub_vbe_set_memory_window): Renamed from this...
15894 (grub_vbe_bios_set_memory_window): ... to this.
15895 (grub_vbe_get_memory_window): Renamed from this...
15896 (grub_vbe_bios_get_memory_window): ... to this.
15897 (grub_vbe_set_scanline_length): Renamed from this...
15898 (grub_vbe_set_scanline_length): ... to this.
15899 (grub_vbe_get_scanline_length): Renamed from this...
15900 (grub_vbe_bios_get_scanline_length): ... to this.
15901 (grub_vbe_set_display_start): Renamed from this...
15902 (grub_vbe_bios_set_display_start): ... to this.
15903 (grub_vbe_get_display_start): Renamed from this...
15904 (grub_vbe_bios_get_display_start): ... to this.
15905 (grub_vbe_set_palette_data): Renamed from this...
15906 (grub_vbe_bios_set_palette_data): ... to this.
15907 (grub_vbe_set_pixel_rgb): Removed.
15908 (grub_vbe_set_pixel_index): Likewise.
15910 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
15912 (grub_vbe_bios_get_controller_info): ... to this.
15913 (grub_vbe_get_mode_info): Renamed from this...
15914 (grub_vbe_bios_get_mode_info): ... to this.
15915 (grub_vbe_set_mode): Renamed from this...
15916 (grub_vbe_bios_set_mode): ... to this.
15917 (grub_vbe_get_mode): Renamed from this...
15918 (grub_vbe_bios_get_mode): ... to this.
15919 (grub_vbe_set_memory_window): Renamed from this...
15920 (grub_vbe_bios_set_memory_window): ... to this.
15921 (grub_vbe_get_memory_window): Renamed from this...
15922 (grub_vbe_bios_get_memory_window): ... to this.
15923 (grub_vbe_set_scanline_length): Renamed from this...
15924 (grub_vbe_set_scanline_length): ... to this.
15925 (grub_vbe_get_scanline_length): Renamed from this...
15926 (grub_vbe_bios_get_scanline_length): ... to this.
15927 (grub_vbe_set_display_start): Renamed from this...
15928 (grub_vbe_bios_set_display_start): ... to this.
15929 (grub_vbe_get_display_start): Renamed from this...
15930 (grub_vbe_bios_get_display_start): ... to this.
15931 (grub_vbe_set_palette_data): Renamed from this...
15932 (grub_vbe_bios_set_palette_data): ... to this.
15933 (grub_vbe_bios_get_controller_info): Fixed problem with registers
15934 getting corrupted after calling it. Added more pushes and pops.
15935 (grub_vbe_bios_set_mode): Likewise.
15936 (grub_vbe_bios_get_mode): Likewise.
15937 (grub_vbe_bios_get_memory_window): Likewise.
15938 (grub_vbe_bios_set_scanline_length): Likewise.
15939 (grub_vbe_bios_get_scanline_length): Likewise.
15940 (grub_vbe_bios_get_display_start): Likewise.
15941 (grub_vbe_bios_set_palette_data): Likewise.
15943 * normal/cmdline.c (cl_set_pos): Refresh the screen.
15944 (cl_insert): Likewise.
15945 (cl_delete): Likewise.
15947 * term/gfxterm.c: New file.
15949 * term/i386/pc/vesafb.c: Removed file.
15951 * video/video.c: New file.
15953 * video/i386/pc/vbe.c (real2pm): Added new function.
15954 (grub_video_vbe_draw_pixel): Likewise.
15955 (grub_video_vbe_get_video_ptr): Likewise.
15956 (grub_video_vbe_get_pixel): Likewise
15957 (grub_video_vbe_init): Likewise.
15958 (grub_video_vbe_fini): Likewise.
15959 (grub_video_vbe_setup): Likewise.
15960 (grub_video_vbe_get_info): Likewise.
15961 (grub_video_vbe_set_palette): Likewise.
15962 (grub_video_vbe_get_palette): Likewise.
15963 (grub_video_vbe_set_viewport): Likewise.
15964 (grub_video_vbe_get_viewport): Likewise.
15965 (grub_video_vbe_map_color): Likewise.
15966 (grub_video_vbe_map_rgb): Likewise.
15967 (grub_video_vbe_map_rgba): Likewise.
15968 (grub_video_vbe_unmap_color): Likewise.
15969 (grub_video_vbe_fill_rect): Likewise.
15970 (grub_video_vbe_blit_glyph): Likewise.
15971 (grub_video_vbe_blit_bitmap): Likewise.
15972 (grub_video_vbe_blit_render_target): Likewise.
15973 (grub_video_vbe_scroll): Likewise.
15974 (grub_video_vbe_swap_buffers): Likewise.
15975 (grub_video_vbe_create_render_target): Likewise.
15976 (grub_video_vbe_delete_render_target): Likewise.
15977 (grub_video_vbe_set_active_render_target): Likewise.
15978 (grub_vbe_set_pixel_rgb): Remove function.
15979 (grub_vbe_set_pixel_index): Likewise.
15980 (index_color_mode): Remove static variable.
15981 (active_mode): Likewise.
15982 (framebuffer): Likewise.
15983 (bytes_per_scan_line): Likewise.
15984 (grub_video_vbe_adapter): Added new static variable.
15985 (framebuffer): Likewise.
15986 (render_target): Likewise.
15987 (initial_mode): Likewise.
15988 (mode_in_use): Likewise.
15989 (mode_list): Likewise.
15991 2006-03-10 Marco Gerards <marco@gnu.org>
15993 * configure.ac (AC_INIT): Bumped to 1.93.
15995 * DISTLIST: Added `include/grub/hfs.h'.
15997 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
15999 * boot/i386/pc/boot.S (general_error): Before looping, try INT
16000 18H, which might help the BIOS falling back to next boot media.
16002 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
16004 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
16005 Poe Chen <poe.poechen@gmail.com>.
16007 2006-01-17 Marco Gerards <marco@gnu.org>
16009 * include/grub/normal.h: Include <grub/script.h>.
16010 (grub_command_list): Removed struct.
16011 (grub_command_list_t): Removed type.
16012 (grub_menu_entry): Remove members `num' and `command_list'. Add
16013 members `commands' and `sourcecode'.
16014 * include/grub/script.h: Add inclusion guards.
16015 (grub_script_cmd_menuentry): New struct.
16016 (grub_script_execute_menuentry): New prototype.
16017 (grub_script_lexer_record_start): Likewise.
16018 (grub_script_lexer_record_stop): Likewise.
16019 * normal/execute.c (grub_script_execute_menuentry): New function.
16020 * normal/lexer.c (record, recording, recordpos, recordlen): New
16022 (grub_script_lexer_record_start): New function.
16023 (grub_script_lexer_record_stop): Likewise.
16024 (recordchar): Likewise.
16025 (nextchar): Likewise.
16026 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
16027 2048 as the buffer size. Add the tokens `menuentry' and `@'.
16028 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
16029 (current_menu): New variable.
16030 (free_menu): Mainly rewritten.
16031 (grub_normal_menu_addentry): New function.
16032 (read_config_file): Rewritten.
16033 * normal/menu.c (run_menu_entry): Mainly rewritten.
16034 * normal/menu_entry.c (make_screen): Rewritten the code to insert
16036 (run): Mainly rewritten.
16037 * normal/parser.y (menu_entry): New variable.
16038 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
16039 (menuentry): New rule.
16040 (command): Add `menuentry'.
16041 (if_statement): Allow additional returns before `fi'.
16042 * normal/script.c (grub_script_create_cmdmenu): New function.
16044 2006-01-03 Marco Gerards <marco@gnu.org>
16046 * INSTALL: GNU Bison is required.
16047 * configure.ac: Rewritten the test to detect Bison.
16048 * Makefile.in (YACC): New variable. Reported by Xun Sun
16049 <xun.sun.cn@gmail.com>.
16051 2006-01-03 Marco Gerards <marco@gnu.org>
16053 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
16054 the HFS+ filesystem to filesystem blocks.
16055 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
16056 GCC warning is silenced.
16058 2006-01-03 Marco Gerards <marco@gnu.org>
16060 * partmap/apple.c (apple_partition_map_iterate): Convert the data
16061 read from disk from big endian to host byte order.
16063 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
16065 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
16067 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
16068 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
16069 embedded HFS+ filesystem.
16070 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
16071 (grub_hfs_sblock): Move from here...
16072 * include/grub/hfs.h: To here... New file.
16073 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
16075 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
16077 (grub_hfsplus_volheader): Change type of member `magic' to
16079 (grub_hfsplus_data): Add new member `embedded_offset'.
16080 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
16082 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
16083 Calculate the offset.
16085 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16087 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
16089 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
16091 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16093 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
16094 ENV->NAME is NULL after allocating ENV->VALUE.
16096 2005-12-25 Marco Gerards <marco@gnu.org>
16098 * kern/env.c (grub_env_set): Rewritten the error handling code.
16100 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16102 * geninit.sh: Made more robust, and more portable.
16104 2005-12-25 Marco Gerards <marco@gnu.org>
16106 Add support for Apple HFS+ filesystems.
16108 * fs/hfsplus.c: New file.
16110 * DISTLIST: Added `fs/hfsplus.c'.
16112 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
16113 (hfsplus_mod_SOURCES): New variable.
16114 (hfsplus_mod_CFLAGS): Likewise.
16115 (hfsplus_mod_LDFLAGS): Likewise.
16116 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
16117 (grub_setup_SOURCES): Likewise.
16118 (grub_mkdevicemap_SOURCES): Likewise.
16119 (grub_emu_SOURCES): Likewise.
16120 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16122 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
16124 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
16126 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16128 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
16129 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
16130 include/grub/parser.h, include/grub/script.h, kern/parser.c,
16131 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
16132 normal/lexer.c, normal/parser.y, normal/script.c, and
16134 Removed kern/sparc64/cache.c.
16136 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
16137 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
16140 * configure.ac (AC_INIT): Bumped to 1.92.
16142 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
16144 * kern/err.c (grub_error_push): Added new function to support error
16146 (grub_error_pop): Likewise.
16147 (grub_error_stack_items): New local variable to support error stacks.
16148 (grub_error_stack_pos): Likewise.
16149 (grub_error_stack_assert): Likewise.
16150 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
16152 (grub_print_error): Added support to print errors from error stack.
16154 * include/grub/err.h (grub_error_push): Added function prototype.
16155 (grub_error_pop): Likewise.
16157 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
16159 * configure.ac: Accept `powerpc64' as host_cpu.
16160 (amd64): Rename to `biarch32'.
16162 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
16163 non-cacheline-aligned addresses.
16165 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
16166 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
16167 if `size' is non-zero.
16169 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
16171 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
16172 and `cd' to make sure the filename is not prefixed with a
16174 (pkgdata_MODULES): Add `gpt.mod'.
16175 (gpt_mod_SOURCES): New variable.
16176 (gpt_mod_CFLAGS): Likewise.
16177 (gpt_mod_LDFLAGS): Likewise.
16179 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
16181 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
16184 * partmap/gpt.c: New file.
16186 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
16187 GPT partition map is detected.
16189 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
16191 * commands/i386/pc/play.c: New file.
16192 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
16193 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
16196 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
16198 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
16199 ((unused))' to silence gcc warning.
16201 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
16203 * configure.ac: Correct `AC_PROG_YACC' test.
16205 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16207 * util/powerpc/ieee1275/grub-install.in: Run the mount point
16208 check before installing files.
16210 2005-11-22 Mike Small <smallm@panix.com>
16212 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
16213 number regex so multidigit numbers are recognized correctly.
16215 2005-11-22 Mike Small <smallm@panix.com>
16217 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
16218 debugging message before attempting to claim memory.
16219 (grub_rescue_cmd_initrd): Add a claim debugging message and try
16220 multiple addresses in case of failure.
16222 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16224 * term/tparm.c (get_space): Remove empty `if' statement.
16226 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
16228 * kern/parser.c (check_varstate): Rename `state' to 's'.
16230 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16232 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
16233 variable definitions to the beginning of each function. Sort stack
16235 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
16236 `buf' argument to `char *'.
16238 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16240 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
16241 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16242 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16243 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16244 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16245 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16246 configfile.mod, search.mod, gzio.mod and test.mod.
16247 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16248 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16249 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16250 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16251 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16252 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16253 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16254 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16255 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16256 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16257 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16258 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16259 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16260 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16261 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16262 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16263 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16264 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16265 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16266 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16267 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16268 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16269 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
16271 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
16273 (pkgdata_MODULES): Add test.mod.
16275 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16277 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
16278 appending to variables with "+=".
16279 (PModule): Use full pathname to generate *.lst filenames.
16281 * Makefile.in: Fixed list rules moved from genmk.rb.
16282 (.DELETE_ON_ERROR): New special target.
16283 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
16285 * conf/i386-pc.rmk: Include conf/common.mk.
16286 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16287 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16288 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16289 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16290 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16291 configfile.mod, search.mod, gzio.mod and test.mod.
16292 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16293 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16294 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16295 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16296 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16297 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16298 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16299 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16300 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16301 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16302 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16303 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16304 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16305 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16306 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16307 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16308 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16309 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16310 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16311 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16312 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16313 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16314 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
16316 * conf/common.rmk: ... to here. New file.
16318 * conf/common.mk: New file.
16320 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
16322 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
16323 (grub_script.tab.c): ... here.
16325 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
16326 (grub_script.tab.c): ... here.
16328 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
16329 (grub_script.tab.c): ... here.
16331 * normal/command.c (grub_command_find): Fixed a memory leak of
16332 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
16334 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16336 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
16337 "@" which marks the start of a comment on ARM.
16338 (VARIABLE): Likewise.
16340 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16342 Add support for Linux/ADFS partition tables.
16344 * partmap/acorn.c: New file.
16346 * include/grub/acorn_filecore.h: Likewise.
16348 * DISTLIST: Added `partmap/acorn.c' and
16349 `include/grub/acorn_filecore.h'.
16351 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16353 (pkgdata_MODULES): Add `acorn.mod'.
16354 (acorn_mod_SOURCES): New variable.
16355 (acorn_mod_CFLAGS): Likewise.
16357 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16359 (pkgdata_MODULES): Add `acorn.mod'.
16360 (acorn_mod_SOURCES): New variable.
16361 (acorn_mod_CFLAGS): Likewise.
16363 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
16364 (pkgdata_MODULES): Add `acorn.mod'.
16365 (acorn_mod_SOURCES): New variable.
16366 (acorn_mod_CFLAGS): Likewise.
16367 (acorn_mod_LDFLAGS): Likewise.
16369 * include/types.h (grub_disk_addr_t): New typedef.
16371 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
16373 * geninit.sh: New file.
16375 * geninitheader.sh: Likewise.
16377 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
16378 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
16379 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
16380 * commands/configfile.c (grub_configfile_init)
16381 (grub_configfile_fini): Likewise.
16382 * commands/default.c (grub_default_init, grub_default_fini):
16384 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
16385 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
16386 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
16387 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
16389 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
16390 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
16392 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
16393 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
16395 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
16397 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
16399 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
16400 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
16401 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
16402 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
16403 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
16404 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
16405 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
16406 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
16407 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
16408 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
16409 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
16410 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
16411 * partmap/amiga.c (grub_amiga_partition_map_init)
16412 (grub_amiga_partition_map_fini): Likewise.
16413 * partmap/apple.c (grub_apple_partition_map_init)
16414 (grub_apple_partition_map_fini): Likewise.
16415 * partmap/pc.c (grub_pc_partition_map_init)
16416 (grub_pc_partition_map_fini): Likewise.
16417 * partmap/sun.c (grub_sun_partition_map_init,
16418 grub_sun_partition_map_fini): Likewise.
16419 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
16422 * util/grub-emu.c: Include <grub_modules_init.h>.
16423 (main): Don't initialize and de-initialize any modules directly,
16424 use `grub_init_all' and `grub_fini_all' instead.
16426 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
16427 `grub_vesafb_mod_init'.
16428 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
16430 * term/i386/pc/vga.c (grub_vga_init): Renamed to
16431 `grub_vga_mod_init'. Updated all users.
16432 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
16434 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
16435 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
16438 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
16439 Generate a function to initialize the module in utilities.
16440 Updated all callers.
16441 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
16442 initialize the module in utilities. Updated all callers.
16444 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16446 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
16447 escape sequence and a literal ^L to clear the screen.
16449 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
16450 when returning from Open Firmware.
16452 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16454 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
16455 (grub_ofconsole_height): Likewise.
16456 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
16457 manually insert a '\n'.
16458 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
16459 `grub_ofconsole_height'. Return early if these are already set.
16461 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
16463 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16464 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
16465 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
16466 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
16467 and `normal/script.c'.
16468 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16469 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16470 (test_mod_SOURCES): New variable.
16471 (test_mod_CFLAGS): Likewise.
16472 (test_mod_LDFLAGS): Likewise.
16473 (pkgdata_MODULES): Add `test.mod'.
16474 (grub_script.tab.c): New rule.
16475 (grub_script.tab.h): Likewise.
16477 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
16479 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16480 `commands/test.c', `normal/execute.c', `normal/lexer.c',
16481 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16482 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16483 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16484 (test_mod_SOURCES): New variable.
16485 (test_mod_CFLAGS): Likewise.
16486 (pkgdata_MODULES): Add `test.mod'.
16487 (grub_script.tab.c): New rule.
16488 (grub_script.tab.h): Likewise.
16490 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
16492 Add initial scripting support.
16494 * commands/test.c: New file.
16495 * include/grub/script.h: Likewise.
16496 * normal/execute.c: Likewise.
16497 * normal/function.c: Likewise.
16498 * normal/lexer.c: Likewise.
16499 * normal/parser.y: Likewise.
16500 * normal/script.c: Likewise.
16502 * configure.ac: Add `AC_PROG_YACC' test.
16504 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
16505 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
16506 `normal/function.c' and `normal/script.c'.
16507 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16508 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16509 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
16511 (pkgdata_MODULES): Add `test.mod'.
16512 (grub_script.tab.c): New rule.
16513 (grub_script.tab.h): Likewise.
16515 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
16517 * include/grub/normal.h (grub_test_init): New prototype.
16518 (grub_test_fini): Likewise.
16520 * normal/command.c: Include <grub/script.h>.
16521 (grub_command_execute): Rewritten.
16523 * util/grub-emu.c (main): Call `grub_test_init' and
16526 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16528 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
16530 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
16531 there are no pending characters.
16533 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16535 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
16536 `grub_strndup' to drop device arguments. Replace unnecessary
16537 `grub_strndup' with `grub_strdup'.
16539 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16541 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
16542 `debug' environment variable has been set.
16544 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
16546 * Makefile.in (install-local): Use $(DATA).
16547 (uninstall): Likewise.
16548 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
16549 (sbin_UTILITIES): ... to here.
16550 (sbin_SCRIPTS): New variable.
16551 (grub_install_SOURCES): New variable.
16552 * util/powerpc/ieee1275/grub-install.in: New file.
16553 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
16555 (add_segments): Call `grub_util_get_path'.
16557 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
16559 From Timothy Baldwin:
16560 * commands/ls.c (grub_ls_list_files): Close FILE with
16562 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
16564 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
16566 * include/grub/parser.h: New file.
16568 * kern/parser.c: Likewise.
16570 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
16571 (grub_setup_SOURCES): Likewise.
16572 (grub_probefs_SOURCES): Likewise.
16573 (grub_emu_SOURCES): Likewise.
16574 (kernel_img_HEADERS): Add `parser.h'.
16576 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16577 (grub_emu_SOURCES): Add `kern/parser.c'.
16578 (grubof_SOURCES): Likewise.
16580 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16581 (grubof_SOURCES): Add `kern/parser.c'.
16583 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
16585 * kern/misc.c (grub_split_cmdline): Removed function.
16587 * kern/rescue.c: Include <grub/parser.h>.
16588 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
16589 of `grub_split_cmdline'.
16591 * normal/command.c: Include <grub/parser.h>.
16592 (grub_command_execute): Use `grub_parser_split_cmdline' instead
16593 of `grub_split_cmdline'.
16595 * normal/completion.c: Include <grub/parser.h>.
16596 (cmdline_state): New variable.
16597 (iterate_dir): End the filename with a quote depending on the
16598 command line state.
16599 (get_state): new function.
16600 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
16601 split the arguments and determine the current argument. When the
16602 argument string is not quoted, escape all spaces.
16604 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16606 * normal/sparc64/setjmp.S: New file.
16608 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16610 * include/grub/sparc64/libgcc.h: New file.
16611 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
16612 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
16613 normal/sparc64/setjmp.c.
16615 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16617 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
16618 * kern/sparc64/cache.S: New file.
16619 * kern/sparc64/cache.c: Removed.
16620 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
16621 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
16623 (COMMON_LDFLAGS): Add -melf64_sparc.
16624 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
16625 (grubof_SOURCES): Use cache.S instead of cache.c.
16626 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
16627 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
16628 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
16630 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
16631 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
16632 (linux_mod_CFLAGS): Commented out.
16633 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
16634 out because module isn't built.
16635 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
16636 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
16637 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
16638 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
16639 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
16640 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16641 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16642 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
16643 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
16644 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
16645 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16646 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16647 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
16648 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
16650 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
16652 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
16653 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
16654 longer, because HFS should not be used on PC.
16656 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16658 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
16659 consistently within the loop.
16661 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
16663 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
16664 directory can not be read.
16666 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16668 * configure.ac (AC_INIT): Increase the version number to 1.91.
16670 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
16671 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
16672 term/i386/pc/serial.c.
16674 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16676 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
16677 file size must be permitted.
16679 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
16680 between %ah and %al.
16682 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16684 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
16686 Call the hook with a NUL-terminated filename.
16687 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
16690 * kern/term.c (cursor_state): New variable.
16691 (grub_term_set_current): Reset the cursor state on a new
16693 (grub_setcursor): Rewritten to use CURSOR_STATE.
16694 (grub_getcursor): New function.
16696 * include/grub/term.h (grub_getcursor): New prototype.
16698 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
16699 integers on ARM. Reported by Timothy Baldwin
16700 <T.E.Baldwin99@members.leeds.ac.uk>.
16702 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
16704 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
16706 (grub_sfs_dir): Likewise.
16708 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
16710 Add support for the SFS filesystem.
16712 * fs/sfs.c: New file.
16714 * DISTLIST: Added `fs/sfs.c'.
16716 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
16717 (grub_probefs_SOURCES): Likewise.
16718 (grub_emu_SOURCES): Likewise.
16719 (pkgdata_MODULES): Add `sfs.mod'.
16720 (sfs_mod_SOURCES): New variable.
16721 (sfs_mod_CFLAGS): Likewise.
16722 (sfs_mod_LDFLAGS): Likewise.
16724 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
16725 (pkgdata_MODULES): Add `sfs.mod'.
16726 (sfs_mod_SOURCES): New variable.
16727 (sfs_mod_CFLAGS): Likewise.
16729 * util/grub-emu.c (main): Call `grub_sfs_init' and
16732 * include/grub/fs.h (grub_sfs_init): New prototype.
16733 (grub_sfs_fini): Likewise.
16735 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
16737 Add support for the AFFS filesystem.
16739 * fs/affs.c: New file.
16741 * DISTLIST: Added `fs/affs.c'.
16743 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
16744 (grub_probefs_SOURCES): Likewise.
16745 (grub_emu_SOURCES): Likewise.
16746 (pkgdata_MODULES): Add `affs.mod'.
16747 (affs_mod_SOURCES): New variable.
16748 (affs_mod_CFLAGS): Likewise.
16749 (affs_mod_LDFLAGS): Likewise.
16751 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
16752 (pkgdata_MODULES): Add `affs.mod'.
16753 (affs_mod_SOURCES): New variable.
16754 (affs_mod_CFLAGS): Likewise.
16756 * util/grub-emu.c (main): Call `grub_affs_init' and
16759 * include/grub/fs.h (grub_affs_init): New prototype.
16760 (grub_affs_fini): Likewise.
16762 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16764 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
16766 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16768 * configure.ac: Accept `x86_64' as host_cpu. In that case add
16771 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
16774 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
16775 (COMMON_LDFLAGS): New variable.
16776 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
16777 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
16778 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
16779 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
16780 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
16781 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
16782 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
16783 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
16784 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
16785 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
16786 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16787 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16788 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
16789 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
16790 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
16792 (normal_mod_ASFLAGS): Add `-m32'.
16794 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
16795 (grub_host_size_t, grub_host_ssize_t): New types.
16796 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
16797 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
16798 `GRUB_HOST_SIZEOF_VOID_P'.
16800 * include/grub/kernel.h (struct grub_module_header): Type of
16801 member offset changed to `grub_host_off_t'. Type of member size
16802 changed to `grub_host_size_t'.
16803 (struct grub_module_info): Type of member offset changed to
16804 `grub_host_off_t'. Type of member size changed to
16805 `grub_host_size_t'.
16807 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
16809 Make GRUB's kernel compliant to Multiboot Specification.
16811 * kern/i386/pc/startup.S (multiboot_header): New label.
16812 (multiboot_entry): Likewise.
16813 (multiboot_trampoline): Likewise.
16815 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16816 Increased to 0x4A0.
16818 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
16819 put parentheses after a question mark.
16820 [!GRUB_UTIL] (my_mod): New variable.
16822 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
16824 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
16826 Adds support for the XFS filesystem. Btrees are not supported
16829 * fs/xfs.c: New file.
16831 * DISTLIST: Added `fs/xfs.c'.
16833 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
16834 (grub_probefs_SOURCES): Likewise.
16835 (grub_emu_SOURCES): Likewise.
16836 (pkgdata_MODULES): Add `xfs.mod'.
16837 (xfs_mod_SOURCES): New variable.
16838 (xfs_mod_CFLAGS): Likewise.
16840 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
16841 (pkgdata_MODULES): Add `xfs.mod'.
16842 (xfs_mod_SOURCES): New variable.
16843 (xfs_mod_CFLAGS): Likewise.
16845 * util/grub-emu.c (main): Call `grub_xfs_init' and
16848 * include/grub/fs.h (grub_xfs_init): New prototype.
16849 (grub_xfs_fini): Likewise.
16852 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
16854 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
16855 color modes, allow greater than 16 colors to be configured as
16858 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
16860 * normal/completion.c (complete_arguments): Add the qualifier
16861 const into OPTIONS.
16863 From Omniflux <omniflux+lists@omniflux.com>:
16864 * include/grub/terminfo.h: New file.
16865 * include/grub/tparm.h: Likewise.
16866 * include/grub/i386/pc/serial.h: Likewise.
16867 * term/terminfo.c: Likewise.
16868 * term/tparm.c: Likewise.
16869 * term/i386/pc/serial.c: Likewise.
16870 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
16872 (terminfo_mod_SOURCES): New variable.
16873 (terminfo_mod_CFLAGS): Likewise.
16874 (serial_mod_SOURCES): Likewise.
16875 (serial_mod_CFLAGS): Likewise.
16877 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
16879 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
16880 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
16881 and kern/powerpc/ieee1275/cmain.c, respectively.
16883 * boot/powerpc/ieee1275/crt0.S: Moved to ...
16884 * kern/powerpc/ieee1275/crt0.S: ... here.
16886 * boot/powerpc/ieee1275/cmain.c: Moved to ...
16887 * kern/powerpc/ieee1275/cmain.c: ... here.
16889 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
16890 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
16891 instead of boot/powerpc/ieee1275/crt0.S and
16892 boot/powerpc/ieee1275/cmain.c, respectively.
16894 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
16895 sectors. It was not used anyway.
16897 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16899 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
16900 `unused parameter' warning.
16902 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16904 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
16906 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
16909 2005-08-28 Marco Gerards <metgerards@student.han.nl>
16911 * include/grub/normal.h (enum grub_completion_type): Added
16912 `GRUB_COMPLETION_TYPE_ARGUMENT'.
16914 * normal/cmdline.c (print_completion): Handle
16915 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
16916 * normal/menu_entry.c (store_completion): Likewise.
16918 * normal/completion.c (complete_arguments): New function.
16919 (grub_normal_do_completion): Call `complete_arguments' when the
16920 current words start with a dash.
16922 2005-08-27 Marco Gerards <metgerards@student.han.nl>
16924 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
16925 `gzio.mod' instead of `io.mod').
16927 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
16929 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
16930 (DISTDIRS): Added io and video.
16931 Rewrite the search routine to make an output consistently.
16933 * DISTLIST: Added conf/sparc64-ieee1275.mk,
16934 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
16935 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
16936 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
16937 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
16938 util/powerpc/ieee1275/misc.c.
16940 * include/grub/gzio.h: New file.
16941 * io/gzio.c: Likewise.
16943 * kern/file.c (grub_file_close): Call grub_device_close only if
16944 FILE->DEVICE is not NULL.
16946 * include/grub/mm.h [!NULL] (NULL): New macro.
16948 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
16950 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
16951 (pkgdata_MODULES): Added gzio.mod.
16952 (gzio_mod_SOURCES): New variable.
16953 (gzio_mod_CFLAGS): Likewise.
16955 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
16956 (pkgdata_MODULES): Added gzio.mod.
16957 (gzio_mod_SOURCES): New variable.
16958 (gzio_mod_CFLAGS): Likewise.
16960 * commands/cat.c: Include grub/gzio.h.
16961 (grub_cmd_cat): Use grub_gzfile_open instead of
16964 * commands/cmp.c: Include grub/gzio.h.
16965 (grub_cmd_cmp): Use grub_gzfile_open instead of
16968 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
16969 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
16971 (grub_rescue_cmd_module): Likewise.
16973 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
16975 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
16976 kern/sparc64/ieee1275/init.c because it contains _start.
16977 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
16979 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
16981 * configure.ac: Add support for sparc64 host with ieee1275
16983 * configure: Generated from configure.ac.
16984 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
16986 (grub_ofdisk_read): Likewise.
16987 (grub_ofdisk_open): Use %p to print pointer values, and cast the
16988 pointers as (void *) to remove a warning.
16989 (grub_ofdisk_close): Likewise.
16990 (grub_ofdisk_read): Likewise.
16991 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
16992 returns, so make it return void to remove a warning.
16993 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
16994 Corresponding prototype change.
16995 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
16996 values, and cast the pointers as (void *) to remove a warning.
16997 (grub_mm_dump): Likewise.
16998 * conf/sparc64-ieee1275.mk: New file.
16999 * conf/sparc64-ieee1275.rmk: Likewise.
17000 * include/grub/sparc64/setjmp.h: Likewise.
17001 * include/grub/sparc64/types.h: Likewise.
17002 * include/grub/sparc64/ieee1275/console.h: Likewise.
17003 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
17004 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
17005 * include/grub/sparc64/ieee1275/time.h: Likewise.
17006 * kern/sparc64/cache.c: Likewise.
17007 * kern/sparc64/dl.c: Likewise.
17008 * kern/sparc64/ieee1275/init.c: Likewise.
17009 * kern/sparc64/ieee1275/openfw.c: Likewise.
17011 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
17013 * util/console.c (grub_ncurses_putchar): If C is greater than
17014 0x7f, set C to a question mark.
17015 (grub_ncurses_getcharwidth): New function.
17016 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
17019 * normal/menu.c (print_entry): Made aware of Unicode. First,
17020 convert TITLE to UCS-4, and predict the cursor position by
17023 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
17025 * kern/misc.c (grub_utf16_to_utf8): Likewise.
17027 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17029 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
17030 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17033 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
17034 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17035 grub_strcpy and grub_strlen. Take it into account that a space
17036 character is inserted as a delimiter.
17038 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17040 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
17041 invalid magic in the error.
17043 * commands/search.c: New file.
17045 * util/grub-emu.c (main): Call grub_search_init and
17048 * kern/rescue.c (grub_rescue_print_disks): Removed.
17049 (grub_rescue_print_devices): New function.
17050 (grub_rescue_cmd_ls): Use grub_device_iterate with
17051 grub_rescue_print_devices instead of grub_disk_dev_iterate with
17052 grub_rescue_print_disks.
17054 * kern/partition.c (grub_partition_iterate): Return the result of
17055 PARTMAP->ITERATE instead of GRUB_ERRNO.
17057 * kern/device.c: Include grub/partition.h.
17058 (grub_device_iterate): New function.
17060 * include/grub/partition.h (grub_partition_iterate): Return int
17061 instead of grub_err_t.
17063 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
17065 [GRUB_UTIL] (grub_search_fini): Likewise.
17067 * include/grub/device.h (grub_device_iterate): New prototype.
17069 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17071 (pkgdata_MODULES): Added search.mod.
17072 (search_mod_SOURCES): New variable.
17073 (search_mod_CFLAGS): Likewise.
17075 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
17076 (pkgdata_MODULES): Added search.mod.
17077 (search_mod_SOURCES): New variable.
17078 (search_mod_CFLAGS): Likewise.
17080 * commands/ls.c (grub_ls_list_disks): Renamed to ...
17081 (grub_ls_list_devices): ... this, and use grub_device_iterate.
17082 All callers changed.
17084 * DISTLIST: Added commands/search.c.
17086 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17088 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
17090 (grub_getcharwidth): New function.
17092 * kern/misc.c (grub_utf8_to_ucs4): New function.
17094 * include/grub/term.h (struct grub_term): Added a new member
17096 (grub_getcharwidth): New prototype.
17098 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
17100 * term/i386/pc/console.c (map_char): New function. Segregated from
17101 grub_console_putchar.
17102 (grub_console_putchar): Use map_char.
17103 (grub_console_getcharwidth): New function.
17104 (grub_console_term): Specified grub_console_getcharwidth as
17107 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
17108 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
17110 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
17112 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
17113 on grub_strtoul completely.
17114 (write_char): Declare local variables in the beginning of the
17116 (grub_vesafb_getcharwidth): New function.
17117 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
17120 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
17122 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
17123 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
17124 commands/i386/pc/vbetest.c.
17126 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
17127 call grub_vbe_get_controller_info again, because the returned
17128 information is volatile.
17129 (grub_vbe_set_video_mode): Mostly rewritten.
17130 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
17131 grub_vbe_status_t correctly.
17132 (grub_vbe_get_video_mode_info): Likewise.
17133 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
17134 several if statements.
17136 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
17137 * commands/i386/pc/vbeinfo.c: ... this.
17139 * commands/i386/pc/vbe_test.c: Renamed to ...
17140 * commands/i386/pc/vbetest.c: ... this.
17142 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
17144 (grub_cmd_vbeinfo): ... this. Save video modes before
17145 iterating. Skip a video mode, if it is not available, not enough
17146 information is given or it is monochrome. Show the memory
17147 model. Leave the interpretation of MODEVAR to grub_strtoul
17149 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
17150 (GRUB_MOD_FINI): Likewise.
17152 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
17153 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
17154 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
17155 duplicated grub_env_get. Leave the interpretation of MODEVAR to
17156 grub_strtoul completely.
17157 (real2pm): Removed.
17158 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
17159 (GRUB_MOD_FINI): Likewise.
17161 * normal/misc.c: Include grub/mm.h.
17163 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
17164 vbe_list_modes with vbetest.mod and vbeinfo.mod.
17165 (vbe_list_modes_mod_SOURCES): Removed.
17166 (vbe_list_modes_mod_CFLAGS): Likewise.
17167 (vbe_test_mod_SOURCES): Likewise.
17168 (vbe_test_mod_CFLAGS): Likewise.
17169 (vbeinfo_mod_SOURCES): New variable.
17170 (vbeinfo_mod_CFLAGS): Likewise.
17171 (vbetest_mod_SOURCES): Likewise.
17172 (vbetest_mod_CFLAGS): Likewise.
17174 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
17176 * normal/misc.c: New file.
17178 * DISTLIST: Added normal/misc.c.
17180 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
17181 DISK to HOOK. Call HOOK with DISK.
17182 * partmap/apple.c (apple_partition_map_iterate): Likewise.
17183 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17184 * partmap/sun.c (sun_partition_map_iterate): Likewise.
17186 * normal/menu_entry.c (struct screen): Added a new member
17187 "completion_shown".
17188 (completion_buffer): New global variable.
17189 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
17190 (store_completion): New function.
17191 (complete): Likewise.
17192 (clear_completions): Likewise.
17193 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
17194 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
17195 a tab, call complete.
17197 * normal/completion.c (disk_dev): Removed.
17198 (print_simple_completion): Likewise.
17199 (print_partition_completion): Likewise.
17200 (print_func): New global variable.
17201 (add_completion): Do not take the arguments WHAT or PRINT any
17202 longer. Added a new argument TYPE. Instead of printing directly,
17203 call PRINT_FUNC if not NULL.
17204 All callers changed.
17205 (complete_device): Use a local variable DEV instead of
17206 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
17207 (grub_normal_do_completion): Take a new argument HOOK. Do not
17208 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
17209 empty string, return NULL instead.
17210 All callers changed.
17212 * normal/cmdline.c (print_completion): New function.
17214 * kern/partition.c (grub_partition_iterate): Add an argument DISK
17216 All callers changed.
17218 * kern/disk.c (grub_print_partinfo): Removed.
17220 * include/grub/partition.h (struct grub_partition_map): Add a new
17221 argument DISK into HOOK of ITERATE.
17222 (grub_partition_iterate): Add a new argument DISK to HOOK.
17224 * include/grub/normal.h (enum grub_completion_type): New enum.
17225 (grub_completion_type_t): New type.
17226 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
17227 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
17228 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
17229 (GRUB_COMPLETION_TYPE_FILE): Likewise.
17230 (grub_normal_do_completion): Added a new argument HOOK.
17231 (grub_normal_print_device_info): New prototype.
17233 * include/grub/disk.h (grub_print_partinfo): Removed.
17235 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
17236 (normal_mod_SOURCES): Likewise.
17237 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17238 (normal_mod_SOURCES): Likewise.
17240 * commands/ls.c (grub_ls_list_disks): Use
17241 grub_normal_print_device_info instead of grub_print_partinfo. Free
17243 (grub_ls_list_files): Use grub_normal_print_device_info instead of
17244 duplicating the code.
17246 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17248 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
17249 follow GCS more precisely.
17250 * commands/i386/pc/vbe_test.c: Likewise.
17251 * include/grub/i386/pc/vbe.h: Likewise.
17252 * term/i386/pc/vesafb.c: Likewise.
17253 * video/i386/pc/vbe.c: Likewise.
17255 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17257 * DISTLIST: Added term/i386/pc/vesafb.c
17258 DISTLIST: Added video/i386/pc/vbe.c
17259 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
17260 DISTLIST: Added commands/i386/pc/vbe_test.c.
17261 * commands/i386/pc/vbe_list_modes.c: New file.
17262 * commands/i386/pc/vbe_test.c: Likewise.
17263 * term/i386/pc/vesafb.c: Likewise.
17264 * video/i386/pc/vbe.c: Likewise.
17265 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
17266 (grub_vbe_probe) Added prototype.
17267 (grub_vbe_set_video_mode) Likewise.
17268 (grub_vbe_get_video_mode) Likewise.
17269 (grub_vbe_get_video_mode_info) Likewise.
17270 (grub_vbe_set_pixel_rgb) Likewise.
17271 (grub_vbe_set_pixel_index) Likewise.
17272 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
17273 (pkgdata_MODULES): Added vesafb.mod.
17274 (pkgdata_MODULES): Added vbe_list_modes.mod.
17275 (pkgdata_MODULES): Added vbe_test.mod.
17276 (vbe_mod_SOURCES): Added.
17277 (vbe_mod_CFLAGS): Likewise.
17278 (vesafb_mod_SOURCES): Likewise.
17279 (vesafb_mod_CFLAGS): Likewise.
17280 (vbe_list_modes_mod_SOURCES): Likewise.
17281 (vbe_list_modes_mod_CFLAGS): Likewise.
17282 (vbe_test_mod_SOURCES): Likewise.
17283 (vbe_test_mod_CFLAGS): Likewise.
17285 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
17287 * normal/command.c (grub_command_execute): If INTERACTIVE is
17288 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
17289 CMDLINE. Disable the pager if INTERACTIVE is true.
17290 All callers are changed.
17292 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
17293 before reading a config file.
17294 * normal/main.c (read_config_file): Even if a command is not
17295 found, register it if it is within an entry.
17297 * util/grub-emu.c: Include sys/types.h and unistd.h.
17298 (options): Added --hold.
17299 (struct arguments): Added a new member "hold".
17300 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
17302 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
17303 cleared by a debugger, if it is not zero.
17305 * include/grub/normal.h (grub_command_execute): Add an argument
17308 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
17310 * DISTLIST: Added include/grub/i386/pc/vbe.h.
17312 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
17314 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
17315 program with another one, because the old one didn't detect a bug
17316 in gcc-3.4. Always use regparm 2, because the new test is still
17317 not enough for gcc-4.0. Someone must investigate a simple test
17318 case which detects a bug in gcc-4.0.
17320 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
17322 * DISTLIST: Added normal/completion.c.
17324 * normal/completion.c: New file.
17326 * term/i386/pc/console.c (grub_console_getwh): New function.
17327 (grub_console_term): Assign grub_console_getwh to getwh.
17329 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
17330 function is defined in normal/completion.c as
17331 grub_normal_do_completion.
17332 (grub_cmdline_get): Use grub_normal_do_completion instead of
17335 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
17336 returns non-zero, otherwise return 0.
17337 (grub_partition_iterate): First, probe the partition map. Then,
17338 call ITERATE only for this partition map.
17340 * kern/misc.c (grub_strncmp): Rewritten.
17342 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
17343 returns non-zero. Otherwise return 0.
17345 * include/grub/partition.h (grub_partition_map_iterate): Return
17346 int instead of void.
17348 * include/grub/normal.h (grub_normal_do_completion): New prototype.
17350 * include/grub/misc.h (grub_strncmp): Change the type of N to
17353 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
17356 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
17357 unsigned explicitly before comparing it with I.
17359 * kern/main.c (grub_env_write_root): Add the attribute unused into
17362 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17363 normal/completion.c.
17364 (normal_mod_SOURCES): Likewise.
17365 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17366 (normal_mod_SOURCES): Likewise.
17368 * normal/command.c (grub_iterate_commands): If ITERATE returns
17369 non-zero, return one immediately.
17371 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
17373 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
17374 * kern/i386/pc/startup.S: Updated Global Descriptor table's
17376 (grub_vbe_get_controller_info): New function.
17377 (grub_vbe_get_mode_info): Likewise.
17378 (grub_vbe_set_mode): Likewise.
17379 (grub_vbe_get_mode): Likewise.
17380 (grub_vbe_set_memory_window): Likewise.
17381 (grub_vbe_get_memory_window): Likewise.
17382 (grub_vbe_set_scanline_length): Likewise.
17383 (grub_vbe_get_scanline_length): Likewise.
17384 (grub_vbe_set_display_start): Likewise.
17385 (grub_vbe_get_display_start): Likewise.
17386 (grub_vbe_set_palette_data): Likewise.
17387 * include/grub/i386/pc/vbe.h: New file.
17389 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17391 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17392 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
17393 * DISTLIST: Likewise.
17394 * kern/ieee1275/of.c: Moved to ...
17395 * kern/ieee1275/ieee1275.c: ... here.
17397 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17399 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
17400 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
17401 Pass 0 as `end' parameter to grub_strtoul().
17403 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17405 * include/grub/powerpc/ieee1275/console.h: Do not include
17406 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
17408 (grub_console_cur_color): Remove i386-specific prototype.
17409 (grub_console_real_putchar): Likewise.
17410 (grub_console_checkkey): Likewise.
17411 (grub_console_getkey): Likewise.
17412 (grub_console_getxy): Likewise.
17413 (grub_console_gotoxy): Likewise.
17414 (grub_console_cls): Likewise.
17415 (grub_console_setcursor): Likewise.
17416 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
17417 Include <grub/machine/console.h>.
17418 * term/ieee1275/ofconsole.c: Likewise.
17420 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
17422 * Makefile.in (LIBLZO): New variable.
17424 * configure.ac: Check for LZO version 2.
17426 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
17427 lzo/lzo1x.h instead of lzo1x.h.
17429 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
17432 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
17433 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
17435 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
17436 copying the data from PARTITION to P.
17438 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17440 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
17441 negative, unload the module.
17443 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
17444 map is "pc_partition_map" but not "pc".
17445 (usage): Fix the description. The options are --boot-image and
17446 --core-image but not --boot-file or --core-file.
17447 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
17448 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
17451 * util/i386/pc/grub-install.in: Do not specify --boot-file or
17452 --core-file. Specify INSTALL_DEVICE as an argument.
17454 * util/console.c: Include config.h.
17455 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
17456 [HAVE_NCURSES_H]: Include ncurses.h.
17457 [HAVE_CURSES_H]: Include curses.h.
17458 [!A_NORMAL] (A_NORMAL): Defined as zero.
17459 [!A_STANDOUT] (A_STANDOUT): Likewise.
17461 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
17463 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
17465 * configure.ac: Check for curses libraries and headers.
17467 * Makefile.in (LIBCURSES): New variable.
17469 * genmk.rb (Script::rule): Set the executable bits.
17471 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
17472 name of the PC partition map is "pc_partition_map" but not "pc".
17474 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17476 * util/i386/pc/grub-install.in (grub_probefs): New variable.
17477 (modules): Likewise.
17478 (usage): Added descriptions for --modules and --grub-probefs.
17479 Handle --modules and --grub-probefs. Save the arguments in MODULES
17480 and GRUB_PROBEFS, respectively.
17481 Auto-detect a filesystem module against GRUBDIR. If the result is
17482 empty and modules are not specified explicitly, abort the
17483 installation. Add the result to MODULES.
17485 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
17486 disk/powerpc/ieee1275/ofdisk.c,
17487 include/grub/powerpc/ieee1275/init.h and
17488 term/powerpc/ieee1275/ofconsole.c.
17489 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
17490 term/ieee1275/ofconsole.c.
17492 * include/grub/powerpc/ieee1275/console.h: Resurrected.
17494 * COPYING: Upgraded to the latest version. Only the address of the
17495 FSF office has changed.
17497 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17499 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17500 kern/ieee1275.c with kern/ieee1275/of.c.
17502 * kern/ieee1275.c: Moved to ...
17503 * kern/ieee1275/of.c: ... here.
17505 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
17507 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
17510 * config.guess: Updated to the latest version from gnulib.
17511 * config.sub: Likewise.
17512 * install.sh: Likewise.
17513 * mkinstalldirs: Likewise.
17515 * include/grub/console.h: Removed. This file is arch-specific. Do
17516 not put this in include/grub.
17518 * include/grub/i386/pc/console.h: Resurrected.
17520 * util/console.c: Include grub/machine/console.h instead of
17522 * util/grub-emu.c: Likewise.
17524 2005-08-04 Marco Gerards <metgerards@student.han.nl>
17526 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
17529 From Vincent Pelletier <subdino2004@yahoo.fr>
17530 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
17531 Redefined to use grub_getwh.
17532 (grub_term): New member named getwh.
17533 (grub_getwh): New prototype.
17534 * kern/term.c (grub_getwh): New function.
17535 * term/i386/pc/console.c (grub_console_getwh): New function.
17536 (grub_console_term): New member `getwh'.
17537 * term/i386/pc/vga.c (grub_vga_getwh): New function.
17538 (grub_vga_term): New member `getwh'.
17539 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
17541 (grub_ofconsole_getw): New function.
17542 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
17543 (grub_ofconsole_term): New field named getwh and new initial
17546 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
17548 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
17549 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
17550 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
17551 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
17552 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
17553 of <grub/machine/ieee1275.h>.
17554 * commands/ieee1275/reboot.c: Likewise.
17555 * boot/powerpc/ieee1275/ieee1275.c: Move ...
17556 * kern/ieee1275.c: ... to here. All users updated. Change all
17557 parameter structs to use new type `grub_ieee1275_cell_t'.
17558 * term/powerpc/ieee1275/ofconsole.c: Move ...
17559 * term/ieee1275/ofconsole.c: ... to here. All users updated.
17560 * disk/powerpc/ieee1275/ofdisk.c: Move ...
17561 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
17562 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
17564 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
17565 Remove unused prototypes. All users updated.
17566 * include/grub/powerpc/ieee1275/console.h: Removed.
17567 * include/grub/powerpc/ieee1275/ieee1275.h: Define
17568 `grub_ieee1275_cell_t'.
17569 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
17570 Cast comparisons with -1 to the correct type.
17571 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
17572 type to match `grub_ieee1275_entry_fn'.
17574 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
17576 * DISTLIST: Added util/i386/pc/grub-probefs.c.
17578 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
17579 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
17581 (grub_probefs_SOURCES): New variable.
17583 * util/i386/pc/grub-probefs.c: New file.
17585 * util/i386/pc/grub-setup.c (main): Call
17586 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
17587 grub_hfs_init and grub_jfs_init to initialize the system. Call
17588 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
17589 grub_pc_partition_map_fini to finish the system.
17591 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
17593 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
17595 (grub_multiboot_load_elf32): Likewise.
17596 (grub_multiboot_is_elf64): Likewise.
17597 (grub_multiboot_load_elf64): Likewise.
17598 (grub_multiboot_load_elf): Likewise.
17599 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
17600 an ELF32 or ELF64 file.
17601 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
17603 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
17604 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
17605 NULL before calling FS->LABEL.
17606 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
17607 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
17608 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
17609 before calling FS->LABEL.
17611 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
17613 * util/i386/pc/grub-install.in (datadir): New variable.
17615 (pkgdatadir): New variable.
17616 (pkglibdir): Removed.
17618 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
17620 * DISTLIST: Added util/i386/pc/grub-install.in.
17622 * util/i386/pc/grub-install.in: New file.
17624 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
17625 (grub_install_SOURCES): Likewise.
17627 * genmk.rb: Added support for scripts.
17628 (Script): New class.
17629 (scripts): New variable.
17631 * Makefile.in (install-local): Install sbin_SCRIPTS by
17633 (uninstall): Remove sbin_SCRIPTS.
17635 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
17636 device, try to get a GRUB device by
17637 grub_util_biosdisk_get_grub_dev.
17640 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
17641 description for --device-map.
17643 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17645 Change the semantics of variable hooks. They now return strings
17646 instead of error values.
17648 * util/i386/pc/grub-setup.c: Include grub/env.h.
17649 (setup): Use grub_device_set_root instead of grub_env_set.
17651 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
17652 grub_env_get instead of grub_device_set_root and
17653 grub_device_get_root, respectively.
17655 * kern/main.c (grub_env_write_root): New function.
17656 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
17657 grub_env_set instead of grub_device_set_root.
17659 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
17661 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
17662 rather than calling ENV->WRITE_HOOK afterwards.
17663 (grub_env_get): Return the result of ENV->READ_HOOK rather than
17664 passing a pointer of a pointer.
17665 (grub_register_variable_hook): Change the types of "read_hook" and
17666 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
17668 Allocate the default empty string on the heap, because this string
17669 may be freed later.
17671 * kern/device.c: Include grub/env.h.
17672 (grub_device_set_root): Removed.
17673 (grub_device_get_root): Likewise.
17674 (grub_device_open): Use grub_env_get instead of
17675 grub_device_get_root.
17677 * include/grub/env.h (grub_env_read_hook_t): New type.
17678 (grub_env_write_hook_t): Likewise.
17679 (grub_env_var): Change the types of "read_hook" and "write_hook"
17680 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
17681 (grub_register_variable_hook): Likewise.
17683 * include/grub/device.h (grub_device_set_root): Removed.
17684 (grub_device_set_root): Likewise.
17686 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
17687 make sure that DIRNAME terminates with '/', so that
17688 grub_fat_find_dir will fail if PATH is not a directory.
17690 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
17692 Use the qualifier auto for print_files and print_files_long.
17693 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
17695 Put a newline only if there is no error.
17696 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
17699 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17701 * kern/partition.c (grub_partition_probe): Initialize PART to
17702 NULL. Otherwise, when no partition map is registered, this returns
17705 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
17707 * partmap/apple.c (apple_partition_map_iterate): Check if POS
17708 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
17711 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
17713 * commands/ls.c (grub_ls_list_disks): Print the filesystem
17714 information on each device, if it does not have partitions. Print
17715 "Device" instead of "Disk", because this function is not specific
17718 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
17719 static to ensure that it is put on the memory rather than a
17722 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17724 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
17725 (grub_cat_init): Likewise.
17726 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
17727 (options): Likewise.
17728 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
17729 (grub_configfile_init): Likewise.
17730 * font/manager.c (GRUB_MOD_INIT): Likewise.
17731 * commands/help.c (GRUB_MOD_INIT): Likewise.
17732 (grub_help_init): Likewise.
17733 * normal/command.c (grub_command_init): Likewise.
17734 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
17735 * disk/loopback.c (grub_loop_init): Likewise.
17736 (GRUB_MOD_INIT): Likewise.
17737 * commands/ls.c (grub_ls_init): Likewise.
17738 (GRUB_MOD_INIT): Likewise.
17739 (options): Likewise.
17740 * commands/boot.c (grub_boot_init): Likewise.
17741 (GRUB_MOD_INIT): Likewise.
17742 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
17743 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
17744 (GRUB_MOD_INIT): Likewise.
17745 * commands/cmp.c (grub_cmp_init): Likewise.
17746 (GRUB_MOD_INIT): Likewise.
17748 * normal/arg.c: Use <> instead of "" to include header files.
17749 (SHORT_ARG_HELP): New macro.
17750 (SHORT_ARG_USAGE): Likewise.
17751 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
17752 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
17754 (find_short): Check if C is 'h' or 'u' explicitly.
17755 (grub_arg_show_help): Use space characters instead of tabs. Treat
17756 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
17757 are shown with --help and --usage only if they are not used for
17758 the command itself.
17759 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
17762 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
17763 const into "longarg". Change the type of "shortarg" to int.
17765 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17767 * boot/i386/pc/boot.S (boot_drive_check): New label.
17769 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
17772 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
17773 which do not pass a boot drive correctly. Copied from GRUB Legacy.
17775 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17777 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
17778 When turning off Gate A20, skip the check and return immediately,
17779 because this is not fatal usually.
17781 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17783 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
17784 be 0x7C00 instead of 0x8000.
17786 * boot/i386/pc/pxeboot.S: Rewritten.
17788 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
17790 (gate_a20_check_state): Read a byte from 0x108000. Invert the
17793 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
17795 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
17796 robustness. This routine now supports a BIOS call and System
17797 Control Port A to modify the gate A20.
17799 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17800 Increased to 0x440.
17802 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
17804 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
17805 device path and resulting ihandle.
17806 (grub_ofdisk_close): dprintf the ihandle being closed.
17807 (grub_ofdisk_read): dprintf function parameters.
17808 * kern/mm.c (grub_mm_init_region): Likewise.
17809 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
17810 (grub_linux_boot): dprintf the Linux entry point, initrd address and
17811 size, and boot arguments.
17812 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
17813 before loading into memory.
17814 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
17815 before loading into memory.
17817 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
17819 * kern/mm.c: Added much documentation.
17820 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
17821 8, set to 5 instead of 8.
17823 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17825 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
17827 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
17828 (grub_mkdevicemap_SOURCES): New variable.
17830 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
17831 lib/device.c of GRUB Legacy.
17833 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17835 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
17836 instead of PATH is NULL.
17838 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
17840 * commands/cmp.c (BUFFER_SIZE): New macro.
17841 (grub_cmd_cmp): Close the right file at the right time. Compare
17842 only data just read. Don't report files of different size as
17843 identical. Dynamically allocate buffers. Move variable
17844 declarations at the beginning of function.
17846 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
17848 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
17851 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
17853 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
17854 when backspace is pressed at beginning of line.
17856 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
17858 * DISTLIST: Added genfslist.sh.
17860 * normal/main.c (fs_module_list): New variable.
17861 (autoload_fs_module): New function.
17862 (read_fs_list): Likewise.
17863 (grub_normal_execute): Call read_fs_list.
17865 * kern/fs.c (grub_fs_autoload_hook): New variable.
17866 (grub_fs_probe): Added support for auto-loading.
17868 * include/grub/normal.h (struct grub_fs_module_list): New struct.
17869 (grub_fs_module_list_t): New type.
17871 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
17872 (grub_fs_autoload_hook): New prototype.
17874 * genfslist.sh: New file.
17876 * genmk.rb: Added a rule to generate a filesystem list.
17878 2005-06-30 Marco Gerards <metgerards@student.han.nl>
17880 * configure.ac: Fix the test for cross-compiling.
17882 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
17883 define GRUB_UTIL anymore.
17885 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
17886 so this function works on other systems than just big endian.
17887 (load_modules): Likewise.
17888 (add_segments): Likewise.
17890 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
17892 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
17893 contains `l' modifier, get a long from va_arg().
17895 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
17897 * kern/mm.c (grub_free): If the next free block which is being
17898 merged is the first free block, set the first block to the block
17900 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
17902 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17904 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
17905 `grub_ieee1275_chosen'.
17907 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17909 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
17910 (grub_ieee1275_chosen): New variable.
17911 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
17913 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
17914 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
17915 Rename first argument to `phandle' for consistency.
17916 (grub_ieee1275_get_property_length): Likewise.
17917 (grub_ieee1275_next_property): Likewise. Change type of first argument
17918 to grub_ieee1275_phandle_t.
17919 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
17920 Move export next to declaration.
17921 (grub_ieee1275_chosen): New variable.
17922 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
17923 Correct cosmetic typo.
17924 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
17925 `grub_ieee1275_chosen'.
17926 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
17927 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
17928 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
17929 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
17930 `grub_ieee1275_chosen'.
17932 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
17934 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
17936 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
17937 /chosen/bootargs as "variable=value" pairs.
17939 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
17941 * include/grub/misc.h (grub_dprintf): New macro.
17942 (grub_real_dprintf): New prototype.
17943 (grub_strword): Likewise.
17944 (grub_iswordseparator): Likewise.
17945 * kern/misc.c (grub_real_dprintf): New function.
17946 (grub_strword): Likewise.
17947 (grub_iswordseparator): Likewise.
17949 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
17951 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
17952 (roundup): Remove macro.
17953 (grub_ieee1275_flags): Make static.
17954 (grub_ieee1275_realmode): Remove.
17955 (grub_ieee1275_test_flag): New function.
17956 (grub_ieee1275_set_flag): Likewise.
17957 (find_options): Rename to `grub_ieee1275_find_options'; update
17958 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
17959 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
17960 (cmain): New prototype.
17961 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
17962 `grub_ieee1275_flags' directly.
17963 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
17964 machine/biosdisk.h.
17965 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
17966 Don't include grub/machine/init.h.
17967 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
17968 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
17970 (grub_ieee1275_realmode): Likewise.
17971 (grub_ieee1275_flag): New enum.
17972 (grub_ieee1275_test_flag): New prototype.
17973 (grub_ieee1275_set_flag): New prototype.
17974 * include/grub/powerpc/ieee1275/init.h: Remove file.
17975 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
17976 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
17977 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
17978 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
17980 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
17981 `grub_ieee1275_test_flag'.
17982 (grub_ieee1275_encode_devname): Likewise.
17984 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
17986 * include/grub/powerpc/ieee1275/ieee1275.h
17987 (grub_ieee1275_encode_devname): New prototype.
17988 (grub_ieee1275_get_filename): Likewise.
17989 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
17991 (grub_set_prefix): Likewise.
17992 (grub_machine_init): Call grub_set_prefix.
17993 * kern/powerpc/ieee1275/openfw.c: Fix typos.
17994 (grub_parse_type): New enum.
17995 (grub_ieee1275_get_devargs): New function.
17996 (grub_ieee1275_get_devname): Likewise.
17997 (grub_ieee1275_parse_args): Likewise.
17998 (grub_ieee1275_get_filename): Likewise.
17999 (grub_ieee1275_encode_devname): Likewise.
18001 2005-03-30 Marco Gerards <metgerards@student.han.nl>
18003 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
18004 `grub_loader_unset'.
18006 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
18008 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
18009 instead of grub_ieee1275_interpret.
18010 (grub_halt_init): New function.
18011 (grub_halt_fini): Likewise.
18012 (GRUB_MOD_INIT): Correct message grammar.
18013 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
18014 instead of grub_ieee1275_interpret.
18015 (grub_reboot_init): New function.
18016 (grub_reboot_fini): Likewise.
18017 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
18018 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
18019 util/i386/pc/misc.c with commands/ieee1275/halt.c,
18020 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
18021 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
18023 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
18025 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
18027 (grub_halt): Likewise.
18028 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
18029 (cmain): Remove __attribute__((unused)).
18030 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
18031 (grub_heap_len): Likewise.
18032 (grub_machine_fini): New function.
18033 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
18034 (grub_halt): Likewise.
18035 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
18037 * util/powerpc/ieee1275/misc.c: New file.
18039 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
18041 * DISTLIST: New file.
18042 * gendistlist.sh: Likewise.
18044 * Makefile.in (COMMON_DISTFILES): Removed.
18045 (BOOT_DISTFILES): Likewise.
18046 (CONF_DISTFILES): Likewise.
18047 (DISK_DISTFILES): Likewise.
18048 (FS_DISTFILES): Likewise.
18049 (INCLUDE_DISTFILES): Likewise.
18050 (KERN_DISTFILES): Likewise.
18051 (LOADER_DISTFILES): Likewise.
18052 (TERM_DISTFILES): Likewise.
18053 (UTIL_DISTFILES): Likewise.
18054 (DISTFILES): Likewise.
18055 (uninstall): Uninstall files in $(pkgdata_DATA).
18056 (DISTLIST): New target.
18057 (distdir): Use the contents of the file DISTLIST to get a list of
18060 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
18062 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
18063 descriptor. This is ported from GRUB Legacy.
18065 * gencmdlist.sh: Added an extra semicolon to make it work with
18066 old sed versions. Reported by Robert Bihlmeyer
18067 <robbe@orcus.priv.at>.
18069 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
18071 Automatic loading of commands is supported.
18073 * normal/main.c (read_command_list): New function.
18074 (grub_normal_execute): Call read_command_list.
18076 * normal/command.c (grub_register_command): Return zero or CMD.
18077 Allocate CMD->NAME from the heap.
18078 Initialize CMD->MODULE_NAME to zero.
18079 Find the same name as well. If the same command is found and it is
18080 a dummy command, overwrite members. If it is not a dummy command,
18082 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
18083 (grub_command_find): If a dummy command is found, load a module
18084 and retry to find a command only once.
18086 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
18087 make sure that each command is loaded.
18089 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
18091 (struct grub_command): Remove const from the member `name'.
18092 Add a new member `module_name'.
18093 (grub_register_command): Return grub_command_t.
18095 * commands/help.c (grub_cmd_help): Call grub_command_find to make
18096 sure that each command is loaded.
18098 * genmk.rb (PModule::rule): Specify a module name without the
18099 suffix ".mod" to gencmdlist.sh.
18101 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18103 * gencmdlist.sh: New file.
18105 * genmk.rb (PModule::rule): Generate a rule for a command list.
18107 Generate command.lst from $(COMMANDFILES).
18109 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
18110 (DATA): Added $(pkgdata_DATA).
18111 (install-local): Install files in $(pkgdata_DATA).
18113 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18115 * term/i386/pc/vga.c (debug_command): Removed.
18116 (GRUB_MOD_INIT): Do not register the command "debug".
18118 From Hollis Blanchard:
18119 * commands/configfile.c: New file.
18120 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18121 commands/configfile.c.
18122 (pkgdata_MODULES): Added configfile.mod.
18123 (configfile_mod_SOURCES): New variable.
18124 (configfile_mod_CFLAGS): Likewise.
18125 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18126 commands/configfile.c.
18127 (pkgdata_MODULES): Added configfile.mod.
18128 (configfile_mod_SOURCES): New variable.
18129 (configfile_mod_CFLAGS): Likewise.
18130 * util/grub-emu.c (main): Call grub_configfile_init and
18131 grub_configfile_fini.
18132 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
18134 [GRUB_UTIL] (grub_configfile_fini): Likewise.
18136 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18138 * normal/arg.c (grub_arg_show_help): Do not show the bug report
18141 * commands/help.c (grub_cmd_help): Do not print newlines after
18142 the last command in print_command_help.
18144 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18146 * commands/default.h: New file.
18147 * commands/timeout.h: Likewise.
18148 * normal/context.c: Likewise.
18150 * util/misc.c: Do not include sys/times.h.
18151 Include sys/time.h and grub/machine/time.h.
18152 (grub_get_rtc): Rewritten with gettimeofday.
18154 * util/grub-emu.c (main): Call grub_default_init and
18155 grub_timeout_init before grub_normal_init, and call
18156 grub_timeout_fini and grub_default_fini after grub_main.
18158 * util/console.c (grub_ncurses_checkkey): Return the read
18161 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
18164 * normal/main.c (read_config_file): Push MENU. If this fails,
18165 print an error and wait for a user input.
18166 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
18167 If a menu is empty or an error occurs, pop MENU.
18168 (grub_normal_execute): Pop and free MENU after grub_menu_run
18171 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
18173 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
18175 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18177 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
18179 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18182 * include/grub/normal.h (struct grub_menu_list): New struct.
18183 (grub_menu_list_t): New type.
18184 (struct grub_context): New struct.
18185 (grub_context_t): New type.
18186 (grub_register_command): Got rid of EXPORT_FUNC.
18187 (grub_unregister_command): Likewise.
18188 (grub_context_get): New prototype.
18189 (grub_context_get_current_menu): Likewise.
18190 (grub_context_push_menu): Likewise.
18191 (grub_context_pop_menu): Likewise.
18192 [GRUB_UTIL] (grub_default_init): Likewise.
18193 [GRUB_UTIL] (grub_default_fini): Likewise.
18194 [GRUB_UTIL] (grub_timeout_init): Likewise.
18195 [GRUB_UTIL] (grub_timeout_fini): Likewise.
18197 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
18198 commands/timeout.c and normal/context.c.
18199 (pkgdata_MODULES): Added default.mod and timeout.mod.
18200 (normal_mod_SOURCES): Added normal/context.c.
18201 (default_mod_SOURCES): New variable.
18202 (default_mod_CFLAGS): Likewise.
18203 (timeout_mod_SOURCES): Likewise.
18204 (timeout_mod_CFLAGS): Likewise.
18205 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
18207 (pkgdata_MODULES): Added default.mod and timeout.mod.
18208 (normal_mod_SOURCES): Added normal/context.c.
18209 (default_mod_SOURCES): New variable.
18210 (default_mod_CFLAGS): Likewise.
18211 (timeout_mod_SOURCES): Likewise.
18212 (timeout_mod_CFLAGS): Likewise.
18214 * Makefile.in (all-local): Added $(MKFILES).
18216 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
18218 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
18219 (grub_emu_SOURCES): Likewise.
18220 (pkgdata_MODULES): Add `sun.mod'.
18221 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18222 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18224 (pkgdata_MODULES): Add `sun.mod'.
18225 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18226 * include/grub/partition.h (grub_sun_partition_map_init): New
18228 (grub_sun_partition_map_fini): Likewise.
18229 * partmap/sun.c: New file.
18230 * util/grub-emu.c (main): Initialize and de-initialize the sun
18231 partitionmap support.
18233 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
18235 This implements an Emacs-like menu entry editor.
18237 * normal/menu_entry.c: New file.
18239 * util/console.c (grub_ncurses_putchar): Translate some Unicode
18240 characters to ASCII.
18241 (saved_char): New variable.
18242 (grub_ncurses_checkkey): Rewritten completely.
18243 (grub_ncurses_getkey): Likewise.
18244 (grub_ncurses_init): Call raw instead of cbreak.
18246 * normal/menu.c (print_entry): Do not put a space.
18247 (init_page): Renamed to ...
18248 (grub_menu_init_page): ... this. All callers changed.
18249 (edit_menu_entry): Removed.
18250 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
18252 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
18254 * kern/misc.c (grub_vprintf): Call grub_refresh.
18256 * normal/menu.c (DISP_LEFT): Renamed to ...
18257 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
18258 * normal/menu.c (DISP_UP): Renamed to ...
18259 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
18260 * normal/menu.c (DISP_RIGHT): Renamed to ...
18261 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
18262 * normal/menu.c (DISP_DOWN): Renamed to ...
18263 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
18264 * normal/menu.c (DISP_HLINE): Renamed to ...
18265 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
18266 * normal/menu.c (DISP_VLINE): Renamed to ...
18267 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
18268 * normal/menu.c (DISP_UL): Renamed to ...
18269 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
18270 * normal/menu.c (DISP_UR): Renamed to ...
18271 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
18272 * normal/menu.c (DISP_LL): Renamed to ...
18273 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
18274 * normal/menu.c (DISP_LR): Renamed to ...
18275 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
18276 * normal/menu.c (TERM_WIDTH): Renamed to ...
18277 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
18278 * normal/menu.c (TERM_HEIGHT): Renamed to ...
18279 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
18280 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
18281 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
18282 * normal/menu.c (TERM_MARGIN): Renamed to ...
18283 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
18284 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
18285 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
18286 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
18287 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
18288 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
18289 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
18290 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
18291 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
18292 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
18293 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
18294 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
18295 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
18296 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
18297 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
18298 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
18299 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
18300 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
18301 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
18302 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
18303 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
18304 All callers changed.
18306 * include/grub/normal.h: New prototype.
18308 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18309 normal/menu_entry.c.
18310 (normal_mod_SOURCES): Likewise.
18311 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18312 (normal_mod_SOURCES): Likewise.
18314 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
18316 * include/grub/normal.h (grub_halt_init): New prototype.
18317 (grub_halt_fini): Likewise.
18318 (grub_reboot_init): Likewise.
18319 (grub_reboot_fini): Likewise.
18321 * util/grub-emu.c: Include signal.h.
18322 (main_env): New global variable.
18323 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
18325 (grub_machine_fini): New function.
18326 (main): Call grub_halt_init and grub_reboot_init before
18327 grub_main, and grub_reboot_fini and grub_halt_fini after it.
18328 Call setjmp with MAIN_ENV to go back afterwards.
18329 Call grub_machine_fini right before return.
18331 * include/grub/util/misc.h: Include setjmp.h.
18332 (main_env): New prototype.
18334 * include/grub/kernel.h (grub_machine_fini): New prototype.
18335 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
18336 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
18338 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
18339 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
18340 * term/i386/pc/console.c (grub_console_fini): Likewise.
18342 * util/i386/pc/misc.c: New file.
18344 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18345 util/i386/pc/misc.c, commands/i386/pc/halt.c and
18346 commands/i386/pc/reboot.c.
18348 2005-02-14 Guillem Jover <guillem@hadrons.org>
18350 * include/grub/dl.h (grub_dl_check_header): New prototype.
18351 (grub_arch_dl_check_header): Change return type to grub_err_t,
18352 remove size parameter and export function. Update all callers.
18353 * kern/dl.c (grub_dl_check_header): New function.
18354 (grub_dl_load_core): Use `grub_dl_check_header' instead of
18355 `grub_arch_dl_check_header'. Check ELF type. Check if sections
18356 are inside the core.
18357 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
18358 independent ELF header checks.
18359 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18360 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
18361 `grub_dl_check_header' instead of explicit checks. Check for the
18363 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
18364 `grub_dl_check_header' instead of explicit checks. Remove arch
18365 specific ELF header checks.
18367 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
18370 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
18372 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
18373 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
18375 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
18377 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
18378 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
18379 (part_map_iterate): Clear `grub_errno' and return 0 if
18380 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
18381 * partmap/amiga.c (amiga_partition_map_iterate): Return
18382 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
18383 * partmap/apple.c (apple_partition_map_iterate): Likewise.
18385 2005-02-01 Guillem Jover <guillem@hadrons.org>
18387 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
18390 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18392 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
18394 (grub_rescue_cmd_linux): New prototype.
18395 (grub_rescue_cmd_initrd): Likewise.
18396 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
18398 (grub_linux_release_mem): Release the memory for the initrd.
18399 (grub_load_linux): Renamed from this...
18400 (grub_rescue_cmd_linux): ...To this. Changed all callers.
18401 Changed `entry' not to be static. Loop over memory regions to
18402 find another one when the default fails.
18403 (grub_rescue_cmd_initrd): New function.
18404 (grub_linux_init): Remove function.
18405 (grub_linux_fini): Likewise.
18406 (GRUB_MOD_INIT): Register `initrd'.
18407 (GRUB_MOD_FINI): Unregister `initrd'.
18408 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
18410 (grub_linux_normal_fini): Likewise.
18411 (GRUB_MOD_INIT): Register `initrd'.
18412 (GRUB_MOD_FINI): Unregister `initrd'.
18414 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18416 * commands/help.c: New file.
18417 * normal/arg.c (show_help): Renamed to...
18418 (grub_arg_show_help): ... this.
18419 * commands/i386/pc/halt.c: New file.
18420 * commands/i386/pc/reboot.c: Likewise.
18421 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
18422 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
18423 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
18424 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
18426 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18428 (pkgdata_MODULES): Add `help.mod'.
18429 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
18430 * grub/i386/pc/init.h (grub_reboot): New prototype.
18431 (grub_halt): Likewise.
18432 * include/grub/normal.h (grub_arg_show_help): New prototype.
18433 (grub_help_init): Likewise.
18434 (grub_help_fini): Likewise.
18435 * util/grub-emu.c (main): Initialize and deinitialize the help
18438 * normal/cmdline.c (grub_cmdline_get): Doc fix.
18440 * normal/command.c (grub_command_init): Fixed the description of
18441 the `set' and `unset' commands.
18443 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18445 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
18447 * commands/ieee1275/halt.c: New file.
18448 * commands/ieee1275/reboot.c: Likewise.
18449 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
18450 `__attribute__ ((unused))'. Some GCS related fixed.
18451 (grub_suspend_init) [GRUB_UTIL]: Function removed.
18452 (grub_suspend_fini): Likewise.
18453 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
18455 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
18456 (halt_mod_CFLAGS): New variables.
18457 * include/grub/powerpc/ieee1275/ieee1275.h
18458 (grub_ieee1275_interpret): New prototype.
18460 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
18462 * include/grub/misc.h (memmove): New prototype.
18463 (memcpy): Likewise.
18465 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
18467 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
18468 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
18470 2005-01-22 Marco Gerards <metgerards@student.han.nl>
18472 * kern/misc.c (grub_strndup): Function rewritten.
18474 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
18476 * normal/menu.c (TERM_WIDTH): Macro redefined.
18477 (TERM_TOP_BORDER_Y): Likewise.
18478 (draw_border): Replaced while-loop by a for-loop. Make the number
18479 of lines consistent with the number of lines displayed in
18480 print_entries. Added a margin below the rectangle.
18481 (print_entry): Make the entry fit in the rectangle.
18482 (print_entries): Display the scroll arrows next to the right
18485 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18487 * fs/minix.c (grub_minix_find_file): Reserve more space for
18488 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
18489 `grub_strncpy' to copy `path' into it.
18491 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18493 Add the loopback device, a device via which files can be accessed
18496 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
18497 (pkgdata_MODULES): Add loopback.mod.
18498 (loopback_mod_SOURCES): New variable.
18499 (loopback_mod_CFLAGS): Likewise.
18500 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18502 (pkgdata_MODULES): Add loopback.mod.
18503 (loopback_mod_SOURCES): New variable.
18504 (loopback_mod_CFLAGS): Likewise.
18505 * disk/loopback.c: new file.
18506 * include/grub/normal.h (grub_loop_init): New prototype.
18507 (grub_loop_fini): New prototype.
18508 * util/grub-emu.c (main): Initialize and de-initialize loopback
18510 * include/grub/disk.h (grub_disk_dev_id): Add
18511 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
18513 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
18515 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
18517 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
18518 (suspend_mod_SOURCES): New variable.
18519 (suspend_mod_CFLAGS): Likewise.
18520 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
18522 * commands/ieee1275/suspend.c: New file.
18524 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
18526 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
18527 ((unused))' to `__attribute__ ((used))'.
18528 (GRUB_MOD_FINI): Likewise.
18529 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
18530 * genmk.rb (PModule): Assign space to common symbols when linking
18533 2005-01-20 Marco Gerards <metgerards@student.han.nl>
18535 * include/grub/mm.h (grub_mm_init_region): Change the type of the
18536 `unsigned' arguments to `grub_size_t'.
18537 (grub_malloc): Likewise.
18538 (grub_realloc): Likewise.
18539 (grub_memalign): Likewise.
18540 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
18541 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18542 * util/misc.c (grub_malloc): Likewise.
18543 (grub_realloc): Likewise.
18544 * kern/mm.c (get_header_from_pointer): Change the casts to
18545 `unsigned' into a cast to `grub_size_t'.
18547 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
18548 point to `currnode' when `currnode' is changed.
18550 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
18551 Schottelius <nico-linux@schottelius.org>.
18553 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
18555 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
18556 (note_path): Remove variable.
18557 (GRUB_IEEE1275_NOTE_NAME): New macro.
18558 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
18559 (grub_ieee1275_note_hdr): New structure.
18560 (grub_ieee1275_note_desc): Likewise.
18561 (grub_ieee1275_note): Likewise.
18562 (load_note): Remove `dir' argument. All callers updated. Remove
18563 `note_img' and `path'. Do not load a file from `note_path'.
18564 Initialize a struct grub_ieee1275_note and write that to `out'.
18565 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
18567 2005-01-05 Marco Gerards <metgerards@student.han.nl>
18569 * util/misc.c (grub_util_read_image): Revert last change. It
18570 called `grub_util_read_at', which seeks from the beginning of the
18573 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
18575 * TODO: Add note about endianness in grub-mkimage.
18576 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
18578 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
18579 (grub_mkimage_SOURCES): New target.
18580 * include/grub/kernel.h (grub_start_addr): Remove variable.
18581 (grub_end_addr): Likewise.
18582 (grub_total_module_size): Likewise.
18583 (grub_kernel_image_size): Likewise.
18584 (GRUB_MODULE_MAGIC): New constant.
18585 (grub_module_info): New structure.
18586 (grub_arch_modules_addr): New prototype.
18587 (grub_get_end_addr): Remove prototype.
18588 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
18589 * include/grub/powerpc/ieee1275/kernel.h: New file.
18590 * include/grub/util/misc.h (grub_util_get_fp_size): New
18592 (grub_util_read_at): Likewise.
18593 (grub_util_write_image_at): Likewise.
18594 * kern/main.c (grub_get_end_addr): Remove function.
18595 (grub_load_modules): Call grub_arch_modules_addr instead of using
18596 grub_end_addr. Look for a grub_module_info struct in memory. Use
18597 the grub_module_info fields instead of calling grub_get_end_addr
18598 as loop conditions. Move grub_add_unused_region code here.
18599 (grub_add_unused_region): Remove function.
18600 * kern/i386/pc/init.c: Include grub/cache.h.
18601 (grub_machine_init): Remove call to grub_get_end_addr. Remove
18602 one call to add_mem_region.
18603 (grub_arch_modules_addr): New function.
18604 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
18605 (grub_total_module_size): Likewise.
18606 Include grub/machine/kernel.h.
18607 (grub_arch_modules_addr): New function.
18608 * util/grub-emu.c (grub_end_addr): Remove variable.
18609 (grub_total_module_size): Likewise.
18610 (grub_arch_modules_addr): New function.
18611 * util/misc.c: Include unistd.h.
18612 (grub_util_get_fp_size): New function.
18613 (grub_util_read_at): Likewise.
18614 (grub_util_write_image_at): Likewise.
18615 (grub_util_read_image): Call grub_util_read_at.
18616 (grub_util_write_image): Call grub_util_write_image_at.
18617 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
18618 additional memory in kernel_img for a struct grub_module_info.
18619 Fill in that grub_module_info.
18620 * util/powerpc/ieee1275/grub-mkimage.c: New file.
18622 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18624 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
18626 * include/grub/powerpc/ieee1275/ieee1275.h
18627 (grub_ieee1275_milliseconds): New prototype.
18628 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
18630 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
18631 grub_ieee1275_milliseconds.
18633 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18635 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
18637 (find_options): New function.
18638 (cmain): Call find_options.
18639 * include/grub/powerpc/ieee1275/ieee1275.h
18640 (grub_ieee1275_realmode): New extern variable.
18641 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
18642 grub_map if grub_ieee1275_realmode is false.
18644 2004-12-29 Marco Gerards <metgerards@student.han.nl>
18646 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
18647 lines are inserted and make it work like readline. Reported by
18648 Vincent Pelletier <subdino2004@yahoo.fr>.
18650 2004-12-28 Marco Gerards <metgerards@student.han.nl>
18652 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
18654 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
18655 `kern/powerpc/cache.S'.
18657 2004-12-27 Marco Gerards <metgerards@student.han.nl>
18659 * genmk.rb: Handle the `Program' class in the main loop. Written
18660 by Johan Rydberg <jrydberg@gnu.org>.
18661 (Program): New class.
18662 (programs): New variable.
18663 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
18664 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
18665 instead of "grub/kernel.h". Include <grub/machine/init.h>.
18666 (help_arch): Function removed.
18667 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
18668 `powerpc/libgcc.h' and `loader.h'.
18669 (pkgdata_PROGRAMS): New variable.
18670 (sbin_UTILITIES): Variable removed.
18671 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
18672 (grubof_SOURCES): Variable re-defined so it only includes the
18673 core functionality.
18674 (grubof_CFLAGS): Remove `-DGRUBOF'.
18675 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
18676 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
18677 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
18678 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
18679 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
18680 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
18681 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
18682 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
18683 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
18684 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
18685 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
18686 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
18687 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
18688 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
18689 (pc_mod_CFLAGS): New variables.
18690 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
18691 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
18692 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
18693 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
18695 * include/grub/i386/pc/init.h (grub_os_area_addr)
18696 (rub_os_area_size): ... to here.
18697 * include/grub/powerpc/ieee1275/ieee1275.h
18698 (grub_ieee1275_entry_fn): Export symbol.
18699 * include/grub/powerpc/ieee1275/init.h: New file.
18700 * include/grub/powerpc/libgcc.h: Likewise.
18701 * include/grub/cache.h: Likewise.
18702 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
18703 <hollis@penguinppc.org>.
18704 * kern/dl.c: Include <grub/cache.h>.
18705 (grub_dl_flush_cache): New function.
18706 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
18708 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
18709 (grub_console_init): Removed prototypes.
18710 (grub_machine_init): Don't initialize the modules anymore.
18711 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
18713 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
18714 Macro undef removed.
18715 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
18716 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
18717 relocation `R_PPC_REL32'. Return an error when the relocation is
18719 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
18720 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
18721 * util/misc.c (grub_arch_sync_caches): Likewise.
18723 2004-12-19 Marco Gerards <metgerards@student.han.nl>
18725 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
18726 `symlist.c', add `grubof_symlist.c'.
18727 (symlist.c): Variable removed.
18728 (grubof_HEADERS): Variable added.
18729 (grubof_symlist.c): New target.
18730 (kernel_syms.lst): Use `grubof_HEADERS' instead of
18731 `kernel_img_HEADERS'.
18732 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
18733 * kern/powerpc/dl.c: New file.
18734 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
18736 (grub_arch_dl_relocate_symbols): Likewise.
18737 (grub_register_exported_symbols): Likewise.
18739 2004-12-13 Marco Gerards <metgerards@student.han.nl>
18741 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
18742 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
18743 to fail instead. Reported by Vincent Pelletier
18744 <subdino2004@yahoo.fr>.
18746 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
18747 it is not allocated. Reported by Vincent Pelletier
18748 <subdino2004@yahoo.fr>.
18750 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
18751 output so the output looks better.
18753 2004-12-04 Marco Gerards <metgerards@student.han.nl>
18755 Modulize the partition map support and add support for the amiga
18758 * commands/ls.c: Include <grub/partition.h> instead of
18759 <grub/machine/partition.h>.
18760 * kern/disk.c: Likewise.
18761 * kern/rescue.c: Likewise.
18762 * loader/i386/pc/chainloader.c: Likewise.
18763 * normal/cmdline.c: Likewise.
18764 * kern/powerpc/ieee1275/init.c: Likewise.
18765 (grub_machine_init): Call `grub_pc_partition_map_init',
18766 `grub_amiga_partition_map_init' and
18767 `grub_apple_partition_map_init'.
18768 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
18769 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
18770 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
18771 `partition.h' and `pc_partition.h'.
18772 (grub_setup_SOURCES): Remove
18773 `disk/i386/pc/partition.c'. Add `kern/partition.c',
18774 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18775 (grub_emu_SOURCES): Likewise.
18776 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
18777 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
18778 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
18779 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18780 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
18781 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18782 (grubof_SOURCES): Likewise.
18783 * disk/i386/pc/partition.c: File removed.
18784 * disk/powerpc/ieee1275/partition.c: Likewise.
18785 * include/grub/powerpc/ieee1275/partition.h: Likewise.
18786 * include/grub/i386/pc/partition.h: Likewise.
18787 * kern/partition.c: New file.
18788 * partmap/amiga.c: Likewise.
18789 * partmap/apple.c: Likewise.
18790 * partmap/pc.c: Likewise.
18791 * include/grub/partition.h: Likewise..
18792 * include/grub/pc_partition.h: Likewise.
18793 * util/grub-emu.c: Include <grub/partition.h> instead of
18794 <grub/machine/partition.h>.
18795 (main): Call `grub_pc_partition_map_init',
18796 `grub_amiga_partition_map_init' and
18797 `grub_apple_partition_map_init' and deinitialize afterwards.
18798 * util/i386/pc/biosdisk.c: Include `#include
18799 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18800 `<grub/machine/partition.h>'.
18801 * util/i386/pc/grub-setup.c: Likewise.
18802 * util/i386/pc/biosdisk.c: Likewise.
18803 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
18804 partition information in case of a PC partition.
18805 * util/i386/pc/grub-setup.c: Include `#include
18806 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18807 `<grub/machine/partition.h>'.
18808 (setup): Only access the PC specific partition information in case
18811 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
18813 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
18814 (grub_longjmp): Likewise.
18815 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
18817 * normal/powerpc/setjmp.S: New file.
18818 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
18819 `normal/powerpc/setjmp.S'.
18820 (grubof_CFLAGS): Add `-DGRUBOF'.
18821 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
18822 [GRUB_UTIL && !GRUBOF].
18824 2004-11-16 Marco Gerards <metgerards@student.han.nl>
18826 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
18827 property named `name'. Correctly handle the error returned by
18828 `grub_ieee1275_finddevice' if a device can not be opened.
18830 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
18832 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
18833 `actual' for negativity.
18834 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18837 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18839 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
18840 (PAGE_OFFSET): New macro.
18841 (CRTC_ADDR_PORT): Likewise.
18842 (CRTC_DATA_PORT): Likewise.
18843 (START_ADDR_HIGH_REGISTER): Likewise.
18844 (START_ADDR_LOW_REGISTER): Likewise.
18845 (GRAPHICS_ADDR_PORT): Likewise.
18846 (GRAPHICS_DATA_PORT): Likewise.
18847 (READ_MAP_REGISTER): Likewise.
18848 (INPUT_STATUS1_REGISTER): Likewise.
18849 (INPUT_STATUS1_VERTR_BIT): Likewise.
18850 (page): New variable.
18851 (wait_vretrace): New function.
18852 (set_read_map): Likewise.
18853 (set_start_address): Likewise.
18854 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
18856 (check_vga_mem): Take the page into account.
18857 (write_char): Likewise.
18858 (write_cursor): Likewise.
18859 (scroll_up): Likewise. Copy the page to the page that is not
18860 shown and switch between both pages.
18861 (grub_vga_putchar): Fix off by one error.
18862 (grub_vga_cls): Wait for the vertical retrace. Take the page into
18865 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18867 Add support for iso9660 (including rockridge).
18869 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18870 (iso9660_mod_SOURCES): New variable.
18871 (iso9660_mod_CFLAGS): Likewise.
18872 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18873 * include/grub/fs.h (grub_iso9660_init): New prototype.
18874 * util/grub-emu.c (main): Call `grub_iso9660_init'.
18875 * fs/iso9660.c: New file.
18877 * include/grub/misc.h (grub_strncat): New prototype.
18878 * kern/misc.c (grub_strncat): New function.
18880 * fs/hfs.c (grub_hfs_mount): Translate the error
18881 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
18882 * fs/jfs.c (grub_jfs_mount): Likewise.
18883 * fs/ufs.c (grub_ufs_mount): Likewise.
18885 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
18887 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
18888 which initialized BAT registers.
18889 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
18890 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18892 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
18893 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18895 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
18896 (grub_mapclaim): Likewise.
18897 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
18898 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
18901 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
18903 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
18904 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
18905 -ffreestanding and -msoft-float.
18907 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
18909 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
18910 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
18911 set in grub_ieee1275_flags.
18913 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
18915 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
18917 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
18918 grub_console_init first.
18919 Change the memory range used for grub_ieee1275_claim and
18920 grub_mm_init_region.
18921 Print an error message if the claim fails.
18922 Include <grub/misc.h>.
18924 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
18926 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
18927 Call grub_children_iterate for device nodes of type `scsi',
18929 (grub_ofdisk_open): Remove manual device alias resolution.
18930 Fix memory leak when device cannot be opened.
18931 * include/grub/powerpc/ieee1275/ieee1275.h
18932 (grub_children_iterate): New prototype.
18933 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
18935 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18936 Return -1 if args.size was -1.
18938 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18940 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
18941 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
18942 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
18943 Open Firmware's memory for it; claim memory from _start to _end.
18944 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
18945 (_end): New extern.
18946 (_start): Zero BSS from __bss_start to _end.
18947 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
18949 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
18951 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18953 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
18954 -1 if args.base was -1.
18956 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
18958 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
18959 escape sequence instead of a literal ^L. Also call
18960 grub_ofconsole_gotoxy.
18962 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
18964 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
18965 void * arguments to grub_addr_t. All callers updated. Also make
18966 the `result' argument optional.
18967 (grub_ieee1275_release): change void * arguments to grub_addr_t.
18968 All callers updated.
18970 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
18972 * commands/ls.c (grub_ls_list_files): Use the string following the
18973 initial ')', if present, as the filesystem path.
18974 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
18976 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
18978 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
18980 Make the source code of the menu interface more readable.
18982 * normal/menu.c: Include grub/mm.h.
18983 (TERM_WIDTH): New macro.
18984 (TERM_HEIGHT): Likewise.
18985 (TERM_INFO_HEIGHT): Likewise.
18986 (TERM_MARGIN): Likewise.
18987 (TERM_SCROLL_WIDTH): Likewise.
18988 (TERM_TOP_BORDER_Y): Likewise.
18989 (TERM_LEFT_BORDER_X): Likewise.
18990 (TERM_BORDER_WIDTH): Likewise.
18991 (TERM_MESSAGE_HEIGHT): Likewise.
18992 (TERM_BORDER_HEIGHT): Likewise.
18993 (TERM_NUM_ENTRIES): Likewise.
18994 (TERM_FIRST_ENTRY_Y): Likewise.
18995 (TERM_ENTRY_WIDTH): Likewise.
18996 (TERM_CURSOR_X): Likewise.
18997 (draw_border): Use macros instead of magic numbers.
18998 (print_entry): Likewise.
18999 (print_entries): Likewise.
19000 (run_menu): Likewise. Also, handle the key 'e'.
19001 (run_menu_entry): Ignore empty command lines.
19002 (print_message): Added a new argument EDIT. If EDIT is true,
19003 print a different message.
19004 (init_page): Likewise.
19005 (edit_menu_entry): New function. Not implemented yet.
19007 2004-09-17 Marco Gerards <metgerards@student.han.nl>
19009 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
19010 can be loaded from normal mode.
19012 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
19014 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
19015 (multiboot_mod_CFLAGS): New variables.
19016 * loader/i386/pc/linux_normal.c: New file.
19017 * loader/i386/pc/multiboot_normal.c: Likewise.
19019 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
19020 attribute `unused'.
19022 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
19023 `fdiro' to read the mode information from instead of `diro'.
19025 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
19026 looking up a symlink.
19028 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
19030 * normal/command.c (grub_command_execute): Don't parse the
19031 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
19032 flags of the command.
19034 * normal/menu.c (grub_menu_run): Fix typo.
19036 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
19038 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
19040 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
19041 `y + 1' instead of `y - 1'.
19043 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
19045 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
19047 From Hollis Blanchard <hollis@penguinppc.org>:
19048 * kern/misc.c (memmove): New alias for grub_memmove.
19049 (memcmp): New alias for grub_memcmp.
19050 (memset): New alias for grub_memset.
19051 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
19052 Change "int handle" to "grub_ieee1275_phandle_t handle".
19053 * include/grub/powerpc/ieee1275/ieee1275.h
19054 (grub_ieee1275_get_property): Likewise.
19056 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
19058 Added normal mode command `chainloader' as module chain.mod, which
19059 depends on normal.mod and _chain.mod.
19061 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
19062 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
19063 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
19065 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
19066 but arguments parsing moved to ...
19067 (grub_chainloader_cmd): ... here. New function.
19068 * include/grub/i386/pc/chainloader.h: New file.
19069 * loader/i386/pc/chainloader_normal.c: Likewise.
19071 2004-09-11 Marco Gerards <metgerards@student.han.nl>
19073 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
19074 (grub_mkimage_LDFLAGS): Likewise.
19075 (grub_emu_SOURCES): Likewise.
19076 (kernel_img_HEADERS): Added fshelp.h.
19077 * fs/ext2.c: Include <grub/fshelp.h>.
19078 (FILETYPE_REG): New macro.
19079 (FILETYPE_INO_REG): Likewise.
19080 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
19082 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
19084 (grub_fshelp_node): New struct.
19085 (grub_ext2_data): Added member `diropen'. Changed member `inode'
19087 (grub_ext2_get_file_block): Removed function.
19088 (grub_ext2_read_block): New function.
19089 (grub_ext2_read_file): Replaced parameter `data' by `node'.
19090 This function was written.
19091 (grub_ext2_mount): Read the root inode. Create a diropen struct.
19092 (grub_ext2_find_file): Removed function.
19093 (grub_ext2_read_symlink): New function.
19094 (grub_ext2_iterate_dir): Likewise.
19095 (grub_ext2_open): Rewritten.
19096 (grub_ext2_dir): Rewritten.
19097 * include/grub/fshelp.h: New file.
19098 * fs/fshelp.c: Likewise.
19100 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
19102 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
19103 (print_message): Add a missing newline.
19104 (run_menu): Added timeout support.
19105 (run_menu_entry): New local function.
19106 (grub_menu_run): Added support for booting.
19108 * kern/loader.c (grub_loader_is_loaded): New function.
19110 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
19111 (grub_get_rtc): Exported.
19113 * include/grub/i386/pc/time.h: Include grub/symbol.h.
19114 (grub_get_rtc): Exported.
19116 * include/grub/normal.h (struct grub_command_list): Remove
19117 constant from the member `command'.
19119 * include/grub/loader.h (grub_loader_is_loaded): Declared.
19121 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
19123 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
19125 2004-08-28 Marco Gerards <metgerards@student.han.nl>
19127 Add support for the JFS filesystem.
19129 * fs/jfs.c: New file.
19130 * include/grub/fs.h (grub_jfs_init): New prototype.
19131 (grub_jfs_fini): New prototype.
19132 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
19133 (grub_emu_SOURCES): Likewise.
19134 (pkgdata_MODULES): Add jfs.mod.
19135 (jfs_mod_SOURCES): New variable.
19136 (jfs_mod_CFLAGS): Likewise.
19137 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
19138 (grubof_SOURCES): Likewise.
19139 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
19141 * fs/fat.c (grub_fat_find_dir): Convert the filename little
19142 endian to the host endian.
19143 (grub_fat_utf16_to_utf8): Move function from there...
19144 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
19145 the endianness of the source string anymore.
19146 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
19148 2004-08-24 Marco Gerards <metgerards@student.han.nl>
19150 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
19151 (grub_boot_fini) [GRUB_UTIL]: Likewise.
19152 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
19153 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
19155 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
19156 (grub_hfs_iterate_dir): Make the function static. Add prototypes
19157 for `node_found' and `it_dir'.
19158 (grub_hfs_dir): Add prototype for `dir_hook'.
19160 * fs/minix.c (grub_minix_get_file_block): Add prototype for
19161 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
19162 and `indir32' to silence a gcc warning.
19164 * include/grub/fs.h (grub_hfs_init): New prototype.
19165 (grub_hfs_fini): Likewise.
19168 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
19170 Each disk device has its own id now. This is useful to make use
19171 of multiple disk devices.
19173 * include/grub/disk.h (grub_disk_dev_id): New enum.
19174 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
19175 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
19177 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
19178 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19180 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
19181 GRUB_DISK_DEVICE_OFDISK_ID as an id.
19183 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
19184 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19186 * include/grub/disk.h (struct grub_disk_dev): Added a new member
19187 "id" which is used by the cache manager.
19189 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
19192 2004-08-18 Marco Gerards <metgerards@student.han.nl>
19194 * fs/hfs.c: New file.
19195 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
19196 (grub_emu_SOURCES): Likewise.
19197 (pkgdata_MODULES): Add hfs.mod.
19198 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
19199 (grubof_SOURCES): Likewise.
19200 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
19202 * include/grub/misc.h (grub_strncasecmp): Add prototype.
19203 * kern/misc.c (grub_strncasecmp): Add function.
19205 2004-08-14 Marco Gerards <metgerards@student.han.nl>
19207 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
19210 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
19211 (grub_ext2_dir): In case the directory entry type is unknown, read
19214 2004-08-02 Peter Bruin <pjbruin@dds.nl>
19216 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
19217 grub_load_linux instead of grub_rescue_cmd_linux as second
19218 argument of grub_rescue_register_command.
19220 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
19222 2004-07-27 Marco Gerards <metgerards@student.han.nl>
19224 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
19226 * commands/boot.c: Remove the check for `GRUB_UTIL'.
19227 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
19228 `loader/powerpc/ieee1275/linux.c',
19229 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
19230 * include/grub/powerpc/ieee1275/ieee1275.h
19231 (grub_ieee1275_release): New prototype.
19232 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
19233 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
19234 normal, boot, linux and linux_normal.
19235 * loader/powerpc/ieee1275/linux.c: New file.
19236 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
19238 2004-07-12 Marco Gerards <metgerards@student.han.nl>
19240 * normal/arg.c (grub_arg_parse): Correct error handling after
19241 reallocating the argumentlist (check if `argl' is not null instead
19242 of checking if `args' is not null).
19243 * kern/mm.c (grub_realloc): Return the same pointer when using the
19244 same region, instead of returning the header address.
19246 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19248 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
19249 one block instead of two when looking for the initial partition.
19250 (grub_partition_probe): Initialize the local variable `p' with 0.
19251 Use base 10 for the grub_strtoul call.
19252 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
19253 need for one local variable.
19254 (grub_strtoul): Don't add the new value to `num', instead of that
19257 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19259 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
19260 (pxeboot_img_SOURCES): New variable.
19261 (pxeboot_img_ASFLAGS): Likewise.
19262 (pxeboot_img_LDFLAGS): Likewise.
19263 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
19264 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
19265 <lode_leroy@hotmail.com>.
19267 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19269 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
19270 there was no input.
19272 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19274 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
19275 the history buffer logic.
19277 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19279 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
19280 (FILETYPE_INO_SYMLINK): New macros.
19281 (grub_ext2_find_file): Check if the node is a directory using the
19282 inode stat information instead of using the filetype in the
19283 dirent. Exclude the first character of an absolute symlink.
19284 (grub_ext2_dir): Mask out the filetype part of the mode member of
19287 2004-05-24 Marco Gerards <metgerards@student.han.nl>
19289 Add support for UFS version 1 and 2. Add support for the minix
19290 filesystem version 1 and 2, both the variants with 14 and 30 long
19293 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
19295 (grub_emu_SOURCES): Likewise.
19296 (pkgdata_MODULES): Add ufs.mod and minix.mod.
19297 (ufs_mod_SOURCES): New variable.
19298 (ufs_mod_CFLAGS): Likewise.
19299 (minix_mod_SOURCES): Likewise.
19300 (minix_mod_CFLAGS): Likewise.
19301 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
19303 (grubof_SOURCES): Likewise.
19304 * fs/ufs.c: New file.
19305 * fs/minix.c: New file.
19306 * include/grub/fs.h (grub_ufs_init): New prototype.
19307 (grub_ufs_fini): Likewise.
19308 (grub_minix_init): Likewise.
19309 (grub_minix_fini): Likewise.
19310 * util/grub-emu.c (main): Initialize and deinitialize UFS and
19313 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
19315 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
19316 commands/ls.c, commands/terminal.c, commands/boot.c,
19317 commands/cmp.c and commands/cat.c.
19318 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
19320 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
19323 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19325 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
19326 and grub_, respectively. Because the conversion is trivial and
19327 mechanical, I omit the details here. Please refer to the CVS
19328 if you need more information.
19330 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19332 * include/pupa: Renamed to ...
19333 * include/grub: ... this.
19334 * util/i386/pc/pupa-mkimage.c: Renamed to ...
19335 * util/i386/pc/grub-mkimage.c: ... this.
19336 * util/i386/pc/pupa-setup.c: Renamed to ...
19337 * util/i386/pc/grub-setup.c: ... this.
19338 * util/pupa-emu.c: Renamed to ...
19339 * util/grub-emu.c: ... this.
19341 2004-03-29 Marco Gerards <metgerards@student.han.nl>
19343 Add support for the newworld apple macintosh (PPC). This has been
19344 tested on the powerbook 2000 only. It only adds support for
19345 generic ieee1275 functions, console and disk support. This should
19346 be easy to port to other architectures with support for Open
19349 * configure.ac: Accept the powerpc as host_cpu. In the case of
19350 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
19351 specific tests are only executed while building for the i386.
19352 Inverse test for crosscompile.
19353 * genmk.rb (Utility): Allow assembler files.
19354 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
19355 * conf/powerpc-ieee1275.rmk: New file.
19356 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
19357 * disk/powerpc/ieee1275/partition.c: Likewise.
19358 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
19359 * include/pupa/powerpc/ieee1275/console.h: Likewise.
19360 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
19361 * include/pupa/powerpc/ieee1275/time.h: Likewise.
19362 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
19363 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
19364 * include/pupa/powerpc/ieee1275/loader.h
19365 * include/pupa/powerpc/setjmp.h: Likewise.
19366 * include/pupa/powerpc/types.h: Likewise.
19367 * kern/powerpc/ieee1275/init.c: Likewise.
19368 * kern/powerpc/ieee1275/openfw.c: Likewise.
19369 * term/powerpc/ieee1275/ofconsole.c: Likewise.
19371 These files were written by Johan Rydberg
19372 (jrydberg@night.trouble.net) and I only modified them slightly.
19374 * boot/powerpc/ieee1275/cmain.c: New file.
19375 * boot/powerpc/ieee1275/crt0.S: Likewise.
19376 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
19377 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
19379 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
19381 * Makefile.in: Update copyright.
19382 * genmodsrc.sh: Likewise.
19383 * gensymlist.sh: Likewise.
19384 * term/i386/pc/vga.c: Indent correctly.
19386 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
19387 bugreporting address.
19388 * util/i386/pc/pupa-setup.c (usage): Likewise,
19389 (main): Call pupa_ext2_init and pupa_ext2_fini.
19391 * fs/fat.c (log2): Renamed to ...
19392 (fat_log2): ... this.
19393 All callers changed.
19394 * kern/misc.c (memcpy): Alias to pupa_memmove.
19395 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
19397 * util/console.c (pupa_ncurses_fini): Return 0.
19399 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
19400 Move fail label here.
19401 [__GNU__]: Don't warn when using stat.
19402 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
19403 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
19404 long int. Use strtol instead of strtoul.
19406 2004-03-14 Marco Gerards <metgerards@student.han.nl>
19408 * commands/boot.c: New file.
19409 * commands/cat.c: Likewise.
19410 * commands/cmp.c: Likewise.
19411 * commands/ls.c: Likewise.
19412 * commands/terminal.c: Likewise.
19413 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
19414 (pupa_register_command): Changed interface to match the new
19416 (pupa_command_execute): Changed (almost rewritten) so it uses
19417 pupa_split_command. Added support for setting variables using the
19419 (rescue_command): Changed to work with the new argument parser.
19420 (terminal_command): Moved from here to commands/terminal.c.
19421 (set_command): New function.
19422 (unset_command): New function.
19423 (insmod_command): New function.
19424 (rmmod_command): New function.
19425 (lsmod_command): New function.
19426 (pupa_command_init): Don't initialize the command terminal
19427 anymore. Initialize the commands set, unset, insmod, rmmod and
19429 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
19430 (kernel_img_HEADERS): Add arg.h and env.h.
19431 (pupa_mkimage_LDFLAGS): Add kern/env.c.
19432 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
19433 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
19435 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
19437 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
19438 (boot_mod_SOURCES): New variable.
19439 (terminal_mod_SOURCES): Likewise.
19440 (ls_mod_SOURCES): Likewise.
19441 (cmp_mod_SOURCES): Likewise.
19442 (cat_mod_SOURCES): Likewise.
19444 * normal/arg.c: New file.
19445 * kern/env.c: Likewise.
19446 * include/pupa/arg.h: Likewise.
19447 * include/pupa/env.h: Likewise.
19448 * font/manager.c (font_command): Changed to match argument parsing
19450 (PUPA_MOD_INIT): Likewise.
19451 * hello/hello.c (pupa_cmd_hello): Likewise.
19452 (PUPA_MOD_INIT): Likewise.
19453 * include/pupa/disk.h: Include <pupa/device.h>.
19454 (pupa_print_partinfo): New prototype.
19455 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
19456 (pupa_dl_get_prefix): Likewise.
19457 * include/pupa/misc.h: Include <pupa/err.h>.
19458 (pupa_isgraph): New prototype.
19459 (pupa_isdigit): Likewise.
19460 (pupa_split_cmdline): Likewise.
19461 * include/pupa/normal.h: Include <pupa/arg.h>.
19462 (pupa_command): Changed the prototype of the member `func' to
19463 match the argument parsing interface. Added member `options'.
19464 (pupa_register_command): Updated to match function.
19465 (pupa_arg_parse): New prototype.
19466 (pupa_hello_init) [PUPA_UTIL]: New prototype.
19467 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
19468 (pupa_ls_init) [PUPA_UTIL]: Likewise.
19469 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
19470 (pupa_cat_init) [PUPA_UTIL]: Likewise.
19471 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
19472 (pupa_boot_init) [PUPA_UTIL]: Likewise.
19473 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
19474 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
19475 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
19476 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
19477 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
19478 * kern/disk.c: Include <pupa/file.h>.
19479 (pupa_print_partinfo): New function.
19480 * kern/dl.c: Include <pupa/env.h>.
19481 (pupa_dl_dir): Variable removed.
19482 (pupa_dl_load): Use the environment variable `prefix' instead of
19483 the variable pupa_dl_dir.
19484 (pupa_dl_set_prefix): Function removed.
19485 (pupa_dl_get_prefix): Likewise.
19486 * kern/i386/pc/init.c: Include <pupa/env.h>.
19487 (pupa_machine_init): Use the environment variable `prefix' instead of
19488 using pupa_dl_set_prefix to set the prefix.
19489 * kern/main.c: Include <pupa/env.h>.
19490 (pupa_set_root_dev): Use the environment variable `prefix' instead of
19491 using pupa_dl_get_prefix to get the prefix.
19492 * kern/misc.c: Include <pupa/env.h>.
19493 (pupa_isdigit): New function.
19494 (pupa_isgraph): Likewise.
19495 (pupa_ftoa): Likewise.
19496 (pupa_vsprintf): Added support for printing values of the type
19497 `double'. Make it possible to format variable output when using
19498 formatting like `%1.2%f'.
19499 (pupa_split_cmdline): New function.
19500 * kern/rescue.c: Include <pupa/env.h>.
19501 (next_word): Removed function.
19502 (pupa_rescue_cmd_prefix): Likewise.
19503 (pupa_rescue_cmd_set): New function.
19504 (pupa_rescue_cmd_unset): New function.
19505 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
19506 split the command line instead of splitting it here. Added
19507 support for setting variables using the syntax `foo=bar'. Don't
19508 initialize the prefix command anymore. Initialized the set and
19510 * normal/cmdline.c: Include <pupa/env.h>.
19511 (pupa_tab_complete): Added prototypes for print_simple_completion,
19512 print_partition_completion, add_completion, iterate_commands,
19513 iterate_dev, iterate_part and iterate_dir. Moved code to print
19514 partition information from here to kern/disk.c.
19515 (pupa_cmdline_run): Don't check if the function exists anymore.
19516 * normal/main.c: Include <pupa/env.h>.
19517 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
19518 instead of using pupa_dl_get_prefix to get the prefix.
19519 * term/i386/pc/vga.c: Include <pupa/arg.h>.
19520 (check_vga_mem): Cast pointers to `void *' to silence a gcc
19522 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
19523 (pupa_vga_setcolor): Declare unused variables with `__attribute__
19524 ((unused))' to silence a gcc warning.
19525 (pupa_vga_setcolor): Likewise.
19526 (debug_command): Changed to match argument parsing
19528 * util/pupa-emu.c: Include <pupa/env.h>.
19529 (options): Added 0's for unused fields to silence a gcc warning.
19531 (main): Use the environment variable `prefix' instead of using
19532 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
19533 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
19536 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
19537 * util/misc.c: Include <malloc.h>.
19538 (pupa_malloc): Rewritten so errors are correctly reported.
19539 (pupa_realloc): Likewise.
19540 (pupa_memalign): Likewise.
19541 (pupa_mm_init_region): Declare unused variables with
19542 `__attribute__ ((unused))' to silence a gcc warning.
19543 * normal/i386/setjmp.S: Remove tab at the end of the file to
19544 silence a gcc warning.
19545 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
19546 variables with `__attribute__ ((unused))' to silence a gcc
19548 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
19549 local variable i unsigned to silence a gcc warning.
19551 * kern/term.c: Include <pupa/misc.h>.
19552 (pupa_more_lines): New variable.
19553 (pupa_more): Likewise.
19554 (pupa_putcode): When the pager is active pause at the end of every
19556 (pupa_set_more): New function.
19557 * include/pupa/term.h (pupa_set_more): New prototype.
19560 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
19562 Now this project is GRUB 2 rather than PUPA. The location of
19563 the CVS repository was moved to GRUB's.
19565 * configure.ac: Use bug-grub as the reporting address.
19566 Use GRUB instead of PUPA.
19567 Change the version number to 1.90.
19569 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
19571 * genkernsyms.sh: Updated copyright information.
19572 * genmk.rb: Likewise.
19573 * genmodsrc.sh: Likewise.
19574 * gensymlist.sh: Likewise.
19575 * boot/i386/pc/boot.S: Likewise.
19576 * boot/i386/pc/diskboot.S: Likewise.
19577 * disk/i386/pc/biosdisk.c: Likewise.
19578 * disk/i386/pc/partition.c: Likewise.
19579 * font/manager.c: Likewise.
19580 * fs/ext2.c: Likewise.
19581 * fs/fat.c: Likewise.
19582 * include/pupa/boot.h: Likewise.
19583 * include/pupa/device.h: Likewise.
19584 * include/pupa/disk.h: Likewise.
19585 * include/pupa/dl.h: Likewise.
19586 * include/pupa/elf.h: Likewise.
19587 * include/pupa/err.h: Likewise.
19588 * include/pupa/file.h: Likewise.
19589 * include/pupa/font.h: Likewise.
19590 * include/pupa/fs.h: Likewise.
19591 * include/pupa/kernel.h: Likewise.
19592 * include/pupa/loader.h: Likewise.
19593 * include/pupa/misc.h: Likewise.
19594 * include/pupa/mm.h: Likewise.
19595 * include/pupa/net.h: Likewise.
19596 * include/pupa/normal.h: Likewise.
19597 * include/pupa/rescue.h: Likewise.
19598 * include/pupa/setjmp.h: Likewise.
19599 * include/pupa/symbol.h: Likewise.
19600 * include/pupa/term.h: Likewise.
19601 * include/pupa/types.h: Likewise.
19602 * include/pupa/i386/setjmp.h: Likewise.
19603 * include/pupa/i386/types.h: Likewise.
19604 * include/pupa/i386/pc/biosdisk.h: Likewise.
19605 * include/pupa/i386/pc/boot.h: Likewise.
19606 * include/pupa/i386/pc/console.h: Likewise.
19607 * include/pupa/i386/pc/init.h: Likewise.
19608 * include/pupa/i386/pc/kernel.h: Likewise.
19609 * include/pupa/i386/pc/linux.h: Likewise.
19610 * include/pupa/i386/pc/loader.h: Likewise.
19611 * include/pupa/i386/pc/memory.h: Likewise.
19612 * include/pupa/i386/pc/multiboot.h: Likewise.
19613 * include/pupa/i386/pc/partition.h: Likewise.
19614 * include/pupa/i386/pc/time.h: Likewise.
19615 * include/pupa/i386/pc/vga.h: Likewise.
19616 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
19617 * include/pupa/util/getroot.h: Likewise.
19618 * include/pupa/util/misc.h: Likewise.
19619 * include/pupa/util/resolve.h: Likewise.
19620 * kern/device.c: Likewise.
19621 * kern/disk.c: Likewise.
19622 * kern/dl.c: Likewise.
19623 * kern/err.c: Likewise.
19624 * kern/file.c: Likewise.
19625 * kern/fs.c: Likewise.
19626 * kern/loader.c: Likewise.
19627 * kern/main.c: Likewise.
19628 * kern/misc.c: Likewise.
19629 * kern/mm.c: Likewise.
19630 * kern/rescue.c: Likewise.
19631 * kern/term.c: Likewise.
19632 * kern/i386/dl.c: Likewise.
19633 * kern/i386/pc/init.c: Likewise.
19634 * kern/i386/pc/lzo1x.S: Likewise.
19635 * kern/i386/pc/startup.S: Likewise.
19636 * loader/i386/pc/chainloader.c: Likewise.
19637 * loader/i386/pc/linux.c: Likewise.
19638 * loader/i386/pc/multiboot.c: Likewise.
19639 * normal/cmdline.c: Likewise.
19640 * normal/command.c: Likewise.
19641 * normal/main.c: Likewise.
19642 * normal/menu.c: Likewise.
19643 * normal/i386/setjmp.S: Likewise.
19644 * term/i386/pc/console.c: Likewise.
19645 * term/i386/pc/vga.c: Likewise.
19646 * util/console.c: Likewise.
19647 * util/genmoddep.c: Likewise.
19648 * util/misc.c: Likewise.
19649 * util/pupa-emu.c: Likewise.
19650 * util/resolve.c: Likewise.
19651 * util/unifont2pff.rb: Likewise.
19652 * util/i386/pc/biosdisk.c: Likewise.
19653 * util/i386/pc/getroot.c: Likewise.
19654 * util/i386/pc/pupa-mkimage.c: Likewise.
19655 * util/i386/pc/pupa-setup.c: Likewise.
19657 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
19659 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
19660 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
19661 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
19662 reading and reset it after reading.
19663 (pupa_ext2_close): Return PUPA_ERR_NONE.
19665 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
19667 (struct linux_kernel_header): Add kernel_version and
19669 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
19670 pupa_file_read succeeds.
19671 (pupa_rescue_cmd_initrd): Implement.
19673 2003-12-03 Marco Gerards <metgerards@student.han.nl>
19675 * fs/ext2.c (pupa_ext2_label): New function.
19676 (pupa_ext2_fs): Added label.
19677 * fs/fat.c (pupa_fat_label): New function.
19678 (pupa_fat_fs): Added label.
19679 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
19681 * kern/misc.c (pupa_strndup): New function.
19682 * include/pupa/misc.h (pupa_strndup): New prototype.
19684 * include/pupa/normal.h: Include <pupa/err.h>.
19685 (pupa_set_history): New prototype.
19686 (pupa_iterate_commands): New prototype.
19687 * normal/cmdline.c: Include <pupa/machine/partition.h>,
19688 <pupa/disk.h>, <pupa/file.h>.
19689 (hist_size): New variable.
19690 (hist_lines): Likewise.
19691 (hist_end): Likewise.
19692 (hist_used): Likewise.
19693 (pupa_set_history): New function.
19694 (pupa_history_get): Likewise.
19695 (pupa_history_add): Likewise.
19696 (pupa_history_replace): Likewise.
19697 (pupa_tab_complete): Likewise.
19698 (pupa_cmdline_run): Added tab completion and history buffer. Tab
19699 completion shows partitionnames while completing partitions, this
19700 feature was suggested by Jeff Bailey.
19701 * normal/command.c (pupa_iterate_commands): New function.
19702 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
19703 (pupa_normal_init): Initialize history buffer.
19704 (PUPA_MOD_INIT): Likewise.
19705 (pupa_normal_fini): Free the history buffer.
19706 (PUPA_MOD_FINI): Likewise.
19708 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
19711 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
19712 * configure.ac [i386]: Check for regparam bug.
19713 (NESTED_FUNC_ATTR) [! i386]: Defined.
19715 2003-11-17 Marco Gerards <metgerards@student.han.nl>
19717 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
19718 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
19719 (pupa_emu_SOURCES): New variable.
19720 (pupa_emu_LDFLAGS): Likewise.
19721 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
19722 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
19723 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
19724 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19725 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
19726 (pupa_jmp_buf): New typedef.
19727 (pupa_setjmp) [PUPA_UTIL]: New macro.
19728 (pupa_longjmp) [PUPA_UTIL]: Likewise.
19729 * include/pupa/term.h (struct pupa_term): New member `refresh'.
19730 (pupa_refresh): New prototype.
19731 * include/pupa/util/getroot.h: New file.
19732 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
19734 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
19735 (pupa_rescue_cmd_cat): Likewise.
19736 (pupa_rescue_cmd_ls): Likewise.
19737 (pupa_rescue_cmd_testload): Likewise.
19738 (pupa_rescue_cmd_lsmod): Likewise.
19739 * normal/cmdline.c (pupa_cmdline_get): Likewise.
19740 * normal/menu.c (run_menu): Likewise.
19741 * kern/term.c (pupa_cls): Likewise.
19742 (pupa_refresh): New function.
19743 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
19744 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19745 * util/console.c: New file.
19747 * util/i386/pc/getroot.c: New file.
19748 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
19749 (pupa_putchar): New function.
19750 (pupa_refresh): Likewise.
19751 (xgetcwd): Function moved to ...
19752 (strip_extra_slashes): Likewise.
19753 (get_prefix): Likewise.
19754 * util/i386/pc/getroot.c: ... here.
19755 (find_root_device): Function moved and renamed to...
19756 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
19757 Changed all callers.
19758 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
19760 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
19761 Changed all callers.
19762 * util/misc.c (pupa_memalign): New function.
19763 (pupa_mm_init_region): Likewise.
19764 (pupa_register_exported_symbols): Likewise.
19765 (pupa_putchar): Function removed.
19766 * util/pupa-emu.c: New file.
19768 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
19770 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
19771 (_multiboot_mod_SOURCES): New variable.
19772 (_multiboot_mod_CFLAGS): Likewise.
19773 * loader/i386/pc/multiboot.c: New file.
19774 * include/pupa/i386/pc/multiboot.h: Likewise.
19775 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
19776 (pupa_multiboot_real_boot): New function.
19777 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
19778 (pupa_multiboot_real_boot): New prototype.
19779 (pupa_rescue_cmd_multiboot): Likewise
19780 (pupa_rescue_cmd_module): Likewise.
19782 * kern/loader.c (pupa_loader_set): Continue when
19783 pupa_loader_unload_func() fails.
19784 (pupa_loader_unset): New function.
19785 * include/pupa/loader.h (pupa_loader_unset): New prototype.
19787 * kern/misc.c (pupa_stpcpy): New function.
19788 * include/pupa/misc.h (pupa_stpcpy): New prototype.
19790 2003-11-12 Marco Gerards <metgerards@student.han.nl>
19792 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
19793 for available extensions.
19795 * include/pupa/i386/pc/time.h: New file.
19796 * kern/disk.c: Include <pupa/machine/time.h>.
19797 (PUPA_CACHE_TIMEOUT): New macro.
19798 (pupa_last_time): New variable.
19799 (pupa_disk_open): Flush the cache when there was a timeout.
19800 (pupa_disk_close): Reset the timer.
19801 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
19803 * util/misc.c: Include <sys/times.h>
19804 (pupa_get_rtc): New function.
19806 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
19808 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
19810 (pupa_ext2_get_file_block): Use blocks member.
19812 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
19813 first block. Return -1 instead of pupa_errno on error.
19815 2003-10-27 Marco Gerards <metgerards@student.han.nl>
19817 * README: In the pupa-mkimage example use _chain instead of chain
19818 and ext2 instead of fat.
19819 * TODO: Replace ext2fs with jfs as an example. Add an item for
19820 adding journal playback for ext2fs.
19821 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
19822 (pkgdata_MODULES): Added ext2.mod.
19823 (ext2_mod_SOURCES): New variable.
19824 (ext2_mod_CFLAGS): Likewise.
19825 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
19826 * include/pupa/misc.h (pupa_strncpy): New prototype.
19827 (pupa_strcat): Likewise.
19828 (pupa_strncmp): Likewise.
19829 * kern/misc.c (pupa_strcat): Enable function.
19830 (pupa_strncpy): New function.
19831 (pupa_strncmp): Likewise.
19832 * fs/ext2.c: New file.
19834 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
19835 when the read failed before retrying.
19836 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
19837 (_FILE_OFFSET_BITS): Likewise.
19838 * configure.ac: Added AC_SYS_LARGEFILE.
19840 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19842 * genmk.rb (PModule#rule): Make sure to get only symbol names
19843 from the output of nm.
19844 Reported by Robert Millan <zeratul2@wanadoo.es>.
19846 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19848 I forgot to check in these changes for a long time. This adds
19849 incomplete support for VGA console, and this is still very
19850 buggy. Also, a lot of consideration is required for I18N,
19851 UNICODE, and VGA font issues. Therefore, assume that this is
19852 such that "better than nothing".
19854 * font/manager.c: New file.
19855 * include/pupa/font.h: Likewise.
19856 * include/pupa/i386/pc/vga.h: Likewise.
19857 * term/i386/pc/vga.c: Likewise.
19858 * util/unifont2pff.rb: Likewise.
19860 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
19861 (pkgdata_MODULES): Added vga.mod and font.mod.
19862 (vga_mod_SOURCES): New variables.
19863 (vga_mod_CFLAGS): Likewise.
19864 (font_mod_SOURCES): Likewise.
19865 (font_mod_CFLAGS): Likewise.
19867 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
19869 * include/pupa/term.h: Include pupa/err.h.
19870 (struct pupa_term): Added init and fini.
19871 Changed the argument of putchar to pupa_uint32_t.
19873 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
19874 (pupa_console_real_putchar): New prototype.
19875 (pupa_console_putchar): Removed.
19876 (pupa_console_checkkey): Exported.
19877 (pupa_console_getkey): Likewise.
19879 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
19882 * kern/term.c (pupa_term_set_current): Rewritten.
19883 (pupa_putchar): Likewise.
19884 (pupa_putcode): New function.
19886 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
19887 (pupa_console_real_putchar): ... this.
19888 (pupa_vga_set_mode): New function.
19889 (pupa_vga_get_font): Likewise.
19891 * normal/command.c: Include pupa/term.h.
19892 (terminal_command): New function.
19893 (pupa_command_init): Register the command "terminal".
19895 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
19896 (DISP_UP): Likewise.
19897 (DISP_RIGHT): Likewise.
19898 (DISP_DOWN): Likewise.
19899 (DISP_HLINE): Likewise.
19900 (DISP_VLINE): Likewise.
19901 (DISP_UL): Likewise.
19902 (DISP_UR): Likewise.
19903 (DISP_LL): Likewise.
19904 (DISP_LR): Likewise.
19906 * term/i386/pc/console.c (pupa_console_putchar): New function.
19908 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
19910 * util/resolve.c (pupa_util_resolve_dependencies): BUG
19911 FIX. Reverse the path_list.
19913 * include/pupa/normal.h: Export pupa_register_command and
19914 pupa_unregister_command.
19916 * hello/hello.c (pupa_cmd_hello): New module.
19917 * conf/i386-pc.rmk: Added hello.mod.
19919 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
19921 * kern/i386/pc/lzo1x.S: New file.
19923 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
19924 (compress_kernel): New variable.
19925 (generate_image): Heavily modified to support compressing a
19926 large part of the core image.
19928 * util/misc.c (pupa_util_read_image): Fix a file descriptor
19930 (pupa_util_load_image): New function.
19932 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
19933 (pupa_compressed_size): New variable.
19934 (codestart): Enable Gate A20 here.
19935 Decompress the compressed part of the core image.
19936 Rearrange the code to put functions and variables which are
19937 required for initialization in the non-compressed part.
19940 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
19943 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
19945 * include/pupa/i386/pc/kernel.h
19946 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
19947 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
19948 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
19949 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
19950 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
19952 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
19954 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
19955 (Utility#rule): Likewise.
19957 * configure.ac: Check if LZO is available.
19959 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
19961 * include/pupa/normal.h: New file.
19962 * include/pupa/setjmp.h: Likewise.
19963 * include/pupa/i386/setjmp.h: Likewise.
19964 * normal/cmdline.c: Likewise.
19965 * normal/command.c: Likewise.
19966 * normal/main.c: Likewise.
19967 * normal/menu.c: Likewise.
19968 * normal/i386/setjmp.S: Likewise.
19970 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
19971 (pupa_rescue_cmd_initrd): Likewise.
19973 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
19976 * kern/i386/pc/startup.S (translation_table): New variable.
19977 (translate_keycode): New function.
19978 (pupa_console_getkey): Call translate_keycode.
19980 * kern/rescue.c (attempt_normal_mode): New function.
19981 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
19982 it failed, print a message.
19984 * kern/mm.c (pupa_real_malloc): Print more information when a
19985 free magic is broken.
19986 (pupa_free): If the first free header is not free actually, set
19989 * kern/main.c (pupa_load_normal_mode): Just load the module
19991 (pupa_main): Don't print the message
19992 "Entering into rescue mode..." here.
19994 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
19996 (pupa_rescue_cmd_initrd): Likewise.
19997 (pupa_rescue_cmd_initrd): Likewise.
19999 * include/pupa/symbol.h (FUNCTION): Specify the type.
20000 (VARIABLE): Likewise.
20002 * include/pupa/err.h (pupa_err_t): Added
20003 PUPA_ERR_UNKNOWN_COMMAND.
20005 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
20006 (pupa_dl_get_prefix): Likewise.
20008 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
20009 Added _chain.mod and _linux.mod instead of chain.mod and
20011 (chain_mod_SOURCES): Renamed to ...
20012 (_chain_mod_SOURCES): ... this.
20013 (chain_mod_CFLAGS): Renamed to ...
20014 (_chain_mod_CFLAGS): ... this.
20015 (linux_mod_SOURCES): Renamed to ...
20016 (_linux_mod_SOURCES): ... this.
20017 (linux_mod_CFLAGS): Renamed to ...
20018 (_linux_mod_CFLAGS): ... this.
20019 (normal_mod_SOURCES): New variable.
20020 (normal_mod_CFLAGS): Likewise.
20021 (normal_mod_ASFLAGS): Likewise.
20023 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
20025 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
20028 * kern/dl.c (pupa_dl_ref): Refer depending modules
20030 (pupa_dl_unref): Unrefer depending modules recursively.
20031 Don't call pupa_dl_unload implicitly, because PUPA can crash if
20032 a module is unloaded before one depending on that module is
20034 (pupa_dl_unload): Unload depending modules explicitly,
20037 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
20039 * include/pupa/i386/pc/linux.h: New file.
20040 * loader/i386/pc/linux.c: Likewise.
20042 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
20044 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
20045 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
20046 of PUPA_CHAINLOADER_BOOT_SECTOR.
20048 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
20049 (pupa_linux_prot_size): New variable.
20050 (pupa_linux_tmp_addr): Likewise.
20051 (pupa_linux_real_addr): Likewise.
20052 (pupa_linux_boot_zimage): New function.
20053 (pupa_linux_boot_bzimage): Likewise.
20055 * kern/i386/pc/init.c (struct mem_region): New structure.
20056 (MAX_REGIONS): New macro.
20057 (mem_regions): New variable.
20058 (num_regions): Likewise.
20059 (pupa_os_area_addr): Likewise.
20060 (pupa_os_area_size): Likewise.
20061 (pupa_lower_mem): Likewise.
20062 (pupa_upper_mem): Likewise.
20063 (add_mem_region): New function.
20064 (compact_mem_regions): Likewise.
20065 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
20066 the size of the conventional memory and that of so-called upper
20067 memory (before the first memory hole).
20068 Instead of adding each found region to free memory, use
20069 add_mem_region and add them after removing overlaps.
20070 Also, add only 1/4 of the upper memory to free memory. The rest
20071 is used for loading OS images. Maybe this is ad hoc, but this
20072 makes it much easier to relocate OS images when booting.
20074 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
20075 (pupa_enter_rescue_mode): Don't register initrd and module.
20077 * kern/mm.c: Include pupa/dl.h.
20079 * kern/main.c: Include pupa/file.h and pupa/device.h.
20081 * kern/loader.c (pupa_loader_load_module_func): Removed.
20082 (pupa_loader_load_module): Likewise.
20084 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
20087 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
20088 (pupa_linux_tmp_addr): Likewise.
20089 (pupa_linux_real_addr): Likewise.
20090 (pupa_linux_boot_zimage): Likewise.
20091 (pupa_linux_boot_bzimage): Likewise.
20093 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
20094 (pupa_upper_mem): Likewise.
20095 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
20096 module is too dangerous.
20098 * include/pupa/loader.h (pupa_os_area_addr): Declared.
20099 (pupa_os_area_size): Likewise.
20100 (pupa_loader_set): Remove the first argument. Loader doesn't
20101 manage modules or initrd any longer.
20102 (pupa_loader_load_module): Removed.
20104 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
20105 (linux_mod_SOURCES): New variable.
20106 (linux_mod_CFLAGS): Likewise.
20108 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
20110 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
20111 the length of a blocklist correctly.
20113 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
20114 Use ioctl only if the OS file is a block device.
20115 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
20116 not very useful for normal files.
20118 * kern/main.c (pupa_set_root_dev): New function.
20119 (pupa_load_normal_mode): Likewise.
20120 (pupa_main): Call those above.
20122 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
20125 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
20127 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20129 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
20130 (setup): Configure the installed partition information and the
20133 * loader/i386/pc/chainloader.c (my_mod): New variable.
20134 (pupa_chainloader_unload): New function.
20135 (pupa_rescue_cmd_chainloader): Refer itself.
20136 (PUPA_MOD_INIT): Save its own module in MY_MOD.
20138 * kern/i386/pc/startup.S (install_partition): Removed.
20139 (version_string): Likewise.
20140 (config_file): Likewise.
20141 (pupa_install_dos_part): New variable.
20142 (pupa_install_bsd_part): Likewise.
20143 (pupa_prefix): Likewise.
20144 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
20146 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
20148 (make_install_device): New function.
20149 (pupa_machine_init): Set the dl prefix.
20151 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
20152 (buf): Renamed to ...
20153 (linebuf): ... this.
20154 (pupa_rescue_cmd_prefix): New function.
20155 (pupa_rescue_cmd_insmod): Likewise.
20156 (pupa_rescue_cmd_rmmod): Likewise.
20157 (pupa_rescue_cmd_lsmod): Likewise.
20158 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
20161 * kern/mm.c (pupa_memalign): If failed even after invalidating
20162 disk caches, unload unneeded modules and retry.
20164 * kern/misc.c (pupa_memmove): New function.
20165 (pupa_memcpy): Removed.
20166 (pupa_strcpy): New function.
20167 (pupa_itoa): Made static.
20169 * kern/dl.c (pupa_dl_iterate): New function.
20170 (pupa_dl_ref): Likewise.
20171 (pupa_dl_unref): Likewise.
20172 (pupa_dl_unload): Return if succeeded or not.
20173 (pupa_dl_unload_unneeded): New function.
20174 (pupa_dl_unload_all): Likewise.
20175 (pupa_dl_init): Renamed to ...
20176 (pupa_dl_set_prefix): ... this.
20177 (pupa_dl_get_prefix): New function.
20179 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
20180 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
20181 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
20182 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
20183 (pupa_install_dos_part): Declared.
20184 (pupa_install_bsd_part): Likewise.
20185 (pupa_prefix): Likewise.
20186 (pupa_boot_drive): Likewise.
20188 * include/pupa/types.h: Fix a typo.
20190 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
20192 (pupa_memmove): Declared.
20193 (pupa_strcpy): Likewise.
20195 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
20196 pupa_mod_init takes one argument, its own module.
20197 (pupa_dl_unload_unneeded): Declared.
20198 (pupa_dl_unload_all): Likewise.
20199 (pupa_dl_ref): Likewise.
20200 (pupa_dl_unref): Likewise.
20201 (pupa_dl_iterate): Likewise.
20202 (pupa_dl_init): Renamed to ...
20203 (pupa_dl_set_prefix): ... this.
20204 (pupa_dl_get_prefix): Declared.
20206 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
20207 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
20209 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
20210 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
20212 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
20213 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
20215 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20217 * util/i386/pc/pupa-setup.c (setup): Define the internal
20218 function find_first_partition_start at the top level, because GCC
20219 3.0.x cannot compile internal functions in deeper scopes
20221 (find_root_device): Use lstat instead of stat.
20222 Don't follow symbolic links.
20223 Fix the path-constructing code.
20225 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
20226 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
20227 by a BLKGETSIZE ioctl first, because block devices don't fill
20228 the member st_mode of the structure stat on Linux.
20229 [__linux__] (linux_find_partition): Use a temporary buffer
20230 REAL_DEV for the working space. Copy it to DEV before returning.
20231 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
20232 buffer cache consistent.
20233 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
20234 strncmp. The previous value was merely wrong.
20235 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
20237 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
20238 FAT size is 12. The previous value was merely wrong.
20240 * kern/main.c (pupa_main): Don't split the starting message from
20243 * kern/term.c (pupa_putchar): Put CR after LF instead of before
20244 LF, because BIOS goes crazy about character attributes in this
20247 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20249 * include/i386/pc/util/biosdisk.h: New file.
20250 * util/i386/pc/biosdisk.c: Likewise.
20251 * util/i386/pc/pupa-setup.c: Likewise.
20253 * Makefile.in (INCLUDE_DISTFILES): Added
20254 include/pupa/i386/pc/util/biosdisk.h.
20255 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
20256 directory util/i386/pc.
20257 (install-local): Added a rule for sbin_UTILITIES.
20258 (uninstall): Likewise.
20260 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
20262 * util/misc.c (xrealloc): New function.
20263 (pupa_malloc): Likewise.
20264 (pupa_free): Likewise.
20265 (pupa_realloc): Likewise.
20266 (pupa_stop): Likewise.
20267 (pupa_putchar): Likewise.
20269 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
20271 * include/pupa/util/misc.h (xrealloc): Declared.
20273 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
20275 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
20276 (PUPA_BOOT_MACHINE_BPB_END): ... this.
20278 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
20279 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20281 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
20282 way should be implemented.
20283 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20285 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
20286 the size of NAME for safety.
20287 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
20290 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
20291 (pupa_setup_SOURCES): Likewise.
20293 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
20295 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20297 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
20298 bunch of pushl's from pusha, because this destroys the return
20301 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20303 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
20304 This means that any missing prototypes could be fatal. Also, you
20305 must take care when writing assembly code. See the comments at
20306 the beginning of startup.S, for more details.
20308 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
20309 compilation mechanism.
20310 (pupa_chainloader_real_boot): Likewise.
20311 (pupa_biosdisk_rw_int13_extensions): Likewise.
20312 (pupa_biosdisk_rw_standard): Likewise.
20313 (pupa_biosdisk_check_int13_extensions): Likewise.
20314 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
20315 (pupa_biosdisk_get_diskinfo_standard): Likewise.
20316 (pupa_get_memsize): Likewise.
20317 (pupa_get_mmap_entry): Likewise.
20318 (pupa_console_putchar): Likewise.
20319 (pupa_console_setcursor): Likewise.
20320 (pupa_getrtsecs): Use pushl instead of push.
20322 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
20323 memory instead of the stack for a mmap entry, because some
20324 BIOSes may ignore the maximum size and overflow.
20326 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
20328 * genmk.rb (PModule#rule): Compile automatically generated
20329 sources with module-specific CFLAGS as well as other sources.
20331 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20333 * configure.ac: Check ld.
20334 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
20335 respectively, before checking endianness and sizes.
20337 * Makefile.in (LD): New variable.
20339 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20341 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
20343 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20345 * Changelog: New file.