1 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
5 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
6 `-isystem=$(srcdir)/include'.
8 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
10 * util/i386/pc/grub-install.in: Remove hint that device.map should be
11 checked (grub-install doesn't currently rely on it).
13 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
17 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
18 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
19 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
20 * conf/i386-ieee1275.rmk: Likewise.
21 * conf/i386-pc.rmk: Likewise.
22 * conf/powerpc-ieee1275.rmk: Likewise.
23 * conf/sparc64-ieee1275.rmk: Likewise.
24 * conf/x86_64-efi.rmk: Likewise.
26 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
30 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
32 * include/grub/misc.h: Stop checking for APPLE_CC.
34 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
36 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
37 doesn't cause an infinite call loop.
39 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
41 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
44 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
46 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
48 * Makefile.in: Likewise.
50 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
52 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
54 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
56 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
58 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
60 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
62 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
64 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
66 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
68 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
70 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
71 in $(MAKEINFO) invocation. This makes it clear in output that
72 errors are being ignored.
74 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
76 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
78 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
79 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
80 * conf/i386-ieee1275.rmk: Likewise.
81 * conf/i386-pc.rmk: Likewise.
82 * conf/powerpc-ieee1275.rmk: Likewise.
83 * conf/sparc64-ieee1275.rmk: Likewise.
84 * conf/x86_64-efi.rmk: Likewise.
86 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
88 * util/grub-editenv.c (main): If only a command is given, use
89 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
90 (usage): FILENAME is now optional and has a default.
92 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
94 Improve grub-mkconfig performance when there are several menu
95 entries on a single filesystem.
97 * util/grub.d/10_linux.in (linux_entry): Cache the output of
98 prepare_grub_to_access_device.
99 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
100 * util/grub.d/30_os-prober.in: Likewise.
102 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
104 * util/grub.d/10_freebsd.in: Remove.
105 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
106 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
108 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
110 * docs/grub.cfg: Fix example usage of *BSD loaders.
112 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
114 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
115 grub_util_error() call.
117 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
119 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
120 `reserved_first_sector' member.
121 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
122 `reserved_first_sector' to 1.
123 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
124 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
125 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
126 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
127 filesystems which begin at first sector.
128 (options): New option --skip-fs-probe.
129 (main): Handle --skip-fs-probe and pass it to setup().
131 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
133 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
134 (memset): Fix function prototype.
136 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
137 2009-10-25 Vasily Averin <vvs@parallels.com>
139 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
140 `dirent.direntlen == 0'.
142 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
144 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
146 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
148 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
150 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
151 `__trampoline_setup' and `__ucmpdi2'.
152 * include/grub/powerpc/libgcc.h: Only export symbols for functions
153 that libgcc provides.
155 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
157 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
158 * include/grub/sparc64/libgcc.h (memset): Likewise.
159 * include/grub/misc.h (memset, memcmp): New function prototypes.
161 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
163 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
165 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
167 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
169 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
170 * docs/grub.cfg: Compensate for recent change in multiboot
171 loader (since 2009-08-14 it won't pass filename to payload).
172 * util/grub.d/10_hurd.in: Likewise.
174 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
176 * config.guess: Update to latest version from config git
178 * config.sub: Likewise.
180 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
182 Fix build on sparc64.
184 * configure.ac: Perform checks for libgcc symbols before
185 adding `-nostdlib' to LDFLAGS.
187 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
189 Let user specify OpenBSD root device.
191 * loader/i386/bsd.c (openbsd_root): New variable.
192 (openbsd_opts): New option 'root'.
193 (OPENBSD_ROOT_ARG): New macro.
194 (grub_openbsd_boot): Use 'openbsd_root'.
195 (grub_cmd_openbsd): Fill 'openbsd_root'.
197 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
199 * NEWS: Misc adjustments.
201 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
203 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
205 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
207 * configure.ac: Bump version to 1.97.
209 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
211 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
212 -mno-3dnow on x86 architectures. Some toolchains enable these
213 features by default, but they rely on registers that aren't enabled
214 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
216 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
218 Make entry text a bit more readable.
220 * util/grub.d/10_linux.in: Add `with' before `Linux'.
222 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
224 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
226 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
228 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
231 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
233 * configure.ac: Add missing dollar.
235 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
237 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
239 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
240 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
242 * include/grub/sparc64/libgcc.h: Likewise. Use
243 preprocessor conditionals.
245 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
247 * conf/common.rmk (grub-dumpbios): Remove rule.
248 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
249 * util/grub-dumpbios.in: Remove file.
251 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
253 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
254 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
256 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
257 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
260 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
261 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
262 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
263 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
266 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
268 * term/tparm.c: Switch to GPLv3.
270 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
272 * include/grub/i386/cpuid.h: Add header protection.
274 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
276 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
278 * include/grub/i386/cpuid.h: New file.
279 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
280 (has_longmode): Rename to ...
281 (grub_cpuid_has_longmode): ... this. Update all users. Remove
283 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
284 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
285 on a CPU that doesn't implement AMD64 instruction set.
287 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
289 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
290 that version.texi is rebuilt on version number changes.
292 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
294 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
297 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
299 * util/i386/pc/grub-install.in: Source
300 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
301 that the --grub-probe option will work.
302 * util/sparc64/ieee1275/grub-install.in: Likewise.
304 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
306 * configure.ac: Bump version to 1.97~beta4.
308 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
310 Resync grub-mkdevicemap in x86_64-efi.
312 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
313 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
316 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
318 * util/grub-editenv.c (create_envblk_file): Write new block with a
319 .new suffix and then rename it into place, to ensure atomic
322 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
324 Do not automatically install headers.
326 * Makefile.in (include_DATA): Remove. Update all users.
328 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
330 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
331 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
333 * util/osdetect.lua: Remove.
334 * script/lua/lauxlib.c: Likewise.
335 * script/lua/ldebug.c: Likewise.
336 * script/lua/grub_main.c: Likewise.
337 * script/lua/lauxlib.h: Likewise.
338 * script/lua/ldebug.h: Likewise.
339 * script/lua/ltablib.c: Likewise.
340 * script/lua/liolib.c: Likewise.
341 * script/lua/lstrlib.c: Likewise.
342 * script/lua/lualib.h: Likewise.
343 * script/lua/ldo.c: Likewise.
344 * script/lua/ldump.c: Likewise.
345 * script/lua/ldo.h: Likewise.
346 * script/lua/loslib.c: Likewise.
347 * script/lua/lundump.c: Likewise.
348 * script/lua/grub_lib.c: Likewise.
349 * script/lua/ldblib.c: Likewise.
350 * script/lua/lundump.h: Likewise.
351 * script/lua/lmem.c: Likewise.
352 * script/lua/grub_lib.h: Likewise.
353 * script/lua/lmathlib.c: Likewise.
354 * script/lua/lstate.c: Likewise.
355 * script/lua/ltm.c: Likewise.
356 * script/lua/lvm.c: Likewise.
357 * script/lua/lmem.h: Likewise.
358 * script/lua/lstate.h: Likewise.
359 * script/lua/ltm.h: Likewise.
360 * script/lua/ltable.c: Likewise.
361 * script/lua/lvm.h: Likewise.
362 * script/lua/llex.c: Likewise.
363 * script/lua/lgc.c: Likewise.
364 * script/lua/grub_lua.h: Likewise.
365 * script/lua/loadlib.c: Likewise.
366 * script/lua/lfunc.c: Likewise.
367 * script/lua/lopcodes.c: Likewise.
368 * script/lua/lparser.c: Likewise.
369 * script/lua/ltable.h: Likewise.
370 * script/lua/llex.h: Likewise.
371 * script/lua/lgc.h: Likewise.
372 * script/lua/lfunc.h: Likewise.
373 * script/lua/lbaselib.c: Likewise.
374 * script/lua/lopcodes.h: Likewise.
375 * script/lua/lparser.h: Likewise.
376 * script/lua/lzio.c: Likewise.
377 * script/lua/linit.c: Likewise.
378 * script/lua/lobject.c: Likewise.
379 * script/lua/llimits.h: Likewise.
380 * script/lua/lstring.c: Likewise.
381 * script/lua/lzio.h: Likewise.
382 * script/lua/lapi.c: Likewise.
383 * script/lua/lcode.c: Likewise.
384 * script/lua/lua.h: Likewise.
385 * script/lua/lobject.h: Likewise.
386 * script/lua/lstring.h: Likewise.
387 * script/lua/lapi.h: Likewise.
388 * script/lua/lcode.h: Likewise.
389 * script/lua/luaconf.h: Likewise.
391 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
393 * docs/grub.texi (Command-line and menu entry commands): Document
394 date and echo commands.
396 2009-09-24 Pavel Roskin <proski@gnu.org>
398 * include/grub/kernel.h (struct grub_module_header): Remove
399 `grub_module_header_types'. Make `type' unsigned. Make `size'
400 32-bit on all platforms.
401 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
402 8-bit field. Use grub_host_to_target32() for `size'.
403 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
404 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
405 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
407 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
409 Fix "lost keypress" bug in at_keyboard.
411 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
412 Checks for readyness of input buffer (without flushing it).
413 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
414 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
416 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
418 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
419 size check within GRUB_MACHINE_PCBIOS section.
421 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
423 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
425 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
426 KEYBOARD_ISREADY check.
427 (grub_at_keyboard_checkkey): Rename to ...
428 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
429 Remove gratuitous cast.
431 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
433 * configure.ac: Call AC_PROG_MKDIR_P.
434 * Makefile.in (docs/stamp-vti): Create docs directory. Create
435 version.texi in $(builddir) rather than $(srcdir).
436 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
437 to makeinfo's @include search path.
439 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
441 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
443 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
445 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
448 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
450 Build info documentation. Some code borrowed from Automake.
452 * configure.ac: Check for makeinfo.
453 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
454 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
456 (MOSTLYCLEANFILES): Add vti.tmp.
457 (docs/version.texi, docs/stamp-vti): Update automatically.
458 (docs/grub.info): Build info documentation. Use --force and ignore
460 (all-local): Add $(INFOS).
461 (install-local): Install info files.
462 (uninstall): Uninstall info files.
463 * docs/version.texi: Remove from revision control. This file is
464 automatically generated on build now.
465 * gendistlist.sh: Add `*.info'.
467 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
469 * kern/term.c: Fix indentation.
471 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
473 * util/hostdisk.c: Fix a comment.
475 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
477 Fix regression introduced in r2539.
479 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
482 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
484 * util/grub.d/30_os-prober.in: Don't throw away stderr from
485 os-prober. Under normal operation, it does not print anything to
486 stderr; if it does, we need to debug it, and throwing away stderr
487 makes that excessively difficult.
489 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
491 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
493 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
495 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
496 AC_LANG_PROGRAM from autoconf.
497 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
498 prototypes (fixes warning).
500 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
501 `--disable-werror' was used.
503 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
505 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
506 uninitialized `lastaddr'.
508 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
510 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
512 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
514 * commands/test.c (get_fileinfo): Return immediately if
517 2009-09-14 José MartÃnez <xosemp@gmail.com>
519 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
521 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
523 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
526 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
528 * configure.ac: Remove --enable-grub-pe2elf. Only build
529 grub-pe2elf when needed by the build system itself.
530 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
532 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
534 * configure.ac: Bump version to 1.97~beta3.
535 * docs/version.texi: Likewise.
537 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
539 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
540 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
542 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
543 (grub_linux_setup_video): ... to here (with some adjustments).
545 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
547 Fix memory corruption issue (spotted by Colin Watson).
549 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
550 causing returned size to be stored in an incorrect memory location.
551 Fix use of uninitialized value when storing the returned size.
553 2009-09-12 Yves Blusseau <blusseau@zetam.org>
555 Change clean rules to properly remove files
557 * genmk.rb: add new clean rules
558 * Makefile.in (clean): add the new targets
559 (mostlyclean): likewise
561 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
563 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
565 * fs/ntfs.c (init_file): Understand 64-bit sizes for
568 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
570 * configure.ac: Don't look for help2man when cross-compiling. Fixes
573 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
575 * util/grub-mkconfig.in: Make the created config mode 400 and
576 print a warning if it fails.
578 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
580 * util/grub.d/40_custom.in: Ask user to type custom entries below
581 comment, rather than below 'exec tail' line.
583 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
585 * util/grub.d/40_custom.in: Make sure that the explanatory text is
588 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
590 * util/grub.d/40_custom.in: Make it a little clearer how to use this
593 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
595 * docs/grub.cfg: Add an example menu entry for memtest86+.
597 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
599 * config.guess: Update to latest version from config git.
600 * config.sub: Likewise.
602 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
604 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
605 unknown-command case. Fixes bug #27320.
607 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
609 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
610 `help' if the command exists.
612 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
614 * INSTALL: Require GCC 4.1.3 or later.
616 2009-09-06 Yves Blusseau <blusseau@zetam.org>
618 * Makefile.in (RMKFILES): add i386-qemu.rmk
619 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
622 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
624 * util/grub-probe.c (probe): Comment out buggy codepath, which
625 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
626 should be re-enabled after 1.97.
628 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
630 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
633 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
635 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
636 unnecessary calls to grub_error.
638 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
640 * NEWS: Mention `keystatus' and Unicode fonts.
642 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
644 * configure.ac: Bump version to 1.97~beta2.
645 * docs/version.texi: Likewise.
647 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
649 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
650 containing unwind information in some cases where it previously did
651 not. Use -fno-dwarf2-cfi-asm if available to restore the old
652 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
655 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
657 Embedding loadenv module into grub-emu
659 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
661 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
662 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
663 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
664 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
665 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
666 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
668 2009-09-03 Magnus Granberg <zorry@ume.nu>
670 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
671 include -fPIE in the default specs.
672 * configure.ac: Check if pie_possible is yes and add -fno-PIE
675 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
677 * INSTALL: Note that GNU Bison 2.3 or later is required.
679 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
681 * kern/i386/pc/startup.S: Fix typo.
683 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
685 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
688 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
690 * docs/grub.texi (Naming convention): Describe one-based partition
692 (Device syntax): Likewise.
693 (File name syntax): Likewise.
694 (Block list syntax): Likewise.
695 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
697 (File name syntax): Likewise.
698 (Command-line and menu entry commands): Document acpi, blocklist,
699 crc, export, insmod, keystatus, ls, set, and unset commands.
701 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
703 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
704 to avoid implying that only one of --shift, --ctrl, or --alt may be
707 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
709 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
710 rather than comparing against S_IFREG, which will almost never work.
712 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
714 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
715 (write_blocklists): Likewise.
717 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
719 * script/lua/grub_lua.h (fputs): Supply a format string as the first
720 argument to grub_printf.
722 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
724 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
727 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
729 * kern/file.c (grub_file_read): Spelling fix
731 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
733 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
734 loading of headers in some cases.
736 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
738 * configure.ac: Bump version to 1.97~beta1.
739 * docs/version.texi: Likewise.
741 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
743 * include/grub/i386/xnu.h: Add license header.
744 include grub/err.h explicitly.
746 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
748 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
749 to `ufs' in the vfs.root.mountfrom kernel parameter.
751 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
753 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
755 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
756 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
758 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
761 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
763 * kern/file.c (grub_file_read): Check offset.
764 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
765 * fs/jfs.c (grub_jfs_read_file): Likewise.
766 * fs/ntfs.c (grub_ntfs_read): Likewise.
767 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
768 * fs/minix.c (grub_minix_read_file): Correct offset check.
769 * fs/ufs.c (grub_ufs_read_file): Likewise.
771 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
773 * term/i386/pc/console.c (bios_data_area): Cast
774 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
776 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
778 1-bit optimised blitters.
780 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
782 (grub_video_fbblit_replace_24bit_1bit): Likewise.
783 (grub_video_fbblit_replace_16bit_1bit): Likewise.
784 (grub_video_fbblit_replace_8bit_1bit): Likewise.
785 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
786 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
787 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
788 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
790 (grub_video_fbblit_replace_24bit_1bit): Likewise.
791 (grub_video_fbblit_replace_16bit_1bit): Likewise.
792 (grub_video_fbblit_replace_8bit_1bit): Likewise.
793 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
794 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
795 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
796 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
798 * video/video.c (grub_video_get_blit_format): Return
799 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
801 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
803 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
804 the first argument to grub_printf.
806 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
807 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
809 Add `getkeystatus' terminal method. Add a new `keystatus' command
812 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
813 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
814 modifier key bitmasks.
815 (struct grub_term_input): Add `getkeystatus' member.
816 (grub_getkeystatus): Add prototype.
817 * kern/term.c (grub_getkeystatus): New function.
819 * include/grub/i386/pc/memory.h
820 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
821 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
823 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
824 (grub_console_term_input): Set `getkeystatus' member.
825 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
827 (grub_usb_keyboard_getreport): Likewise.
828 (grub_usb_keyboard_checkkey): Likewise.
829 (grub_usb_keyboard_getkeystatus): New function.
830 (grub_usb_keyboard_term): Set `getkeystatus' member.
832 * commands/keystatus.c: New file.
833 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
834 (keystatus_mod_SOURCES): New variable.
835 (keystatus_mod_CFLAGS): Likewise.
836 (keystatus_mod_LDFLAGS): Likewise.
837 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
838 commands/keystatus.c.
839 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
840 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
841 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
842 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
843 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
844 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
846 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
848 Split befs.mod and afs.mod into *_be.mod and *.mod
850 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
851 (grub_fstest_SOURCES): Likewise.
852 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
853 (afs_be_mod_SOURCES): New variable.
854 (afs_be_mod_CFLAGS): Likewise.
855 (afs_be_mod_LDFLAGS): Likewise.
856 (befs_be_mod_SOURCES): Likewise.
857 (befs_be_mod_CFLAGS): Likewise.
858 (befs_be_mod_LDFLAGS): Likewise.
859 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
860 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
861 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
862 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
863 (grub_emu_SOURCES): Likewise.
864 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
865 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
866 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
867 * fs/afs_be.c: New file.
868 * fs/befs_be.c: New file.
869 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
870 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
871 (U16): Replaced with ...
872 (grub_afs_to_cpu16): ...this. All users updated.
873 (U32): Replaced with ...
874 (grub_afs_to_cpu32): ...this. All users updated.
875 (U64): Replaced with ...
876 (grub_afs_to_cpu64): ...this. All users updated.
877 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
878 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
879 (grub_afs_validate_sblock): Check only one endianness.
880 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
881 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
882 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
883 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
884 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
885 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
886 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
887 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
889 2009-08-26 Bean <bean123ch@gmail.com>
891 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
893 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
894 (grub_xfs_inode_block): Change return type to grub_uint64_t.
895 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
897 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
899 NetBSD memory map support.
901 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
902 (grub_netbsd_btinfo_mmap_header): New structure.
903 (grub_netbsd_btinfo_mmap_entry): Likewise.
904 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
906 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
908 Enable bsd.mod on coreboot.
910 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
911 (bsd_mod_SOURCES): New variable.
912 (bsd_mod_CFLAGS): Likewise.
913 (bsd_mod_LDFLAGS): Likewise.
914 (bsd_mod_ASFLAGS): Likewise.
915 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
916 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
918 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
920 Cleanup NetBSD root support.
922 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
926 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
928 * util/grub.d/00_header.in: Move check for the video backend of
929 gfxterm from here ...
930 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
931 a suitable video backend.
933 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
935 Fix breakage in grub-setup.
937 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
938 "msdos_partition_map".
940 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
942 Fix breakage in normal/auth.c.
944 * normal/auth.c (grub_iswordseparator): New function.
946 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
948 Authentication support.
950 * commands/password.c: New file.
951 * conf/common.rmk (pkglib_MODULES): Add password.mod.
952 (password_mod_SOURCES): New variable.
953 (password_mod_CFLAGS): Likewise.
954 (password_mod_LDFLAGS): Likewise.
955 (normal_mod_SOURCES): Add normal/auth.c.
956 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
958 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
959 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
960 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
961 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
962 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
963 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
964 * include/grub/auth.h: New file.
965 * include/grub/err.h (grub_err_t): New enum value
966 GRUB_ERR_ACCESS_DENIED.
967 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
969 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
970 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
972 * normal/auth.c: New file.
973 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
974 (grub_cmdline_run): Don't allow to go to command line without
976 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
977 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
978 menuentry without superuser rights.
979 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
980 user isn't a superuser.
982 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
984 Save space by inlining misc.c functions.
986 * kern/misc.c (grub_iswordseparator): Made static.
987 * kern/misc.c (grub_strcat): Moved from here ...
988 * include/grub/misc.h (grub_strcat): ... here. Inlined.
989 * kern/misc.c (grub_strncat): Moved from here ...
990 * include/grub/misc.h (grub_strncat): ... here. Inlined.
991 * kern/misc.c (grub_strcasecmp): Moved from here ...
992 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
993 * kern/misc.c (grub_strncasecmp): Moved from here ...
994 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
995 * kern/misc.c (grub_isalpha): Moved from here ...
996 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
997 * kern/misc.c (grub_isdigit): Moved from here ...
998 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
999 * kern/misc.c (grub_isgraph): Moved from here ...
1000 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
1001 * kern/misc.c (grub_tolower): Moved from here ...
1002 * include/grub/misc.h (grub_tolower): ... here. Inlined.
1004 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1006 * script/sh/function.c (grub_script_function_find): Cut error message
1007 not to flood terminal.
1008 * script/sh/lexer.c (grub_script_yylex): Remove command line length
1010 * script/sh/script.c (grub_script_arg_add): Duplicate string.
1012 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
1014 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
1015 `report' grub_uint8_t *.
1016 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
1017 Use a 50-millisecond timeout rather than just repeating
1018 grub_usb_keyboard_getreport 50 times.
1019 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
1021 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1023 Rename *_partition_map to part_*
1025 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
1026 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
1027 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
1028 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
1030 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
1032 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
1033 * util/grub-probe.c (probe_partmap): Don't transform partition name
1036 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1038 Fix OpenBSD and NetBSD support.
1040 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
1041 memory address conflict.
1042 (OPENBSD_MMAP_ACPI): New definition.
1043 (OPENBSD_MMAP_NVS): Likewise.
1044 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
1045 and OPENBSD_MMAP_NVS.
1046 Add memory map terminator
1047 Explicit cast when calling grub_unix_real_boot.
1048 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
1050 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1052 Let user specify NetBSD root device.
1054 * loader/i386/bsd.c (netbsd_root): New variable.
1055 (netbsd_opts): New option 'root'.
1056 (NETBSD_ROOT_ARG): New macro.
1057 (grub_netbsd_boot): Use 'netbsd_root'.
1058 (grub_bsd_unload): Free 'netbsd_root'.
1059 (grub_cmd_netbsd): Fill 'netbsd_root'.
1061 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1063 Support for 64-bit NetBSD.
1065 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
1066 point when booting non-FreeBSD.
1068 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1070 Support --no-smp and --no-acpi for NetBSD.
1072 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
1073 (NETBSD_AB_NOACPI): Likewise.
1074 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
1075 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
1077 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1079 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
1081 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
1082 errors. Call grub_error when needed.
1084 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1086 * commands/search.c (search_fs): Try searching without autoload first.
1087 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
1088 filesystem module explicitly for faster booting.
1090 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1092 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
1094 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1096 * util/grub.d/30_os-prober.in: Disable os-prober if
1097 `GRUB_DISABLE_OS_PROBER' was set to true.
1099 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
1101 * partmap/pc.c: Rename to ...
1102 * partmap/msdos.c: ... this. Update all users.
1103 (grub_pc_partition_map): Rename to ...
1104 (grub_msdos_partition_map): ... this. Update all users.
1106 * parttool/pcpart.c: Rename to ...
1107 * parttool/msdospart.c: ... this. Update all users.
1109 * include/grub/pc_partition.h: Rename to ...
1110 * include/grub/msdos_partition.h: ... this. Update all users.
1111 (grub_pc_partition_bsd_entry): Rename to ...
1112 (grub_msdos_partition_bsd_entry): ... this. Update all users.
1113 (grub_pc_partition_disk_label): Rename to ...
1114 (grub_msdos_partition_disk_label): ... this. Update all users.
1115 (grub_pc_partition_entry): Rename to ...
1116 (grub_msdos_partition_entry): ... this. Update all users.
1117 (grub_pc_partition_mbr): Rename to ...
1118 (grub_msdos_partition_mbr): ... this. Update all users.
1119 (grub_pc_partition): Rename to ...
1120 (grub_msdos_partition): ... this. Update all users.
1121 (grub_pc_partition_is_empty): Rename to ...
1122 (grub_msdos_partition_is_empty): ... this. Update all users.
1123 (grub_pc_partition_is_extended): Rename to ...
1124 (grub_msdos_partition_is_extended): ... this. Update all users.
1125 (grub_pc_partition_is_bsd): Rename to ...
1126 (grub_msdos_partition_is_bsd): ... this. Update all users.
1128 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
1129 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
1130 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
1131 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
1132 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
1133 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
1134 (gpt_mod_LDFLAGS): Rename to ...
1135 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
1136 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
1137 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
1138 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
1139 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
1140 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
1141 (part_gpt_mod_LDFLAGS): ... this.
1142 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
1143 `pcpart.mod' to `msdospart.mod'.
1144 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
1146 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
1147 (msdospart_mod_LDFLAGS): ... this.
1149 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1151 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
1152 (openbsd_opts): Likewise.
1153 (netbsd_opts): Likewise.
1154 (freebsd_flags): Added 0 terminator.
1155 (openbsd_flags): Likewise.
1156 (netbsd_flags): Likewise.
1157 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
1158 (grub_cmd_freebsd): Transformed into extended command.
1159 (grub_cmd_openbsd): Likewise.
1160 (grub_cmd_netbsd): Likewise.
1161 (cmd_freebsd): Changed type to grub_extcmd_t.
1162 (cmd_openbsd): Likewise.
1163 (cmd_netbsd): Likewise.
1164 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
1165 grub_cmd_openbsd as extended commands.
1166 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
1167 cmd_netbsd and cmd_openbsd
1169 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1171 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
1173 2009-08-21 Pavel Roskin <proski@gnu.org>
1175 * Makefile.in (install-local): When checking if a file is in the
1176 build directory, use "test -e" to detect symlinks.
1178 * Makefile.in (install-local): Remove all files in
1179 $(DESTDIR)$(pkglibdir) before installing new files there.
1181 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1183 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
1186 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1188 * util/grub-mkconfig.in: Don't use gfxterm by default if not
1189 explicitly specified by the user.
1191 2009-08-18 Pavel Roskin <proski@gnu.org>
1193 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
1194 grub_uint8_t pointer for data.
1195 * include/grub/fbutil.h (struct grub_video_fbblit_info):
1197 * video/fb/fbutil.c: Remove unnecessary casts.
1199 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1203 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
1204 (grub_vbe_set_video_mode): Save active mode info
1205 only after setting the mode.
1206 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
1209 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1211 Rename variables for clarity.
1213 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
1214 (active_vbe_mode_info): ... this. All users updated.
1215 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
1217 (initial_mode): Rename to ...
1218 (initial_vbe_mode): ... this. All users updated.
1219 (mode_in_use): Rename to ..
1220 (vbe_mode_in_use): ... this. All users updated.
1221 (mode_list): Rename to ..
1222 (vbe_mode_list): ... this. All users updated.
1223 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
1224 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
1225 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
1226 'mode_list_size' to 'vbe_mode_list_size'.
1227 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
1228 'best_mode_info' to 'best_vbe_mode_info' and
1229 'best_mode' to 'best_vbe_mode'
1231 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1233 Remove duplicate grub_video_fb_get_video_ptr.
1235 * include/grub/fbutil.h (get_data_ptr): Rename to ...
1236 (grub_video_fb_get_video_ptr): ... this.
1237 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
1238 * video/fb/fbutil.c: Add comment about addressing.
1239 (get_data_ptr): Rename to ...
1240 (grub_video_fb_get_video_ptr): ... this. All users updated.
1241 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
1243 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1245 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
1246 grub_dprintf() that was just added.
1248 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1250 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
1251 (DEFAULT_VIDEO_MODE): Remove macros.
1252 (grub_linux_boot): Remove assumption that Linux has FB support,
1253 and use "text" as default video mode.
1255 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
1257 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
1259 * fs/fat.c (grub_fat_read_data): Likewise.
1261 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1263 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
1265 (grub_module): Likewise.
1267 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1269 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
1270 mbi->cmdline but free playground.
1272 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1274 Handle group offset on UFS1.
1276 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
1277 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
1279 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1281 Split ufs.mod into ufs1.mod and ufs2.mod.
1283 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
1284 (grub_fstest_SOURCES): Likewise.
1285 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
1286 (ufs_mod_SOURCES): Remove.
1287 (ufs_mod_CFLAGS): Likewise.
1288 (ufs_mod_LDFLAGS): Likewise.
1289 (ufs1_mod_SOURCES): New variable.
1290 (ufs1_mod_CFLAGS): Likewise.
1291 (ufs1_mod_LDFLAGS): Likewise.
1292 (ufs2_mod_SOURCES): New variable.
1293 (ufs2_mod_CFLAGS): Likewise.
1294 (ufs2_mod_LDFLAGS): Likewise.
1295 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
1296 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1298 (grub_emu_SOURCES): Likewise.
1299 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1300 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1301 (grub_setup_SOURCES): Likewise.
1302 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1303 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
1304 (grub_setup_SOURCES): Likewise.
1305 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1307 * fs/ufs2.c: New file.
1308 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
1310 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1314 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
1315 subsystem at the end.
1316 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
1317 (video_fb_mod_SOURCES): New variable.
1318 (video_fb_mod_CFLAGS): Likewise.
1319 (video_fb_mod_LDFLAGS): Likewise.
1320 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
1321 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
1322 * video/i386/pc/vbeblit.c: Moved from here ...
1323 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
1324 * video/i386/pc/vbefill.c: Moved from here ...
1325 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
1326 * video/i386/pc/vbeutil.c: Moved from here ...
1327 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
1328 * include/grub/i386/pc/vbeblit.h: Moved from here ...
1329 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
1330 * include/grub/i386/pc/vbefill.h: Moved from here ...
1331 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
1332 * include/grub/i386/pc/vbeutil.h: Moved from here ...
1333 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
1334 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
1335 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
1336 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
1337 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
1338 (grub_video_adapter): Added 'get_info_and_fini'.
1339 (grub_video_get_info_and_fini): New prototype.
1340 (grub_video_set_mode): make modestring const char *.
1341 * loader/i386/linux.c (grub_linux_setup_video): Use
1342 grub_video_get_info_and_fini.
1343 (grub_linux_boot): Move modesetting just before booting.
1344 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
1345 grub_video_get_info_and_fini.
1346 * video/i386/pc/vbe.c: Moved framebuffer part ...
1347 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
1348 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
1349 grub_video_fbstd_colors and grub_video_fb_set_palette.
1350 (grub_video_vbe_init): Clear 'framebuffer' variable and use
1352 (grub_video_vbe_fini): Use grub_video_fb_fini.
1353 (grub_video_vbe_setup): Use framebuffer.render_target instead of
1354 render_target and use grub_video_fb_set_active_render_target and
1355 grub_video_fb_set_palette.
1356 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
1357 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
1358 (grub_video_vbe_adapter): Use framebuffer.
1359 * video/video.c (grub_video_get_info_and_fini): New function.
1360 (grub_video_set_mode): Make modestring const char *.
1361 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
1362 values are already initialised.
1364 2009-08-14 Pavel Roskin <proski@gnu.org>
1366 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
1368 * boot/i386/pc/diskboot.S: Likewise.
1369 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
1370 sectors allow compilation on MacOSX.
1371 * conf/i386-pc.rmk: Enable unconditional compilation of
1374 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
1376 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
1377 * util/grub.d/00_header.in: Enter interruptible sleep if
1378 GRUB_HIDDEN_TIMEOUT is set.
1380 2009-08-13 Yves Blusseau <blusseau@zetam.org>
1382 * include/grub/symbol.h: Add the LOCAL macro.
1383 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
1386 2009-08-13 Pavel Roskin <proski@gnu.org>
1388 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
1389 any modern compilers we support.
1391 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
1392 Use local labels starting with "L_" so that Apple assembler
1393 knows they are local.
1395 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
1397 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
1398 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
1399 (bsd_kernel_types): ... this enum.
1401 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
1402 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
1403 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
1405 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
1406 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
1407 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
1410 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1412 * util/grub-dumpdevtree: Moved from here ...
1413 * util/i386/efi/grub-dumpdevtree: ... to here.
1414 (hexify): New function. Converts a string to its hex version.
1415 Generate hex versions of "efi" and "device-properties" by calling
1416 hexify() on the ASCII strings rather than by hardcoding numbers.
1418 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1420 * fs/jfs.c: Update copyright year.
1422 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1424 * util/grub.d/00_header.in: Fix a comment.
1425 * util/grub.d/10_linux.in: Likewise.
1426 * util/grub.d/10_windows.in: Likewise.
1427 * util/grub.d/10_hurd.in: Likewise.
1429 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1431 * util/grub-mkconfig.in: Allow the user to specify the used font
1434 2009-08-08 Pavel Roskin <proski@gnu.org>
1436 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
1437 available, xfs.mod needs it now.
1439 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
1440 the "g" modifier in sed when the intention is to strip something
1441 once. This fixes comparison of kernels with multiple dashes.
1443 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
1444 on it. Add missing space before closing bracket. Fix
1445 misleading formatting.
1447 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1449 * docs/grub.texi: Major overhaul. Remove all sections that are
1450 specific to GRUB Legacy, or mostly composed of Legacy-specific
1453 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1455 * docs/version.texi: New file. Provides version information for
1458 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1460 * docs/grub.texi: Update CVS information to SVN.
1461 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
1463 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1465 * util/grub-mkconfig.in: Remove a wrong `fi'.
1467 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1469 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
1470 (grub_jfs_uuid): New function.
1471 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
1473 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1475 * util/grub-mkconfig_lib.in (font_path): Move the functionality
1477 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
1478 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
1480 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1482 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
1483 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
1486 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
1487 not just "vmlinu[zx]".
1489 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
1492 * util/grub.d/10_linux.in (find_latest): Moved from here ...
1493 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
1496 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1498 * util/grub.d/10_freebsd.in: Use an absolute device path for
1499 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
1501 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
1503 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
1504 handling of multiple abstraction modules.
1506 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
1508 Fix a bug resulting in black screen when loading Linux using a
1511 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
1514 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
1515 (grub_vbe_bios_getset_dac_palette_width): New function.
1516 (grub_vbe_bios_get_dac_palette_width)
1517 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
1518 grub_vbe_bios_getset_dac_palette_width()).
1520 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
1521 check for return status.
1522 (grub_vbe_get_video_mode_info): When getting information for a packed
1523 mode (<= 8 bpp), obtain DAC palette width using
1524 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
1525 {red,green,blue}_mark_size.
1527 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
1529 * commands/search.c (options): Fix help output to match actual code.
1531 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1533 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
1536 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1538 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
1541 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1543 Support Apple partition map with sector size different from 512 bytes.
1545 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
1546 (apple_partition_map_iterate): Respect 'aheader.blocksize'
1547 and 'apart.partmap_size'.
1549 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1550 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
1554 * commands/i386/cpuid.c (options): New variable.
1555 (grub_cmd_cpuid): Return real error.
1556 (GRUB_MOD_INIT(cpuid)): Declare options.
1558 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
1560 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
1563 2009-07-31 Bean <bean123ch@gmail.com>
1565 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
1567 (grub_fshelp_node): Move inode field to the end.
1568 (grub_xfs_data): Remove inode field.
1569 (grub_xfs_inode_block): Calculate inode size using sblock.
1570 (grub_xfs_inode_offset): Likewise.
1571 (grub_xfs_read_inode): Calculate inode size using sblock.
1572 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
1573 (grub_xfs_iterate_dir): Calculate inode size using sblock.
1574 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
1575 to match inode size.
1576 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
1577 not accessible when data is null.
1578 (grub_xfs_open): Likewise.
1580 2009-07-31 Bean <bean123ch@gmail.com>
1582 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
1583 Don't change pv->disk if it's already set.
1585 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
1586 (grub_raid_register): ... here.
1587 (grub_raid_rescan): Removed.
1589 * include/grub/raid.h (grub_raid_rescan): Removed.
1591 * util/grub-fstest.c: Remove include file <grub/raid.h>.
1592 (fstest): Replace grub_raid_rescan with module fini function followed
1595 * util/grub-probe.c: Add include file <grub/raid.h>.
1596 (probe_raid_level): New function.
1597 (probe): Detect abstraction by walking the disk device, support two
1598 level of abstraction (LVM on RAID) when detecting partition map.
1600 2009-07-31 Pavel Roskin <proski@gnu.org>
1602 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
1603 to grub_zalloc(), it was erroneous.
1604 Reported by Bean <bean123ch@gmail.com>
1606 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
1608 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
1609 embedding zone, not only the first one.
1611 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
1613 * term/gfxterm.c (clear_char): New function.
1614 (grub_virtual_screen_setup): Use clear_char.
1615 (scroll_up): Likewise.
1616 (grub_virtual_screen_cls): Likewise.
1618 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
1620 * util/deviceiter.c (get_acceleraid_disk_name): New static
1622 (grub_util_iterate_devices): Handle Accelraid devices.
1623 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
1625 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
1627 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
1628 separator for the suggested gfxpayload string (';' collides with the
1629 parser and needs escaping).
1631 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
1633 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
1634 Clear direction flag before jumping to OS.
1635 (grub_multiboot2_real_boot): Likewise.
1637 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1639 * util/i386/pc/grub-install: Fix parsing of --disk-module
1642 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1644 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
1647 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
1649 * util/grub-mkconfig.in (package_version): New variable.
1650 Use it do display the version.
1652 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1654 * kern/file.c (grub_file_open): Revert to previous check with
1657 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1659 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
1660 from help line. It's out of sync with code.
1662 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1664 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
1665 entries on failed boot.
1667 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1669 * kern/file.c (grub_file_open): Fix an error check.
1671 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
1673 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
1674 partition map couldn't be identified.
1676 2009-07-23 Pavel Roskin <proski@gnu.org>
1678 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
1679 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
1680 case of little endian words becomes just an optimization.
1681 Respect const modifier.
1682 (md5_final): Use code that doesn't depend on endianness.
1684 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
1685 to avoid loss of upper bits if align is unsigned and shorter
1688 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1690 UUID support for UFS
1692 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
1693 (grub_ufs_uuid): New function.
1694 (grub_ufs_fs): add .uuid
1696 2009-07-21 Pavel Roskin <proski@gnu.org>
1698 * kern/dl.c (grub_dl_check_header): Make static.
1700 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
1702 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
1703 add drivemap for Vista. It breaks Windows 7.
1705 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1707 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
1710 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1714 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
1715 (grub_fstest_SOURCES): Likewise.
1716 (pkglib_MODULES): Add befs.mod.
1717 (befs_mod_SOURCES): New variable.
1718 (befs_mod_CFLAGS): Likewise.
1719 (befs_mod_LDFLAGS): Likewise.
1720 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
1721 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1722 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1723 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1724 (grub_setup_SOURCES): Likewise.
1725 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1726 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1727 (grub_setup_SOURCES): Likewise.
1728 * fs/befs.c: New file.
1729 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
1730 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
1731 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
1732 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
1733 (B_KEY_INDEX_ALIGN): New declaration.
1734 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
1735 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
1736 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
1737 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
1738 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
1739 (grub_afs_mount) [MODE_BFS]: Likewise.
1740 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
1741 (grub_afs_fs): Use GRUB_AFS_FSNAME
1742 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
1743 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
1744 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
1745 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
1747 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
1749 * util/getroot.c (find_root_device): Add support for MacOSX.
1750 * util/hostdisk.c: Likewise.
1752 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1754 * font/font.c (find_glyph): Check whether a font is present to avoid
1757 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
1759 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
1761 2009-07-20 Pavel Roskin <proski@gnu.org>
1763 * configure.ac: Trim excessively wordy excuses.
1765 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1767 Add symlink, mtime and label support to AtheFS.
1769 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
1770 (grub_afs_iterate_dir): Handle symlinks.
1771 (grub_afs_open): Use grub_afs_read_symlink.
1772 (grub_afs_dir): Likewise.
1774 (grub_afs_label): New function.
1775 (grub_afs_fs): Add grub_afs_label.
1776 (grub_afs_read_symlink): New function.
1778 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1782 * fs/afs.c: Fix comments style.
1783 (grub_afs_blockrun): Declare as packed.
1784 (grub_afs_datastream): Likewise.
1785 (grub_afs_bnode): Likewise.
1786 (grub_afs_btree): Likewise.
1787 (grub_afs_sblock): Likewise.
1788 Declare `name' as char.
1789 (grub_afs_inode): Declare as packed.
1790 Change void *vnode to grub_uint32_t unused.
1791 (grub_afs_iterate_dir): Check that key_size is positive.
1792 (grub_afs_mount): Don't read superblock twice.
1793 (grub_afs_dir): Don't free node in case of error,
1794 grub_fshelp_find_file already handles this.
1795 (grub_afs_open): Likewise.
1797 2009-07-19 Pavel Roskin <proski@gnu.org>
1799 * Makefile.in: Remove LIBLZO and enable_lzo.
1800 * conf/i386-pc.rmk: Remove lzo support.
1801 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
1802 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
1804 * kern/i386/pc/lzo1x.S: Remove.
1805 * kern/i386/pc/startup.S: Remove lzo support.
1806 * util/i386/pc/grub-mkimage.c: Likewise.
1808 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
1810 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
1811 * fs/xfs.c (grub_xfs_dir): Likewise.
1812 * fs/afs.c (grub_afs_dir): Likewise.
1813 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
1814 (grub_iso9660_open): Likewise.
1815 * fs/jfs.c (grub_jfs_open): Likewise.
1816 * fs/ext2.c (grub_ext2_dir): Likewise.
1817 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
1818 * script/sh/lexer.c (grub_script_yylex): Likewise.
1820 2009-07-16 Pavel Roskin <proski@gnu.org>
1822 * configure.ac: Never add "-c" to CFLAGS.
1824 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
1826 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
1827 grub_cv_cc_efiemu should be used.
1829 * configure.ac: Typo fixes.
1831 * kern/mm.c (grub_zalloc): New function.
1832 (grub_debug_zalloc): Likewise.
1833 * include/grub/mm.h: Declare grub_zalloc() and
1834 grub_debug_zalloc().
1835 * util/misc.c (grub_zalloc): New function.
1836 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
1837 instead of grub_malloc(), remove unneeded initializations.
1838 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
1839 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
1840 * commands/parttool.c (grub_cmd_parttool): Likewise.
1841 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
1842 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
1843 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
1844 * disk/usbms.c (grub_usbms_finddevs): Likewise.
1845 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
1846 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
1847 (grub_cmd_efiemu_pnvram): Likewise.
1848 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
1849 * fs/iso9660.c (grub_iso9660_mount): Likewise.
1850 (grub_iso9660_iterate_dir): Likewise.
1851 * fs/jfs.c (grub_jfs_opendir): Likewise.
1852 * fs/ntfs.c (list_file): Likewise.
1853 (grub_ntfs_mount): Likewise.
1854 * kern/disk.c (grub_disk_open): Likewise.
1855 * kern/dl.c (grub_dl_load_core): Likewise.
1856 * kern/elf.c (grub_elf_file): Likewise.
1857 * kern/env.c (grub_env_context_open): Likewise.
1858 (grub_env_set): Likewise.
1859 (grub_env_set_data_slot): Likewise.
1860 * kern/file.c (grub_file_open): Likewise.
1861 * kern/fs.c (grub_fs_blocklist_open): Likewise.
1862 * loader/i386/multiboot.c (grub_module): Likewise.
1863 * loader/xnu.c (grub_xnu_create_key): Likewise.
1864 (grub_xnu_create_value): Likewise.
1865 * normal/main.c (grub_normal_add_menu_entry): Likewise.
1866 (read_config_file): Likewise.
1867 * normal/menu_entry.c (make_screen): Likewise.
1868 * partmap/sun.c (sun_partition_map_iterate): Likewise.
1869 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
1870 * script/sh/script.c (grub_script_parse): Likewise.
1871 * video/bitmap.c (grub_video_bitmap_create): Likewise.
1872 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
1873 * video/readers/png.c (grub_png_output_byte): Likewise.
1874 (grub_video_reader_png): Likewise.
1876 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1878 Enable all targets that can be built by default
1880 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
1881 grub-mkfont and grub-fstest if they can be built
1883 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1885 Fix hang and segmentation fault in grub-emu-usb
1887 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
1888 * util/usb.c (grub_libusb_devices): likewise
1889 (grub_libusb_init): rename to ...
1890 (GRUB_MOD_INIT (libusb)):...this
1891 (grub_libusb_fini): rename to ..
1892 (GRUB_MOD_FINI (libusb)):...this
1893 * disk/usbms.c (grub_usbms_transfer): fix retry logic
1894 * include/grub/disk.h (grub_raid_init): removed, it's useless
1895 (grub_raid_fini): likewise
1896 (grub_lvm_init): likewise
1897 (grub_lvm_fini): likewise
1898 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
1901 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1905 * Makefile.in (LIBUSB): new macro
1906 * genmk.rb (Utility/print_tail): new method
1907 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
1908 (top level): call util.print_tail at the end.
1910 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1912 Make FreeBSD accept zpool.cache
1914 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
1915 type is /boot/zfs/zpool.cache
1917 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1921 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
1922 correct wrong typedef
1923 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
1925 2009-07-15 Pavel Roskin <proski@gnu.org>
1927 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
1928 * kern/disk.c (struct grub_disk_cache): Likewise.
1930 * commands/probe.c (options): Typo fix.
1932 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
1933 Increase to 0x5a to accommodate FAT32. Adjust other offsets
1935 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
1937 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
1938 the end of "Error" to make the message more readable.
1940 * boot/i386/pc/boot.S (kernel_segment): Remove.
1941 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
1944 * boot/i386/pc/boot.S (boot_version): Remove.
1945 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
1948 * include/grub/i386/pc/boot.h: Sort all offsets.
1949 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
1950 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
1951 * boot/i386/pc/boot.S: Assert location of every offset listed in
1952 include/grub/i386/pc/boot.h.
1954 2009-07-13 Pavel Roskin <proski@gnu.org>
1956 * include/grub/i386/coreboot/machine.h: Rename
1957 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
1958 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
1959 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
1961 * kern/dl.c: Force native word size to suppress warnings when
1964 * kern/device.c (grub_device_iterate): Change struct part_ent to
1965 hold the name, not a pointer to it. Use one grub_malloc() per
1966 partition, not two. Free partition_name if grub_malloc() fails.
1967 Set ents to NULL only before grub_partition_iterate() is called.
1969 2009-07-11 Bean <bean123ch@gmail.com>
1971 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
1974 2009-07-10 Bean <bean123ch@gmail.com>
1975 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
1977 * kern/ieee1275/openfw.c (grub_children_iterate)
1978 (grub_devalias_iterate): Fix size evaluation for property or path
1979 strings, which was broken since r2132.
1981 2009-07-07 Pavel Roskin <proski@gnu.org>
1983 * commands/search.c (search_file): Merge into ...
1984 (search_fs): ... this. Accept search type as argument.
1985 (grub_cmd_search): Pass search type to search_fs().
1987 * include/grub/util/console.h: New file.
1988 * util/console.c: Use it instead of grub/machine/console.h.
1989 * util/grub-emu.c: Likewise.
1991 * lib/arg.c (find_long_option): Remove.
1992 (find_long): Add `len' argument, make `s' const char *.
1993 (grub_arg_parse): Parse long options in place, not in a
1996 2009-07-06 Pavel Roskin <proski@gnu.org>
1998 * commands/search.c (search_fs): Fix potential NULL pointer
2001 * commands/search.c (search_fs): Replace QUID macro with quid_fn
2004 2009-07-06 Daniel Mierswa <impulze@impulze.org>
2006 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
2009 2009-07-05 Pavel Roskin <proski@gnu.org>
2011 * include/grub/i386/linux.h (struct linux_kernel_params):
2012 Restore padding3, it's still needed.
2014 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
2016 * util/osdetect.lua: Likewise.
2018 2009-07-05 Bean <bean123ch@gmail.com>
2020 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
2022 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
2023 (grub_lua_getenv): Likewise.
2024 (grub_lua_setenv): Likewise.
2025 (save_errno): New function.
2026 (push_result): Likewise.
2027 (grub_lua_enum_device): Likewise.
2028 (grub_lua_enum_file): Likewise.
2029 (grub_lua_file_open): Likewise.
2030 (grub_lua_file_close): Likewise.
2031 (grub_lua_file_seek): Likewise.
2032 (grub_lua_file_read): Likewise.
2033 (grub_lua_file_getline): Likewise.
2034 (grub_lua_file_getsize): Likewise.
2035 (grub_lua_file_getpos): Likewise.
2036 (grub_lua_file_eof): Likewise.
2037 (grub_lua_file_exist): Likewise.
2038 (grub_lua_add_menu): Likewise.
2040 * script/lua/grub_lua.h (isupper): New inline function.
2041 (islower): Likewise.
2042 (ispunct): Likewise.
2043 (isxdigit): Likewise.
2044 (strcspn): Change to normal function.
2045 (strpbkr): New function declaration.
2048 * script/lua/grub_main.c (scan_str): New function.
2049 (strcspn): Likewise.
2050 (strpbrk): Likewise.
2053 * script/lua/linit.c (lualibs): Enable the string library.
2055 * util/osdetect.lua: New file.
2057 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
2059 * include/grub/i386/linux.h (struct linux_kernel_params): Add
2060 `capabilities' member.
2062 2009-07-02 Pavel Roskin <proski@gnu.org>
2064 * genparttoollist.sh: Add missing newline at the end.
2066 2009-07-01 Pavel Roskin <proski@gnu.org>
2068 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
2070 * util/hostdisk.c (open_device): Remove `const' from
2071 `sysctl_size', as sysctlbyname() can change it (in this case it
2072 doesn't actually happen).
2074 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
2075 using signed long int constants.
2077 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
2078 constant to avoid a warning on FreeBSD.
2080 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
2083 * Makefile.in: Install include/grub/machine symlink.
2085 * Makefile.in: When installing symlinks, use "cp -fR", which
2086 works on FreeBSD and MacOSX.
2087 From Yves Blusseau <cl7m42e02@sneakemail.com>
2089 * kern/dl.c (grub_dl_resolve_symbol): Make static.
2090 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
2092 * util/misc.c: Move grub_reboot() and grub_halt() ...
2093 * util/grub-emu.c: ... here. Make main_env static.
2094 * include/grub/util/misc.h: Remove main_env.
2096 * kern/mm.c: Use correct format to print size_t.
2098 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
2099 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
2100 * kern/powerpc/dl.c: Likewise.
2101 * kern/sparc64/dl.c: Likewise.
2102 * kern/x86_64/dl.c: Likewise.
2104 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2106 Fix grub-emu build on sparc64-ieee1275.
2108 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
2109 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
2111 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2113 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
2114 (grub_reboot, grub_halt): New functions.
2116 * util/i386/pc/misc.c: Delete. Update all users.
2117 * util/sparc64/ieee1275/misc.c: Likewise.
2118 * util/powerpc/ieee1275/misc.c: Likewise.
2120 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2122 * conf/i386.rmk (setjmp_mod_SOURCES)
2123 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
2124 * conf/common.rmk (setjmp_mod_SOURCES)
2125 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
2126 to use $(target_cpu).
2127 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
2128 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
2129 * conf/powerpc-ieee1275.rmk: Likewise.
2130 * conf/sparc64-ieee1275.rmk: Likewise.
2132 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
2133 $(target_cpu) for kern/$(target_cpu)/dl.c.
2134 * conf/i386-efi.rmk: Likewise.
2135 * conf/i386-ieee1275.rmk: Likewise.
2136 * conf/x86_64-efi.rmk: Likewise.
2137 * conf/i386-coreboot.rmk: Likewise.
2138 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
2139 $(target_cpu) for kern/$(target_cpu)/dl.c and for
2140 kern/$(target_cpu)/cache.S.
2141 * conf/sparc64-ieee1275.rmk: Likewise.
2143 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2145 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
2146 type to `grub_uint8_t', and adjust `padding9' accordingly.
2148 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2150 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
2152 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
2153 assembly in final jump, using register constraints.
2155 (grub_linux_boot): For text mode, initialize `have_vga' using
2156 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
2158 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
2159 right before the final jump.
2161 Set `video_mode' to 0x3.
2163 Document initialization of `video_page', `video_mode' and
2166 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2168 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
2169 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
2170 and set GRUB_LINUX_FLAG_QUIET appropriately.
2172 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2174 Fix build on Debian / sparc.
2176 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
2178 2009-06-28 Pavel Roskin <proski@gnu.org>
2180 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
2183 * util/grub.d/10_linux.in: Match SUSE style initrd names.
2185 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2187 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
2190 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2194 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
2195 file can't be opened. grub_file_open() is already supposed to set
2196 grub_errno / grub_errmsg appropriately.
2197 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2199 2009-06-27 Pavel Roskin <proski@gnu.org>
2200 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2202 * include/grub/dl.h: Include grub/elf.h.
2203 (struct grub_dl): Add symtab field.
2204 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
2205 GRUB_MODULES_MACHINE_READONLY.
2206 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
2207 of the header for read-only modules.
2208 (grub_dl_unload): Free mod->symtab for read-only modules.
2209 * kern/i386/dl.c: Use mod->symtab.
2210 * kern/powerpc/dl.c: Likewise.
2211 * kern/sparc64/dl.c: Likewise.
2212 * kern/x86_64/dl.c: Likewise.
2214 * conf/i386-qemu.rmk: New file.
2215 * kern/i386/qemu/startup.S: Likewise.
2216 * kern/i386/qemu/mmap.c: Likewise.
2217 * boot/i386/qemu/boot.S: Likewise.
2218 * include/grub/i386/qemu/time.h: Likewise.
2219 * include/grub/i386/qemu/serial.h: Likewise.
2220 * include/grub/i386/qemu/kernel.h: Likewise.
2221 * include/grub/i386/qemu/console.h: Likewise.
2222 * include/grub/i386/qemu/boot.h: Likewise.
2223 * include/grub/i386/qemu/init.h: Likewise.
2224 * include/grub/i386/qemu/machine.h: Likewise.
2225 * include/grub/i386/qemu/loader.h: Likewise.
2226 * include/grub/i386/qemu/memory.h: Likewise.
2228 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
2229 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
2230 [qemu] (pkglib_IMAGES): Add `boot.img'.
2231 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
2232 [qemu] (boot_img_FORMAT): New variables.
2233 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
2234 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
2235 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
2236 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
2237 [qemu] (kernel_img_FORMAT): New variables.
2239 * configure.ac: Recognise `i386-qemu'.
2241 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
2242 (for no compression).
2243 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
2244 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
2245 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
2246 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
2249 2009-06-27 Pavel Roskin <proski@gnu.org>
2251 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
2253 * efiemu/prepare32.c: Likewise.
2254 * efiemu/prepare64.c: Likewise.
2256 2009-06-26 Pavel Roskin <proski@gnu.org>
2258 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
2259 * include/grub/elf.h: Define symbols without "32" or "64" based
2260 on GRUB_TARGET_WORDSIZE.
2261 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
2262 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
2264 * efiemu/loadcore64.c: Likewise.
2265 * loader/i386/bsd32.c: Likewise.
2266 * loader/i386/bsd64.c: Likewise.
2267 * kern/dl.c: Remove own ELF definitions.
2268 * util/i386/efi/grub-mkimage.c: Likewise.
2270 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
2272 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
2273 segment 0x0 unconditionally, because the reference generated by
2274 GAS is an absolute address.
2276 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2278 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
2279 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
2281 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2283 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
2284 indexes. Check for -f explicitly.
2285 (search_file): Improve error message.
2286 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
2288 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2290 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
2291 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
2293 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2295 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
2296 * conf/i386-ieee1275.rmk: Likewise.
2297 * conf/i386-coreboot.rmk: Likewise.
2299 * kern/i386/pc/startup.S (grub_stop): Remove function.
2300 * kern/i386/ieee1275/startup.S: Likewise.
2301 * kern/i386/coreboot/startup.S: Likewise.
2302 * kern/i386/misc.S (grub_stop): New function.
2304 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2306 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
2307 * kern/i386/realmode.S (real_to_prot): ... to here.
2309 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2311 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
2313 (kernel_elf_SOURCES): Rename to ...
2314 (kernel_img_SOURCES): ... this.
2315 (kernel_elf_HEADERS): Rename to ...
2316 (kernel_img_HEADERS): ... this. Update all users.
2317 (kernel_elf_ASFLAGS): Rename to ...
2318 (kernel_img_ASFLAGS): ... this.
2319 (kernel_elf_CFLAGS): Rename to ...
2320 (kernel_img_CFLAGS): ... this.
2321 (kernel_elf_LDFLAGS): Rename to ...
2322 (kernel_img_LDFLAGS): ... this.
2323 * conf/i386-coreboot.rmk: Likewise.
2324 * conf/powerpc-ieee1275.rmk: Likewise.
2326 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
2329 2009-06-21 Pavel Roskin <proski@gnu.org>
2331 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
2332 to match nested functions.
2333 * loader/sparc64/ieee1275/linux.c: Likewise.
2335 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
2337 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2339 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
2342 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2344 Fix asm file handling on ELF, and remove workarounds.
2346 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
2347 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
2348 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
2349 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
2351 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2353 Load BSD ELF modules
2355 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
2356 and loader/i386/bsd64.c
2357 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
2358 (FREEBSD_MODTYPE_ELF_MODULE): New definition
2359 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
2360 (grub_freebsd_load_elfmodule32): New declaration
2361 (grub_freebsd_load_elfmoduleobj64): Likewise
2362 (grub_freebsd_load_elf_meta32): Likewise
2363 (grub_freebsd_load_elf_meta64): Likewise
2364 (grub_freebsd_add_meta): Likewise
2365 (grub_freebsd_add_meta_module): Likewise
2366 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
2367 (grub_freebsd_add_meta_module): Likewise and move module-specific
2368 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
2369 (grub_cmd_freebsd): Add elf-kernel specific parts
2370 based on grub_freebsd_add_meta_module
2371 (grub_cmd_freebsd_module): Add type parsing moved from
2372 grub_freebsd_add_meta_module
2373 (grub_cmd_freebsd_module_elf): New function
2374 (cmd_freebsd_module_elf): New variable
2375 (GRUB_MOD_INIT): Register freebsd_module_elf
2376 * loader/i386/bsd32.c: New file
2377 * loader/i386/bsd64.c: Likewise
2378 * loader/i386/bsdXX.c: Likewise
2379 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
2380 (grub_elf64_load): Likewise
2381 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
2383 (grub_elf64_load_hook_t): Likewise
2385 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
2387 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
2389 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
2390 don't write a menu entry for recovery mode.
2392 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2394 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
2395 after it's no longer needed.
2397 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2399 * include/grub/i386/loader.h (grub_linux_prot_size)
2400 (grub_linux_tmp_addr, grub_linux_real_addr)
2401 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
2402 GRUB_MACHINE_PCBIOS.
2403 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
2404 common grub_util_info() call to ...
2405 (generate_image): ... here.
2406 Fix use of uninitialized memory, comparison of signed with
2407 unsigned integers and memory leak.
2408 Remove bogus module address message.
2410 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2412 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
2414 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
2416 2009-06-19 Pavel Roskin <proski@gnu.org>
2418 * configure.ac: Remove stray AC_MSG_CHECKING.
2420 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2422 * disk/scsi.c (grub_scsi_open): use continue instead of big if
2424 2009-06-18 Pavel Roskin <proski@gnu.org>
2426 * conf/common.rmk: Add fs_file.mod.
2427 * disk/fs_file.c: New file.
2428 * include/grub/disk.h (enum grub_disk_dev_id): Add
2429 GRUB_DISK_DEVICE_FILE_ID.
2431 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2433 Fix build with Apple's toolchain. Part 2
2435 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
2438 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2440 Fix build with Apple's toolchain. Part 1
2442 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
2444 * configure.ac: remove a leftover AC_MSG_RESULT
2445 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
2448 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2452 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
2453 (decomp_block): initialize ch
2454 use grub_memcpy instead of memcpy
2456 2009-06-17 Pavel Roskin <proski@gnu.org>
2458 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
2459 version, use declarations needed to use vga_text as the startup
2462 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
2463 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
2465 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
2466 and grub_at_keyboard_fini(), it's done on module load and
2469 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
2471 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
2472 file can't be found.
2473 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2475 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2477 Fix newline handling
2479 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
2480 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
2481 (grub_script_yylex): don't segfault on unterminated script
2482 newline terminates command and variable
2484 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2486 avoid double grub_adjust_range call. Bug reported by David Simner
2488 * kern/disk.c (grub_disk_write): change to raw disk access before
2491 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
2493 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
2494 spaces, for the benefit of help2man.
2495 * util/i386/efi/grub-mkimage.c (usage): Likewise.
2497 2009-06-16 Pavel Roskin <proski@gnu.org>
2499 * kern/i386/halt.c: Include grub/machine/init.h.
2500 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
2502 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
2504 * util/grub.d/30_os-prober.in: Use ${root} in the generated
2507 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
2509 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
2512 2009-06-16 Pavel Roskin <proski@gnu.org>
2514 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
2515 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
2516 save %dx, we only need %dl and we never change it.
2517 * boot/i386/pc/cdboot.S: Don't set the root drive.
2518 * boot/i386/pc/pxeboot.S: Likewise.
2519 * include/grub/i386/pc/boot.h: Remove
2520 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
2521 GRUB_BOOT_MACHINE_DRIVE_CHECK.
2522 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
2523 * kern/i386/pc/init.c (make_install_device): Remove references
2525 * kern/i386/pc/startup.S: Likewise.
2526 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
2528 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2532 * commands/xnu_uuid.c: new file
2533 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
2534 (xnu_uuid_mod_SOURCES): new variable
2535 (xnu_uuid_mod_CFLAGS): likewise
2536 (xnu_uuid_mod_LDFLAGS): likewise
2537 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2538 * conf/i386-ieee1275.rmk: likewise
2539 * conf/i386-pc.rmk: likewise
2540 * conf/powerpc-ieee1275.rmk: likewise
2541 * conf/sparc64-ieee1275.rmk: likewise
2542 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
2544 2009-06-16 Pavel Roskin <proski@gnu.org>
2546 * configure.ac: Avoid '==' in test command, it's not portable.
2548 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2552 * commands/probe.c: new file
2553 * conf/common.rmk (pkglib_MODULES): add probe.mod
2554 (probe_mod_SOURCES): new variable
2555 (probe_mod_CFLAGS): likewise
2556 (probe_mod_LDFLAGS): likewise
2557 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2558 * conf/i386-ieee1275.rmk: likewise
2559 * conf/i386-pc.rmk: likewise
2560 * conf/powerpc-ieee1275.rmk: likewise
2561 * conf/sparc64-ieee1275.rmk: likewise
2563 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2565 Fix handling of string like \"hello\" and "a
2568 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
2569 (grub_script_yylex): fix parsing of quoting, escaping and newline
2571 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2573 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
2576 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
2578 * util/grub-mkconfig.in: Fix parsing of --output option.
2580 2009-06-12 Pavel Roskin <proski@gnu.org>
2582 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
2583 genmk.rb don't need to be generated or installed.
2585 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
2587 * commands/i386/pc/drivemap_int13h.S: add more comments
2589 2009-06-11 Pavel Roskin <proski@gnu.org>
2591 * Makefile.in (uninstall): Uninstall manuals.
2593 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
2594 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
2595 and update-grub_lib in two places.
2596 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
2598 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
2601 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
2602 `entry_lo' to fix variable shadowing.
2604 2009-06-11 Christian Franke <franke@computer.org>
2606 * kern/misc.c (__enable_execute_stack): Add missing return type
2607 to prevent gcc warning.
2609 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2611 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
2613 2009-06-11 Pavel Roskin <proski@gnu.org>
2615 * Makefile.in: Don't rely on any scripts being executable.
2616 Always use $(SHELL) to run shell scripts.
2618 * configure.ac: Always define ___main if using -nostdlib. This
2619 fixes tests on Cygwin.
2621 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
2625 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
2626 is in bytes and not in blocks
2628 2009-06-11 Pavel Roskin <proski@gnu.org>
2630 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
2633 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2635 * util/grub.d/30_os-prober.in: Fix a comment. Source
2636 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
2637 to set the root device. Place drivemap command in the generated
2640 2009-06-11 Pavel Roskin <proski@gnu.org>
2642 * configure.ac: Remove host_m32. Issues with 64-bit utilities
2643 have long been resolved.
2645 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
2647 * util/grub.d/10_linux.in: Capitalise "Linux".
2649 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
2651 2009-06-11 Pavel Roskin <proski@gnu.org>
2653 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
2654 fix a gcc warning and ensure that the function won't ever exit.
2656 * kern/i386/ieee1275/init.c: Add missing prototype for
2659 * loader/ieee1275/multiboot2.c [__i386__]: Include
2660 grub/cpu/multiboot.h.
2662 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
2663 casts to short - they are not portable and cause warnings. Fix
2664 use of uninitialized values in input_buf. Use ARRAY_SIZE.
2666 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2670 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
2672 (grub_get_root_biosnumber_saved): new variable
2673 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
2674 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
2675 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
2676 %dx after the call if necessary
2677 * conf/common.rmk (pkglib_MODULES): remove boot.mod
2678 (boot_mod_SOURCES): remove
2679 (boot_mod_CFLAGS): remove
2680 (boot_mod_LDFLAGS): remove
2681 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
2682 (boot_mod_SOURCES): new variable
2683 (boot_mod_CFLAGS): likewise
2684 (boot_mod_LDFLAGS): likewise
2685 * conf/i386-efi.rmk: likewise
2686 * conf/i386-ieee1275.rmk: likewise
2687 * conf/i386-pc.rmk: likewise
2688 * conf/powerpc-ieee1275.rmk: likewise
2689 * conf/sparc64-ieee1275.rmk: likewise
2690 * conf/x86_64-efi.rmk: likewise
2691 * include/grub/i386/pc/biosnum.h: new file
2692 * lib/i386/pc/biosnum.c: likewise
2693 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
2694 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
2695 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
2697 2009-06-10 Pavel Roskin <proski@gnu.org>
2699 * io/gzio.c (test_header): Don't reuse one buffer for all data.
2700 Use separate variables. Read only the file size at the end, but
2701 not the checksum that we don't use.
2703 * kern/file.c (grub_file_read): Use void pointer for the buffer.
2706 * kern/ieee1275/openfw.c: Remove libc includes.
2707 * kern/ieee1275/cmain.c: Likewise.
2708 * include/grub/ieee1275/ieee1275.h: Likewise.
2710 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
2713 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2715 * Makefile.in: Remove all trailing whitespace.
2716 * conf/i386-pc.rmk: Likewise.
2717 * conf/powerpc-ieee1275.rmk: Likewise.
2718 * conf/sparc64-ieee1275.rmk: Likewise.
2719 * docs/grub.texi: Likewise.
2720 * docs/texinfo.tex: Likewise.
2721 * disk/fs_uuid.c: Likewise.
2722 * disk/lvm.c: Likewise.
2723 * disk/scsi.c: Likewise.
2724 * disk/ata.c: Likewise.
2725 * disk/ieee1275/ofdisk.c: Likewise.
2726 * disk/i386/pc/biosdisk.c: Likewise.
2727 * disk/host.c: Likewise.
2728 * disk/raid.c: Likewise.
2729 * disk/efi/efidisk.c: Likewise.
2730 * disk/usbms.c: Likewise.
2731 * disk/memdisk.c: Likewise.
2732 * disk/loopback.c: Likewise.
2733 * kern/powerpc/dl.c: Likewise.
2734 * kern/device.c: Likewise.
2735 * kern/dl.c: Likewise.
2736 * kern/sparc64/dl.c: Likewise.
2737 * kern/ieee1275/ieee1275.c: Likewise.
2738 * kern/term.c: Likewise.
2739 * kern/fs.c: Likewise.
2740 * kern/i386/dl.c: Likewise.
2741 * kern/i386/pc/startup.S: Likewise.
2742 * kern/i386/pc/init.c: Likewise.
2743 * kern/i386/pc/mmap.c: Likewise.
2744 * kern/i386/pc/lzo1x.S: Likewise.
2745 * kern/i386/ieee1275/init.c: Likewise.
2746 * kern/i386/realmode.S: Likewise.
2747 * kern/i386/tsc.c: Likewise.
2748 * kern/partition.c: Likewise.
2749 * kern/corecmd.c: Likewise.
2750 * kern/file.c: Likewise.
2751 * kern/efi/efi.c: Likewise.
2752 * kern/efi/init.c: Likewise.
2753 * kern/efi/mm.c: Likewise.
2754 * kern/main.c: Likewise.
2755 * kern/err.c: Likewise.
2756 * kern/env.c: Likewise.
2757 * kern/disk.c: Likewise.
2758 * kern/generic/millisleep.c: Likewise.
2759 * kern/generic/rtc_get_time_ms.c: Likewise.
2760 * kern/misc.c: Likewise.
2761 * kern/parser.c: Likewise.
2762 * genmk.rb: Likewise.
2763 * configure.ac: Likewise.
2764 * boot/i386/pc/diskboot.S: Likewise.
2765 * boot/i386/pc/pxeboot.S: Likewise.
2766 * boot/i386/pc/boot.S: Likewise.
2767 * boot/i386/pc/lnxboot.S: Likewise.
2768 * boot/i386/pc/cdboot.S: Likewise.
2769 * parttool/pcpart.c: Likewise.
2770 * video/readers/tga.c: Likewise.
2771 * video/video.c: Likewise.
2772 * video/bitmap.c: Likewise.
2773 * lib/envblk.c: Likewise.
2774 * lib/i386/setjmp.S: Likewise.
2775 * fs/xfs.c: Likewise.
2776 * fs/afs.c: Likewise.
2777 * fs/fat.c: Likewise.
2778 * fs/ntfs.c: Likewise.
2779 * fs/udf.c: Likewise.
2780 * fs/affs.c: Likewise.
2781 * fs/iso9660.c: Likewise.
2782 * fs/hfs.c: Likewise.
2783 * fs/fshelp.c: Likewise.
2784 * fs/ext2.c: Likewise.
2785 * fs/jfs.c: Likewise.
2786 * fs/reiserfs.c: Likewise.
2787 * fs/hfsplus.c: Likewise.
2788 * fs/minix.c: Likewise.
2789 * fs/cpio.c: Likewise.
2790 * fs/sfs.c: Likewise.
2791 * fs/ufs.c: Likewise.
2792 * efiemu/prepare.c: Likewise.
2793 * efiemu/loadcore_common.c: Likewise.
2794 * efiemu/runtime/efiemu.sh: Likewise.
2795 * efiemu/runtime/efiemu.S: Likewise.
2796 * efiemu/runtime/efiemu.c: Likewise.
2797 * efiemu/pnvram.c: Likewise.
2798 * efiemu/main.c: Likewise.
2799 * efiemu/i386/pc/cfgtables.c: Likewise.
2800 * efiemu/i386/loadcore64.c: Likewise.
2801 * efiemu/i386/loadcore32.c: Likewise.
2802 * efiemu/loadcore.c: Likewise.
2803 * efiemu/symbols.c: Likewise.
2804 * efiemu/mm.c: Likewise.
2805 * include/grub/autoefi.h: Likewise.
2806 * include/grub/datetime.h: Likewise.
2807 * include/grub/term.h: Likewise.
2808 * include/grub/hfs.h: Likewise.
2809 * include/grub/lvm.h: Likewise.
2810 * include/grub/i386/tsc.h: Likewise.
2811 * include/grub/i386/linux.h: Likewise.
2812 * include/grub/i386/xnu.h: Likewise.
2813 * include/grub/i386/efiemu.h: Likewise.
2814 * include/grub/i386/pc/biosdisk.h: Likewise.
2815 * include/grub/i386/pc/memory.h: Likewise.
2816 * include/grub/i386/pc/vbe.h: Likewise.
2817 * include/grub/parttool.h: Likewise.
2818 * include/grub/video.h: Likewise.
2819 * include/grub/memory.h: Likewise.
2820 * include/grub/fs.h: Likewise.
2821 * include/grub/partition.h: Likewise.
2822 * include/grub/xnu.h: Likewise.
2823 * include/grub/efi/api.h: Likewise.
2824 * include/grub/efi/pe32.h: Likewise.
2825 * include/grub/efi/memory.h: Likewise.
2826 * include/grub/multiboot.h: Likewise.
2827 * include/grub/usbdesc.h: Likewise.
2828 * include/grub/multiboot2.h: Likewise.
2829 * include/grub/acpi.h: Likewise.
2830 * include/grub/efiemu/efiemu.h: Likewise.
2831 * include/grub/disk.h: Likewise.
2832 * include/grub/ieee1275/ieee1275.h: Likewise.
2833 * include/grub/net.h: Likewise.
2834 * include/grub/machoload.h: Likewise.
2835 * include/grub/macho.h: Likewise.
2836 * include/multiboot.h: Likewise.
2837 * genmoddep.awk: Likewise.
2838 * normal/main.c: Likewise.
2839 * normal/menu_entry.c: Likewise.
2840 * normal/menu_viewer.c: Likewise.
2841 * normal/completion.c: Likewise.
2842 * normal/cmdline.c: Likewise.
2843 * normal/misc.c: Likewise.
2844 * normal/datetime.c: Likewise.
2845 * bus/usb/usbtrans.c: Likewise.
2846 * bus/usb/ohci.c: Likewise.
2847 * bus/usb/uhci.c: Likewise.
2848 * bus/usb/usb.c: Likewise.
2849 * mmap/efi/mmap.c: Likewise.
2850 * mmap/i386/pc/mmap_helper.S: Likewise.
2851 * mmap/i386/pc/mmap.c: Likewise.
2852 * mmap/i386/mmap.c: Likewise.
2853 * mmap/i386/uppermem.c: Likewise.
2854 * mmap/mmap.c: Likewise.
2855 * commands/acpi.c: Likewise.
2856 * commands/echo.c: Likewise.
2857 * commands/blocklist.c: Likewise.
2858 * commands/loadenv.c: Likewise.
2859 * commands/usbtest.c: Likewise.
2860 * commands/boot.c: Likewise.
2861 * commands/parttool.c: Likewise.
2862 * commands/search.c: Likewise.
2863 * commands/cat.c: Likewise.
2864 * commands/i386/pc/play.c: Likewise.
2865 * commands/i386/pc/drivemap.c: Likewise.
2866 * commands/i386/pc/vbeinfo.c: Likewise.
2867 * commands/i386/pc/acpi.c: Likewise.
2868 * commands/i386/pc/vbetest.c: Likewise.
2869 * commands/ls.c: Likewise.
2870 * commands/cmp.c: Likewise.
2871 * commands/test.c: Likewise.
2872 * commands/efi/acpi.c: Likewise.
2873 * commands/gptsync.c: Likewise.
2874 * commands/help.c: Likewise.
2875 * partmap/amiga.c: Likewise.
2876 * partmap/apple.c: Likewise.
2877 * partmap/acorn.c: Likewise.
2878 * partmap/pc.c: Likewise.
2879 * partmap/sun.c: Likewise.
2880 * partmap/gpt.c: Likewise.
2881 * script/sh/lexer.c: Likewise.
2882 * script/sh/function.c: Likewise.
2883 * font/font.c: Likewise.
2884 * font/font_cmd.c: Likewise.
2885 * loader/powerpc/ieee1275/linux.c: Likewise.
2886 * loader/efi/chainloader.c: Likewise.
2887 * loader/multiboot_loader.c: Likewise.
2888 * loader/macho.c: Likewise.
2889 * loader/i386/multiboot.c: Likewise.
2890 * loader/i386/linux.c: Likewise.
2891 * loader/i386/pc/linux.c: Likewise.
2892 * loader/i386/pc/multiboot2.c: Likewise.
2893 * loader/i386/pc/chainloader.c: Likewise.
2894 * loader/i386/pc/xnu.c: Likewise.
2895 * loader/i386/bsd_trampoline.S: Likewise.
2896 * loader/i386/efi/linux.c: Likewise.
2897 * loader/i386/multiboot_elfxx.c: Likewise.
2898 * loader/i386/bsd_helper.S: Likewise.
2899 * loader/i386/bsd.c: Likewise.
2900 * loader/i386/linux_trampoline.S: Likewise.
2901 * loader/i386/xnu_helper.S: Likewise.
2902 * loader/i386/xnu.c: Likewise.
2903 * loader/i386/bsd_pagetable.c: Likewise.
2904 * loader/i386/multiboot_helper.S: Likewise.
2905 * loader/xnu.c: Likewise.
2906 * loader/xnu_resume.c: Likewise.
2907 * io/gzio.c: Likewise.
2908 * term/efi/console.c: Likewise.
2909 * term/terminfo.c: Likewise.
2910 * term/ieee1275/ofconsole.c: Likewise.
2911 * term/i386/pc/serial.c: Likewise.
2912 * term/i386/pc/vesafb.c: Likewise.
2913 * term/i386/pc/vga.c: Likewise.
2914 * term/usb_keyboard.c: Likewise.
2915 * term/gfxterm.c: Likewise.
2916 * aclocal.m4: Likewise.
2917 * util/lvm.c: Likewise.
2918 * util/grub.d/30_os-prober.in: Likewise.
2919 * util/grub.d/10_hurd.in: Likewise.
2920 * util/console.c: Likewise.
2921 * util/grub-macho2img.c: Likewise.
2922 * util/grub-probe.c: Likewise.
2923 * util/hostfs.c: Likewise.
2924 * util/i386/pc/grub-mkimage.c: Likewise.
2925 * util/i386/pc/grub-setup.c: Likewise.
2926 * util/i386/efi/grub-mkimage.c: Likewise.
2927 * util/grub-mkconfig.in: Likewise.
2928 * util/raid.c: Likewise.
2929 * util/resolve.c: Likewise.
2930 * util/grub-mkdevicemap.c: Likewise.
2931 * util/grub-emu.c: Likewise.
2932 * util/getroot.c: Likewise.
2933 * util/hostdisk.c: Likewise.
2934 * util/usb.c: Likewise.
2935 * util/grub-editenv.c: Likewise.
2936 * util/misc.c: Likewise.
2938 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2940 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
2941 `genparttoollist.sh'.
2942 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
2943 Add `*.sh' to the list find searches for and change `mdate.sh'
2946 2009-06-10 Pavel Roskin <proski@gnu.org>
2948 * include/grub/multiboot2.h: Provide compatibility defines for
2950 * include/multiboot2.h: Include stdint.h only if needed, using
2952 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
2954 * loader/ieee1275/multiboot2.c: Likewise.
2955 * loader/multiboot2.c: Likewise.
2956 * loader/multiboot_loader.c: Likewise.
2958 * configure.ac: Use -nostdlib when probing for the target. It
2959 should not be required to have libc for the target.
2961 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
2962 they fail without libc headers for the target.
2963 * include/grub/powerpc/libgcc.h: Use weak attribute for all
2965 * include/grub/sparc64/libgcc.h: Likewise. Don't use
2966 preprocessor conditionals.
2968 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
2969 build system doesn't need to be aware of the tar.c internals.
2971 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
2973 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
2975 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
2977 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
2978 disk limit to 26 for IDE, Virtio, Xen and SCSI.
2980 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
2982 * util/i386/pc/grub-install.in: Change the error message if UUIDs
2983 aren't available if ata.mod gets used.
2985 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
2987 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
2988 initialising controller.
2989 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
2991 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2993 * util/i386/pc/grub-install.in: Add a parameter --disk-module
2994 to choose between ata and biosdisk module on i386-pc.
2996 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
2998 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
2999 Subclass and Programming Interface fields in terms of the 3 byte
3000 Class Code register.
3001 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3003 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
3004 interface is OHCI. Add grub_dprintf for symmetry with
3006 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
3007 interface is UHCI. Add interf variable for programming
3008 interface. Print interface with class/subclass.
3010 * bus/usb/ohci.c: Set interf with correct field.
3012 * bus/usb/uhci.c: Remove unneeded doubled lines.
3013 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
3014 Remove whitespace inside comment.
3016 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
3018 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
3019 as fallback an equivalent option without depth.
3021 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3023 Not fail if unable to retrieve C/H/S on LBA disks
3025 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
3026 if unable to retrieve C/H/S on LBA disks
3028 2009-06-08 Pavel Roskin <proski@gnu.org>
3030 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
3033 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3035 * Makefile.in (uninstall): Remove all $lib_DATA files.
3037 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3039 Bugfix: install on partitionless device
3041 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
3044 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3046 * Makefile.in (uninstall): Remove all $include_DATA files.
3048 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3050 * commands/true.c: New file. Implement the true and false commands.
3051 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
3052 (true_mod_SOURCES): New variable.
3053 (true_mod_CFLAGS): Likewise.
3054 (true_mod_LDFLAGS): Likewise.
3056 2009-06-05 Colin D Bennett <colin@gibibit.com>
3058 Optimized font character lookup using binary search instead of linear
3059 search. Fonts now are required to have the character index ordered by
3062 * font/font.c (load_font_index): Verify that fonts have ordered
3064 (find_glyph): Use binary search instead of linear search to find a
3065 character in a font.
3067 2009-06-05 Michael Scherer <misc@mandriva.org>
3069 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
3070 uses case sensitive btree.
3071 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
3072 only for case insensitive filesystems.
3074 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3076 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
3077 * conf/common.rmk (search_mod_CFLAGS): likewise
3079 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3081 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
3082 compensate a compiler bug
3084 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3086 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
3089 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3091 Definitions for creating asm symbols with Apple's CC
3093 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
3094 [APPLE_CC] (VARIABLE): likewise
3096 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3098 Disable lnxboot.img when compiled
3101 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
3102 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
3103 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
3104 [! APPLE_CC] (CODE_LENG): skip
3105 [! APPLE_CC] (setup_sects): likewise
3106 [! APPLE_CC]: skip filling
3108 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3110 Address in trampolines based on 32-bit registers when compiled
3113 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
3115 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
3117 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3119 Avoid aliases when compiling with Apple's CC for PCBIOS machine
3121 * kern/misc.c [APPLE_CC] (memcpy): new function
3122 [APPLE_CC] (memmove): likewise
3123 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
3124 (memcpy): define alias conditionally on !APPLE_CC
3127 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
3128 APPLE_CC are defined
3129 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
3130 (grub_assert_fail): make prototype conditional
3132 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3134 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
3136 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
3138 (CLEANFILES): add grub-macho2img
3139 (grub_macho2img_SOURCES): new variable
3140 * kern/i386/pc/startup.S (bss_start): new variable
3142 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
3143 * util/grub-macho2img.c: new file
3145 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3147 Use objconv when compiling with Apple's CC
3149 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
3150 (efiemu64.o): likewise
3151 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
3152 when compiling with Apple's CC
3153 (efiemu64_s.o): likewise
3154 * configure.ac: check for objconv when compiling with Apple's CC
3155 * genmk.rb: use objconv for modules when compiled with Apple's CC
3157 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3159 Define segment as well as section when compiling with
3162 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
3163 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
3164 (efiemu_convert_pointer): likewise
3165 (efiemu_set_virtual_address_map): likewise
3166 (efiemu_convert_pointer): likewise
3167 (efiemu_getcrc32): likewise
3168 (init_crc32_table): likewise
3170 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
3171 (GRUB_MOD_DEP): likewise
3173 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3175 Allow a compilation without -mcmodel=large
3177 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
3178 when compiled without -mcmodel=large
3179 (filter_memory_map): remove memory post 4 GiB when compiled
3180 without -mcmodel=large
3181 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
3182 TARGET_CFLAGS when -mcmodel=large isn't supported
3184 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3186 Remove nested functions in efiemu core
3188 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
3190 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3192 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
3194 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
3196 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
3198 (grub_cpu_is_tsc_supported): likewise
3199 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
3201 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3203 Absolute addressing through constant with Apple's cc
3205 * kern/i386/pc/startup.S: Define necessary constants
3206 and address through it when using ABS with Apple's CC
3207 * boot/i386/pc/diskboot.S: likewise
3208 * boot/i386/pc/boot.S: likewise
3209 * boot/i386/pc/lnxboot.S: likewise
3210 * boot/i386/pc/cdboot.S: likewise
3211 * mmap/i386/pc/mmap_helper.S: likewise
3212 * commands/i386/pc/drivemap_int13h.S: likewise
3214 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3216 Check if compiler is apple cc
3218 * Makefile.in (ASFLAGS): new variable
3219 (TARGET_ASFLAGS): likewise
3220 (TARGET_MODULE_FORMAT): likewise
3221 (TARGET_APPLE_CC): likewise
3223 (TARGET_IMG_CFLAGS): likewise
3224 (TARGET_CPPFLAGS): add includedir
3225 * configure.ac: call grub_apple_cc and grub_apple_target_cc
3226 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
3227 Check for linker script only if compiler isn't Apple's CC
3228 (TARGET_MODULE_FORMAT): set
3229 (TARGET_APPLE_CC): likewise
3230 (TARGET_ASFLAGS): likewise
3232 Check for objcopy only if compiler isn't Apple's CC
3233 Check for BSS symbol only if compiler isn't Apple's CC
3234 * genmk.rb: adapt nm options if we use Apple's utils
3235 * aclocal.m4 (grub_apple_cc): new test
3236 (grub_apple_target_cc): likewise
3238 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3240 Simplify sed expressions and improve awk
3242 * Makefile.in (install-local): simplify sed expression
3243 * gencmdlist.sh: likewise
3244 * genmoddep.awk: avoid adding module as a dependency of itself
3246 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3248 Add missing start symbols
3250 * boot/i386/pc/boot.S: add start
3251 * boot/i386/pc/pxeboot.S: likewise
3253 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3255 Fix wrong assumptions with grub-mkimage on EFI
3257 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
3258 (relocate_addresses): consider both r_addend and value at offset
3259 (make_mods_section): zerofill modinfo and header
3260 (convert_elf): write prefix here
3262 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3264 Use .asciz instead of .string
3266 * i386/pc/diskboot.S: use .asciz instead of .string
3267 * i386/pc/boot.S: likewise
3268 * include/grub/dl.h (GRUB_MOD_DEP): likewise
3269 (GRUB_MOD_NAME): likewise
3271 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3275 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
3276 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
3277 (grub_video_setup): remove
3278 (grub_video_set_mode): new prototype
3279 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
3281 (linux_vesafb_res): compile only on PCBIOS
3282 (grub_linux_boot): support gfxpayload
3283 * loader/i386/pc/xnu.c (video_hook): new function
3284 (grub_xnu_set_video): support gfxpayload
3285 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
3286 (DEFAULT_VIDEO_HEIGHT): likewise
3287 (DEFAULT_VIDEO_FLAGS): likewise
3288 (DEFAULT_VIDEO_MODE): new definition
3289 (video_hook): new function
3290 (grub_gfxterm_init): use grub_video_set_mode
3291 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3293 * video/video.c (grub_video_setup): removed
3294 (grub_video_set_mode): new function based on grub_gfxterm_init and
3297 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3299 Avoid calling biosdisk in drivemap
3301 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
3302 (revparse_biosdisk): likewise
3303 (list_mappings): derive name from id directly
3304 (grub_cmd_drivemap): use tryparse_diskstring
3306 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3310 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
3311 (grub_lexer_param): add tokenonhold
3312 (grub_script_create_cmdline): remove cmdline. All callers updated
3313 (grub_script_function_create): make functionname
3314 grub_script_arg. All callers updated
3315 (grub_script_execute_argument_to_string): new prototype
3316 * kern/parser.c (state_transitions): reorder
3317 (grub_parser_cmdline_state): fix a bug and make more compact
3318 * script/sh/execute.c (grub_script_execute_argument_to_string):
3320 (grub_script_execute_cmdline): use new format
3321 * script/sh/function.c (grub_script_function_create): make functionname
3322 grub_script_arg. All callers updated
3323 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
3324 (grub_script_yylex): remove
3325 (grub_script_yylex2): renamed to ...
3326 (grub_script_yylex): ...renamed
3327 parse the expressions like a${b}c
3328 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
3329 (GRUB_PARSER_TOKEN_VAR): remove
3330 (GRUB_PARSER_TOKEN_NAME): likewise
3331 ("if"): declare as typeless
3333 ("function"): likewise
3338 (argument): likewise
3339 (script): accept empty scripts and make exit on error
3340 (arguments): use GRUB_PARSER_TOKEN_ARG
3341 (function): likewise
3342 (command): move error handling to script
3343 (menuentry): move grub_script_lexer_ref before
3344 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
3345 argument. All callers updated
3347 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3349 Prevent GRUB from probing floppies during boot.
3351 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
3352 * commands/search.c (options): Add --no-floppy.
3353 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
3354 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
3355 --no-floppy when searching for UUIDs.
3357 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3359 Simplify the code duplication in commands/search.c.
3361 * commands/search.c (search_label, search_fs_uuid): Merge into ...
3362 (search_fs): ... this. Update all users.
3364 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
3366 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
3368 2009-05-28 Pavel Roskin <proski@gnu.org>
3370 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
3371 Remove the original symlink explicitly.
3373 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
3374 just one slash. That's how grub_fshelp_find_file() does it.
3376 2009-05-26 Pavel Roskin <proski@gnu.org>
3378 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
3381 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
3384 2009-05-25 Christian Franke <franke@computer.org>
3386 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
3388 (grub_atapi_identify): Add wait after drive select.
3389 (grub_ata_identify): Do more strict status register check before
3390 calling grub_atapi_identify (). Suppress error message if status
3391 register is 0x00 after command failure. Add status register
3392 check after PIO read to avoid bogus identify due to stuck DRQ.
3393 Thanks to Pavel Roskin for testing.
3394 (grub_device_initialize): Remove unsafe status register check.
3395 Thanks to 'phcoder' for problem report and patch.
3396 Prevent sign extension in debug message.
3398 2009-05-23 Colin D Bennett <colin@gibibit.com>
3400 Cleaned up `include/grub/normal.h'. Grouped prototypes by
3401 definition file, and functions defined in `normal/menu.c' have had
3402 their prototypes moved to `include/grub/menu.h' for consistency.
3404 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
3406 (grub_menu_get_entry): Likewise.
3407 (grub_menu_get_timeout): Likewise.
3408 (grub_menu_set_timeout): Likewise.
3409 (grub_menu_execute_entry): Likewise.
3410 (grub_menu_execute_with_fallback): Likewise.
3411 (grub_menu_entry_run): Likewise.
3413 * include/grub/normal.h: Re-ordered and grouped function
3414 prototypes by file that the function is defined in.
3415 (grub_menu_execute_callback): Removed; moved to menu.h.
3416 (grub_menu_get_entry): Likewise.
3417 (grub_menu_get_timeout): Likewise.
3418 (grub_menu_set_timeout): Likewise.
3419 (grub_menu_execute_entry): Likewise.
3420 (grub_menu_execute_with_fallback): Likewise.
3421 (grub_menu_entry_run): Likewise.
3422 (grub_menu_addentry): Renamed from this ...
3423 (grub_normal_add_menu_entry): ... to this.
3425 * normal/main.c (grub_menu_addentry): Renamed from this ...
3426 (grub_normal_add_menu_entry): ... to this.
3428 * script/sh/execute.c (grub_script_execute_menuentry): Update
3429 reference to renamed grub_menu_addentry function.
3431 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
3433 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
3435 2009-05-22 Pavel Roskin <proski@gnu.org>
3437 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
3438 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
3439 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
3440 compiling for the i386 targets, but not for the utilities.
3442 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
3444 (grub_root_drive): Likewise.
3445 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
3447 (grub_root_drive): Change size to byte.
3448 (grub_start_addr): Remove.
3449 (grub_end_addr): Likewise.
3450 (grub_apm_bios_info): Likewise.
3452 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
3454 * normal/i386: Remove.
3455 * normal/powerpc: Likewise.
3456 * normal/sparc64: Likewise.
3457 * normal/x86_64: Likewise.
3459 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
3461 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
3462 * loader/i386/linux_trampoline.S: Fix indentation
3463 * loader/i386/xnu_helper.S: Likewise
3465 2009-05-18 Colin D Bennett <colin@gibibit.com>
3467 Display error messages when parsing a Lua statement fails.
3468 Previously, executing a syntactically invalid statement like
3469 ")foo" or "bar;" would silently fail.
3471 * script/lua/grub_main.c (handle_lua_error): New function.
3472 (grub_lua_parse_line): Improved reporting of Lua parser and
3475 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3477 Remove -Werror which causes build to fail on some systems
3479 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
3480 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
3481 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
3483 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3485 trampoline for linux on 64-bit platform
3487 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
3488 loader/i386/efi/linux_trampoline.S
3489 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
3491 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
3493 * loader/i386/linux_trampoline.S: moved here
3494 * loader/i386/efi/linux.c (allocate_pages): reserve space for
3496 (jumpvector): removed
3497 (grub_linux_trampoline_start): new declaration
3498 (grub_linux_trampoline_end): likewise
3499 (grub_linux_boot): use trampoline when on 64-bit platform
3500 * loader/i386/linux.c: likewise
3502 2009-05-16 Pavel Roskin <proski@gnu.org>
3504 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
3505 const to avoid a warning.
3506 (grub_lua_setenv): Likewise.
3507 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
3508 lmsg to fix a warning.
3510 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3512 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
3513 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3514 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
3515 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3516 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3517 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3518 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3519 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3521 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3523 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
3525 2009-05-16 Bean <bean123ch@gmail.com>
3527 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
3528 (lua_mod_SOURCES): New variable.
3529 (lua_mod_CFLAGS): Likewise.
3530 (lua_mod_LDFLAGS): Likewise.
3532 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
3533 (setjmp_mod_SOURCES): New variable.
3534 (setjmp_mod_CFLAGS): Likewise.
3535 (setjmp_LDFLAGS): Likewise.
3537 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
3538 (setjmp_mod_SOURCES): New variable.
3539 (setjmp_mod_CFLAGS): Likewise.
3540 (setjmp_LDFLAGS): Likewise.
3542 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3543 (setjmp_mod_SOURCES): New variable.
3544 (setjmp_mod_CFLAGS): Likewise.
3545 (setjmp_LDFLAGS): Likewise.
3547 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3548 (setjmp_mod_SOURCES): New variable.
3549 (setjmp_mod_CFLAGS): Likewise.
3550 (setjmp_LDFLAGS): Likewise.
3552 * normal/i386/setjmp.S: Moved from here ...
3553 * lib/i386/setjmp.S: ... Moved here
3554 * normal/x86_64/setjmp.S: Moved from here ...
3555 * lib/x86_64/setjmp.S: ... Moved here
3556 * normal/powerpc/setjmp.S: Moved from here ...
3557 * lib/powerpc/setjmp.S: ... Moved here
3558 * normal/sparc64/setjmp.S: Moved from here ...
3559 * lib/sparc64/setjmp.S: ... Moved here
3561 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
3562 returns_twice in mingw.
3564 * script/lua/grub_lib.c: New file.
3565 * script/lua/grub_lib.h: Likewise.
3566 * script/lua/grub_lua.h: Likewise.
3567 * script/lua/grub_main.c: Likewise.
3568 * script/lua/lapi.c: Likewise.
3569 * script/lua/lapi.h: Likewise.
3570 * script/lua/lauxlib.c: Likewise.
3571 * script/lua/lauxlib.h: Likewise.
3572 * script/lua/lbaselib.c: Likewise.
3573 * script/lua/lcode.c: Likewise.
3574 * script/lua/lcode.h: Likewise.
3575 * script/lua/ldblib.c: Likewise.
3576 * script/lua/ldebug.c: Likewise.
3577 * script/lua/ldebug.h: Likewise.
3578 * script/lua/ldo.c: Likewise.
3579 * script/lua/ldo.h: Likewise.
3580 * script/lua/ldump.c: Likewise.
3581 * script/lua/lfunc.c: Likewise.
3582 * script/lua/lfunc.h: Likewise.
3583 * script/lua/lgc.c: Likewise.
3584 * script/lua/lgc.h: Likewise.
3585 * script/lua/linit.c: Likewise.
3586 * script/lua/liolib.c: Likewise.
3587 * script/lua/llex.c: Likewise.
3588 * script/lua/llex.h: Likewise.
3589 * script/lua/llimits.h: Likewise.
3590 * script/lua/lmathlib.c: Likewise.
3591 * script/lua/lmem.c: Likewise.
3592 * script/lua/lmem.h: Likewise.
3593 * script/lua/loadlib.c: Likewise.
3594 * script/lua/lobject.c: Likewise.
3595 * script/lua/lobject.h: Likewise.
3596 * script/lua/lopcodes.c: Likewise.
3597 * script/lua/lopcodes.h: Likewise.
3598 * script/lua/loslib.c: Likewise.
3599 * script/lua/lparser.c: Likewise.
3600 * script/lua/lparser.h: Likewise.
3601 * script/lua/lstate.c: Likewise.
3602 * script/lua/lstate.h: Likewise.
3603 * script/lua/lstring.c: Likewise.
3604 * script/lua/lstring.h: Likewise.
3605 * script/lua/lstrlib.c: Likewise.
3606 * script/lua/ltable.c: Likewise.
3607 * script/lua/ltable.h: Likewise.
3608 * script/lua/ltablib.c: Likewise.
3609 * script/lua/ltm.c: Likewise.
3610 * script/lua/ltm.h: Likewise.
3611 * script/lua/lua.h: Likewise.
3612 * script/lua/luaconf.h: Likewise.
3613 * script/lua/lualib.h: Likewise.
3614 * script/lua/lundump.c: Likewise.
3615 * script/lua/lundump.h: Likewise.
3616 * script/lua/lvm.c: Likewise.
3617 * script/lua/lvm.h: Likewise.
3618 * script/lua/lzio.c: Likewise.
3619 * script/lua/lzio.h: Likewise.
3621 2009-05-16 Bean <bean123ch@gmail.com>
3623 * include/grub/kernel.h (grub_module_header_types): Add type
3626 * kern/main.c (grub_load_config): New function.
3627 (grub_main): Call grub_load_config to read boot config.
3629 * grub-mkimage (generate_image): New parameter config_path.
3630 (options): New option --config.
3631 (main): Parse --config option, and pass it to generate_image.
3633 2009-05-14 Christian Franke <franke@computer.org>
3635 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
3636 This fixes build on Cygwin.
3638 2009-05-14 Pavel Roskin <proski@gnu.org>
3640 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
3641 jump. This saves two bytes, so the typical case of 2 swapped
3642 drives would fit 32 bytes.
3644 2009-05-13 Pavel Roskin <proski@gnu.org>
3646 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
3647 grub_uint32_t to avoid a warning.
3649 * loader/i386/linux.c (allocate_pages): When assigning
3650 real_mode_mem, cast through grub_size_t to fix a warning. The
3651 code already makes sure that the value would fit a pointer.
3652 (grub_linux_setup_video): Cast render_target->data to
3653 grub_size_t to fix a warning.
3655 2009-05-13 Javier MartÃn <lordhabbit@gmail.com>
3657 * commands/i386/pc/drivemap.c: New file - implement drivemap
3659 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
3660 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
3662 2009-05-13 Pavel Roskin <proski@gnu.org>
3664 * util/i386/pc/grub-setup.c (setup): Remove unused variable
3665 embedding_area_exists.
3667 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
3669 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
3670 it easier to understand / work with.
3671 Improve warning messages for cases where there's no embedding area,
3672 or when it is too small (or core.img too large).
3674 2009-05-13 Pavel Roskin <proski@gnu.org>
3676 * loader/i386/pc/multiboot2.c: Add necessary includes for
3677 grub_multiboot2_real_boot().
3679 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
3680 PX record is always little-endian. We only need the lower 2
3683 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
3684 facilitate code reuse.
3685 (grub_cpio_mount): Use "struct head", not a char buffer. This
3686 fixes a warning reported by gcc 4.4.
3688 * kernel/disk.c (grub_disk_read): Use void pointer for the
3690 (grub_disk_write): Use const void pointer for the buffer.
3691 Adjust all callers. Remove unnecessary casts.
3693 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
3695 * util/i386/pc/grub-install.in: Update copyright year.
3697 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3701 * commands/gptsync.c: new file
3702 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
3703 (gptsync_mod_SOURCES): new variable
3704 (gptsync_mod_CFLAGS): likewise
3705 (gptsync_mod_LDFLAGS): likewise
3706 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
3708 (GRUB_PC_PARTITION_TYPE_HFS): likewise
3709 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
3710 * conf/i386-ieee1275.rmk: likewise
3711 * conf/i386-pc.rmk: likewise
3712 * conf/powerpc-ieee1275.rmk: likewise
3714 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3718 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
3719 (grub_dl_ref): likewise
3721 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
3723 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
3724 split in two functions (one for msdos and one for gpt).
3726 2009-05-08 Pavel Roskin <proski@gnu.org>
3728 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
3731 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
3732 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
3733 Initialize them with -1. Add sanity check for bad1. Eliminate
3736 2009-05-08 David S. Miller <davem@davemloft.net>
3738 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
3740 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
3742 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
3745 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
3747 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
3748 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
3750 2009-05-05 David S. Miller <davem@davemloft.net>
3752 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
3754 2009-05-05 Pavel Roskin <proski@gnu.org>
3756 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
3757 of grub_dl_ref() and grub_dl_unref().
3758 * commands/parttool.c: Remove preprocessor conditionals around
3759 grub_dl_ref() and grub_dl_unref().
3760 * fs/affs.c: Likewise.
3761 * fs/afs.c: Likewise.
3762 * fs/cpio.c: Likewise.
3763 * fs/ext2.c: Likewise.
3764 * fs/fat.c: Likewise.
3765 * fs/hfs.c: Likewise.
3766 * fs/hfsplus.c: Likewise.
3767 * fs/iso9660.c: Likewise.
3768 * fs/jfs.c: Likewise.
3769 * fs/minix.c: Likewise.
3770 * fs/ntfs.c: Likewise.
3771 * fs/reiserfs.c: Likewise.
3772 * fs/sfs.c: Likewise.
3773 * fs/udf.c: Likewise.
3774 * fs/ufs.c: Likewise.
3775 * fs/xfs.c: Likewise.
3776 * include/grub/dl.h: Likewise.
3777 * loader/xnu.c: Likewise.
3779 2009-05-04 Pavel Roskin <proski@gnu.org>
3781 * commands/acpi.c: Remove unused variable my_mod.
3782 * partmap/amiga.c: Likewise.
3783 * partmap/apple.c: Likewise.
3784 * partmap/gpt.c: Likewise.
3785 * partmap/pc.c: Likewise.
3786 * partmap/sun.c: Likewise.
3787 * term/gfxterm.c: Likewise.
3788 * term/i386/pc/vesafb.c: Likewise.
3789 * term/i386/pc/vga.c: Likewise.
3791 2009-05-04 David S. Miller <davem@davemloft.net>
3793 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
3794 pointer args to grub_ieee1275_get_property().
3796 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
3798 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
3799 devices, and do not traverse down under controller nodes.
3801 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
3802 (grub_ofdisk_open): Use it to un-escape "," characters.
3803 * kern/disk.c (find_part_sep): New.
3804 (grub_disk_open): Use it to find the first non-escaped ','
3805 character in the disk name.
3806 * util/ieee1275/devicemap.c (escape_of_path): New.
3807 (grub_util_emit_devicemap_entry): Use it.
3808 * util/sparc64/ieee1275/grub-install.in: Update script to
3809 strip partition specifiers properly by not triggering on
3810 '\' escaped ',' characters.
3812 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3814 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
3816 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
3818 (linux_vesafb_modes): Add a lot of additional modes to the list (based
3819 on documentation from Wikipedia).
3821 2009-05-04 Pavel Roskin <proski@gnu.org>
3823 * disk/ata.c: Spelling fixes.
3824 * disk/raid.c: Likewise.
3825 * disk/usbms.c: Likewise.
3826 * disk/dmraid_nvidia.c: Likewise.
3827 * kern/ieee1275/openfw.c: Likewise.
3828 * kern/ieee1275/init.c: Likewise.
3829 * kern/ieee1275/cmain.c: Likewise.
3830 * boot/i386/pc/cdboot.S: Likewise.
3831 * video/readers/png.c: Likewise.
3832 * video/i386/pc/vbe.c: Likewise.
3833 * fs/udf.c: Likewise.
3834 * fs/hfs.c: Likewise.
3835 * fs/reiserfs.c: Likewise.
3836 * efiemu/runtime/efiemu.c: Likewise.
3837 * efiemu/main.c: Likewise.
3838 * efiemu/mm.c: Likewise.
3839 * include/grub/elf.h: Likewise.
3840 * include/grub/xnu.h: Likewise.
3841 * include/grub/usbdesc.h: Likewise.
3842 * include/grub/usb.h: Likewise.
3843 * include/grub/script_sh.h: Likewise.
3844 * include/grub/lib/LzmaEnc.h: Likewise.
3845 * include/grub/efiemu/efiemu.h: Likewise.
3846 * include/grub/command.h: Likewise.
3847 * normal/menu.c: Likewise.
3848 * normal/main.c: Likewise.
3849 * normal/datetime.c: Likewise.
3850 * bus/usb/uhci.c: Likewise.
3851 * mmap/i386/uppermem.c: Likewise.
3852 * mmap/mmap.c: Likewise.
3853 * commands/acpi.c: Likewise.
3854 * commands/test.c: Likewise.
3855 * partmap/apple.c: Likewise.
3856 * font/font.c: Likewise.
3857 * loader/sparc64/ieee1275/linux.c: Likewise.
3858 * loader/macho.c: Likewise.
3859 * loader/i386/bsd_trampoline.S: Likewise.
3860 * loader/i386/bsd.c: Likewise.
3861 * loader/xnu.c: Likewise.
3862 * term/i386/pc/vesafb.c: Likewise.
3863 * term/usb_keyboard.c: Likewise.
3864 * util/resolve.c: Likewise.
3865 * util/getroot.c: Likewise.
3867 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3869 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
3871 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3873 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
3876 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3878 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
3879 parameter only available on BIOS.
3881 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3883 Removed wrong semicolon in declaration
3885 * grub/misc.h (grub_dprintf): remove semicolon
3887 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3889 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
3890 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
3891 is done by grub_cmd_linux() now).
3892 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
3893 restore video to text mode.
3894 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
3895 indicates lack of "vga=" parameter. "vga=0" is mapped to
3896 `GRUB_LINUX_VID_MODE_NORMAL'.
3898 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3900 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
3901 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
3902 and `normal/script.c'. Add `kern/rescue_reader.c',
3903 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
3904 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
3905 `grub_script.tab.c'.
3907 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3908 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
3909 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3910 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
3911 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3913 * Makefile.in: Remove duplicated 2008 in Copyright line.
3915 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3917 * util/misc.c (grub_util_warn): New function. Emits a warning
3919 * include/grub/util/misc.h (grub_util_warn): New declaration.
3921 * util/i386/pc/grub-install.in: Understand --force and pass it down
3924 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
3926 (setup): Improve error messages and add warnings when requested to
3927 install in odd layouts. Refuse to install using blocklists unless
3930 2009-05-04 martin f. krafft <madduck@madduck.net>
3932 * disk/raid.c (grub_raid_scan_device): Improve debug message.
3934 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3936 Updated copyright year
3938 * fs/hfsplus.c: updated copyright year
3940 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3944 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
3945 in the space previously used by unused3
3946 (grub_hfsplus_uuid): new function
3947 (grub_hfsplus_fs): added uuid field
3949 2009-05-03 Pavel Roskin <proski@gnu.org>
3951 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
3952 suppress warnings. It's no longer needed.
3953 * disk/host.c: Likewise.
3954 * disk/ata_pthru.c: Likewise.
3955 * disk/loopback.c: Likewise.
3956 * hook/datehook.c: Likewise.
3957 * parttool/pcpart.c: Likewise.
3958 * fs/i386/pc/pxe.c: Likewise.
3959 * fs/ntfscomp.c: Likewise.
3960 * efiemu/main.c: Likewise.
3961 * mmap/mmap.c: Likewise.
3962 * commands/crc.c: Likewise.
3963 * commands/hexdump.c: Likewise.
3964 * commands/hdparm.c: Likewise.
3965 * commands/acpi.c: Likewise.
3966 * commands/echo.c: Likewise.
3967 * commands/minicmd.c: Likewise.
3968 * commands/blocklist.c: Likewise.
3969 * commands/memrw.c: Likewise.
3970 * commands/loadenv.c: Likewise.
3971 * commands/usbtest.c: Likewise.
3972 * commands/lsmmap.c: Likewise.
3973 * commands/boot.c: Likewise.
3974 * commands/parttool.c: Likewise.
3975 * commands/configfile.c: Likewise.
3976 * commands/search.c: Likewise.
3977 * commands/ieee1275/suspend.c: Likewise.
3978 * commands/cat.c: Likewise.
3979 * commands/i386/pc/pxecmd.c: Likewise.
3980 * commands/i386/pc/play.c: Likewise.
3981 * commands/i386/pc/halt.c: Likewise.
3982 * commands/i386/pc/vbeinfo.c: Likewise.
3983 * commands/i386/pc/vbetest.c: Likewise.
3984 * commands/lspci.c: Likewise.
3985 * commands/date.c: Likewise.
3986 * commands/handler.c: Likewise.
3987 * commands/ls.c: Likewise.
3988 * commands/test.c: Likewise.
3989 * commands/cmp.c: Likewise.
3990 * commands/efi/loadbios.c: Likewise.
3991 * commands/efi/fixvideo.c: Likewise.
3992 * commands/halt.c: Likewise.
3993 * commands/help.c: Likewise.
3994 * commands/reboot.c: Likewise.
3995 * hello/hello.c: Likewise.
3996 * script/sh/main.c: Likewise.
3997 * loader/xnu.c: Likewise.
3998 * term/terminfo.c: Likewise.
3999 * term/i386/pc/serial.c: Likewise.
4000 * term/usb_keyboard.c: Likewise.
4002 2009-05-03 David S. Miller <davem@davemloft.net>
4004 * normal/menu.c: Include grub/parser.h
4006 2009-05-03 Pavel Roskin <proski@gnu.org>
4008 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
4010 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
4011 Suggested by Javier MartÃn <lordhabbit@gmail.com>
4013 * util/i386/pc/grub-mkrescue.in: Allow for the case when
4014 efiemu??.o doesn't exist.
4015 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
4018 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
4020 FreeBSD 64-bit support
4022 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
4023 and loader/i386/bsd_trampoline.S
4024 (bsd_mod_ASFLAGS): new variable
4025 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
4026 (FREEBSD_MODTYPE_KERNEL64): likewise
4027 (grub_bsd64_trampoline_start): likewise
4028 (grub_bsd64_trampoline_end): likewise
4029 (grub_bsd64_trampoline_selfjump): likewise
4030 (grub_bsd64_trampoline_gdt): likewise
4031 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
4032 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
4033 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
4034 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
4035 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4037 * loader/i386/bsd_pagetable.c: new file
4038 * loader/i386/bsd_trampoline.S: likewise
4039 * loader/i386/bsd.c (ALIGN_QWORD): new macro
4040 (ALIGN_VAR): likewise
4041 (entry_hi): new variable
4042 (kern_end_mdofs): likewise
4043 (is_64bit): likewise
4044 (grub_freebsd_add_meta): use ALIGN_VAR
4045 (grub_e820_mmap): new declaration
4046 (grub_freebsd_add_mmap): new function
4047 (grub_freebsd_add_meta_module): support 64 bit kernels
4048 (grub_freebsd_list_modules): use ALIGN_VAR
4049 (gdt_descriptor): new declaration
4050 (grub_freebsd_boot): support 64 bit kernels
4051 (grub_bsd_elf64_hook): new function
4052 (grub_bsd_load_elf): support elf64
4054 2009-05-03 Bean <bean123ch@gmail.com>
4056 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
4057 after we get the result of if statement.
4059 2009-05-03 Bean <bean123ch@gmail.com>
4061 * Makefile.in (enable_efiemu): New variable.
4063 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
4065 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
4067 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
4068 path, add -mno-red-zone option.
4069 (efiemu64_s.o): Likewise.
4070 (efiemu64.o): Use macro $^ for source file.
4072 * configure.ac (--enable-efiemu): New option.
4074 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4078 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
4079 (pkglib_MODULES): add xnu.mod
4080 (xnu_mod_SOURCES): new variable
4081 (xnu_mod_CFLAGS): likewise
4082 (xnu_mod_LDFLAGS): likewise
4083 (xnu_mod_ASFLAGS): likewise
4084 * conf/i386-pc.rmk: likewise
4085 * conf/x86_64-efi.rmk: likewise
4086 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
4088 * include/grub/i386/macho.h: new file
4089 * include/grub/i386/xnu.h: likewise
4090 * include/grub/macho.h: likewise
4091 * include/grub/machoload.h: likewise
4092 * include/grub/x86_64/macho.h: likewise
4093 * include/grub/x86_64/xnu.h: likewise
4094 * include/grub/xnu.h: likewise
4095 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
4096 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
4097 * loader/i386/efi/xnu.c: new file
4098 * loader/i386/pc/xnu.c: likewise
4099 * loader/i386/xnu.c: likewise
4100 * loader/i386/xnu_helper.S: likewise
4101 * loader/macho.c: likewise
4102 * loader/xnu.c: likewise
4103 * loader/xnu_resume.c: likewise
4104 * util/grub-dumpdevtree: likewise
4105 * include/grub/i386/pit.h: include grub/err.h
4106 (grub_pit_wait): export
4107 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
4109 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4113 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
4114 _linux_efi, linux_efi.
4115 new files in grub-emu
4116 new targets efiemu32.o and efiemu64.o
4117 * loader/linux_normal_efiemu.c: likewise
4118 * loader/i386/efi/linux.c: added preliminary efiemu support
4119 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
4121 * include/grub/autoefi.h: new file
4122 * include/grub/i386/efiemu.h: likewise
4123 * include/grub/i386/pc/efiemu.h: likewise
4124 * include/grub/efi/api.h: add LL suffix when necessary
4125 new definitions relating to tables
4126 * include/grub/efiemu/efiemu.h: new file
4127 * include/grub/efiemu/runtime.h: likewise
4128 * efiemu/prepare.c: likewise
4129 * efiemu/loadcore_common.c: likewise
4130 * efiemu/loadcore64.c: likewise
4131 * efiemu/runtime/efiemu.sh: likewise
4132 * efiemu/runtime/efiemu.S: likewise
4133 * efiemu/runtime/efiemu.c: likewise
4134 * efiemu/runtime/config.h: likewise
4135 * efiemu/prepare32.c: likewise
4136 * efiemu/main.c: likewise
4137 * efiemu/modules/pnvram.c: likewise
4138 * efiemu/modules/i386: likewise
4139 * efiemu/modules/i386/pc: likewise
4140 * efiemu/modules/acpi.c: likewise
4141 * efiemu/i386/pc/cfgtables.c: likewise
4142 * efiemu/i386/loadcore64.c: likewise
4143 * efiemu/i386/loadcore32.c: likewise
4144 * efiemu/prepare64.c: likewise
4145 * efiemu/loadcore.c: likewise
4146 * efiemu/symbols.c: likewise
4147 * efiemu/mm.c: likewise
4148 * efiemu/loadcore32.c: likewise
4150 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4154 * commands/acpi.c: new file
4155 * commands/i386/pc/acpi.c: likewise
4156 * commands/efi/acpi.c: likewise
4157 * include/grub/acpi.h: likewise
4158 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
4159 (acpi_mod_SOURCES): new variable
4160 (acpi_mod_CFLAGS): likewise
4161 (acpi_mod_LDFLAGS): likewise
4162 * conf/i386-efi.rmk: likewise
4163 * conf/x86_64-efi.rmk: likewise
4165 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4167 Missing part from mmap patch
4169 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
4170 (grub_mmap_unregister)
4171 (grub_mmap_free_and_unregister): use grub_mmap_register
4173 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4177 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
4178 * loader/i386/linux.c (find_mmap_size): likewise
4179 (allocate_pages): likewise
4180 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
4181 (grub_fill_multiboot_mmap): likewise
4182 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
4183 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
4184 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
4185 (OPENBSD_MMAP_RESERVED): likewise
4186 * include/grub/i386/pc/memory.h: include grub/memory.h
4187 (grub_lower_mem): removed
4188 (grub_upper_mem): likewise
4189 (GRUB_MACHINE_MEMORY_ACPI): new definition
4190 (GRUB_MACHINE_MEMORY_NVS): likewise
4191 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
4192 (GRUB_MACHINE_MEMORY_HOLE): likewise
4193 (grub_machine_mmap_register): likewise
4194 (grub_machine_mmap_unregister): likewise
4195 (grub_machine_get_upper): likewise
4196 (grub_machine_get_lower): likewise
4197 (grub_machine_get_post64): likewise
4198 * include/grub/i386/efi/memory.h: new file
4199 * include/grub/x86_64/efi/memory.h: likewise
4200 * include/grub/efi/memory.h: likewise
4201 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
4202 (mmap_mod_SOURCES): new variable
4203 (mmap_mod_LDFLAGS): likewise
4204 (mmap_mod_ASFLAGS): likewise
4205 * conf/i386-coreboot.rmk: likewise
4206 * conf/i386-ieee1275.rmk: likewise
4207 * conf/i386-efi.rmk: likewise
4208 * conf/x86_64-efi.rmk: likewise
4209 * include/grub/types.h (UINT_TO_PTR): new macro
4210 (PTR_TO_UINT32): likewise
4211 (PTR_TO_UINT64): likewise
4212 * include/grub/memory.h: new file
4213 * mmap/i386/pc/mmap.c: likewise
4214 * mmap/i386/pc/mmap_helper.S: likewise
4215 * mmap/i386/uppermem.c: likewise
4216 * mmap/mmap.c: likewise
4217 * mmap/efi/mmap.c: likewise
4218 * kern/i386/coreboot/init.c (grub_machine_init): don't use
4220 * kern/i386/pc/init.c (grub_lower_mem): removed variable
4221 (grub_upper_mem): likewise
4222 (grub_machine_init): don't use grub_upper_mem,
4223 make grub_lower_mem local
4224 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
4225 grub_mmap_iterate and grub_mmap_get_upper
4226 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
4228 2009-05-02 Bean <bean123ch@gmail.com>
4230 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
4232 (pkglib_MODULES): Add normal.mod and sh.mod.
4233 (normal_SOURCES): New variable.
4234 (normal_mod_CFLAGS): Likewise.
4235 (normal_mod_LDFLAGS): Likewise.
4236 (sh_mod_SOURCES): Likewise.
4237 (sh_mod_CFLAGS): Likewise.
4238 (sh_mod_LDFLAGS): Likewise.
4240 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
4241 script/sh/lexer.c_DEPENDENCIES.
4242 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
4243 kern/rescue_reader.c and kern/rescue_parser.c.
4244 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
4245 (grub_emu_SOURCES): Change source files.
4246 (pkglib_MODULES): Remove normal.mod.
4247 (normal_SOURCES): Removed.
4248 (normal_mod_CFLAGS): Likewise.
4249 (normal_mod_LDFLAGS): Likewise.
4250 * conf/i386-coreboot.rmk: Likewise.
4251 * conf/i386-efi.rmk: Likewise.
4252 * conf/i386-ieee1276.rmk: Likewise.
4253 * conf/powerpc-ieee1275.rmk: Likewise.
4254 * conf/sparc64-ieee1275.rmk: Likewise.
4255 * conf/x86_64-efi.rmk: Likewise.
4257 * include/grub/command.h (grub_command_execute): New inline function.
4259 * include/grub/menu.h (grub_menu_entry): Removed commands field.
4261 * include/grub/normal.h: Remove <grub/setjmp.h>.
4262 (grub_fs_module_list): Moved to normal/autofs.c.
4263 (grub_exit_env): Removed.
4264 (grub_command_execute): Likewise.
4265 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
4267 (read_command_list): New function declaration.
4268 (read_fs_list): Likewise.
4270 * include/parser.h: Include <grub/reader.h>.
4271 (grub_parser_split_cmdline): Change type of getline parameter.
4272 (grub_parser): New structure.
4273 (grub_parser_class): New variable.
4274 (grub_parser_execute): New function declaration.
4275 (grub_register_rescue_parser): Likewise.
4276 (grub_parser_register): New inline function.
4277 (grub_parser_unregister): Likewise.
4278 (grub_parser_get_current): Likewise.
4279 (grub_parser_set_current): Likewise.
4281 * include/grub/reader.h: New file.
4282 * kern/reader.c: Likewise.
4283 * kern/rescue_parser.c: Likewise.
4284 * kern/rescue_reader.c: Likewise.
4285 * normal/autofs.c: Likewise.
4286 * normal/dyncmd.c: Likewise.
4288 * include/grub/rescue.h: Removed.
4289 * normal/command.h: Likewise.
4291 * include/grub/script.h: Moved to ...
4292 * include/grub/script_sh.h: ... Moved here.
4293 * normal/execute.c: Moved to ...
4294 * script/sh/execute.c: ... Moved here.
4295 * normal/function.c: Moved to ...
4296 * script/sh/function.c: ... Moved here.
4297 * normal/lexer.c: Moved to ...
4298 * script/sh/lexer.c: ... Moved here.
4299 * normal/parser.y: Moved to ...
4300 * script/sh/parser.y: ... Moved here.
4301 * normal/script.c: Moved to ...
4302 * script/sh/script.c: ... Moved here.
4304 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
4306 (grub_exit_env): Removed.
4307 (fs_module_list): Moved to normal/autofs.c.
4308 (grub_file_getline): Don't handle comment here.
4309 (free_menu): Skip removed field entry->commands.
4310 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
4312 (read_config_file): Removed nested parameter, change getline function.
4313 (grub_enter_normal_mode): Removed.
4314 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
4315 (read_command_list): Likewise.
4316 (autoload_fs_module): Moved to normal/autofs.c.
4317 (read_fs_list): Likewise.
4318 (reader_nested): New variable.
4319 (grub_normal_execute): Run parser.sh to switch to sh parser.
4320 (grub_cmd_rescue): Removed.
4321 (cmd_normal): Removed.
4322 (grub_cmd_normal): Unregister itself at the beginning. Don't register
4324 (grub_cmdline_run): New function.
4325 (grub_normal_reader_init): Likewise.
4326 (grub_normal_read_line): Likewise.
4327 (grub_env_write_pager): Likewise.
4328 (cmdline): New variable.
4329 (grub_normal_reader): Likewise.
4330 (GRUB_MOD_INIT): Register normal reader and set as current, register
4331 pager hook, register normal command with grub_register_command_prio,
4332 so that it won't show up in command.lst.
4333 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
4334 grub_fs_autoload_hook.
4336 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
4337 (grub_menu_execute_entry): Replace grub_script_execute with
4338 grub_parser_execute, change parameter to grub_command_execute.
4340 * normal/menu_text.c: Remove <grub/script.h>.
4342 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
4343 and <grub/parser.h>.
4344 (run): Change editor_getline to use new parser interface. Change
4345 parameter to grub_command_execute.
4347 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
4348 <grub/reader.h> and <grub/parser.h>.
4349 (grub_load_normal_mode): Execute normal command.
4350 (grub_main): Call grub_register_core_commands,
4351 grub_register_rescue_parser and grub_register_rescue_reader, use
4352 grub_reader_loop to enter input loop.
4354 * kern/parser.c (grub_parser_split_cmdline): Change type of
4356 (grub_parser_class): New variable.
4357 (grub_parser_execute): New function.
4359 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
4360 * loader/multiboot2.c: Likewise.
4361 * loader/sparc64/ieee1275/linux.c: Likewise.
4363 * util/grub-emu.c (read_command_list): New dummy function.
4365 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4367 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
4368 count to 16 for CCISS and IDA.
4370 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4372 * normal/menu_text.c (grub_wait_after_message): Print a newline
4373 after waiting for user input.
4375 * loader/i386/linux.c: Include `<grub/normal.h>'.
4376 (grub_cmd_linux): Improve the error message about `ask' mode, by
4377 waiting for user input so it's not missed (we can do this, since
4378 user requested interaction).
4380 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4382 Added missing lst to grub-mkrescue
4384 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
4385 and ${input_dir}/parttool.lst
4387 2009-04-30 David S. Miller <davem@davemloft.net>
4389 * util/hostdisk.c (device_is_wholedisk): New function.
4390 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
4391 zero only if device_is_wholedisk() returns true.
4393 * util/hostdisk.c (convert_system_partition_to_system_disk):
4394 Handle virtual disk devices named /dev/vdiskX as found on sparc
4397 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
4398 lettered partition specifier is found, convert to numbered.
4400 2009-04-29 David S. Miller <davem@davemloft.net>
4402 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
4403 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4405 * normal/command.c: Add missing newline at end of file.
4407 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
4409 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
4410 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
4411 grub_ofdisk_read): Likewise, and deal similarly with the fact that
4412 ihandles have a 32-bit type but need to be stored in a "void *".
4414 2009-04-28 Pavel Roskin <proski@gnu.org>
4416 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
4417 not disk. Adjust all dependencies.
4418 (grub_fs_uuid_close): Use grub_device_close(), not
4421 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
4422 parent's partition, don't copy it by reference, as it gets freed
4425 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4427 Preboot hooks support
4429 * commands/boot.c (struct grub_preboot_t): new declaration
4430 (preboots_head): new variable
4431 (preboots_tail): likewise
4432 (grub_loader_register_preboot_hook): new function
4433 (grub_loader_unregister_preboot_hook): likewise
4434 (grub_loader_set): launch preboot hooks
4435 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
4436 (grub_loader_register_preboot_hook): new declaration
4437 (grub_loader_unregister_preboot_hook): likewise
4439 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4443 * disk/scsi.c (grub_scsi_open): added missing cast when
4444 calling grub_dprintf
4446 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4448 Bug and warning fixes
4450 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
4452 * commands/test.c (test_parse): fixed bug with file tests and corrected
4453 declaration of find_file
4455 2009-04-26 Pavel Roskin <proski@gnu.org>
4457 * Makefile.in: Don't install empty manual pages if help2man is
4458 missing. Use help2man option for output, not shell redirection.
4460 2009-04-26 David S. Miller <davem@davemloft.net>
4462 * util/grub-mkdevicemap.c (make_device_map): Add missing
4463 NESTED_FUNC_ATTR to process_device().
4465 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4469 * commands/test.c: rewritten to use bash-like test
4471 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4473 Parttool autoloading and improvements
4475 * Makefile.in (pkglib_DATA): add parttool.lst
4476 (parttool.lst): new target
4477 * genmk.rb: generate parttool-*
4478 (CLEANFILES): add #{parttool}
4479 (PARTTOOLFILES): new variable
4480 * genparttoollist.sh: new file
4481 * parttool/pcpart.c (grub_pcpart_boot): more feedback
4482 (grub_pcpart_type): likewise
4483 * commands/parttool.c (helpmsg): new variable
4484 (grub_cmd_parttool): output help if not enough arguments are supplied
4486 (GRUB_MOD_INIT(parttool)): use helpmsg
4488 2009-04-24 David S. Miller <davem@davemloft.net>
4490 Avoiding opening same device multiple times in device iterator.
4492 * kern/device.c: (grub_device_iterate): Define struct part_ent,
4493 and use it to build a list of partitions in iterate_disk() and
4494 iterate_partition().
4496 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
4499 * disk/ieee1275/nand.c (grub_nand_iterate): Return
4500 grub_devalias_iterate() result instead of unconditional 0.
4501 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
4502 Also, capture hook return value, either directly or via
4503 grub_children_iterate(), and propagate to caller.
4504 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
4505 grub_children_iterate): Return value is now 'int' instead of
4507 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
4508 like a proper iterator, stopping when hooks return non-zero.
4509 (grub_devalias_iterate): Likewise.
4511 2009-04-23 David S. Miller <davem@davemloft.net>
4513 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
4515 2009-04-22 David S. Miller <davem@davemloft.net>
4517 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
4518 is larger than address_cells, use that value for address_cells too.
4520 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
4521 IEEE1275_MAX_PATH_LEN): Define.
4522 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
4523 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
4524 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
4525 'devtype'. Explicitly NULL terminate devalias expansion.
4527 * util/sparc64/ieee1275/misc.c: New file.
4528 * util/sparc64/ieee1275/grub-setup.c: New file.
4529 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
4530 * util/sparc64/ieee1275/grub-mkimage.c: New file.
4531 * util/sparc64/ieee1275/grub-install.in: New file.
4532 * util/ieee1275/ofpath.c: New file.
4533 * util/ieee1275/devicemap.c: New file.
4534 * util/devicemap.c: New file.
4535 * util/deviceiter.c: New file.
4536 * kern/sparc64/ieee1275/init.c: New file.
4537 * include/grub/util/ofpath.h: New file.
4538 * include/grub/util/deviceiter.h: New file.
4539 * util/grub-mkdevicemap.c: Include deviceiter.h.
4540 Implement using grub_util_emit_devicemap_entry and
4541 grub_util_iterate_devices.
4542 * conf/i386-corebook.rmk: Build util/deviceiter.c and
4543 util/devicemap.c into grub-mkdevicemap
4544 * conf/i386-efi.rmk: Likewise.
4545 * conf/i386-ieee1275.rmk: Likewise.
4546 * conf/i386-pc.rmk: Likewise.
4547 * conf/powerpc-ieee1275.rmk: Likewise.
4548 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
4549 images and installation utilities. Build kernel as image
4550 instead of as elf binary. Use common rules as much as possible.
4552 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4554 Correct GPT definition
4556 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4559 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
4561 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
4563 2009-04-19 David S. Miller <davem@davemloft.net>
4565 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
4566 (grub_rescue_cmd_linux): Rename to...
4567 (grub_cmd_linux): and fix prototype.
4568 (grub_rescue_cmd_initrd): Rename to...
4569 (grub_cmd_initrd): and fix prototype.
4570 (cmd_linux, cmd_initrd): New.
4571 (GRUB_MOD_INIT(linux)): Use grub_register_command().
4572 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
4574 2009-04-17 Pavel Roskin <proski@gnu.org>
4576 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
4578 (grub_ohci_transfer): Likewise.
4580 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
4582 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
4583 return without a value. Fix inconsistent indentation.
4585 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
4586 match struct grub_fs.
4588 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
4589 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
4590 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
4591 * commands/lspci.c (grub_lspci_iter): Likewise.
4593 2009-04-16 Bean <bean123ch@gmail.com>
4595 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
4598 2009-04-15 Pavel Roskin <proski@gnu.org>
4600 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
4601 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
4602 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
4605 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4607 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
4608 that no multiple data or metadata areas are supported and `Unknown
4611 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4613 Move loader out of the kernel
4615 * kern/loader.c: moved to ...
4616 * commands/boot.c: ... moved here
4617 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
4618 * commands/boot.c (grub_cmd_boot): moved here. All users updated
4619 * include/grub/kernel.h (grub_machine_fini): export
4620 * include/grub/loader.h (grub_loader_is_loaded): update declaration
4621 (grub_loader_set): likewise
4622 (grub_loader_unset): likewise
4623 (grub_loader_boot): likewise
4624 * conf/common.rmk: new module boot.mod
4625 (pkglib_MODULES): add boot.mod
4626 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
4627 (grub_emu_SOURCES): likewise
4628 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
4629 (grub_emu_SOURCES): likewise
4630 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
4631 (grub_emu_SOURCES): likewise
4632 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
4633 (grub_emu_SOURCES): likewise
4634 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
4635 (grub_emu_SOURCES): likewise
4636 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
4637 (grub_emu_SOURCES): likewise
4638 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
4639 (grub_emu_SOURCES): likewise
4641 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4643 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
4645 * kern/misc.c (grub_itoa): Removed function
4646 (grub_ltoa): likewise
4647 (grub_vsprintf): use grub_lltoa
4649 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4653 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
4654 * conf/i386-coreboot.rmk: likewise
4655 * conf/i386-ieee1275.rmk: likewise
4656 * conf/powerpc-ieee1275.rmk: likewise
4658 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4660 * INSTALL: Add that `./autogen.sh' needs to be run before
4663 2009-04-14 Bean <bean123ch@gmail.com>
4665 * Makefile.in (pkglib_DATA): Add handler.lst.
4666 (handler.lst): New rule.
4668 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
4669 * conf/i386-coreboot.rmk: Likewise.
4670 * conf/i386-ieee1275.rmk: Likewise.
4671 * conf/i386-efi.rmk: Likewise.
4672 * conf/x86_64-efi.rmk: Likewise.
4673 * conf/powerpc-ieee1275.rmk: Likewise.
4674 * conf/sparc64-ieee1275.rmk: Likewise.
4676 * genhandlerlist.sh: New file.
4678 * genmk.rb: Add rules to generate handler.lst.
4680 * include/grub/normal.h (grub_file_getline): New function definition.
4681 (read_handler_list): Likewise.
4682 (free_handler_list): Likewise.
4684 * include/grub/term.h (grub_term_register_input): Add name parameter
4685 for auto generation of handler.lst.
4686 (grub_term_register_output): Likewise.
4688 * normal/handler.c: New file.
4690 * normal/main.c (get_line): Renamed to grub_file_getline.
4691 (read_config_file): Use the newly renamed grub_file_getline.
4692 (read_command_list): Likewise.
4693 (read_fs_list): Likewise.
4694 (grub_normal_execute): Call read_handler_list to parse handler.lst.
4695 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
4697 * term/efi/console.c (grub_console_init): Add name parameter for auto
4698 generation of handler.lst.
4699 * term/gfxterm.c: Likewise.
4700 * term/i386/pc/at_keyboard.c: Likewise.
4701 * term/i386/pc/console.c: Likewise.
4702 * term/i386/pc/serial.c: Likewise.
4703 * term/i386/pc/vesafb.c: Likewise.
4704 * term/i386/pc/vga.c: Likewise.
4705 * term/i386/pc/vga_text.c: Likewise.
4706 * term/ieee1275/ofconsole.c: Likewise.
4707 * term/usb_keyboard.c: Likewise.
4709 2009-04-14 Bean <bean123ch@gmail.com>
4711 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
4712 properly with null character.
4714 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4716 * configure: Remove.
4717 * config.h.in: Likewise.
4718 * stamp-h.in: Likewise.
4719 * DISTLIST: Likewise.
4720 * conf/common.mk: Likewise.
4721 * conf/i386-coreboot.mk: Likewise.
4722 * conf/i386-efi.mk: Likewise.
4723 * conf/i386-ieee1275.mk: Likewise.
4724 * conf/i386.mk: Likewise.
4725 * conf/i386-pc.mk: Likewise.
4726 * conf/powerpc-ieee1275.mk: Likewise.
4727 * conf/sparc64-ieee1275.mk: Likewise.
4728 * conf/x86_64-efi.mk: Likewise.
4730 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
4733 2009-04-14 John Stanley <jpsinthemix@verizon.net>
4734 David S. Miller <davem@davemloft.net>
4736 * util/hostdisk.c (make_device_name): Fix buffer length
4739 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4741 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
4742 <sys/param.h> and <sys/sysctl.h>.
4743 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
4744 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
4745 opening the device and reset them afterwards.
4747 2009-04-13 Pavel Roskin <proski@gnu.org>
4749 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
4750 Reported by John Stanley <jpsinthemix@verizon.net>
4752 2009-04-13 Robert Millan <rmh@aybabtu.com>
4754 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
4755 that name for menuentries when appropriate.
4757 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4759 * util/grub.d/10_freebsd.in: Add a missing `fi'.
4761 2009-04-13 Robert Millan <rmh@aybabtu.com>
4763 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
4764 to Linux, simply abort telling the user it's no longer supported.
4766 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4768 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
4769 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
4770 `freebsd_loadenv' only when devices.hints exist.
4772 2009-04-13 Pavel Roskin <proski@gnu.org>
4774 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
4776 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4778 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
4780 (grub_drive): Likewise.
4782 2009-04-13 David S. Miller <davem@davemloft.net>
4784 * kern/sparc64/ieee1275/ieee1275.c: New file.
4785 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
4786 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
4787 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
4788 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
4789 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
4790 grub_ieee1275_alloc_physmem): Declare new exported functions.
4792 * include/grub/sparc64/ieee1275/loader.h: New file.
4793 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4794 * include/grub/sparc64/kernel.h: Likewise.
4795 * loader/sparc64/ieee1275/linux.c: Likewise.
4797 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
4798 (grub_fstest_SOURCES): Likewise.
4800 * util/hostdisk.c (make_device_name): Do not make any assumptions
4801 about the length of drive names.
4803 * kern/dl.c (grub_dl_load_file): Close file immediately when
4804 we are done using it.
4806 2009-04-12 David S. Miller <davem@davemloft.net>
4808 * kern/misc.c (grub_ltoa): Fix cast when handling negative
4809 values. Noticed by Pavel Roskin.
4811 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
4814 * genmk.rb: Add more flexible image type specification, also
4815 pass --strip-unneeded to objcopy.
4816 * conf/i386-pc.rmk: Use *_FORMAT.
4817 * conf/i386-pc.mk: Rebuilt.
4819 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
4820 (OFDISK_HASH_SZ): Define.
4821 (ofdisk_hash): New hash table.
4822 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
4823 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
4824 instead of device phandle which is not unique.
4826 * kern/sparc64/ieee1275/init.c: Delete, replace with...
4827 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
4828 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
4829 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
4830 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
4831 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
4832 GRUB_KERNEL_MACHINE_DATA_END): Define.
4833 (grub_kernel_image_size, grub_total_module_size): Declare.
4835 2009-04-12 Pavel Roskin <proski@gnu.org>
4837 * configure.ac: Change the logic when we check for target tools.
4838 Do it when the target is specified and it's different from the
4839 specified value of the host.
4841 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
4843 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
4844 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
4845 GNU/kFreeBSD. Check if a device is a character device. Use
4846 DIOCGMEDIASIZE to get the size.
4847 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
4848 support for GNU/kFreeBSD.
4849 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
4850 is a character device instead of a block device. Add support for
4851 FreeBSD device names.
4853 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
4854 is a character device instead of a block device.
4856 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
4857 is a character device instead of a block device.
4859 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
4861 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
4862 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
4863 FreeBSD. Check if a device is a character device. Use
4864 DIOCGMEDIASIZE to get the size.
4865 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
4866 support for FreeBSD.
4867 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
4868 is a character device instead of a block device. Add support for
4869 FreeBSD device names.
4871 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
4872 a character device instead of a block device.
4873 (grub_util_check_char_device): New function.
4875 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
4876 a character device instead of a block device.
4878 * include/grub/util/getroot.h (grub_util_check_char_device): New
4881 2009-04-11 David S. Miller <davem@davemloft.net>
4883 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
4885 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
4886 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
4887 function, if present.
4888 (__bswapdi2): Likewise.
4890 * include/grub/sparc64/ieee1275/boot.h: New file.
4891 * boot/sparc64/ieee1275/boot.S: Likewise.
4892 * boot/sparc64/ieee1275/diskboot.S: Likewise.
4894 * kern/misc.c (grub_ltoa): New function.
4895 (grub_vsprintf): Use it to format 'long' integers.
4897 2009-04-10 David S. Miller <davem@davemloft.net>
4899 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
4900 slots are of type grub_ieee1275_cell_t.
4901 (grub_nand_read): Likewise.
4902 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
4903 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
4904 macros are used to compare values in arg/ret block of the call.
4905 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
4906 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
4907 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
4908 grub_ieee1275_instance_to_path, grub_ieee1275_write,
4909 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
4910 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
4911 grub_ieee1275_close, grub_ieee1275_set_property,
4912 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
4913 grub_ieee1275_cell_t.
4914 * kern/ieee1275/openfw.c (grub_map): Likewise.
4915 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
4916 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
4918 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
4919 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
4920 (grub_devalias_iterate): Likewise.
4922 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4926 * fs/ufs.c (INODE_NBLOCKS): new definition
4927 (struct grub_ufs_dirent): added fields for non-BSD dirents
4928 (grub_ufs_get_file_block): fixed double indirect handling
4929 (grub_ufs_lookup_symlink): use more robust way to determine whether
4931 (grub_ufs_find_file): support for non-BSD dirents
4932 (grub_ufs_dir): support for non-BSD dirents
4934 2009-04-10 Bean <bean123ch@gnail.com>
4936 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
4937 attribute, otherwise the size would be wrong for i386 platform.
4939 * include/grub/pci.h (grub_pci_read_word): New inline function.
4940 (grub_pci_read_byte): Likewise.
4941 (grub_pci_write): Likewise.
4942 (grub_pci_write_word): Likewise.
4943 (grub_pci_write_byte): Likewise.
4945 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
4947 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
4948 (find_framebuf): Scan pci to locate the frame buffer address.
4950 * commands/efi/fixvideo.c: New file.
4952 * commands/efi/loadbios.c: Likewise.
4954 * commands/memrw.c: Likewise.
4956 * util/grub-dumpbios.in: Likewise.
4958 * conf/common.rmk (grub-dumpbios): New utility.
4959 (pkglib_MODULES): New module memrw.mod.
4960 (memrw_mod_SOURCE): New macro.
4961 (memrw_mod_CFLAGS): Likewise.
4962 (memrw_mod_LDFLAGS): Likewise.
4964 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
4966 (loadbios_mod_SOURCE): New macro.
4967 (loadbios_mod_CFLAGS): Likewise.
4968 (loadbios_mod_LDFLAGS): Likewise.
4969 (fixvideo_mod_SOURCE): Likewise.
4970 (fixvideo_mod_CFLAGS): Likewise.
4971 (fixvideo_mod_LDFLAGS): Likewise.
4973 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
4975 (loadbios_mod_SOURCE): New macro.
4976 (loadbios_mod_CFLAGS): Likewise.
4977 (loadbios_mod_LDFLAGS): Likewise.
4978 (fixvideo_mod_SOURCE): Likewise.
4979 (fixvideo_mod_CFLAGS): Likewise.
4980 (fixvideo_mod_LDFLAGS): Likewise.
4982 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
4984 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
4986 2009-04-07 David S. Miller <davem@davemloft.net>
4988 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
4989 support for R_SPARC_OLO10 relocations. Fix compile warning for
4990 R_SPARC_WDISP30 case.
4991 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
4993 2009-04-06 Pavel Roskin <proski@gnu.org>
4995 * include/grub/misc.h (ARRAY_SIZE): New macro.
4996 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
4998 * loader/i386/linux.c (allocate_pages): Use free_pages().
4999 (grub_linux_unload): Don't use free_pages().
5000 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
5001 wrong index. Treat all other modes as text modes.
5002 (grub_cmd_linux): Initialize vid_mode unconditionally to
5003 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
5005 * commands/help.c (print_command_help): Use cmd->prio, not
5006 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
5008 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5012 * parttool/pcpart.c: new file
5013 * commands/parttool.c: likewise
5014 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
5015 (parttool_mod_SOURCES): new variable
5016 (parttool_mod_CFLAGS): likewise
5017 (parttool_mod_LDFLAGS): likewise
5018 (pcpart_mod_SOURCES): likewise
5019 (pcpart_mod_CFLAGS): likewise
5020 (pcpart_mod_LDFLAGS): likewise
5021 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
5022 and parttool/pcpart.c
5023 * conf/i386-efi.rmk: likewise
5024 * conf/i386-ieee1275.rmk: likewise
5025 * conf/i386-pc.rmk: likewise
5026 * conf/powerpc-ieee1275.rmk: likewise
5027 * conf/sparc64-ieee1275.rmk: likewise
5028 * conf/x86_64-ieee1275.rmk: likewise
5030 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5032 Support for mtime and further expandability of dir command
5034 * include/grub/lib/datetime.h: moved to ...
5035 * include/grub/datetime.h: ... moved here and added
5036 declaration of grub_unixtime2datetime. All users updated
5037 * include/grub/fs.h: new syntax for dir and mtime functions in
5039 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
5040 and GRUB_FSHELP_FLAGS_MASK
5041 * commands/ls.c (grub_ls_list_files): Write mtime in long format
5042 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
5043 (grub_ext2_mtime): new function
5044 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
5045 (grub_hfsplus_mtime): new function
5046 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
5047 (GRUB_UFS_ATTR_FILE): likewise
5048 (GRUB_UFS_ATTR_LNK): likewise
5049 (struct grub_ufs_sblock): new fields mtime
5050 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
5052 (grub_ufs_dir): mtime support
5053 (grub_ufs_mtime): new function
5054 * fs/affs.c (grub_affs_dir): use new dir syntax
5055 * fs/afs.c (grub_afs_dir): likewise
5056 * fs/cpio.c (grub_cpio_dir): likewise
5057 * fs/fat.c (grub_fat_find_dir): likewise
5058 * fs/hfs.c (grub_hfs_dir): likewise
5059 * fs/iso9660.c (grub_iso9660_dir): likewise
5060 * fs/jfs.c (grub_jfs_dir): likewise
5061 * fs/minix.c (grub_minix_dir): likewise
5062 * fs/ntfs.c (grub_ntfs_dir): likewise
5063 * fs/reiserfs.c (grub_reiserfs_dir): likewise
5064 * fs/sfs.c (grub_sfs_dir): likewise
5065 * fs/xfs.c (grub_xfs_dir): likewise
5066 * util/hostfs.c (grub_hostfs_dir): likewise
5067 * lib/datetime.c: moved to ...
5068 * normal/datetime.c: ... moved here
5069 (grub_unixtime2datetime): new function
5070 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
5071 * normal/completion.c (iterate_dir): use new dir syntax
5072 * normal/misc.c (grub_normal_print_device_info): tell the
5073 last modification time of a volume
5074 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
5075 * conf/common.rmk: added lib/datetime.c to ls.mod
5076 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
5077 (normal_mod_SOURCES): likewise
5078 (datetime_mod_SOURCES): Removed lib/datetime.c
5079 * conf/i386-efi.rmk: likewise
5080 * conf/i386-ieee1275.rmk: likewise
5081 * conf/i386-pc.rmk: likewise
5082 * conf/powerpc-ieee1275.rmk: likewise
5083 * conf/sparc64-ieee1275.rmk: likewise
5084 * conf/x86_64-efi.rmk: likewise
5086 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5088 Trim trailing spaces in FAT label and support mtools-like labels
5090 * fs/fat.c (grub_fat_iterate_dir): New function based
5091 on grub_fat_find_dir
5092 (grub_fat_find_dir): use grub_fat_iterate_dir
5093 (grub_fat_label): likewise
5095 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5097 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
5099 remove extraneous kernel_elf_HEADERS
5101 2009-04-04 Bean <bean123ch@gnail.com>
5103 * include/grub/util/misc.h: Add dummy function fsync for mingw.
5105 * util/misc.c: Likewise.
5107 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
5109 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
5110 instead of grub_printf.
5112 2009-04-03 Robert Millan <rmh@aybabtu.com>
5114 * loader/i386/linux.c (grub_linux_setup_video): Fill
5115 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
5116 values from `mode info' structure instead of hardcoded
5119 2009-04-01 Pavel Roskin <proski@gnu.org>
5121 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
5123 * genmk.rb: Likewise.
5124 * configure.ac: Likewise.
5126 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
5128 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
5129 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
5131 2009-04-01 David S. Miller <davem@davemloft.net>
5133 * normal/sparc64/setjmp.S: Fix setjmp implementation.
5134 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5135 (grub_setjmp): Mark with 'returns_twice' attribute.
5136 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
5137 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
5138 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
5140 2009-04-01 Robert Millan <rmh@aybabtu.com>
5142 Reapply fix from 2008-07-28 which was accidentally reverted; also
5143 perform the same fix to a similar check in same function.
5145 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
5146 with the same number are found, just use issue a warning with
5147 grub_dprintf(), as this error has been reported to be non-fatal.
5149 2009-03-31 Pavel Roskin <proski@gnu.org>
5151 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
5152 for cross-compilation.
5154 2009-03-30 Robert Millan <rmh@aybabtu.com>
5156 Fix i386-ieee1275 build.
5158 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
5161 2009-03-30 Pavel Roskin <proski@gnu.org>
5163 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
5164 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
5165 zero-terminated, rely only on the strlen value. Fix comparison
5166 of strings differing in length.
5168 2009-03-30 Robert Millan <rmh@aybabtu.com>
5170 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
5171 checking for abi version. Improve error messages on BIOS to notify
5172 user about `linux16' command.
5174 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5178 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
5179 in case of collision
5180 * disk/scsi.c (grub_scsi_open): free scsi in case of error
5182 2009-03-29 Robert Millan <rmh@aybabtu.com>
5184 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
5185 set `vid_mode' accordingly.
5186 (grub_linux_boot): Process `vid_mode' and set video mode.
5188 2009-03-29 Robert Millan <rmh@aybabtu.com>
5190 * util/grub.d/10_linux.in (linux_entry): New function.
5191 Factorize generation of Linux boot entries.
5193 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
5195 Make the format of Environment Block plain text. The boot loader
5196 part is not tested well yet.
5198 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
5201 (usage): Remove "info" and "clear". Add "unset". Update the
5202 description of "set", as this does not delete variables any
5204 (create_envblk_file): Complete rewrite.
5205 (open_envblk_file): Likewise.
5206 (cmd_info): Removed.
5207 (cmd_list): Likewise.
5208 (cmd_set): Likewise.
5209 (cmd_clear): Likewise.
5210 (list_variables): New function.
5211 (write_envblk): Likewise.
5212 (set_variables): Likewise.
5213 (unset_variables): Likewise.
5214 (main): Complete rewrite.
5216 * commands/loadenv.c (buffer): Removed.
5218 (open_envblk_file): New function.
5219 (read_envblk_file): Complete rewrite.
5220 (grub_cmd_load_env): Likewise.
5221 (grub_cmd_list_env): Likewise.
5222 (struct blocklist): New struct.
5223 (free_blocklists): New function.
5224 (check_blocklists): Likewise.
5225 (write_blocklists): Likewise.
5226 (grub_cmd_save_env): Complete rewrite.
5228 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
5229 a plain text signature.
5230 (GRUB_ENVBLK_MAXLEN): Removed.
5231 (struct grub_envblk): Complete rewrite.
5232 (grub_envblk_find): Removed.
5233 (grub_envblk_insert): Likewise.
5234 (grub_envblk_open): New prototype.
5235 (grub_envblk_set): Likewise.
5236 (grub_envblk_delete): Put const to VALUE.
5237 (grub_envblk_iterate): Put const to NAME and VALUE.
5238 (grub_envblk_close): New prototype.
5239 (grub_envblk_buffer): New inline function.
5240 (grub_envblk_size): Likewise.
5242 * lib/envblk.c: Include grub/mm.h.
5243 (grub_env_find): Removed.
5244 (grub_envblk_open): New function.
5245 (grub_envblk_close): Likewise.
5246 (escaped_value_len): Likewise.
5247 (find_next_line): Likewise.
5248 (grub_envblk_insert): Removed.
5249 (grub_envblk_set): New function.
5250 (grub_envblk_delete): Complete rewrite.
5251 (grub_envblk_iterate): Likewise.
5253 2009-03-28 Robert Millan <rmh@aybabtu.com>
5255 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
5256 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
5257 variables. Use 16-bit loader.
5258 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
5260 * kern/i386/loader.S (grub_linux_boot): Rename to ...
5261 (grub_linux16_boot): ... this. Update all users.
5262 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
5263 (grub_linux_boot): ... this. Update all users.
5265 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
5266 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
5267 commands to `linux16' and `initrd16'.
5268 (GRUB_MOD_FINI(linux)): Rename to ...
5269 (GRUB_MOD_FINI(linux16)): ... this.
5271 2009-03-24 Pavel Roskin <proski@gnu.org>
5273 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
5274 not just for compilation.
5276 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
5278 Move multiboot helper out of kernel
5280 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
5281 `loader/i386/multiboot_helper.S'.
5282 * conf/i386-coreboot.rmk: Likewise
5283 * conf/i386-ieee1275.rmk: Likewise
5285 * kern/i386/loader.S: Move multiboot helpers from here...
5286 * loader/i386/multiboot_helper.S: ...moved here
5287 * include/grub/i386/loader.h: Move declarations of multiboot
5288 helpers from here...
5289 * include/grub/i386/multiboot.h: ...moved here
5290 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
5292 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5294 * kern/env.c (grub_env_context_open): Added an argument to specify
5295 whether a new context inherits exported variables from current
5296 one. This is useful when making a sandbox to interpret a config
5298 All callers updated.
5300 * include/grub/env.h (grub_env_context_open): Updated the prototype.
5302 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5304 * kern/env.c (grub_env_context_close): Fix memory leaks.
5306 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5308 * normal/main.c (grub_normal_execute): Added an argument
5309 BATCH to specify if an interactive interface should be provided
5310 after reading a config file.
5311 All callers updated.
5312 (read_command_list): Prevent being executed twice.
5313 (read_fs_list): Likewise.
5315 * include/grub/normal.h (grub_normal_execute): Updated the
5318 2009-03-22 Pavel Roskin <proski@gno.org>
5320 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
5322 * kern/i386/pc/startup.S: Likewise.
5323 * kern/i386/efi/startup.S: Likewise.
5324 * kern/i386/ieee1275/startup.S: Likewise.
5325 * kern/i386/coreboot/startup.S: Likewise.
5326 * kern/x86_64/efi/startup.S: Likewise.
5328 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
5329 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
5330 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
5332 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
5334 Bugfixes in multiboot for bugs uncovered by solaris kernel.
5336 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
5338 Use vaddr of correct segment for entry_point.
5340 2009-03-21 Bean <bean123ch@gmail.com>
5342 * commands/blocklist.c: Add include file <grub/command.h>, remove
5343 <grub/normal.h> and <grub/arg.h>.
5344 (grub_cmd_blocklist): Use the new command interface.
5345 (GRUB_MOD_INIT): Likewise.
5346 (GRUB_MOD_FINI): Likewise.
5347 * commands/boot.c: Likewise.
5348 * commands/cat.c: Likewise.
5349 * commands/cmp.c: Likewise.
5350 * commands/configfile.c: Likewise.
5351 * commands/crc.c: Likewise.
5352 * commands/echo.c: Likewise.
5353 * commands/halt.c: Likewise.
5354 * commands/handler.c: Likewise.
5355 * commands/hdparm.c: Likewise.
5356 * commands/help.c: Likewise.
5357 * commands/hexdump.c: Likewise.
5358 * commands/loadenv.c: Likewise.
5359 * commands/ls.c: Likewise.
5360 * commands/lsmmap.c: Likewise.
5361 * commands/lspci.c: Likewise.
5362 * commands/loadenv.c: Likewise.
5363 * commands/read.c: Likewise.
5364 * commands/reboot.c: Likewise.
5365 * commands/search.c: Likewise.
5366 * commands/sleep.c: Likewise.
5367 * commands/test.c: Likewise.
5368 * commands/usbtest.c: Likewise.
5369 * commands/videotest.c: Likewise.
5370 * commands/i386/cpuid.c: Likewise.
5371 * commands/i386/pc/halt.c: Likewise.
5372 * commands/i386/pc/play.c: Likewise.
5373 * commands/i386/pc/pxecmd.c: Likewise.
5374 * commands/i386/pc/vbeinfo.c: Likewise.
5375 * commands/i386/pc/vbetest.c: Likewise.
5376 * commands/ieee1275/suspend.c: Likewise.
5377 * disk/loopback.c: Likewise.
5378 * font/font_cmd.c: Likewise.
5379 * hello/hello.c: Likewise.
5380 * loader/efi/appleloader.c: Likewise.
5381 * loader/efi/chainloader.c: Likewise.
5382 * loader/i386/bsd.c: Likewise.
5383 * loader/i386/efi/linux.c: Likewise.
5384 * loader/i386/ieee1275/linux.c: Likewise.
5385 * loader/i386/linux.c: Likewise.
5386 * loader/i386/pc/chainloader.c: Likewise.
5387 * loader/i386/pc/linux.c: Likewise.
5388 * loader/powerpc/ieee1275/linux.c: Likewise.
5389 * loader/multiboot_loader.c: Likewise.
5390 * term/gfxterm.c: Likewise.
5391 * term/i386/pc/serial.c: Likewise.
5392 * term/terminfo.c: Likewise.
5394 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
5395 * term/i386/pc/vga.c: Likewise.
5396 * video/readers/jpeg.c: Likewise.
5397 * video/readers/png.c: Likewise.
5398 * video/readers/tga.c: Likewise.
5400 * util/grub-fstest (cmd_loopback): Removed.
5401 (cmd_blocklist): Likewise.
5403 (grub_register_command): Likewise.
5404 (grub_unregister_command): Likewise.
5405 (execute_command): Use grub_command_find to locate command and execute
5408 * include/grub/efi/chainloader.h: Removed.
5409 * loader/efi/chainloader_normal.c: Likewise.
5410 * loader/i386/bsd_normal.c: Likewise.
5411 * loader/i386/pc/chainloader_normal.c: Likewise.
5412 * loader/i386/pc/multiboot_normal.c: Likewise.
5413 * loader/linux_normal.c: Likewise.
5414 * loader/multiboot_loader_normal.c: Likewise.
5415 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
5417 * gencmdlist.sh: Scan new registration command grub_register_extcmd
5418 and grub_register_command_p1.
5420 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
5421 kern/command.c, lib/arg.c and commands/extcmd.c.
5422 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
5423 (minicmd_mod_SOURCES): New variable.
5424 (minicmd_mod_CFLAGS): Likewise.
5425 (minicmd_mod_LDFLAGS): Likewise.
5426 (extcmd_mod_SOURCES): Likewise.
5427 (extcmd_mod_CFLAGS): Likewise.
5428 (extcmd_mod_LDFLAGS): Likewise.
5429 (boot_mod_SOURCES): Removed.
5430 (boot_mod_CFLAGS): Likewise.
5431 (boot_mod_LDFLAGS): Likewise.
5433 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
5435 (kernel_img_HEADERS): Add command.h.
5436 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
5437 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
5439 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
5440 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
5441 remove the corresponding normal mode command.
5442 (normal_mod_SOURCES): Remove normal/arg.c.
5443 * conf/i386-coreboot.rmk: Likewise.
5444 * conf/i386-efi.rmk: Likewise.
5445 * conf/i386-ieee1275.rmk: Likewise.
5446 * conf/powerpc-ieee1275.rmk: Likewise.
5447 * conf/x86_64-efi.rmk: Likewise.
5449 * include/grub/arg.h: Move from here ...
5450 * include/grub/lib/arg.h: ... to here.
5452 * normal/arg.c: Move from here ...
5453 * lib/arg.c: ... to here.
5455 * commands/extcmd.c: New file.
5456 * commands/minicmd.c: Likewise.
5457 * include/grub/command.h: Likewise.
5458 * include/grub/extcmd.h: Likewise.
5459 * kern/command.c: Likewise.
5460 * kern/corecmd.c: Likewise.
5462 * kern/list.c (grub_list_iterate): Return int instead of void.
5463 (grub_list_insert): New function.
5464 (grub_prio_list_insert): Likewise.
5466 * kern/rescue.c (grub_rescue_command): Removed.
5467 (grub_rescue_command_list): Likewise.
5468 (grub_rescue_register_command): Likewise.
5469 (grub_rescue_unregister_command): Likewise.
5470 (grub_rescue_cmd_boot): Move to minicmd.c
5471 (grub_rescue_cmd_help): Likewise.
5472 (grub_rescue_cmd_info): Likewise.
5473 (grub_rescue_cmd_boot): Likewise.
5474 (grub_rescue_cmd_testload): Likewise.
5475 (grub_rescue_cmd_dump): Likewise.
5476 (grub_rescue_cmd_rmmod): Likewise.
5477 (grub_rescue_cmd_lsmod): Likewise.
5478 (grub_rescue_cmd_exit): Likewise.
5479 (grub_rescue_print_devices): Moved to corecmd.c.
5480 (grub_rescue_print_files): Likewise.
5481 (grub_rescue_cmd_ls): Likewise.
5482 (grub_rescue_cmd_insmod): Likewise.
5483 (grub_rescue_cmd_set): Likewise.
5484 (grub_rescue_cmd_unset): Likewise.
5485 (attempt_normal_mode): Use grub_command_find to get normal module.
5486 (grub_enter_rescue_mode): Use grub_register_core_commands to register
5487 commands, remove grub_rescue_register_command calls.
5489 * normal/command.c (grub_register_command): Removed.
5490 (grub_unregister_command): Likewise.
5491 (grub_command_find): Likewise.
5492 (grub_iterate_commands): Likewise.
5493 (rescue_command): Likewise.
5494 (export_command): Moved to corecmd.c.
5495 (set_command): Removed.
5496 (unset_command): Likewise.
5497 (insmod_command): Likewise.
5498 (rmmod_command): Likewise.
5499 (lsmod_command): Likewise.
5500 (grub_command_init): Likewise.
5502 * normal/completion.c (iterate_command): Use cmd->prio to check for
5504 (complete_arguments): Use grub_extcmd_t structure to find options.
5505 (grub_normal_do_completion): Change function grub_iterate_commands to
5506 grub_command_iterate.
5508 * normal/execute.c (grub_script_execute_cmd): No need to parse
5511 * normal/main.c (grub_dyncmd_dispatcher): New function.
5512 (read_command_list): Register unload commands as dyncmd.
5513 (grub_cmd_normal): Use new command interface, register rescue,
5514 unregister normal at entry, register normal, unregister rescue at exit.
5516 * include/grub/list.h (grub_list_test_t): New type.
5517 (grub_list_iterate): Return int instead of void.
5518 (grub_list_insert): New function.
5519 (GRUB_AS_NAMED_LIST_P): New macro.
5520 (GRUB_AS_PRIO_LIST): Likewise.
5521 (GRUB_AS_PRIO_LIST_P): Likewise.
5522 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
5523 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
5524 (grub_prio_list): New structure.
5525 (grub_prio_list_insert): New function.
5526 (grub_prio_list_remove): New inline function.
5528 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
5529 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
5530 (GRUB_COMMAND_FLAG_MENU): Likewise.
5531 (GRUB_COMMAND_FLAG_BOTH): Likewise.
5532 (GRUB_COMMAND_FLAG_TITLE): Likewise.
5533 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
5534 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
5535 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
5536 (grub_command): Likewise.
5537 (grub_register_command): Likewise.
5538 (grub_command_find): Likewise.
5539 (grub_iterate_commands): Likewise.
5540 (grub_command_init): Likewise.
5541 (grub_arg_parse): Likewise.
5542 (grub_arg_show_help): Likewise.
5544 * include/grub/rescue.h (grub_rescue_register_command): Removed.
5545 (grub_rescue_unregister_command): Likewise.
5547 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
5548 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
5549 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
5551 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
5552 grub_rescue_cmd_initrd.
5553 * include/grub/i386/loader.h: Likewise.
5554 * include/grub/x86_64/loader.h: Likewise.
5556 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
5558 2009-03-21 Bean <bean123ch@gmail.com>
5560 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
5561 instead of stat in mingw environment.
5563 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
5565 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
5567 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
5570 2009-03-21 Bean <bean123ch@gmail.com>
5572 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
5575 2009-03-18 Michel Dänzer <michel@daenzer.net>
5577 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
5578 checking inode flags for EXT4_EXTENTS_FLAG.
5580 2009-03-18 Robert Millan <rmh@aybabtu.com>
5582 * loader/i386/linux.c: Include `<grub/video.h>' and
5583 `<grub/i386/pc/vbe.h>'..
5584 (grub_linux_setup_video): New function. Loosely based on the EFI one.
5585 (grub_linux32_boot): Attempt to configure video settings with
5586 grub_linux_setup_video().
5587 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
5588 to avoid grub_console_fini() which would step out of graphical mode
5591 2009-03-14 Robert Millan <rmh@aybabtu.com>
5593 Fix build on powerpc.
5594 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
5596 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
5598 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
5599 background image command.
5601 2009-03-12 Colin D Bennett <colin@gibibit.com>
5603 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
5604 (grub_gfxterm_putchar): Extract pairs of identical calls to
5605 draw_cursor out of conditional blocks.
5607 2009-03-11 Pavel Roskin <proski@gnu.org>
5609 * fs/hfs.c (grub_hfs_strncasecmp): New function.
5610 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
5612 2009-03-11 Robert Millan <rmh@aybabtu.com>
5614 * loader/i386/multiboot_elfxx.c
5615 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
5617 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
5619 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
5622 2009-03-11 Robert Millan <rmh@aybabtu.com>
5624 * loader/i386/multiboot.c (code_size): New variable.
5625 (grub_multiboot): Define offsets by adding to `code_size' rather
5626 than subtracting from `grub_multiboot_payload_size'. Provide
5627 4-byte alignment to MBI and others by increasing
5628 `boot_loader_name_length' appropriately.
5630 * loader/i386/multiboot_elfxx.c
5631 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
5633 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
5635 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
5638 2009-03-08 Robert Millan <rmh@aybabtu.com>
5640 Make loader/i386/linux.c usable on i386-pc again.
5642 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
5644 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
5647 2009-03-07 Bean <bean123ch@gmail.com>
5649 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
5652 2009-03-06 Robert Millan <rmh@aybabtu.com>
5654 Fix display issue on terminals with screen size other than 80x25
5655 (e.g. gfxterm with resolution higher than 640x480).
5657 * normal/main.c (grub_normal_init_page): Display title text in a
5658 position relative to the center of the terminal instead of relying
5659 on a hardcoded offset.
5661 2009-03-04 Robert Millan <rmh@aybabtu.com>
5663 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
5666 * Makefile.in (host_kernel): New variable.
5667 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
5668 scripts instead of just the windows one.
5669 * configure.ac: Initialize and AC_SUBST `host_kernel'.
5671 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5673 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
5675 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5676 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5677 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5678 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5679 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5680 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5682 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5684 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
5685 or if there's no space for the disk label and print the partition number on a
5688 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5690 * util/misc.c: Include <time.h>.
5691 (grub_millisleep): New function.
5693 2009-03-04 Bean <bean123ch@gmail.com>
5695 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
5696 another option -mno-red-zone.
5698 * commands/handler.c: Change module description.
5700 * kern/handler.c: Add missing space at the end of description line.
5702 * kern/list.c: Likewise.
5704 2009-03-03 Robert Millan <rmh@aybabtu.com>
5706 Move more components to the relocation area, and fix mbi pointer
5707 handling to use the destination rather than the origin (thanks to
5708 Vladimir Serbinenko for spotting).
5710 * loader/i386/multiboot.c (mbi_dest): New variable.
5711 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
5712 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
5715 2009-03-01 Bean <bean123ch@gmail.com>
5717 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
5718 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
5719 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
5720 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
5722 * loader/i386/efi/linux.c (acpi_guid): New variable.
5723 (acpi_guid): Likewise.
5724 (EBDA_SEG_ADDR): New constant.
5725 (LOW_MEM_ADDR): Likewise.
5726 (FAKE_EBDA_SEG): Likewise.
5727 (fake_bios_data): New function.
5728 (grub_linux_boot): Call fake_bios_data.
5730 2009-03-01 Bean <bean123ch@gmail.com>
5732 * commands/terminal.c: Removed.
5734 * commands/handler.c: New file.
5736 * include/grub/list.h: Likewise.
5738 * include/grub/handler.h: Likewise.
5740 * kern/list.c: Likewise.
5742 * kern/handler.c: Likewise.
5744 * kern/term.h: Include header file <grub/handler.h>.
5745 (grub_term_input): Move next field to the beginning.
5746 (grub_term_output): Likewise.
5747 (grub_term_input_class): New variable.
5748 (grub_term_output_class): Likewise.
5749 (grub_term_register_input): Changed to inline function.
5750 (grub_term_register_output): Likewise.
5751 (grub_term_unregister_input): Likewise.
5752 (grub_term_unregister_output): Likewise.
5753 (grub_term_set_current_input): Likewise.
5754 (grub_term_set_current_output): Likewise.
5755 (grub_term_get_current_input): Likewise.
5756 (grub_term_get_current_output): Likewise.
5757 (grub_term_iterate_input): Removed.
5758 (grub_term_iterate_output): Likewise.
5760 * kern/term.c (grub_term_list_input): Removed.
5761 (grub_term_list_output): Likewise.
5762 (grub_term_input_class): New variable.
5763 (grub_term_output_class): Likewise.
5764 (grub_cur_term_input): Change variable as macro.
5765 (grub_cur_term_output): Likewise.
5766 (grub_term_register_input): Removed.
5767 (grub_term_register_output): Likewise.
5768 (grub_term_unregister_input): Likewise.
5769 (grub_term_unregister_output): Likewise.
5770 (grub_term_set_current_input): Likewise.
5771 (grub_term_set_current_output): Likewise.
5772 (grub_term_iterate_input): Likewise.
5773 (grub_term_iterate_output): Likewise.
5774 (grub_term_get_current_input): Likewise.
5775 (grub_term_get_current_output): Likewise.
5777 * util/grub-editenv.c: Include header file <grub/handler.h>.
5778 (grub_term_get_current_input): Removed.
5779 (grub_term_get_current_output): Likewise.
5780 (grub_term_input_class): New variable.
5781 (grub_term_output_class): Likewise.
5783 * util/grub-fstest.c (grub_term_get_current_input): Removed.
5784 (grub_term_get_current_output): Likewise.
5785 (grub_term_input_class): New variable.
5786 (grub_term_output_class): Likewise.
5788 * util/grub-probe.c (grub_term_get_current_input): Removed.
5789 (grub_term_get_current_output): Likewise.
5790 (grub_term_input_class): New variable.
5791 (grub_term_output_class): Likewise.
5793 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
5794 (grub_term_get_current_output): Likewise.
5795 (grub_term_input_class): New variable.
5796 (grub_term_output_class): Likewise.
5798 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
5799 (terminal_mod_SOURCES): Likewise.
5800 (terminal_mod_CFLAGS): Likewise.
5801 (terminal_mod_LDFLAGS): Likewise.
5803 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
5805 (kernel_img_SOURCES): Add list.c and handler.c.
5806 (kernel_img_HEADERS): Add list.h and handler.h.
5808 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5810 (kernel_mod_SOURCES): Add list.c and handler.c.
5811 (kernel_mod_HEADERS): Add list.h and handler.h.
5813 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
5815 (kernel_elf_SOURCES): Add list.c and handler.c.
5816 (kernel_elf_HEADERS): Add list.h and handler.h.
5818 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5820 (kernel_elf_SOURCES): Add list.c and handler.c.
5821 (kernel_elf_HEADERS): Add list.h and handler.h.
5823 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5825 (kernel_mod_SOURCES): Add list.c and handler.c.
5826 (kernel_mod_HEADERS): Add list.h and handler.h.
5828 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5830 (kernel_elf_SOURCES): Add list.c and handler.c.
5831 (kernel_elf_HEADERS): Add list.h and handler.h.
5833 2009-02-27 Robert Millan <rmh@aybabtu.com>
5835 Factorize elf32 / elf64 code in Multiboot loader. This will
5836 prevent it from getting out of sync again.
5838 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
5839 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
5840 grub_multiboot_load_elf64): Move from here ...
5841 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
5842 grub_multiboot_load_elf): ... to here (new file).
5844 2009-02-27 Robert Millan <rmh@aybabtu.com>
5846 * util/grub.d/10_linux.in: Rename "single-user mode" to
5849 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5851 Don't leak in SCSI code.
5852 * disk/scsi.c (grub_scsi_close): free `scsi'.
5854 2009-02-27 Robert Millan <rmh@aybabtu.com>
5856 * loader/i386/pc/multiboot.c: Move from here ...
5857 * loader/i386/multiboot.c: ... to here. Update all users.
5859 2009-02-27 Robert Millan <rmh@aybabtu.com>
5861 Patch from Alexandre Bique <bique.alexandre@gmail.com>
5862 * util/i386/pc/grub-setup.c (setup): Fix directory path.
5864 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
5866 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
5869 2009-02-27 Robert Millan <rmh@aybabtu.com>
5871 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
5872 `0x' qualifier as 0 when base is specified as parameter).
5874 2009-02-24 Bean <bean123ch@gmail.com>
5876 * configure.ac: Check for -mcmodel=large in x86_64 target.
5878 * include/grub/efi/api.h (efi_call_10): New macro.
5879 (efi_wrap_10): New function.
5881 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
5882 (GRUB_PE32_REL_BASED_HIGH): Likewise.
5883 (GRUB_PE32_REL_BASED_LOW): Likewise.
5884 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
5885 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
5886 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
5887 (GRUB_PE32_REL_BASED_SECTION): Likewise.
5888 (GRUB_PE32_REL_BASED_REL): Likewise.
5889 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
5890 (GRUB_PE32_REL_BASED_DIR64): Likewise.
5891 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
5893 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
5896 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
5897 (efi_wrap_10): New function.
5899 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
5901 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
5902 MB/MBP model (NV chipset).
5903 (devdata_devs): Add devpath_5 to the list.
5905 * load/i386/efi/linux.c (video_base): Remove variable.
5906 (RGB_MASK): New macro.
5907 (RGB_MAGIC): Likewise.
5908 (LINE_MIN): Likewise.
5909 (LINE_MAX): Likewise.
5910 (FBTEST_STEP): Likewise.
5911 (FBTEST_COUNT): Likewise.
5912 (fb_list): New variable.
5913 (grub_find_video_card): Remove function.
5914 (find_framebuf): New function.
5915 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
5918 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
5921 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
5923 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
5925 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
5928 2009-02-22 Robert Millan <rmh@aybabtu.com>
5930 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
5931 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
5932 in our relocation, instead of using it directly from heap. Also
5933 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
5935 2009-02-21 Robert Millan <rmh@aybabtu.com>
5937 Implement USB keyboard support (based on patch by Marco Gerards)
5939 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
5940 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
5941 (usb_keyboard_mod_LDFLAGS): New variables.
5943 * term/usb_keyboard.c: New file.
5945 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
5947 Corrected wrong declaration
5949 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
5951 2009-02-14 Christian Franke <franke@computer.org>
5953 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
5954 (grub_lspci_iter): Print class code and programming interface byte.
5956 2009-02-14 Christian Franke <franke@computer.org>
5958 * gendistlist.sh: Ignore `.svn' directories.
5960 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
5962 * fs/fat.c: Add 2009 to Copyright line.
5964 2009-02-14 Christian Franke <franke@computer.org>
5966 * commands/hdparm.c: New file. Provides `hdparm' command
5967 which sends ATA commands via grub_disk_ata_pass_through ().
5969 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
5971 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
5972 and <grub/cpu/io.h> to include/grub/ata.h.
5973 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
5974 (GRUB_CDROM_SECTOR_SIZE): Remove.
5975 (GRUB_ATA_*): Move to include/grub/ata.h.
5976 (GRUB_ATAPI_*): Likewise.
5977 (enum grub_ata_commands): Likewise.
5978 (enum grub_ata_timeout_milliseconds): Likewise.
5979 (struct grub_ata_device): Likewise.
5980 (grub_ata_regset): Likewise.
5981 (grub_ata_regget): Likewise.
5982 (grub_ata_regset2): Likewise.
5983 (grub_ata_regget2): Likewise.
5984 (grub_ata_check_ready): Likewise.
5985 (grub_ata_wait_not_busy): Remove static, exported in
5987 (grub_ata_wait_drq): Likewise.
5988 (grub_ata_pio_read): Likewise.
5990 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
5991 function for hdparm.mod.
5993 * include/grub/ata.h: New file, contains declarations from
5995 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
5997 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
5998 (grub_disk_ata_pass_through): New exported variable.
6000 * kern/disk.c (grub_disk_ata_pass_through): New variable.
6002 2009-02-13 Colin D Bennett <colin@gibibit.com>
6004 Support multiple fallback entries, and provide an API to support
6005 executing default+fallback menu entries. Renamed the `terminal' menu
6008 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
6009 variable declaration.
6010 (grub_menu_execute_callback): New structure declaration.
6011 (grub_menu_execute_callback_t): New typedef.
6012 (grub_menu_execute_with_fallback): New function declaration.
6013 (grub_menu_get_entry): Likewise.
6014 (grub_menu_get_timeout): Likewise.
6015 (grub_menu_set_timeout): Likewise.
6017 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
6019 * normal/menu.c (grub_wait_after_message): Moved to
6020 `normal/menu_text.c'.
6021 (draw_border): Likewise.
6022 (print_message): Likewise.
6023 (print_entry): Likewise.
6024 (print_entries): Likewise.
6025 (grub_menu_init_page): Likewise.
6026 (get_entry_number): Likewise.
6027 (print_timeout): Likewise.
6028 (run_menu): Likewise.
6029 (grub_menu_execute_entry): Likewise.
6030 (show_text_menu): Likewise.
6031 (get_and_remove_first_entry_number): New function.
6032 (grub_menu_execute_with_fallback): Likewise.
6033 (get_entry): Renamed to ...
6034 (grub_menu_get_entry): .. this and made it global.
6035 (get_timeout): Renamed to ...
6036 (grub_menu_get_timeout): ... this and made it global.
6037 (set_timeout): Renamed to ...
6038 (grub_menu_set_timeout): ... this and made it global.
6039 (grub_normal_terminal_menu_viewer): Renamed to ...
6040 (grub_normal_text_menu_viewer): ... this.
6042 * normal/menu_text.c: New file. Extracted text-menu-specific code
6045 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
6046 (normal_mod_SOURCES): Likewise.
6048 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6049 (normal_mod_SOURCES): Likewise.
6051 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6052 (normal_mod_SOURCES): Likewise.
6054 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
6055 (normal_mod_SOURCES): Likewise.
6057 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6058 (normal_mod_SOURCES): Likewise.
6060 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6061 (normal_mod_SOURCES): Likewise.
6063 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6064 (normal_mod_SOURCES): Likewise.
6066 2009-02-11 Robert Millan <rmh@aybabtu.com>
6068 * util/grub.d/00_header.in: Update old reference to `font' command.
6070 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
6072 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
6074 Based on patch from Javier MartÃn.
6076 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6078 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
6079 to avoid false positives with FAT.
6080 (grub_fstest_SOURCES): Likewise.
6081 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6082 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6083 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6084 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6085 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6086 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6088 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6090 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6091 bpb.version_specific.fat12_or_fat16.fstype and
6092 bpb.version_specific.fat32.fstype.
6094 2009-02-08 Robert Millan <rmh@aybabtu.com>
6096 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
6098 2009-02-08 Robert Millan <rmh@aybabtu.com>
6100 * Makefile.in (host_os, host_cpu): New variables.
6101 (target_os): Remove. Update all users.
6103 2009-02-08 Marco Gerards <marco@gnu.org>
6105 * Makefile.in (enable_grub_emu_usb): New variable.
6106 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
6107 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
6108 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
6109 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
6110 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
6111 `usbtest.mod' and `usbms.mod'.
6112 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
6113 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
6114 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
6115 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
6116 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
6119 * disk/usbms.c: New file.
6121 * include/grub/usb.h: Likewise.
6123 * include/grub/usbtrans.h: Likewise.
6125 * include/grub/usbdesc.h: Likewise.
6127 * bus/usb/usbtrans.c: Likewise.
6129 * bus/usb/ohci.c: Likewise.
6131 * bus/usb/uhci.c: Likewise.
6133 * bus/usb/usbhub.c: Likewise.
6135 * bus/usb/usb.c: Likewise.
6137 * commands/usbtest.c: Likewise.
6139 * util/usb.c: Likewise.
6141 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
6143 * configure.ac: Test for libusb presence.
6145 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
6147 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
6149 * kern/mm.c: Add more comments.
6151 2009-02-08 Robert Millan <rmh@aybabtu.com>
6153 Patch from Javier MartÃn.
6154 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
6155 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
6157 2009-02-08 Robert Millan <rmh@aybabtu.com>
6159 * fs/cpio.c: Split tar functionality to ...
6160 * fs/tar.c: ... here (new file). Update all users.
6162 2009-02-07 Robert Millan <rmh@aybabtu.com>
6164 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
6165 backward-incompatible features.
6167 Based on patch from Javier MartÃn, with some adjustments.
6169 2009-02-07 Michael Scherer <misc@mandriva.org>
6171 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
6173 2009-02-07 Robert Millan <rmh@aybabtu.com>
6175 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
6176 position of `disk/lvm.c' to ensure grub_init_all() always picks it
6177 after the RAID stuff.
6179 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
6181 Fixes problem when running vbetest command as reported by
6182 Vladimir Serbinenko <phcoder@gmail.com>.
6184 * (grub_vbe_set_video_mode): Fixed problem with text modes.
6186 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
6188 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
6189 /dev/md/NpN style mdraid devices.
6191 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6193 * util/unifont2pff.rb: Remove.
6195 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6197 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
6200 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6202 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
6203 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6204 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6205 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6206 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6207 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6208 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6210 2009-02-02 Christian Franke <franke@computer.org>
6212 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
6214 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
6216 * INSTALL: Note that we now require at least autoconf 2.59 and
6217 that LZO is optional.
6219 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6221 Base on patch on bug #24154 created by Tomas Tintera
6224 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
6226 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6228 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
6229 <bero@arklinux.org>.
6231 * normal/parser.y (script_init): Add missing semicolon.
6233 2009-01-31 Colin D Bennett <colin@gibibit.com>
6235 * normal/main.c: Add include to grub/menu_viewer.h.
6236 (free_menu_entry_classes): Added.
6237 (grub_normal_menu_addentry): Added class property handling.
6238 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
6239 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
6241 * normal/menu_viewer.c: New file.
6243 * normal/menu.c (run_menu_entry): Renamed to ...
6244 (grub_menu_execute_entry): ... this and made it as global.
6245 (grub_menu_run): Renamed to ...
6246 (show_text_menu): ... this and made it local.
6247 (show_text_menu): Adapt to new function names.
6248 (grub_normal_terminal_menu_viewer): New global variable.
6250 * include/grub/menu.h: New file.
6252 * include/grub/menu_viewer.h: New file.
6254 * include/grub/normal.h: Added include to grub/menu.h.
6255 (grub_menu_entry): Moved to include/grub/menu.h.
6256 (grub_menu_entry_t): Likewise.
6257 (grub_menu): Likewise.
6258 (grub_menu_t): Likewise.
6259 (grub_normal_terminal_menu_viewer): Added.
6260 (grub_menu_execute_entry): Likewise.
6261 (grub_menu_run): Removed.
6263 * DISTLIST: Added include/grub/menu.h.
6264 Added include/grub/menu_viewer.h.
6265 Added normal/menu_viewer.c.
6267 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
6269 * normal/execute.c (grub_script_execute_menuentry): Changed to use
6270 arglist for menutitle arguments.
6272 * normal/main.c (grub_normal_menu_addentry): Likewise.
6274 * normal/parser.y (menuentry): Likewise.
6276 * normal/script.c (grub_script_create_cmdmenu): Likewise.
6278 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
6279 (grub_script_create_cmdmenu): Likewise.
6281 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
6283 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
6286 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
6288 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
6290 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
6292 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6294 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6296 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6298 2009-01-30 Christian Franke <franke@computer.org>
6300 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
6301 in option help text.
6303 2009-01-27 Pavel Roskin <proski@gnu.org>
6305 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
6307 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6309 * commands/lsmmap.c: Add include to grub/machine/memory.h.
6311 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
6313 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
6314 unregister function.
6316 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6318 * disk/scsi.c (grub_scsi_read): Fix sign problem.
6320 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
6322 * util/grub-mkfont.c (usage): Fix typo.
6324 * util/elf/grub-mkimage.c (load_modules): Fix warning.
6326 2009-01-26 Daniel Mierswa <impulze@impulze.org>
6328 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
6330 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
6332 * kern/misc.c (grub_strcasecmp): New function.
6333 (grub_strcasecmp): Use grub_size_t instead of int for length.
6335 * include/grub/misc.h: Update function prototypes.
6337 2009-01-26 Robert Millan <rmh@aybabtu.com>
6339 * configure.ac: Fix cross-compilation check.
6341 2009-01-22 Christian Franke <franke@computer.org>
6343 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
6344 (precision) digit string. Allow `.format2' without `format1' (width).
6345 Limit input chars for `%s' output to `format2' if specified. This is
6346 compatible with standard printf ().
6348 2009-01-22 Christian Franke <franke@computer.org>
6350 * disk/ata.c (grub_ata_wait_status): Replace by ...
6351 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
6352 other status bits may be invalid while BSY is asserted.
6353 (grub_ata_check_ready): New function.
6354 (grub_ata_cmd): Removed.
6355 (grub_ata_wait_drq): New function.
6356 (grub_ata_strncpy): Remove inline.
6357 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
6358 and error check now done by grub_ata_wait_drq ().
6359 (grub_ata_pio_write): Likewise.
6360 (grub_atapi_identify): Set DEV before check for !BSY. Use
6361 grub_ata_wait_drq () to wait for data.
6362 (grub_ata_device_initialize): Add status register check to
6363 detect missing SATA slave devices. Add debug messages.
6364 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
6365 (grub_atapi_packet): Set DEV before check for !BSY. Replace
6366 transfer loop by grub_ata_pio_write ().
6367 (grub_ata_identify): Set DEV before check for !BSY. Use
6368 grub_ata_wait_drq () to wait for data.
6369 (grub_ata_setaddress): Set DEV before check for !BSY.
6370 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
6371 read/write in one loop. Fix invalid command on write. Fix incomplete
6372 command on (size % batch) == 0. Add missing error check after write of
6373 last block. Add debug messages.
6374 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
6376 2009-01-19 Christian Franke <franke@computer.org>
6378 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
6379 (GRUB_ATAPI_IREASON_*): Likewise.
6380 (grub_ata_pio_write): Fix timeout error return.
6381 (grub_atapi_identify): Add grub_ata_wait () after cmd.
6382 (grub_atapi_wait_drq): New function.
6383 (grub_atapi_packet): New parameter `size'.
6384 Use grub_atapi_wait_drq () and direct write instead of
6385 grub_ata_pio_write ().
6386 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
6387 reads the number of bytes requested by the device for each DRQ
6389 (grub_atapi_write): Remove old implementation, return not
6390 implemented instead.
6392 2009-01-19 Christian Franke <franke@computer.org>
6394 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
6395 of 512 to calculate data size.
6396 (grub_scsi_read12): Likewise.
6397 (grub_scsi_write10): Likewise.
6398 (grub_scsi_write12): Likewise.
6399 (grub_scsi_read): Adjust size according to blocksize.
6400 Add checks for invalid blocksize and unaligned transfer.
6402 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
6404 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
6406 * term/gfxterm.c (write_char): Fix background rendering for wide
6409 2009-01-19 Robert Millan <rmh@aybabtu.com>
6411 * config.guess: Update to latest version from config git.
6412 * config.sub: Likewise.
6414 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
6416 * Makefile.in: Change font compilation to use new grub-mkfont instead
6419 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
6420 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6421 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6422 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6423 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6424 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6425 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6426 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6427 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6429 2009-01-16 Christian Franke <franke@computer.org>
6431 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
6432 (enum grub_ata_timeout_milliseconds): New enum.
6433 (grub_ata_wait_status): Add parameter milliseconds.
6434 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
6435 recovery from timed-out commands.
6436 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
6437 return grub_errno instead of REG_ERROR.
6438 (grub_ata_pio_write): Add parameter milliseconds.
6439 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
6440 Pass milliseconds to grub_ata_wait_status () and
6441 grub_ata_pio_read ().
6442 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
6443 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
6444 grub_ata_wait_status (). Fix IDENTIFY timeout check.
6445 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
6446 It is not suitable for device detection, because DEV bit is ignored,
6447 the command may run too long, and not all devices set the signature
6449 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
6450 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
6451 Fix device selection, DEV bit must be set first to address the registers
6452 of the correct device.
6453 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
6454 grub_ata_pio_read/write ().
6455 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
6456 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
6458 2009-01-13 Carles Pina i Estany <carles@pina.cat>
6460 * util/grub-editenv.c (main): Use fseeko(), not fseek().
6462 2009-01-13 Bean <bean123ch@gmail.com>
6464 * util/grub-mkfont.c (write_font): forget to remove some debug code.
6466 2009-01-13 Bean <bean123ch@gmail.com>
6468 * Makefile.in: (enable_grub_mkfont): New variable.
6469 (freetype_cflags): Likewise.
6470 (freetype_libs): Likewise.
6472 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
6473 (grub_mkfont_SOURCES): New variable.
6474 (grub_mkfont_CFLAGS): Likewise.
6475 (grub_mkfont_LDFLAGS): Likewise.
6477 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
6478 library if `--enable-grub-mkfont' is requested.
6479 (enable_grub_mkfont): New variable.
6480 (freetype_cflags): Likewise.
6481 (freetype_libs): Likewise.
6483 * util/grub-mkfont.c: New file.
6485 2009-01-12 Christian Franke <franke@computer.org>
6487 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
6488 mode check. Fix setting of compat_use[].
6490 2009-01-10 Robert Millan <rmh@aybabtu.com>
6492 Update a few copyright years which we forgot to do in 2008 (only for
6493 files whose changes made in 2008 were copyright-significant)
6495 * Makefile.in: Add 2008 to Copyright line.
6496 * disk/ieee1275/ofdisk.c: Likewise.
6497 * disk/efi/efidisk.c: Likewise.
6498 * kern/dl.c: Likewise.
6499 * kern/sparc64/ieee1275/init.c: Likewise.
6500 * kern/mm.c: Likewise.
6501 * kern/efi/mm.c: Likewise.
6502 * boot/i386/pc/boot.S: Likewise.
6503 * genfslist.sh: Likewise.
6504 * fs/iso9660.c: Likewise.
6505 * fs/hfs.c: Likewise.
6506 * fs/jfs.c: Likewise.
6507 * fs/minix.c: Likewise.
6508 * fs/ufs.c: Likewise.
6509 * gensymlist.sh.in: Likewise.
6510 * genkernsyms.sh.in: Likewise.
6511 * include/grub/misc.h: Likewise.
6512 * include/grub/types.h: Likewise.
6513 * include/grub/symbol.h: Likewise.
6514 * include/grub/elf.h: Likewise.
6515 * include/grub/kernel.h: Likewise.
6516 * include/grub/disk.h: Likewise.
6517 * include/grub/dl.h: Likewise.
6518 * include/grub/i386/linux.h: Likewise.
6519 * include/grub/i386/pc/biosdisk.h: Likewise.
6520 * include/grub/efi/api.h: Likewise.
6521 * include/grub/efi/pe32.h: Likewise.
6522 * include/grub/util/misc.h: Likewise.
6523 * normal/execute.c: Likewise.
6524 * normal/arg.c: Likewise.
6525 * normal/completion.c: Likewise.
6526 * normal/lexer.c: Likewise.
6527 * normal/parser.y: Likewise.
6528 * normal/misc.c: Likewise.
6529 * commands/i386/pc/vbeinfo.c: Likewise.
6530 * commands/hexdump.c: Likewise.
6531 * commands/terminal.c: Likewise.
6532 * commands/ls.c: Likewise.
6533 * commands/help.c: Likewise.
6534 * partmap/pc.c: Likewise.
6535 * loader/efi/chainloader.c: Likewise.
6536 * loader/multiboot_loader.c: Likewise.
6537 * loader/i386/pc/multiboot2.c: Likewise.
6538 * term/efi/console.c: Likewise.
6539 * term/i386/pc/serial.c: Likewise.
6540 * util/lvm.c: Likewise.
6541 * util/console.c: Likewise.
6542 * util/i386/efi/grub-mkimage.c: Likewise.
6543 * util/raid.c: Likewise.
6545 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
6547 * commands/videotest.c: Removed include to grub/machine/memory.h.
6549 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
6550 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
6551 (video_mod_SOURCES): Removed.
6552 (video_mod_CFLAGS): Likewise.
6553 (video_mod_LDFLAGS): Likewise.
6554 (gfxterm_mod_SOURCES): Likewise.
6555 (gfxterm_mod_CFLAGS): Likewise.
6556 (gfxterm_mod_LDFLAGS): Likewise.
6557 (videotest_mod_SOURCES): Likewise.
6558 (videotest_mod_CFLAGS): Likewise.
6559 (videotest_mod_LDFLAGS): Likewise.
6560 (bitmap_mod_SOURCES): Likewise.
6561 (bitmap_mod_CFLAGS): Likewise.
6562 (bitmap_mod_LDFLAGS): Likewise.
6563 (tga_mod_SOURCES): Likewise.
6564 (tga_mod_CFLAGS): Likewise.
6565 (tga_mod_LDFLAGS): Likewise.
6566 (jpeg_mod_SOURCES): Likewise.
6567 (jpeg_mod_CFLAGS): Likewise.
6568 (jpeg_mod_LDFLAGS): Likewise.
6569 (png_mod_SOURCES): Likewise.
6570 (png_mod_CFLAGS): Likewise.
6571 (png_mod_LDFLAGS): Likewise.
6573 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
6574 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
6575 (video_mod_SOURCES): Added.
6576 (video_mod_CFLAGS): Likewise.
6577 (video_mod_LDFLAGS): Likewise.
6578 (videotest_mod_SOURCES): Likewise.
6579 (videotest_mod_CFLAGS): Likewise.
6580 (videotest_mod_LDFLAGS): Likewise.
6581 (bitmap_mod_SOURCES): Likewise.
6582 (bitmap_mod_CFLAGS): Likewise.
6583 (bitmap_mod_LDFLAGS): Likewise.
6584 (tga_mod_SOURCES): Likewise.
6585 (tga_mod_CFLAGS): Likewise.
6586 (tga_mod_LDFLAGS): Likewise.
6587 (jpeg_mod_SOURCES): Likewise.
6588 (jpeg_mod_CFLAGS): Likewise.
6589 (jpeg_mod_LDFLAGS): Likewise.
6590 (png_mod_SOURCES): Likewise.
6591 (png_mod_CFLAGS): Likewise.
6592 (png_mod_LDFLAGS): Likewise.
6593 (gfxterm_mod_SOURCES): Likewise.
6594 (gfxterm_mod_CFLAGS): Likewise.
6595 (gfxterm_mod_LDFLAGS): Likewise.
6597 * term/gfxterm.c: Removed include to grub/machine/memory.h,
6598 grub/machine/console.h.
6600 2009-01-04 Jerone Young <jerone@gmail.com>
6602 Make on screen instructions clearer
6604 Based on patch created by Jidanni <jidanni@jidanni.org>
6606 * normal/menu.c: print clearer instructions on the screen
6608 2009-01-02 Colin D Bennett <colin@gibibit.com>
6612 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
6613 build system and fixed gfxterm.c to work with different sized fonts.
6615 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
6617 * configure: Re-generated.
6619 * DISTLIST: Removed font/manager.c.
6621 Added font/font_cmd.c.
6623 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
6626 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
6628 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
6630 * kern/term.c: Changed users of grub_utf8_to_ucs4.
6632 * normal/menu.c: Likewise.
6634 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
6635 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
6637 * include/grub/font.h: Replaced with new file.
6639 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
6640 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
6641 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
6642 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
6643 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
6644 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
6645 fg_red, fg_green, fg_blue, fg_alpha.
6646 (grub_video_adapter): Removed blit_glyph.
6647 (grub_video_blit_glyph): Removed.
6649 * font/manager.c: Removed file.
6651 * font/font.c: New file.
6653 * font/font_cmd.c: Likewise.
6655 * video/video.c (grub_video_blit_glyph): Removed.
6657 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
6658 (grub_video_vbe_map_rgba): Likewise.
6659 (grub_video_vbe_unmap_color_int): Likewise.
6660 (grub_video_vbe_blit_glyph): Removed.
6661 (grub_video_vbe_adapter): Removed blit_glyph.
6663 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
6664 (get_pixel): Likewise.
6665 (set_pixel): Likewise.
6667 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
6669 * term/gfxterm.c: Adapted to new font engine.
6671 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
6673 * term/i386/pc/vga.c: Likewise.
6675 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
6677 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6679 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6681 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6683 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6685 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6687 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6689 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6691 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6693 * util/grub.d/00_header.in: Changed to use new loadfont command.
6695 * util/grub-mkconfig_lib.in: Changed font extension.
6697 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
6699 * util/getroot.c (grub_util_get_grub_dev): Add support for
6700 /dev/md/dNNpNN style partitionable mdraid devices.
6702 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
6704 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
6705 at a time limit of the PXE TFTP API correctly.
6706 (grub_pxefs_close): Likewise.
6708 2008-11-29 Robert Millan <rmh@aybabtu.com>
6710 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
6711 grub_ata_device_initialize() calls.
6713 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
6715 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
6717 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
6719 2008-11-28 Robert Millan <rmh@aybabtu.com>
6721 Fix build on powerpc-ieee1275. Based on patch created by
6722 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
6723 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
6724 `kern/ieee1275/mmap.c'.
6725 * include/grub/powerpc/ieee1275/memory.h: New file.
6727 Provide grub-install on coreboot.
6728 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
6729 (grub_install_SOURCES): New variable.
6730 * util/i386/pc/grub-install.in: Add a few condition checks to make it
6733 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
6735 * util/grub-fstest.c (grub_term_get_current_input): Change return type
6736 to `grub_term_input_t'.
6737 (grub_term_get_current_output): Change return type to
6738 `grub_term_output_t'.
6740 2008-11-22 Robert Millan <rmh@aybabtu.com>
6742 Fix breakage on coreboot due to declaration mismatch.
6743 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
6744 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
6745 grub_vga_text_cls().
6747 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
6748 comments. Avoid copying one more byte than necessary (just in case).
6750 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
6751 to 0x200000 (avoids trouble with some OFW implementations, and matches
6752 with the one in Yaboot).
6753 Reported by Manoel Abranches
6755 2008-11-20 Robert Millan <rmh@aybabtu.com>
6757 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
6758 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
6760 * util/grub-mkconfig_lib.in (grub_warn): New function.
6761 (convert_system_path_to_grub_path): Use grub_warn() when issuing
6762 warnings, to obtain consistent formatting.
6763 * util/grub.d/00_header.in: Likewise.
6764 * util/update-grub_lib.in: Likewise.
6766 * loader/i386/linux.c (allocate_pages): Fix a warning.
6767 Move comment text to `#error' stanza.
6769 Harmonize ieee1275's grub_available_iterate() with the generic
6770 grub_machine_mmap_iterate() interface (fixes a recently-introduced
6771 build problem on i386-ieee1275):
6772 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
6773 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
6774 parameter `type'. Update all users of this function.
6775 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
6776 `kern/ieee1275/mmap.c'.
6777 * kern/ieee1275/init.c
6778 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
6780 (grub_machine_mmap_iterate): ... this.
6781 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
6782 return type to `grub_err_t'. Update all implementations of this
6784 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
6787 Add `lsmmap' command (lists firmware-provided memory map):
6788 * commands/lsmmap.c: New file.
6789 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
6790 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
6792 * conf/powerpc-ieee1275.rmk: Likewise.
6793 * conf/i386-coreboot.rmk: Likewise.
6794 * conf/i386-ieee1275.rmk: Likewise.
6796 2008-11-19 Robert Millan <rmh@aybabtu.com>
6798 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
6799 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
6800 constraints to initrd allocation (based on code from
6801 loader/i386/pc/linux.c). Without them, initrd was allocated too high
6802 for Linux to find it.
6804 2008-11-14 Robert Millan <rmh@aybabtu.com>
6806 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
6807 order to cope with duplicate slashes.
6809 2008-11-14 Robert Millan <rmh@aybabtu.com>
6811 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
6812 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
6813 don't want to mess with lower memory, because it is used in the Linux
6816 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
6817 an appropriate place in lower memory, between 0x10000 and 0x90000,
6818 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
6819 is in our heap (probably as a result of it being corrupted during
6820 decompression). Add #error instance with comment to explain why this
6821 loader isn't currently usable on PC/BIOS.
6823 2008-11-14 Robert Millan <rmh@aybabtu.com>
6825 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
6826 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
6828 2008-11-12 Robert Millan <rmh@aybabtu.com>
6830 Make loader/i386/linux.c buildable on i386-pc (although disabled).
6832 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
6833 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
6835 * include/grub/i386/pc/memory.h: ... to here.
6837 2008-11-12 Robert Millan <rmh@aybabtu.com>
6839 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
6842 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
6843 (grub_console_cur_color, grub_console_real_putchar)
6844 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6845 (grub_console_setcolorstate, grub_console_setcolor)
6846 (grub_console_getcolor): Move from here ...
6847 * include/grub/i386/vga_common.h: ... to here (new file).
6849 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
6850 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
6852 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
6853 `<grub/i386/vga_common.h>'.
6855 2008-11-12 Robert Millan <rmh@aybabtu.com>
6857 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
6858 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
6859 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
6861 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6862 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
6864 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
6865 grub_console_init() with call to grub_vga_text_init().
6866 (grub_machine_fini): Replace call to
6867 grub_console_fini() with call to grub_vga_text_fini() and
6868 grub_at_keyboard_fini().
6870 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
6871 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6872 (grub_console_setcolorstate, grub_console_setcolor)
6873 (grub_console_getcolor): New function prototypes.
6875 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
6876 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
6877 (grub_vga_text_setcursor): Static-ize.
6878 (grub_vga_text_term): New structure.
6879 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
6881 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
6882 (grub_console_cur_color, grub_console_standard_color)
6883 (grub_console_normal_color, grub_console_highlight_color)
6884 (map_char, grub_console_putchar, grub_console_getcharwidth)
6885 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
6886 (grub_console_getcolor): Move from here ...
6887 * term/i386/vga_common.c: ... to here (same function names).
6889 2008-11-12 Robert Millan <rmh@aybabtu.com>
6891 Use newly-added Multiboot support in coreboot.
6893 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6894 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
6896 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
6897 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
6898 (codestart): Store the MBI in `startup_multiboot_info' when we're
6899 being loaded using Multiboot.
6901 * kern/i386/coreboot/init.c (grub_machine_init): Move
6902 grub_at_keyboard_init() call to beginning of function (useful for
6903 debugging). Call grub_machine_mmap_init() before attempting to use
6904 grub_machine_mmap_iterate().
6905 (grub_lower_mem, grub_upper_mem): Move from here ...
6906 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
6909 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
6912 2008-11-12 Robert Millan <rmh@aybabtu.com>
6914 Fix a regression introduced by the at_keyboard.mod split. Because
6915 some terminals are default on some platforms and non-default on
6916 others, the first terminal being registered determines which is
6917 going to be default.
6919 * kern/term.c (grub_term_register_input): If this is the first
6920 terminal being registered, set it as the current one.
6921 (grub_term_register_output): Likewise.
6923 * term/efi/console.c (grub_console_init): Do not call
6924 grub_term_set_current_output() or grub_term_set_current_input().
6925 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
6926 * term/i386/pc/console.c (grub_console_init): Likewise.
6927 (grub_console_fini): Do not call grub_term_set_current_input()
6928 (but leave grub_term_set_current_output() to restore text mode).
6930 2008-11-10 Robert Millan <rmh@aybabtu.com>
6932 * util/grub.d/00_header.in: Add backward compatibility check for
6933 versions of terminal.mod that don't understand `terminal_input' or
6936 2008-11-09 Robert Millan <rmh@aybabtu.com>
6938 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
6939 `terminal_input' / `terminal_output', not `terminal'.
6941 2008-11-08 Robert Millan <rmh@aybabtu.com>
6943 * Makefile.in (include_DATA): Fix srcdir=. assumption.
6944 (DISTCLEANFILES): Add `build_env.mk'.
6946 2008-11-08 Robert Millan <rmh@aybabtu.com>
6948 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
6949 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
6950 members. Update all users.
6951 * util/console.c (grub_ncurses_term): Split in ...
6952 (grub_ncurses_term_input): ... this, and ...
6953 (grub_ncurses_term_output): ... this. Update all users.
6954 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
6956 2008-11-08 Robert Millan <rmh@aybabtu.com>
6958 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
6959 (PKGDATA): Add $(pkgdata_SRCDIR).
6960 (pkglib_BUILDDIR): New variable.
6961 (pkgdata_SRCDIR): New variable.
6962 (build_env.mk): New target.
6963 (include_DATA): New variable.
6964 (install-local): Install $(include_DATA) files in $(includedir).
6966 2008-11-07 Pavel Roskin <proski@gnu.org>
6968 * gendistlist.sh: Use C locale for sorting to ensure consistent
6969 output on all systems.
6971 * util/grub.d/00_header.in: Remove incorrect space before
6974 2008-11-07 Robert Millan <rmh@aybabtu.com>
6976 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
6978 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
6979 * loader/multiboot_loader.c (find_multi_boot2_header): New function
6980 (based on find_multi_boot1_header).
6981 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
6982 using find_multi_boot2_header(), and abort if neither Multiboot or
6983 Multiboot headers were found.
6985 2008-11-07 Robert Millan <rmh@aybabtu.com>
6987 Modularize at_keyboard.mod:
6989 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
6990 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
6991 (at_keyboard_mod_LDFLAGS): New variables.
6993 Actual terminal split:
6995 * include/grub/term.h (struct grub_term): Split in ...
6996 (struct grub_term_input): ... this, and ...
6997 (struct grub_term_output): ... this. Update all users.
6998 (grub_term_set_current): Split in ...
6999 (grub_term_set_current_input): ... this, and ...
7000 (grub_term_set_current_output): ... this.
7001 (grub_term_get_current): Split in ...
7002 (grub_term_get_current_input): ... this, and ...
7003 (grub_term_get_current_output): ... this.
7004 (grub_term_register): Split in ...
7005 (grub_term_register_input): ... this, and ...
7006 (grub_term_register_output): ... this.
7007 (grub_term_unregister): Split in ...
7008 (grub_term_unregister_input): ... this, and ...
7009 (grub_term_unregister_output): ... this.
7010 (grub_term_iterate): Split in ...
7011 (grub_term_iterate_input): ... this, and ...
7012 (grub_term_iterate_output): ... this.
7014 * kern/term.c (grub_term_list): Split in ...
7015 (grub_term_list_input): ... this, and ...
7016 (grub_term_list_output): ... this. Update all users.
7017 (grub_cur_term): Split in ...
7018 (grub_cur_term_input): ... this, and ...
7019 (grub_cur_term_output): ... this. Update all users.
7020 (grub_term_set_current): Split in ...
7021 (grub_term_set_current_input): ... this, and ...
7022 (grub_term_set_current_output): ... this.
7023 (grub_term_get_current): Split in ...
7024 (grub_term_get_current_input): ... this, and ...
7025 (grub_term_get_current_output): ... this.
7026 (grub_term_register): Split in ...
7027 (grub_term_register_input): ... this, and ...
7028 (grub_term_register_output): ... this.
7029 (grub_term_unregister): Split in ...
7030 (grub_term_unregister_input): ... this, and ...
7031 (grub_term_unregister_output): ... this.
7032 (grub_term_iterate): Split in ...
7033 (grub_term_iterate_input): ... this, and ...
7034 (grub_term_iterate_output): ... this.
7036 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
7037 a check for input and one for output (and only attempt to get keys
7038 from user when input works).
7040 * util/grub-probe.c (grub_term_get_current): Split in ...
7041 (grub_term_get_current_input): ... this, and ...
7042 (grub_term_get_current_output): ... this.
7043 * util/grub-fstest.c: Likewise.
7044 * util/i386/pc/grub-setup.c: Likewise.
7045 * util/grub-editenv.c: Likewise.
7047 Portability adjustments:
7049 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
7050 `term/i386/pc/at_keyboard.c'.
7051 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
7052 grub_keyboard_controller_init() (now handled by terminal .init).
7053 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
7054 grub_at_keyboard_init().
7055 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
7056 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
7057 at_keyboard.mod via input terminal interface).
7058 * include/grub/i386/coreboot/console.h: Convert into a stub for
7059 `<grub/i386/pc/console.h>'.
7061 Migrate full terminals to new API:
7063 * term/efi/console.c (grub_console_term): Split into ...
7064 (grub_console_term_input): ... this, and ...
7065 (grub_console_term_output): ... this. Update all users.
7066 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
7067 (grub_ofconsole_init): Split into ...
7068 (grub_ofconsole_init_input): ... this, and ...
7069 (grub_ofconsole_init_output): ... this.
7070 (grub_ofconsole_term): Split into ...
7071 (grub_ofconsole_term_input): ... this, and ...
7072 (grub_ofconsole_term_output): ... this. Update all users.
7073 * term/i386/pc/serial.c (grub_serial_term): Split into ...
7074 (grub_serial_term_input): ... this, and ...
7075 (grub_serial_term_output): ... this. Update all users.
7076 * term/i386/pc/console.c (grub_console_term): Split into ...
7077 (grub_console_term_input): ... this, and ...
7078 (grub_console_term_output): ... this. Update all users.
7079 (grub_console_term_input): Only enable it on PC/BIOS platform.
7080 (grub_console_init): Remove grub_keyboard_controller_init() call.
7082 Migrate input terminals to new API:
7084 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
7085 `i386' and `i386/pc' to enable build on x86_64 (this driver is
7086 i386-specific anyway).
7087 (grub_console_checkkey): Rename to ...
7088 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
7090 (grub_keyboard_controller_orig): New variable.
7091 (grub_console_getkey): Rename to ...
7092 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
7094 (grub_keyboard_controller_init): Static-ize. Save original
7095 controller value so that it can be restored ...
7096 (grub_keyboard_controller_fini): ... here (new function).
7097 (grub_at_keyboard_term): New structure.
7098 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
7101 Migrate output terminals to new API:
7103 * term/i386/pc/vga.c (grub_vga_term): Change type to
7104 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7105 members. Update all users.
7106 * term/gfxterm.c (grub_video_term): Change type to
7107 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7108 members. Update all users.
7109 * include/grub/i386/pc/console.h (grub_console_checkkey)
7110 (grub_console_getkey): Do not export (no longer needed by gfxterm,
7113 Migrate `terminal' command and userland tools to new API:
7115 * commands/terminal.c (grub_cmd_terminal): Split into ...
7116 (grub_cmd_terminal_input): ... this, and ...
7117 (grub_cmd_terminal_output): ... this.
7118 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
7119 `terminal_input' and `terminal_output'.
7120 * util/grub.d/00_header.in: Adjust `terminal' calls to new
7121 `terminal_input' / `terminal_output' API.
7122 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
7123 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
7124 provided ${GRUB_TERMINAL}, convert it).
7126 2008-11-04 Robert Millan <rmh@aybabtu.com>
7128 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
7130 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
7132 2008-11-03 Bean <bean123ch@gmail.com>
7134 * kern/elf.c (grub_elf32_load): Revert to previous code.
7135 (grub_elf64_load): Likewise.
7137 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
7139 2008-11-01 Robert Millan <rmh@aybabtu.com>
7141 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
7142 (TARGET_CPPFLAGS): Likewise.
7143 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
7145 2008-11-01 Carles Pina i Estany <carles@pina.cat>
7147 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
7149 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7151 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
7152 addition of objects until the code is not going to be able to fail.
7154 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7156 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
7157 (add a missing NULL check, and correct them by moving the pointer
7158 operations after the actual check).
7160 2008-10-29 Robert Millan <rmh@aybabtu.com>
7162 * util/i386/pc/grub-install.in: Handle empty string as output from
7163 make_system_path_relative_to_its_root().
7165 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
7167 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
7168 circular metadata worst case scenario. If the metadata is circular
7169 then copy the wrap in place.
7170 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
7171 project lib/format_text/layout.h
7172 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
7174 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7176 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
7178 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7180 * util/update-grub_lib.in: Mention filename in warning message.
7182 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7184 * NEWS: Update for rename of update-grub to grub-mkconfig.
7186 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7188 * util/update-grub_lib.in: Copy to ...
7189 * util/grub-mkconfig_lib.in: ... this. Update all users.
7190 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
7191 * util/update-grub.in: Rename to ...
7192 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
7193 option. Add `--output' option to allow users to specify the generated
7194 configuration file. Default to stdout.
7195 (update_grub_dir): Rename to ...
7196 (grub_mkconfig_dir): ... this.
7197 (grub_cfg): Default to an empty string.
7198 * conf/common.rmk (update-grub): Rename to ...
7199 (grub-mkconfig): ... this.
7200 (update-grub_lib): Copy to ...
7201 (grub-mkconfig_lib): ... this.
7202 (update-grub_SCRIPTS): Copy to ...
7203 (grub-mkconfig_SCRIPTS): ... this. Update all users.
7204 (update-grub_DATA): Rename to ...
7205 (grub-mkconfig_DATA): ... this.
7207 2008-09-28 Robert Millan <rmh@aybabtu.com>
7209 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
7210 to `modified'. Add the real `created' field.
7211 (grub_iso9660_uuid): Use `modified' rather than `created' for
7212 constructing the UUID.
7214 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
7216 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
7217 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
7219 2008-09-28 Bean <bean123ch@gmail.com>
7221 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
7222 Thanks to Christian Franke for finding this bug.
7224 2008-09-25 Robert Millan <rmh@aybabtu.com>
7226 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
7227 instances of grub_util_get_disk_name() (see previous commit).
7229 2008-09-25 Robert Millan <rmh@aybabtu.com>
7231 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
7232 `util/i386/get_disk_name.c'.
7233 * conf/i386-efi.rmk: Likewise.
7234 * conf/x86_64-efi.rmk: Likewise.
7235 * conf/i386-coreboot.rmk: Likewise.
7236 * conf/i386-ieee1275.rmk: Likewise.
7237 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
7238 `util/ieee1275/get_disk_name.c'.
7239 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
7240 * util/ieee1275/get_disk_name.c: Remove file.
7241 * util/i386/get_disk_name.c: Remove file.
7242 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
7243 "hd%d" for device.map entries, rather than using
7244 grub_util_get_disk_name().
7246 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7248 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
7250 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
7252 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7254 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
7256 (GRUB_TERM_PPAGE): Changed to 0x4900.
7258 2008-09-24 Robert Millan <rmh@aybabtu.com>
7260 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
7261 macros (they were i386-pc specific).
7262 * include/grub/sparc64/ieee1275/console.h: Likewise.
7263 * include/grub/efi/console.h: Likewise.
7265 2008-09-22 Bean <bean123ch@gmail.com>
7267 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
7268 resident and in attribute list.
7270 * include/grub/ntfs.h (BMP_LEN): Removed.
7272 2008-09-22 Bean <bean123ch@gmail.com>
7274 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
7275 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
7277 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
7278 error occurs, as grub_disk_open will call grub_disk_close, which will
7279 call p->close (scsi).
7281 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7283 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
7284 (AC_PREREQ): Bumped to 2.59.
7285 (AC_TRY_COMPILE): Replace obsolete macro with ...
7286 (AC_COMPILE_IFELSE): ... this.
7287 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
7288 (AC_LINK_IFELSE): ... this.
7290 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7292 * autogen.sh: Add a call to `gendistlist.sh'.
7294 2008-09-19 Christian Franke <franke@computer.org>
7296 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
7297 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
7298 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
7299 Export __enable_execute_stack() to modules.
7300 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
7303 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7305 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
7308 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7310 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7311 #include <grub/util/hostdisk.h>.
7313 2008-09-08 Robert Millan <rmh@aybabtu.com>
7315 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
7316 segments when their filesz is zero (grub_file_read() interprets
7317 zero-size as "read until EOF", which results in memory corruption).
7318 Use `lowest_segment' rather than 0 for calculating the current
7319 segment load address.
7321 2008-09-08 Robert Millan <rmh@aybabtu.com>
7323 * util/hostdisk.c (open_device): Replace a grub_util_info() call
7324 with grub_dprintf("hostdisk", ...), as it was so verbose that it
7325 clobbered useful information.
7327 2008-09-08 Robert Millan <rmh@aybabtu.com>
7329 * include/grub/util/biosdisk.h: Move to ...
7330 * include/grub/util/hostdisk.h: ... here. Update all users.
7331 * util/biosdisk.c: Move to ...
7332 * util/hostdisk.c: ... here. Update all users.
7334 2008-09-07 Robert Millan <rmh@aybabtu.com>
7336 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
7338 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
7339 and length can be stored directly in the `mbi->mmap_addr' and
7340 `mbi->mmap_length' struct fields.
7342 2008-09-07 Robert Millan <rmh@aybabtu.com>
7344 * conf/i386.rmk: New file. Provides declaration for building
7346 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
7347 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
7349 Include `conf/i386.mk'.
7350 * conf/i386-efi.rmk: Likewise.
7351 * conf/x86_64-efi.rmk: Likewise.
7352 * conf/i386-coreboot.rmk: Likewise.
7353 * conf/i386-ieee1275.rmk: Likewise.
7355 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
7357 Based on patch created by Colin D Bennett <colin@gibibit.com>.
7358 Adds optimization support for BGR based modes.
7360 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
7361 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7362 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7363 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7364 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7365 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7366 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7367 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7368 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7369 (grub_video_i386_vbeblit_index_index): Likewise.
7370 (grub_video_i386_vbeblit_replace_directN): Added.
7371 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7372 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7373 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7374 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7375 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7376 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7377 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7378 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7379 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7380 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7381 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7382 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7383 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7385 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
7386 (grub_video_i386_vbefill_R8G8B8): Likewise.
7387 (grub_video_i386_vbefill_index): Likewise.
7388 (grub_video_i386_vbefill_direct32): Added.
7389 (grub_video_i386_vbefill_direct24): Likewise.
7390 (grub_video_i386_vbefill_direct16): Likewise.
7391 (grub_video_i386_vbefill_direct8): Likewise.
7393 * include/grub/video.h (grub_video_blit_format): Removed
7394 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
7395 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
7396 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
7397 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
7398 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
7400 * video/video.c (grub_video_get_blit_format): Updated to use new
7401 blit formats. Added handling for 16 bit color modes.
7403 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
7405 (common_blitter): Updated to use new blitters.
7407 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
7409 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7410 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7411 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7412 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7413 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7414 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7415 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7416 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7417 (grub_video_i386_vbeblit_index_index): Likewise.
7418 (grub_video_i386_vbeblit_replace_directN): Added.
7419 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7420 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7421 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7422 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7423 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7424 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7425 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7426 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7427 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7428 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7429 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7430 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7431 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7433 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
7434 (grub_video_i386_vbefill_R8G8B8): Likewise.
7435 (grub_video_i386_vbefill_index): Likewise.
7436 (grub_video_i386_vbefill_direct32): Added.
7437 (grub_video_i386_vbefill_direct24): Likewise.
7438 (grub_video_i386_vbefill_direct16): Likewise.
7439 (grub_video_i386_vbefill_direct8): Likewise.
7441 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
7444 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
7447 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
7450 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
7453 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7455 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
7458 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7460 * fs/iso9660.c (grub_iso9660_date): New structure.
7461 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
7462 (grub_iso9660_uuid): New function.
7464 2008-09-05 Bean <bean123ch@gmail.com>
7466 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
7468 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
7469 insensitive bit for names in Win32 and Win32 & DOS namespace.
7471 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
7473 * include/grub/types.h (LONG_MAX): Likewise.
7475 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7477 * util/getroot.c: Include <config.h>.
7478 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
7479 add support for /dev/md/N devices and handle LVM double dash escaping.
7481 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7483 * config.guess: Update to latest version from config git.
7484 * config.sub: Likewise.
7486 2008-09-03 Robert Millan <rmh@aybabtu.com>
7488 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
7489 `disk->total_sectors'.
7491 2008-09-01 Colin D Bennett <colin@gibibit.com>
7493 * include/grub/normal.h: Fixed incorrect comment for
7494 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
7496 2008-09-01 Colin D Bennett <colin@gibibit.com>
7498 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
7499 values with defines.
7501 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
7502 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
7503 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
7504 (GRUB_VBE_MODEATTR_COLOR): Likewise.
7505 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
7506 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
7507 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
7508 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
7509 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
7510 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
7511 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
7512 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
7513 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
7514 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
7515 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
7516 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
7517 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
7518 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
7519 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
7521 2008-08-31 Robert Millan <rmh@aybabtu.com>
7523 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
7525 (grub_multiboot): Fix a few warnings.
7527 2008-08-31 Robert Millan <rmh@aybabtu.com>
7529 * loader/i386/pc/multiboot.c: Update comment not to say that
7530 boot_device support is unimplemented.
7532 2008-08-31 Robert Millan <rmh@aybabtu.com>
7534 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
7535 or memory map support are unimplemented.
7537 2008-08-31 Colin D Bennett <colin@gibibit.com>
7539 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
7541 2008-08-31 Colin D Bennett <colin@gibibit.com>
7543 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
7544 total video memory in 'vbeinfo' output; show color format details for
7547 2008-08-30 Pavel Roskin <proski@gnu.org>
7549 * util/genmoddep.c: Remove for real this time.
7550 * DISTLIST: Remove util/genmoddep.c.
7552 2008-08-30 Robert Millan <rmh@aybabtu.com>
7554 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
7555 as required by Multiboot spec (it was already 4-byte aligned, but
7558 2008-08-29 Pavel Roskin <proski@gnu.org>
7560 * kern/powerpc/ieee1275/crt0.S: Rename to ...
7561 * kern/powerpc/ieee1275/startup.S: ... this.
7562 * conf/powerpc-ieee1275.rmk: Adjust for the above.
7563 * DISTLIST: Likewise.
7565 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
7566 grub/cpu/kernel.h. Add start label for consistency with other
7567 platforms. Add grub_prefix immediately after start. Add jump
7568 to the code after grub_prefix.
7569 * include/grub/powerpc/kernel.h: Provide valid values for
7570 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
7572 2008-08-29 Bean <bean123ch@gmail.com>
7574 * configure.ac: Change host_os to cygwin for mingw.
7575 (asprintf): New check for function.
7577 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
7578 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
7580 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
7581 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
7582 sync, sleep and grub_util_get_disk_size for mingw.
7584 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
7585 to get size in mingw.
7586 (open_device): Use flag O_BINARY if it's defined.
7587 (find_root_device): Add dummy code for mingw.
7589 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
7590 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
7591 (get_scsi_disk_name): Return 0 for mingw.
7593 * util/hostfs.c: #include <grub/util/misc.h>.
7594 (grub_hostfs_open): Use "rb" flag to open file, use
7595 grub_util_get_disk_size to get disk size for mingw.
7597 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
7598 (asprintf): New function if HAVE_ASPRINTF is not set.
7599 (sync): New function for mingw.
7601 (grub_util_get_disk_size): Likewise.
7603 2008-08-28 Pavel Roskin <proski@gnu.org>
7605 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7608 2008-08-28 Robert Millan <rmh@aybabtu.com>
7610 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
7612 2008-08-28 Robert Millan <rmh@aybabtu.com>
7614 Change find_grub_drive() syntax so it doesn't prevent it from
7615 detecting NULL names as errors.
7617 * util/biosdisk.c (find_grub_drive): Move free slot search code
7619 (find_free_slot): ... to here.
7620 (read_device_map): Use find_free_slot() to search for free slots.
7622 2008-08-27 Marco Gerards <marco@gnu.org>
7624 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
7625 (scsi_mod_SOURCES): New variable.
7626 (scsi_mod_CFLAGS): Likewise
7627 (scsi_mod_LDFLAGS): Likewise.
7629 * disk/scsi.c: New file.
7631 * include/grub/scsi.h: Likewise.
7633 * include/grub/scsicmd.h: Likewise.
7635 * disk/ata.c: Include <grub/scsi.h>.
7636 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
7638 (grub_ata_iterate): Skip ATAPI devices.
7639 (grub_ata_open): Only handle ATAPI devices.
7640 (struct grub_atapi_read): Removed.
7641 (grub_atapi_readsector): Likewise.
7642 (grub_ata_read): No longer handle ATAPI devices.
7643 (grub_ata_write): Likewise.
7644 (grub_atapi_iterate): New function.
7645 (grub_atapi_read): Likewise.
7646 (grub_atapi_write): Likewise.
7647 (grub_atapi_open): Likewise.
7648 (grub_atapi_close): Likewise.
7649 (grub_atapi_dev): New variable.
7650 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
7651 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
7653 * include/grub/disk.h (enum grub_disk_dev_id): Add
7654 `GRUB_DISK_DEVICE_SCSI_ID'.
7656 2008-08-26 Robert Millan <rmh@aybabtu.com>
7658 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
7659 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
7662 2008-08-23 Bean <bean123ch@gmail.com>
7664 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
7665 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7666 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
7667 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
7669 (raid5rec_mod_SOURCES): New macro.
7670 (raid5rec_mod_CFLAGS): Likewise.
7671 (raid5rec_mod_LDFLAGS): Likewise.
7672 (raid6rec_mod_SOURCES): Likewise.
7673 (raid6rec_mod_CFLAGS): Likewise.
7674 (raid6rec_mod_LDFLAGS): Likewise.
7675 (mdraid_mod_SOURCES): Likewise.
7676 (mdraid_mod_CFLAGS): Likewise.
7677 (mdraid_mod_LDFLAGS): Likewise.
7678 (dm_nv_mod_SOURCES): Likewise.
7679 (dm_nv_mod_CFLAGS): Likewise.
7680 (dm_nv_mod_LDFLAGS): Likewise.
7682 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
7683 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7684 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7686 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
7687 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7689 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7691 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7693 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7695 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7697 * disk/raid5_recover.c: New file.
7699 * disk/raid6_recover.c: Likewise.
7701 * disk/mdraid_linux.c: Likewise.
7703 * disk/dmraid_nvidia.c: Likewise.
7705 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
7708 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
7709 calculate the size of raid device.
7710 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
7711 different layout of raid5.
7712 (grub_raid_scan_device): Remove code specific to mdraid.
7713 (grub_raid_list): New variable.
7714 (free_array): New function.
7715 (grub_raid_register): Likewise.
7716 (grub_raid_unregister): Likewise.
7717 (grub_raid_rescan): Likewise.
7718 (GRUB_MOD_INIT): Don't iterate device here.
7719 (GRUB_MOD_FINI): Use free_array to release resource.
7721 * include/grub/raid.h: Remove macro and structure specific to mdraid.
7722 (grub_raid5_recover_func_t): New function variable type.
7723 (grub_raid6_recover_func_t): Likewise.
7724 (grub_raid5_recover_func): New variable.
7725 (grub_raid6_recover_func): Likewise.
7726 (grub_raid_register): New function.
7727 (grub_raid_unregister): Likewise.
7728 (grub_raid_rescan): Likewise.
7729 (grub_raid_block_xor): Likewise.
7731 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
7732 (CMD_CRC): New macro.
7734 (read_file): Handle device as well as file.
7735 (cmd_crc): New function.
7736 (fstest): Handle multiple disks.
7737 (options): Remove part, raw and long, add root and diskcount.
7738 (usage): Add crc, remove -p, -r, -l, add -r and -c.
7739 (main): Find the first non option entry and ignore subsequent options,
7740 add handling for the new options, support multiple disks.
7742 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
7744 2008-08-23 Bean <bean123ch@gmail.com>
7746 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
7748 * genfslist.sh: Ignore kernel.mod.
7750 * genpartmaplist.sh: Likewise.
7752 2008-08-23 Robert Millan <rmh@aybabtu.com>
7754 * util/getroot.c (find_root_device): Skip anything that starts with
7755 a dot, not just directories. This avoids things like /dev/.tmp.md0.
7757 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
7759 * util/update-grub.in (GRUB_GFXMODE): Export variable.
7760 * util/grub.d/00_header.in: Allow the administrator to change default
7761 gfxmode via ${GRUB_GFXMODE}.
7763 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
7765 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
7767 2008-08-21 Robert Millan <rmh@aybabtu.com>
7769 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
7771 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
7772 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
7774 2008-08-20 Carles Pina i Estany <carles@pina.cat>
7776 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
7777 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
7779 2008-08-19 Robert Millan <rmh@aybabtu.com>
7781 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
7782 (struct grub_virtual_screen): Remove `cursor_color'.
7783 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
7785 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
7787 2008-08-18 Robert Millan <rmh@aybabtu.com>
7789 Unify (identical) linux_normal.c files.
7790 * loader/i386/efi/linux_normal.c: Move from here ...
7791 * loader/linux_normal.c: ... to here. Update all users.
7792 * loader/i386/pc/linux_normal.c: Delete. Update all users.
7793 * loader/i386/ieee1275/linux_normal.c: Likewise.
7795 2008-08-18 Robert Millan <rmh@aybabtu.com>
7797 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
7798 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
7799 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
7800 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
7801 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
7803 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
7804 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
7805 (GRUB_LINUX_CL_END_OFFSET): ... to here.
7806 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
7807 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
7808 (GRUB_EFI_CL_END_OFFSET): Rename to ...
7809 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
7810 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
7811 Initialize `params->video_cursor_x' and `params->video_cursor_y'
7812 portably using grub_getxy().
7813 Replace `-EFI' with `-bzImage' in boot message.
7815 2008-08-17 Robert Millan <rmh@aybabtu.com>
7817 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
7819 2008-08-17 Robert Millan <rmh@aybabtu.com>
7821 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
7823 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
7824 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
7825 (grub_machine_mmap_iterate): New function declaration.
7826 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
7828 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
7831 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
7832 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
7833 Move e820 parsing from here ...
7834 * kern/i386/pc/mmap.c: New file.
7835 (grub_machine_mmap_iterate): ... to here.
7837 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
7838 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
7839 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
7840 (grub_available_iterate): Redeclare to return `void', and redeclare
7841 its hook to use grub_uint64_t as addr and size parameters, and rename
7843 (grub_machine_mmap_iterate): ... this. Update all users.
7845 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
7846 to make it more readable. Rename to ...
7847 (grub_machine_mmap_iterate): ... this.
7849 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
7850 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
7851 (grub_multiboot): Allocate an extra region after the payload, and fill
7852 it with a Multiboot memory map. Adjust a.out loader to calculate size
7853 with the extra space.
7854 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
7855 with the extra space.
7857 2008-08-17 Carles Pina i Estany <carles@pina.cat>
7859 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
7861 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
7863 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
7864 mdate-sh to the list `find' searches for.
7865 * DISTLIST: Regenerated.
7867 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
7869 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
7870 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
7871 genmoddep.awk, gensymlist.sh.in.
7872 (DISTDIRS): Add bus, docs, hook, lib.
7873 * DISTLIST: Regenerated.
7874 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
7876 2008-08-16 Robert Millan <rmh@aybabtu.com>
7878 * disk/raid.c (grub_raid_init): Handle/report errors set by
7879 grub_device_iterate().
7880 * disk/lvm.c (grub_lvm_init): Likewise.
7882 2008-08-15 Bean <bean123ch@gmail.com>
7884 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7886 (datetime_mod_SOURCES): New macro.
7887 (datetime_mod_CFLAGS): Likewise.
7888 (datetime_mod_LDFLAGS): Likewise.
7889 (date_mod_SOURCES): Likewise.
7890 (date_mod_CFLAGS): Likewise.
7891 (date_mod_LDFLAGS): Likewise.
7892 (datehook_mod_SOURCES): Likewise.
7893 (datehook_mod_CFLAGS): Likewise.
7894 (datehook_mod_LDFLAGS): Likewise.
7896 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7898 (datetime_mod_SOURCES): New macro.
7899 (datetime_mod_CFLAGS): Likewise.
7900 (datetime_mod_LDFLAGS): Likewise.
7901 (date_mod_SOURCES): Likewise.
7902 (date_mod_CFLAGS): Likewise.
7903 (date_mod_LDFLAGS): Likewise.
7904 (datehook_mod_SOURCES): Likewise.
7905 (datehook_mod_CFLAGS): Likewise.
7906 (datehook_mod_LDFLAGS): Likewise.
7908 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7910 (datetime_mod_SOURCES): New macro.
7911 (datetime_mod_CFLAGS): Likewise.
7912 (datetime_mod_LDFLAGS): Likewise.
7913 (date_mod_SOURCES): Likewise.
7914 (date_mod_CFLAGS): Likewise.
7915 (date_mod_LDFLAGS): Likewise.
7916 (datehook_mod_SOURCES): Likewise.
7917 (datehook_mod_CFLAGS): Likewise.
7918 (datehook_mod_LDFLAGS): Likewise.
7920 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7922 (datetime_mod_SOURCES): New macro.
7923 (datetime_mod_CFLAGS): Likewise.
7924 (datetime_mod_LDFLAGS): Likewise.
7925 (date_mod_SOURCES): Likewise.
7926 (date_mod_CFLAGS): Likewise.
7927 (date_mod_LDFLAGS): Likewise.
7928 (datehook_mod_SOURCES): Likewise.
7929 (datehook_mod_CFLAGS): Likewise.
7930 (datehook_mod_LDFLAGS): Likewise.
7932 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7934 (datetime_mod_SOURCES): New macro.
7935 (datetime_mod_CFLAGS): Likewise.
7936 (datetime_mod_LDFLAGS): Likewise.
7937 (date_mod_SOURCES): Likewise.
7938 (date_mod_CFLAGS): Likewise.
7939 (date_mod_LDFLAGS): Likewise.
7940 (datehook_mod_SOURCES): Likewise.
7941 (datehook_mod_CFLAGS): Likewise.
7942 (datehook_mod_LDFLAGS): Likewise.
7944 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
7946 * commands/date.c: New file.
7948 * hook/datehook.c: Likewise.
7950 * include/grub/lib/datetime.h: Likewise.
7952 * include/grub/i386/cmos.h: Likewise.
7954 * lib/datetime.c: Likewise.
7956 * lib/i386/datetime.c: Likewise.
7958 * lib/efi/datetime.c: Likewise.
7960 2008-08-14 Robert Millan <rmh@aybabtu.com>
7962 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
7963 (grub_mkelfimage_SOURCES): New variable.
7964 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
7966 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
7967 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
7968 * conf/powerpc-ieee1275.rmk: Likewise.
7969 * conf/i386-ieee1275.rmk: Likewise.
7971 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
7972 * kern/i386/coreboot/init.c: Likewise.
7974 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
7975 with `<grub/cpu/kernel.h>'.
7976 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
7978 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
7979 * kern/i386/coreboot/startup.S: Likewise.
7981 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
7982 (GRUB_MOD_GAP): Remove.
7983 * include/grub/powerpc/kernel.h: New file.
7984 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
7985 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
7986 * include/grub/i386/kernel.h: New file.
7987 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
7988 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
7989 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
7991 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
7993 Use --directory when invoking grub_mkimage.
7995 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
7996 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
7997 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
7998 and GRUB_KERNEL_CPU_PREFIX.
8000 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
8002 * include/grub/err.h (grub_err_printf): New function prototype.
8003 * util/misc.c (grub_err_printf): New function.
8004 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
8006 * kern/err.c (grub_print_error): Use grub_err_printf.
8008 2008-08-13 Robert Millan <rmh@aybabtu.com>
8010 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
8012 2008-08-13 Robert Millan <rmh@aybabtu.com>
8014 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
8017 2008-08-12 Robert Millan <rmh@aybabtu.com>
8019 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
8020 of the relocation code from here ...
8021 (grub_multiboot): ... to here.
8022 (forward_relocator, backward_relocator): Move from here ...
8023 * kern/i386/loader.S (grub_multiboot_forward_relocator)
8024 (grub_multiboot_backward_relocator): ... to here.
8025 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
8026 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
8027 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
8028 (grub_multiboot_forward_relocator_end)
8029 (grub_multiboot_backward_relocator)
8030 (grub_multiboot_backward_relocator_end): New variables.
8032 2008-08-12 Bean <bean123ch@gmail.com>
8034 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
8036 2008-08-11 Robert Millan <rmh@aybabtu.com>
8038 * kern/i386/linuxbios/startup.S: Move from here ...
8039 * kern/i386/coreboot/startup.S: ... to here.
8041 * kern/i386/linuxbios/init.c: Move from here ...
8042 * kern/i386/coreboot/init.c: ... to here.
8044 * kern/i386/linuxbios/table.c: Move from here ...
8045 * kern/i386/coreboot/mmap.c: ... to here.
8047 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
8049 2008-08-11 Robert Millan <rmh@aybabtu.com>
8051 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
8052 errors. Leave it to the upper layer to handle them.
8054 2008-08-09 Christian Franke <franke@computer.org>
8056 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
8057 * conf/common.rmk: Install `grub-pe2elf' only if requested.
8058 Install `grub.d/10_windows' only on Cygwin.
8059 * configure.ac: Add subst of `target_os'.
8060 Check `target_os' also before setting TARGET_OBJ2ELF.
8061 Add `--enable-grub-pe2elf'.
8063 2008-08-08 Robert Millan <rmh@aybabtu.com>
8065 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8066 (grub_last_time): Change type to grub_uint64_t.
8067 (grub_disk_open): Migrate code from to using grub_get_time_ms().
8068 (grub_disk_close): Likewise.
8070 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8071 (run_menu): Migrate code from to using grub_get_time_ms().
8073 * util/misc.c (grub_get_time_ms): New function.
8075 2008-08-08 Marco Gerards <marco@gnu.org>
8077 * disk/ata.c (grub_ata_regget): Change return type to
8079 (grub_ata_regget2): Likewise.
8080 (grub_ata_wait_status): New function.
8081 (grub_ata_wait_busy): Removed function, updated all users to use
8082 `grub_ata_wait_status'.
8083 (grub_ata_wait_drq): Likewise.
8084 (grub_ata_cmd): New function.
8085 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
8087 (grub_ata_pio_write): Add error handling.
8088 (grub_atapi_identify): Likewise.
8089 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
8091 (grub_ata_identify): Use `grub_ata_cmd' and improve error
8092 handling. Actually use the detected registers. Reorder the
8093 detection logic such that it is easier to read.
8094 (grub_ata_pciinit): Do not assign the same ID to each controller.
8095 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
8097 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
8099 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
8101 2008-08-08 Marco Gerards <marco@gnu.org>
8105 2008-08-07 Bean <bean123ch@gmail.com>
8107 * include/grub/x86_64/pci.h: New file.
8109 2008-08-07 Christian Franke <franke@computer.org>
8111 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
8112 (TIMER2_GATE): Likewise.
8113 (grub_pit_wait): Add enable/disable of the timer2 gate
8114 bit of port 0x61. This fixes a possible infinite loop.
8116 2008-08-07 Bean <bean123ch@gmail.com>
8118 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
8119 kern/i386/tsc.c and kern/i386/pit.c.
8121 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
8124 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
8127 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
8129 2008-08-07 Bean <bean123ch@gmail.com>
8131 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
8133 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
8135 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
8136 multiple inclusion. Add #include <grub/types.h>.
8138 2008-08-06 Christian Franke <franke@computer.org>
8140 * conf/common.rmk: Build and install `10_windows'.
8141 * util/grub.d/10_windows.in: New script.
8143 2008-08-06 Pavel Roskin <proski@gnu.org>
8145 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
8147 2008-08-06 Robert Millan <rmh@aybabtu.com>
8149 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
8150 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
8152 2008-08-06 Bean <bean123ch@gmail.com>
8154 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
8155 (grub_pxefs_fs_int): Remove dummy definition.
8156 (grub_pxefs_open): Use data->block_size to store the current block
8158 (grub_pxefs_read): Use block size stored in data->block_size. As the
8159 value of grub_pxe_blksize can be changed after the file is opened.
8161 2008-08-06 Bean <bean123ch@gmail.com>
8163 * fs/i386/pc/pxe.c (curr_file): new variable.
8164 (grub_pxefs_open): Simply the handling of pxe file system. Don't
8165 require the dummy internal file system anymore.
8166 (grub_pxefs_read): Removed.
8167 (grub_pxefs_close): Likewise.
8168 (grub_pxefs_fs_int): Likewise.
8169 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
8170 connection when we switch file.
8171 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
8173 2008-08-06 Robert Millan <rmh@aybabtu.com>
8175 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
8177 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
8178 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
8180 * kern/i386/halt.c: New file.
8181 * kern/i386/reboot.c: Likewise.
8182 * include/grub/i386/reboot.h: Likewise.
8183 * include/grub/i386/halt.h: Likewise.
8185 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
8186 Include `<grub/cpu/halt.h>'.
8187 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
8188 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
8190 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
8191 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
8192 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
8193 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
8194 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
8195 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
8197 * include/grub/i386/at_keyboard.h: ... to here.
8199 2008-08-05 Robert Millan <rmh@aybabtu.com>
8201 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
8202 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
8203 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
8204 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8205 `kern/generic/millisleep.c'.
8207 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
8208 instead of grub_get_rtc().
8209 (grub_tsc_init): Initialize `tsc_boot_time'.
8211 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
8212 (grub_machine_init): Use grub_tsc_init() rather than
8213 installing an RTC-based handler via grub_install_get_time_ms().
8215 * kern/i386/pit.c: New file.
8216 * include/grub/i386/pit.h: Likewise.
8218 2008-08-05 Bean <bean123ch@gmail.com>
8220 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
8222 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
8223 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
8224 (pxe_mod_SOURCES): New macro.
8225 (pxe_mod_CFLAGS): Likewise.
8226 (pxe_mod_LDFLAGS): Likewise.
8227 (pxecmd_mod_SOURCES): Likewise.
8228 (pxecmd_mod_CFLAGS): Likewise.
8229 (pxecmd_mod_LDFLAGS): Likewise.
8231 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
8232 (grub_pxe_call): Likewise.
8234 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
8236 * commands/i386/pc/pxecmd.c: New file.
8238 * fs/i386/pc/pxe.c: Likewise.
8240 * include/grub/i386/pc/pxe.h: Likewise.
8242 2008-08-05 Bean <bean123ch@gmail.com>
8244 * util/console.c (grub_console_cur_color): New variable.
8245 (grub_console_standard_color): Likewise.
8246 (grub_console_normal_color): Likewise.
8247 (grub_console_highlight_color): Likewise.
8248 (color_map): Likewise.
8249 (use_color): Likewise.
8250 (NUM_COLORS): New macro.
8251 (grub_ncurses_setcolorstate): Handle color properly.
8252 (grub_ncurses_setcolor): Don't change color here, just remember the
8253 settings, color will be set in grub_ncurses_setcolorstate.
8254 (grub_ncurses_getcolor): New function.
8255 (grub_ncurses_init): Initialize color pairs.
8256 (grub_ncurses_term): New member grub_ncurses_getcolor.
8258 2008-08-05 Colin D Bennett <colin@gibibit.com>
8260 High resolution timer support. Implemented for x86 CPUs using TSC.
8261 Extracted generic grub_millisleep() so it's linked in only as needed.
8262 This requires a Pentium compatible CPU; if the RDTSC instruction is
8263 not supported, then it falls back on the generic grub_get_time_ms()
8264 implementation that uses the machine's RTC.
8266 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
8267 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8268 `kern/generic/millisleep.c'.
8270 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
8271 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
8273 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
8274 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
8276 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8278 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
8279 `kern/generic/millisleep.c'.
8281 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8283 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
8285 * kern/generic/rtc_get_time_ms.c: New file.
8287 * kern/generic/millisleep.c: New file.
8289 * kern/misc.c: Don't include
8290 <kern/time.h> anymore.
8291 (grub_millisleep_generic): Removed.
8293 * commands/sleep.c (grub_interruptible_millisleep): Uses
8294 grub_get_time_ms() instead of grub_get_rtc().
8296 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
8298 (grub_cpu_is_cpuid_supported): New inline function.
8299 (grub_cpu_is_tsc_supported): New inline function.
8300 (grub_tsc_init): New function prototype.
8301 (grub_tsc_get_time_ms): New function prototype.
8303 * kern/i386/tsc.c (grub_get_time_ms): New file.
8305 * include/grub/time.h: Include <grub/types.h.
8306 (grub_millisleep_generic): Removed.
8307 (grub_get_time_ms): New prototype.
8308 (grub_install_get_time_ms): New prototype.
8309 (grub_rtc_get_time_ms): New prototype.
8311 * kern/time.c (grub_get_time_ms): New function.
8312 (grub_install_get_time_ms): New function.
8314 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
8315 <grub/time.h> anymore.
8316 (grub_millisleep): Removed.
8317 (grub_machine_init): Call grub_tsc_init.
8319 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
8320 get_time_ms() implementation.
8322 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
8323 (ieee1275_get_time_ms): New function.
8324 (grub_machine_init): Install get_time_ms() implementation.
8326 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
8327 (grub_machine_init): Call grub_tsc_init().
8328 (grub_millisleep): Removed.
8330 * kern/ieee1275/init.c (grub_millisleep): Removed.
8331 (grub_machine_init): Install ieee1275_get_time_ms()
8333 (ieee1275_get_time_ms): New function.
8334 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
8337 2008-08-05 Marco Gerards <marco@gnu.org>
8339 * disk/ata.c: Include <grub/pci.h>.
8340 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
8341 (grub_ata_initialize): Rewritten.
8342 (grub_ata_device_initialize): New function.
8344 2008-08-04 Pavel Roskin <proski@gnu.org>
8346 * kern/main.c: Include grub/mm.h.
8348 2008-08-04 Robert Millan <rmh@aybabtu.com>
8350 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
8351 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
8352 corruption problem).
8354 2008-08-04 Robert Millan <rmh@aybabtu.com>
8356 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
8357 warnings introduced in my last commit.
8359 2008-08-03 Robert Millan <rmh@aybabtu.com>
8361 Make PCI available on all i386 architectures.
8363 * include/grub/i386/pc/pci.h: Move from here ...
8364 * include/grub/i386/pci.h: ... to here.
8366 * include/grub/i386/pc/pci.h: Remove.
8367 * include/grub/i386/efi/pci.h: Remove.
8368 * include/grub/x86_64/efi/pci.h: Remove.
8370 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
8373 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
8374 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
8375 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
8377 * conf/i386-ieee1275.rmk: Likewise.
8379 2008-08-03 Robert Millan <rmh@aybabtu.com>
8381 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
8382 (grub_console_setcursor): Make it possible to set cursor off.
8384 2008-08-03 Robert Millan <rmh@aybabtu.com>
8386 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
8387 of modules instead of assuming which platform provides what.
8388 * util/update-grub.in: Likewise.
8390 2008-08-03 Robert Millan <rmh@aybabtu.com>
8392 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
8393 instead of `grub_install_dos_part' to determine whether a drive needs
8394 to be prepended to prefix (`grub_install_dos_part' is not reliable,
8395 because it can be overridden when loading GRUB via Multiboot).
8397 2008-08-02 Robert Millan <rmh@aybabtu.com>
8399 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
8401 2008-08-02 Robert Millan <rmh@aybabtu.com>
8403 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
8404 of informational grub_dprintf() calls.
8406 2008-08-02 Robert Millan <rmh@aybabtu.com>
8408 * disk/memdisk.c (memdisk_size): Don't initialize.
8409 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
8411 * include/grub/i386/pc/kernel.h
8412 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
8413 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
8414 (grub_memdisk_image_size, grub_arch_memdisk_addr)
8415 (grub_arch_memdisk_size): Remove.
8417 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
8418 field (was only used to transfer a constant). Add `type' field to
8419 support multiple module types.
8420 (grub_module_iterate): New function.
8422 * kern/device.c (grub_device_open): Do not hide error messages
8423 when grub_disk_open() fails. Use grub_print_error() instead.
8425 * kern/i386/pc/init.c (grub_arch_modules_addr)
8426 (grub_arch_memdisk_size): Remove functions.
8427 (grub_arch_modules_addr): Return the module address in high memory
8428 (now that it isn't copied anymore).
8430 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
8431 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
8432 decompression routine (grub_total_module_size already includes that
8433 now). Don't copy modules back to low memory.
8435 * kern/main.c: Include `<grub/mm.h>'.
8436 (grub_load_modules): Split out (and use) ...
8437 (grub_module_iterate): ... this function, which iterates through
8438 module objects and runs a hook.
8439 Comment out grub_mm_init_region() call, as it would cause non-ELF
8440 modules to be overwritten.
8442 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
8443 the memdisk image in its own region, make it part of the module list.
8444 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
8445 (main): Parse --memdisk|-m option, and pass user-provided path as
8446 parameter to generate_image().
8447 (add_segments): Pass `memdisk_path' down to load_modules().
8448 (load_modules): Embed memdisk image in module section when requested.
8449 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
8450 `header.type' instead of `header.offset'.
8452 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
8453 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
8454 (memdisk_mod_LDFLAGS): New variables.
8455 * conf/i386-coreboot.rmk: Likewise.
8456 * conf/i386-ieee1275.rmk: Likewise.
8458 2008-08-02 Robert Millan <rmh@aybabtu.com>
8460 * loader/i386/pc/multiboot.c (playground, forward_relocator)
8461 (backward_relocator): New variables. Used to allocate and relocate
8462 the payload, respectively.
8463 (grub_multiboot_load_elf32): Load into heap instead of requested
8464 address, install the appropriate relocator code in each bound of
8465 the payload, and set the entry point such that
8466 grub_multiboot_real_boot() will jump to one of them.
8468 * kern/i386/loader.S (grub_multiboot_payload_size)
8469 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8470 (grub_multiboot_payload_entry_offset): New variables.
8471 (grub_multiboot_real_boot): Set cpu context to what the relocator
8472 expects, and jump to the relocator instead of the payload.
8474 * include/grub/i386/loader.h (grub_multiboot_payload_size)
8475 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8476 (grub_multiboot_payload_entry_offset): Export.
8478 2008-08-01 Bean <bean123ch@gmail.com>
8480 * normal/menu_entry.c (editor_getline): Don't return the original
8481 string as result, as it will be released by lexer once it has done
8484 2008-08-01 Robert Millan <rmh@aybabtu.com>
8486 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
8487 within menuentries, not before them.
8488 util/grub.d/10_hurd.in: Likewise.
8490 2008-08-01 Bean <bean123ch@gmail.com>
8492 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
8493 (bufio_mod_SOURCES): New macro.
8494 (bufio_mod_CFLAGS): Likewise.
8495 (bufio_mod_LDFLAGS): Likewise.
8497 * include/grub/bufio.h: New file.
8499 * io/bufio.c: Likewise.
8501 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
8502 (grub_video_reader_png): Use grub_buffile_open to open file.
8504 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
8505 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
8507 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
8508 (grub_video_reader_tga): Use grub_buffile_open to open file.
8510 * font/manager.c: Include <grub/bufio.h>.
8511 (add_font): Use grub_buffile_open to open file.
8513 2008-07-31 Robert Millan <rmh@aybabtu.com>
8515 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
8516 ELF segments, use a macro for arbitrarily accessing any of them instead
8517 of preparing a pointer that allows access to one at a time.
8518 (grub_multiboot_load_elf64): Likewise.
8520 2008-07-31 Bean <bean123ch@gmail.com>
8522 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
8523 GRUB_KERNEL_MACHINE_DATA_END.
8525 2008-07-30 Robert Millan <rmh@aybabtu.com>
8527 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
8528 Increase from 0x50 to 0x60.
8529 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
8530 use UUIDs to identify the root drive for them. If that's not
8532 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
8533 check, for cross-disk installs.
8535 2008-07-30 Robert Millan <rmh@aybabtu.com>
8537 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
8538 is non-empty, use it to set the `prefix' environment variable instead
8539 of the usual approach.
8540 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
8541 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
8542 environment variable instead of dummy make_install_device().
8544 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
8545 (start): Insert a data section, with `grub_prefix' variable.
8546 * kern/i386/linuxbios/startup.S: Likewise.
8548 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
8549 New variable reference.
8550 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
8551 New macro. Defines offset of `grub_prefix' within startup.S (relative
8553 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
8554 section within startup.S (relative to `start').
8555 * include/grub/i386/coreboot/kernel.h: Likewise.
8557 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
8558 Overwrite grub_prefix with its contents, at the beginning of the
8560 (main): Understand -p|--prefix.
8562 2008-07-30 Robert Millan <rmh@aybabtu.com>
8564 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
8566 2008-07-30 Robert Millan <rmh@aybabtu.com>
8568 * term/i386/pc/vga_text.c (grub_console_cls): Use
8569 grub_console_gotoxy() to go back to beginning of the screen.
8570 Found by Patrick Georgi <patrick.georgi@coresystems.de>
8572 2008-07-29 Christian Franke <franke@computer.org>
8574 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
8575 Add conversion of emulated mount points on Cygwin.
8577 2008-07-29 Christian Franke <franke@computer.org>
8579 * util/update-grub.in: Add a check for admin
8581 Remove old `grub.cfg.new' before creation.
8582 Add `-f' to `mv' to handle the different filesystem
8583 semantics of Windows.
8585 2008-07-29 Bean <bean123ch@gmail.com>
8587 * normal/main.c (get_line): Fix buffer overflow bug.
8589 2008-07-28 Robert Millan <rmh@aybabtu.com>
8591 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
8592 (struct grub_apple_header): New struct. Describes the layout of
8594 (apple_partition_map_iterate): Check the header magic as well as the
8595 partition magic (which was already being checked).
8597 2008-07-28 Pavel Roskin <proski@gnu.org>
8599 * genmk.rb: Add a warning to the beginning of the output that
8600 it's a generated file and should not be edited.
8602 2008-07-28 Robert Millan <rmh@aybabtu.com>
8604 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
8605 with the same number are found, just use issue a warning with
8606 grub_dprintf(), as this error has been reported to be non-fatal.
8608 2008-07-27 Robert Millan <rmh@aybabtu.com>
8610 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
8613 2008-07-27 Bean <bean123ch@gmail.com>
8615 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
8616 (grub_fat_find_dir): Ignore case when comparing filename.
8618 2008-07-27 Bean <bean123ch@gmail.com>
8620 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
8621 smallino, as it's more descriptive, and i8count can be confused with
8622 the other field count.
8623 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
8626 2008-07-27 Bean <bean123ch@gmail.com>
8628 * commands/crc.c: New file.
8630 * lib/crc.c: Likewise.
8632 * include/grub/lib/crc.h: Likewise.
8634 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
8636 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
8637 (hexdump): Move this function to ...
8639 * lib/hexdump.c: ... here.
8641 * include/grub/hexdump.h: Renamed to ...
8643 * include/grub/lib/hexdump.h: ... this.
8645 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
8647 * util/grub-editenv.c: Likewise.
8649 * include/envblk.h: Renamed to ...
8651 * include/lib/envblk.h: ... this.
8653 * util/envblk.c: Renamed to ...
8655 * lib/envblk.c: ... this.
8657 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
8659 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
8660 (pkglib_MODULES): Add crc.mod.
8661 (hexdump_mod_SOURCES): Add lib/hexdump.c.
8662 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
8663 (crc_mod_SOURCES): New macro.
8664 (crc_mod_CFLAGS): Likewise.
8665 (crc_mod_LDFLAGS): Likewise.
8667 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
8669 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8671 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8673 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8675 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8677 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
8679 * commands/help.c: Include <grub/term.h>.
8680 (TERM_WIDTH): Removed. Updated all users.
8682 2008-07-27 Pavel Roskin <proski@gnu.org>
8684 * util/getroot.c (find_root_device): Rephrase a comment to avoid
8685 spurious warnings about a comment within a comment.
8687 2008-07-25 Robert Millan <rmh@aybabtu.com>
8689 * util/getroot.c (find_root_device): Skip devices that match
8690 /dev/dm-[0-9]. This lets the real device be found for any type of
8691 abstraction (LVM, EVMS, RAID..).
8692 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
8693 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
8694 device is found first, find_root_device() will now skip it.
8696 2008-07-24 Pavel Roskin <proski@gnu.org>
8698 * include/grub/types.h: Use __builtin_bswap32() and
8699 __builtin_bswap64() with gcc 4.3 and newer.
8701 2008-07-24 Christian Franke <franke@computer.org>
8703 * util/i386/pc/grub-install.in: If `--debug' is specified,
8704 pass `--verbose' to grub-setup.
8705 Abort script if make_system_path_relative_to_its_root() fails.
8707 2008-07-24 Bean <bean123ch@gmail.com>
8709 * configure.ac: Fixed a bug caused by the previous cygwin patch,
8710 variable `target_platform' should be `platform'.
8712 2008-07-24 Bean <bean123ch@gmail.com>
8714 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
8715 (grub_png_init_fixed_block): New function.
8716 (grub_png_decode_image_data): Handle fixed huffman code compression.
8718 2008-07-24 Bean <bean123ch@gmail.com>
8720 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
8721 (grub_pe2elf_SOURCES): New macro.
8722 (CLEANFILES): Add grub-pe2elf.
8724 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
8725 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
8726 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
8727 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
8728 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
8729 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
8730 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
8731 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
8732 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
8733 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
8734 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
8735 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
8736 (GRUB_PE32_DT_FUNCTION): Likewise.
8737 (GRUB_PE32_REL_I386_DIR32): Likewise.
8738 (GRUB_PE32_REL_I386_REL32): Likewise.
8739 (grub_pe32_symbol): New structure.
8740 (grub_pe32_reloc): Likewise.
8742 * util/grub-pe2elf.c: New file.
8744 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
8745 start symbol in non pc platform.
8747 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
8749 The following patches are from Christian Franke.
8751 * include/grub/dl.h: Remove .previous, gas supports this only
8754 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
8755 Remove .type, gas supports this only for ELF format.
8757 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
8758 nullbytes in symbol table. This fixes an infinite loop if table is
8761 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
8762 TARGET_IMG_LDFLAGS and EXEEXT.
8764 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
8765 TARGET_IMG_LDFLAGS_AC.
8766 (grub_CHECK_STACK_ARG_PROBE): New function.
8768 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
8770 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
8772 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
8773 to set TARGET_IMG_LD* accordingly.
8774 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
8775 Add call to grub_CHECK_STACK_ARG_PROBE.
8776 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
8778 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
8780 * genmk.rb: Add EXEEXT to CLEANFILES.
8782 2008-07-23 Robert Millan <rmh@aybabtu.com>
8784 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
8785 define the codes for arrows and lines used for the menu).
8786 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
8789 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
8790 fonts, because the latter are too slow.
8792 2008-07-21 Bean <bean123ch@gmail.com>
8794 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
8795 a20. Run keyboard test last, as it will cause macbook to halt.
8797 2008-07-18 Pavel Roskin <proski@gnu.org>
8799 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
8800 load foreign architecture modules correctly anyway. Keep
8801 support for loading host architecture modules, whether we
8802 compile them or not.
8804 2008-07-17 Pavel Roskin <proski@gnu.org>
8806 * configure.ac: Use -m32 or -m64 regardless of whether we had to
8807 change target_cpu. The compiler default can mismatch target_cpu
8810 * disk/efi/efidisk.c: Fix format warnings on x86_64.
8811 * kern/efi/efi.c: Likewise.
8813 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
8814 target compiler is functional.
8815 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
8818 * configure.ac: Default to efi platform for x86_64-apple. Allow
8819 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
8820 adjustments from the rest, only do them if target is not
8821 explicitly given. Merge other adjustments with the final sanity
8822 check. Remove an extraneous check for supported CPU. Be
8823 specific which CPU and which platform is not supported.
8825 * configure.ac: Default to pc platform for x86_64.
8827 2008-07-17 Robert Millan <rmh@aybabtu.com>
8829 Partial LinuxBIOS -> Coreboot rename.
8831 * conf/i386-linuxbios.rmk: Renamed to ...
8832 * conf/i386-coreboot.rmk: ... this.
8833 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
8834 * configure.ac: Accept "coreboot" as input platform (but maintain
8835 compatibility with "linuxbios").
8836 * include/grub/i386/linuxbios: Renamed to ...
8837 * include/grub/i386/coreboot: ... this.
8839 2008-07-17 Bean <bean123ch@gmail.com>
8841 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
8842 (appleldr_mod_SOURCE): New variable.
8843 (appleldr_mod_CFLAGS): Likewise.
8844 (appleldr_mod_LDFLAGS): Likewise.
8845 (pci_mod_SOURCES): Likewise.
8846 (pci_mod_CFLAGS): Likewise.
8847 (pci_mod_LDFLAGS): Likewise.
8848 (lspci_mod_SOURCES): Likewise.
8849 (lspci_mod_CFLAGS): Likewise.
8850 (lspci_mod_LDFLAGS): Likewise.
8852 * conf/x86_64-efi.rmk: New file.
8854 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
8856 (grub_efidisk_write): Likewise.
8858 * include/efi/api.h (efi_call_0): New macro.
8859 (efi_call_1): Likewise.
8860 (efi_call_2): Likewise.
8861 (efi_call_3): Likewise.
8862 (efi_call_4): Likewise.
8863 (efi_call_5): Likewise.
8864 (efi_call_6): Likewise.
8866 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
8867 grub_rescue_cmd_chainloader.
8869 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
8870 (grub_pe32_optional_header): Change some fields based on i386 or
8872 (GRUB_PE32_PE32_MAGIC): Likewise.
8874 * include/grub/efi/uga_draw.h: New file.
8876 * include/grub/elf.h (STN_ABS): New constant.
8877 (R_X86_64_NONE): Relocation constant for x86_64.
8878 (R_X86_64_64): Likewise.
8879 (R_X86_64_PC32): Likewise.
8880 (R_X86_64_GOT32): Likewise.
8881 (R_X86_64_PLT32): Likewise.
8882 (R_X86_64_COPY): Likewise.
8883 (R_X86_64_GLOB_DAT): Likewise.
8884 (R_X86_64_JUMP_SLOT): Likewise.
8885 (R_X86_64_RELATIVE): Likewise.
8886 (R_X86_64_GOTPCREL): Likewise.
8887 (R_X86_64_32): Likewise.
8888 (R_X86_64_32S): Likewise.
8889 (R_X86_64_16): Likewise.
8890 (R_X86_64_PC16): Likewise.
8891 (R_X86_64_8): Likewise.
8892 (R_X86_64_PC8): Likewise.
8894 * include/grub/i386/efi/pci.h: New file.
8896 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
8897 Change it value based on platform.
8898 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
8899 (GRUB_E820_RAM): Likewise.
8900 (GRUB_E820_RESERVED): Likewise.
8901 (GRUB_E820_ACPI): Likewise.
8902 (GRUB_E820_NVS): Likewise.
8903 (GRUB_E820_EXEC_CODE): Likewise.
8904 (GRUB_E820_MAX_ENTRY): Likewise.
8905 (grub_e820_mmap): New structure.
8906 (linux_kernel_header): Change the efi field according to different
8907 kernel version, also field from linux_kernel_header.
8909 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
8911 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
8912 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
8913 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
8914 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
8915 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
8916 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
8917 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
8918 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
8919 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
8920 (GRUB_PCI_ADDR_IO_MASK): Likewise.
8922 * include/grub/x86_64/efi/kernel.h: New file.
8924 * include/grub/x86_64/efi/loader.h: Likewise.
8926 * include/grub/x86_64/efi/machine.h: Likewise.
8928 * include/grub/x86_64/efi/pci.h: Likewise.
8930 * include/grub/x86_64/efi/time.h: Likewise.
8932 * include/grub/x86_64/linux.h: Likewise.
8934 * include/grub/x86_64/setjmp.h: Likewise.
8936 * include/grub/x86_64/time.h: Likewise.
8938 * include/grub/x86_64/types.h: Likewise.
8940 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
8941 GRUB_TARGET_SIZEOF_VOID_P.
8943 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
8944 (grub_efi_locate_handle): Likewise.
8945 (grub_efi_open_protocol): Likewise.
8946 (grub_efi_set_text_mode): Likewise.
8947 (grub_efi_stall): Likewise.
8948 (grub_exit): Likewise.
8949 (grub_reboot): Likewise.
8950 (grub_halt): Likewise.
8951 (grub_efi_exit_boot_services): Likewise.
8952 (grub_get_rtc): Likewise.
8954 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
8955 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
8956 (grub_efi_allocate_pages): Wrap efi calls.
8957 (grub_efi_free_pages): Wrap efi calls.
8958 (grub_efi_get_memory_map): Wrap efi calls.
8960 * kern/x86_64/dl.c: New file.
8962 * kern/x86_64/efi/callwrap.S: Likewise.
8964 * kern/x86_64/efi/startup.S: Likewise.
8966 * loader/efi/appleloader.c: Likewise.
8968 * loader/efi/chainloader.c (cmdline): New variable.
8969 (grub_chainloader_unload): Wrap efi calls.
8970 (grub_chainloader_boot): Likewise.
8971 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
8974 * loader/efi/chainloader_normal.c (chainloader_command):
8975 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
8978 * loader/i386/efi/linux.c (allocate_pages): Change allocation
8980 (grub_e820_add_region): New function.
8981 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
8983 (grub_find_video_card): New function.
8984 (grub_linux_setup_video): New function.
8985 (grub_rescue_cmd_linux): Probe for video information.
8987 * normal/x86_64/setjmp.S: New file.
8989 * term/efi/console.c (map_char): New function.
8990 (grub_console_putchar): Map unicode char.
8991 (grub_console_checkkey): Wrap efi calls.
8992 (grub_console_getkey): Likewise.
8993 (grub_console_getwh): Likewise.
8994 (grub_console_gotoxy): Likewise.
8995 (grub_console_cls): Likewise.
8996 (grub_console_setcolorstate): Likewise.
8997 (grub_console_setcursor): Likewise.
8999 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
9001 2008-07-16 Pavel Roskin <proski@gnu.org>
9003 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
9006 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
9007 pointer, not an integer. This fixes a warning and prevents
9008 precision loss on 64-bit systems.
9009 (relocate_addresses): Remove unneeded cast.
9011 2008-07-15 Pavel Roskin <proski@gnu.org>
9013 * kern/i386/ieee1275/init.c: Include grub/cache.h.
9015 * term/ieee1275/ofconsole.c: Disable code unused on i386.
9017 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
9018 Fix comparison between signed and unsigned.
9020 * include/grub/i386/ieee1275/console.h: Declare
9021 grub_console_init() and grub_console_fini().
9023 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
9024 It's empty and unused.
9026 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
9027 beginning to avoid warnings with some compilers.
9029 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
9030 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
9032 2008-07-14 Pavel Roskin <proski@gnu.org>
9034 * kern/env.c (grub_register_variable_hook): Don't copy empty
9035 string, it leaks memory. Pass "" to grub_env_set(), it should
9036 handle constant strings.
9038 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
9039 * commands/cmp.c (grub_cmd_cmp): Likewise.
9040 * kern/dl.c (grub_dl_flush_cache): Likewise.
9041 (grub_dl_load_core): Likewise.
9042 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
9043 (grub_elf64_load_phdrs): Likewise.
9045 2008-07-13 Pavel Roskin <proski@gnu.org>
9047 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
9048 between signed and unsigned.
9049 (LzmaEnc_Finish): Fix warning about an unused parameter.
9051 2008-07-13 Bean <bean123ch@gmail.com>
9053 * Makefile.in (enable_lzo): New rule.
9055 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
9057 * configure.ac (ENABLE_LZO): New option --enable-lzo.
9059 * boot/i386/pc/lnxboot.S: #include <config.h>.
9061 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
9062 its value according to the compression algorithm used, lzo or lzma.
9064 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
9065 compression algorithm according to configure macro.
9067 * kern/i386/pc/startup.S (codestart): Likewise.
9069 * kern/i386/pc/lzma_decode.S: New file.
9071 * include/grub/lib/LzFind.h: Likewise.
9073 * include/grub/lib/LzHash.h: Likewise.
9075 * include/grub/lib/LzmaDec.h: Likewise.
9077 * include/grub/lib/LzmaEnc.h: Likewise.
9079 * include/grub/lib/LzmaTypes.h: Likewise.
9081 * lib/LzFind.c: Likewise.
9083 * lib/LzmaDec.c: Likewise.
9085 * lib/LzmaEnc.c: Likewise.
9087 2008-07-13 Bean <bean123ch@gmail.com>
9089 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
9090 (grub_ext4_extent_header): New structure.
9091 (grub_ext4_extent): Likewise.
9092 (grub_ext4_extent_idx): Likewise.
9093 (grub_ext4_find_leaf): New function.
9094 (grub_ext2_read_block): Handle extents.
9096 2008-07-12 Robert Millan <rmh@aybabtu.com>
9098 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
9100 2008-07-11 Robert Millan <rmh@aybabtu.com>
9102 * util/grub.d/40_custom.in: New file. Example on how to add custom
9103 entries to /etc/grub.d.
9104 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
9105 40_custom (implicitly, by merging all the grub.d rules).
9107 2008-07-11 Pavel Roskin <proski@gnu.org>
9109 * commands/read.c (grub_getline): Fix invalid memory access.
9110 Don't add newline to the variable value.
9112 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
9113 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
9114 (serial_hw_get_port): Check validity of the port number.
9115 (grub_cmd_serial): Check return value of serial_hw_get_port().
9117 2008-07-07 Pavel Roskin <proski@gnu.org>
9119 * boot/i386/pc/diskboot.S (notification_string): Replace
9120 "Loading kernel" with just "loading". This is shorter, less
9121 confusing and saves a few bytes for possible future changes.
9123 2008-07-05 Pavel Roskin <proski@gnu.org>
9125 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
9126 size for ATAPI devices, they are undefined. Output sector
9127 number in decimal form.
9129 * disk/ata.c: Use named constants for status bits.
9131 2008-07-04 Pavel Roskin <proski@gnu.org>
9133 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
9134 grub_addr_t before casting it to the void pointer to fix a
9135 warning. Non-addressable regions are discarded earlier.
9136 (grub_arch_modules_addr): Cast _end to grub_addr_t.
9137 * kern/i386/linuxbios/table.c: Include grub/misc.h.
9138 (check_signature): Don't shadow table_header.
9139 (grub_linuxbios_table_iterate): Cast numeric constants to
9140 grub_linuxbios_table_header_t.
9141 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
9144 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
9147 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
9148 pointer, which can cause warnings. Support 64-bit addresses.
9150 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
9151 of sizeof(long). This fixes PowerPC image generation on x86_64.
9153 2008-07-04 Robert Millan <rmh@aybabtu.com>
9155 This fixes a performance issue when pc & gpt partmap iterators
9156 didn't abort iteration even after our hook found what it was
9157 looking for (often causing expensive probes of non-existent drives).
9159 Some callers relied on previous buggy behaviour, since they would
9160 raise an error when their own hooks caused early abortion of its
9163 * kern/device.c (grub_device_open): Improve error message.
9164 * disk/lvm.c (grub_lvm_open): Likewise.
9165 * disk/raid.c (grub_raid_open): Likewise.
9167 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
9168 when hook requests it, independently of grub_errno.
9169 (pc_partition_map_probe): Do not fail when find_func() caused
9170 early abortion of pc_partition_map_iterate().
9172 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
9173 when hook requests it, independently of grub_errno.
9174 (gpt_partition_map_probe): Do not fail when find_func() caused
9175 early abortion of gpt_partition_map_iterate().
9177 * kern/partition.c (grub_partition_iterate): Abort parent iteration
9178 when hook requests it, independently of grub_errno. Do not fail when
9179 part_map_iterate_hook() caused early abortion of p->iterate().
9181 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
9182 when grub_partition_iterate() returned with non-zero.
9184 2008-07-03 Pavel Roskin <proski@gnu.org>
9186 * disk/ata.c (grub_ata_pio_write): Check status before writing,
9187 like we do in grub_ata_pio_read().
9188 (grub_ata_readwrite): Always write individual sectors. Fix the
9189 sector count for the remainder.
9190 (grub_ata_write): Enable writing to ATA devices. Correctly
9191 report error for ATAPI devices.
9193 2008-07-02 Pavel Roskin <proski@gnu.org>
9195 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
9198 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
9199 for every read sector, we already increment it for the whole
9200 batch. This fixes reading more than 256 sectors at once.
9202 * util/grub-editenv.c (cmd_info): Cast argument to long
9203 explicitly. ptrdiff_t reduces to int on i386.
9205 * util/grub-editenv.c (main): Be specific which parameter is
9208 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
9209 (memdisk): Make memdisk_orig_addr a pointer.
9211 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
9212 for file offsets, use grub_off_t instead. Fix printf format
9215 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
9216 there. Real unexpected warnings should not drown in the noise
9217 about known problems.
9219 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
9220 grub_disk_addr_t for memory addresses.
9222 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
9223 explicitly to fix a warning.
9225 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
9227 * Makefile.in (MODULE_LDFLAGS): New variable.
9228 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
9229 the linker accepts --build-id=none.
9230 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
9232 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
9234 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
9235 those in Linux XFS code. Provide a way to access 64-bit parent
9237 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
9238 the end of struct grub_xfs_dir_header.
9240 2008-07-02 Bean <bean123ch@gmail.com>
9242 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
9243 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9244 and GRUB_IEEE1275_FLAG_NO_ANSI.
9246 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
9247 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9248 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
9250 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
9251 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
9253 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
9254 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
9256 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
9257 esc sequence on non ANSI terminal.
9258 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
9260 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
9263 2008-07-02 Bean <bean123ch@gmail.com>
9265 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
9266 (grub_editenv_SOURCES): New variable.
9267 (pkglib_MODULES): Add loadenv.mod.
9268 (loadenv_mod_SOURCES): New variable.
9269 (loadenv_mod_CFLAGS): Likewise.
9270 (loadenv_mod_LDFLAGS): Likewise.
9272 * include/grub/envblk.h: New file.
9274 * util/envblk.c: New file.
9276 * util/grub-editenv.c: New file.
9278 * commands/loadenv.c: New file.
9280 2008-07-01 Pavel Roskin <proski@gnu.org>
9282 * include/multiboot2.h (struct multiboot_tag_module): Use char,
9283 not unsigned char. This fixes warnings and is consistent with
9286 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
9288 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
9290 * term/tparm.c (analyze): Always set *popcount.
9292 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
9293 cast to fix a warning.
9295 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
9296 cast to suppress a warning.
9298 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
9299 grub_fshelp_read_file() expects.
9301 * fs/fat.c: Fix UUID calculation on big-endian systems. We
9302 write uuid as a 32-bit value in CPU byte order, so declare and
9305 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
9306 long if the format specifier expects it.
9307 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
9308 * partmap/pc.c (pc_partition_map_iterate): Likewise.
9309 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
9310 long to fix a warning.
9311 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
9312 grub_dprintf() arguments to fix warnings.
9314 2008-06-30 Pavel Roskin <proski@gnu.org>
9316 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
9317 install_bsd_part immediately before core.img is embedded or
9318 modified on disk. This fixes core.img verification if core.img
9321 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
9322 core_path to calculate the blocklist.
9323 Patch from Javier MartÃn <lordhabbit@gmail.com>
9325 2008-06-29 Robert Millan <rmh@aybabtu.com>
9327 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
9328 block to disk block.
9329 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
9330 Patch from Niels Böhm <bitbucket@arcor.de>
9332 2008-06-29 Robert Millan <rmh@aybabtu.com>
9334 * util/update-grub_lib.in (font_path): Search for fonts in
9335 /boot/grub first, which is more likely to be readable (we aren't
9336 deciding where fonts live, just looking for them).
9338 2008-06-26 Pavel Roskin <proski@gnu.org>
9340 * util/biosdisk.c (read_device_map): Don't leave dead map
9341 entries for devices failing stat() check.
9343 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
9344 core_path_dev for the core.img path on the target device.
9346 2008-06-26 Robert Millan <rmh@aybabtu.com>
9348 * disk/fs_uuid.c: New file.
9349 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
9350 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
9351 (fs_uuid_mod_LDFLAGS): New variables.
9352 * include/grub/disk.h (grub_disk_dev_id): Add
9353 `GRUB_DISK_DEVICE_UUID_ID'.
9354 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
9355 implement iterate().
9357 2008-06-26 Robert Millan <rmh@aybabtu.com>
9359 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
9360 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
9361 Linux image includes no initrd.
9363 2008-06-21 Javier MartÃn <lordhabbit@gmail.com>
9365 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
9366 call to resolve the core image location that effectively appended the
9369 2008-06-21 Robert Millan <rmh@aybabtu.com>
9371 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
9374 * util/grub.d/10_hurd.in: ... to here ...
9375 * util/grub.d/10_linux.in: ... and here.
9377 2008-06-19 Robert Millan <rmh@aybabtu.com>
9379 * kern/main.c (grub_main): Export `prefix' variable immediately
9380 after it has been set by grub_machine_set_prefix().
9382 2008-06-19 Robert Millan <rmh@aybabtu.com>
9384 * commands/search.c (search_label, search_fs_uuid, search_file): Print
9385 search result when not saving to variable, not the other way around.
9386 When saving to variable, abort iteration as soon as a match is found.
9388 2008-06-19 Robert Millan <rmh@aybabtu.com>
9390 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
9391 check for partition that provides /boot/grub. Its logic is flawed,
9392 as it prevents prepare_grub_to_access_device() from being called
9395 2008-06-19 Robert Millan <rmh@aybabtu.com>
9397 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
9398 "insmod" command directly when abstraction modules are needed,
9399 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
9400 since it had already been processed).
9402 2008-06-19 Pavel Roskin <proski@gnu.org>
9404 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
9405 changed. This is needed in case GRUB_LIBDIR changes.
9406 * conf/i386-ieee1275.rmk: Likewise.
9407 * conf/i386-linuxbios.rmk: Likewise.
9408 * conf/i386-pc.rmk: Likewise.
9409 * conf/powerpc-ieee1275.rmk: Likewise.
9411 2008-06-18 Pavel Roskin <proski@gnu.org>
9413 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
9414 kernel_elf_symlist.c to symlist.c for consistency with other
9415 architectures. Update all users.
9416 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9418 2008-06-18 Robert Millan <rmh@aybabtu.com>
9420 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
9423 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
9424 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
9425 a RAID device, run setup() for all members independently on whether
9426 LVM abstraction is being used.
9427 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
9428 If grub-mkimage has set `*install_dos_part == -2', don't override this
9430 Perform *install_dos_part adjustments independently on whether
9431 we're embedding or not.
9432 Clarify error message when image is too big for embedding.
9433 Remove duplicate *install_dos_part stanza.
9435 2008-06-17 Robert Millan <rmh@aybabtu.com>
9437 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
9438 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
9440 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
9441 values in grub_ofconsole_normal_color and
9442 grub_ofconsole_highlight_color (they're not directly related to
9443 background and foreground).
9444 (grub_ofconsole_setcolorstate): Extract background and foreground
9445 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
9447 2008-06-17 Robert Millan <rmh@aybabtu.com>
9449 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
9450 /boot/grub for the check in last commit, not /boot (they could be
9451 different partitions).
9453 2008-06-16 Robert Millan <rmh@aybabtu.com>
9455 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
9456 asked to setup access for the same partition that provides /boot,
9457 don't bother using UUIDs since our root already has the value we
9460 2008-06-16 Robert Millan <rmh@aybabtu.com>
9462 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
9464 Patch from Sven Mueller <sven@debian.org>.
9466 2008-06-16 Robert Millan <rmh@aybabtu.com>
9468 * util/update-grub.in: Check for $EUID instead of $UID.
9469 Reported by Vincent Zweije.
9471 2008-06-16 Bean <bean123ch@gmail.com>
9473 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
9474 (grub_ext2_read_block): Likewise.
9475 (grub_ext2_read_inode): Likewise.
9476 (grub_ext2_mount): Likewise.
9477 (grub_ext2_close): Likewise.
9478 (grub_ext3_get_journal): Removed.
9480 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
9481 (grub_reiserfs_read_symlink): Likewise.
9482 (grub_reiserfs_mount): Likewise.
9483 (grub_reiserfs_open): Likewise.
9484 (grub_reiserfs_read): Likewise.
9485 (grub_reiserfs_close): Likewise.
9486 (grub_reiserfs_get_journal): Removed.
9488 * fs/fshelp.c (grub_fshelp_read): Removed.
9489 (grub_fshelp_map_block): Likewise.
9491 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
9492 (grub_fshelp_journal): Likewise.
9493 (grub_fshelp_read): Likewise.
9494 (grub_fshelp_map_block): Likewise.
9496 2008-06-16 Pavel Roskin <proski@gnu.org>
9498 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
9499 floating point anymore.
9500 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
9502 2008-06-15 Pavel Roskin <proski@gnu.org>
9504 * commands/ls.c (grub_ls_list_files): Use integer calculations
9505 for human readable format, avoid floating point use.
9506 * kern/misc.c (grub_ftoa): Remove.
9507 (grub_vsprintf): Remove floating point support.
9509 2008-06-15 Robert Millan <rmh@aybabtu.com>
9511 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
9513 Reported by Max Vozeler.
9515 2008-06-15 Robert Millan <rmh@aybabtu.com>
9517 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
9518 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
9520 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
9521 the beginning of the prefix.
9523 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
9524 It is assumed that if we have a memdisk, grub-mkimage has set
9525 grub_prefix to include the "(memdisk)" drive in it.
9527 2008-06-15 Robert Millan <rmh@aybabtu.com>
9529 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
9530 Initialize keyboard controller after registering the terminal, so that
9531 grub_printf() can be called from grub_keyboard_controller_init().
9533 2008-06-15 Robert Millan <rmh@aybabtu.com>
9535 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
9536 extent-btree which is written as big endian on disk.
9537 Reported by Alain Greppin <al@chilibi.org>.
9539 2008-06-14 Robert Millan <rmh@aybabtu.com>
9541 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
9542 * util/i386/pc/grub-install.in (modules): Likewise.
9544 2008-06-13 Pavel Roskin <proski@gnu.org>
9546 * commands/ls.c (grub_ls_list_files): Fix format warnings.
9548 2008-06-13 Bean <bean123ch@gmail.com>
9550 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
9552 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
9554 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
9555 to indicate sparse block.
9557 2008-06-12 Pavel Roskin <proski@gnu.org>
9559 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
9560 number, grub_fshelp_read() does it for us.
9562 * fs/fshelp.c (grub_fshelp_read): New function. Implement
9563 linear disk read with journal translation.
9564 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
9565 * include/grub/fshelp.h: Declare grub_fshelp_read().
9567 2008-06-09 Pavel Roskin <proski@gnu.org>
9569 * fs/minix.c (grub_minix_mount): Handle error reading
9572 2008-06-08 Robert Millan <rmh@aybabtu.com>
9574 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
9575 don't append the RAID prefix afterwards.
9576 Reported by Clint Adams.
9578 2008-06-08 Robert Millan <rmh@aybabtu.com>
9580 Based on description from Pavel:
9581 * kern/disk.c (grub_disk_check_range): Rename to ...
9582 (grub_disk_adjust_range): ... this. Add a comment explaining the
9583 tasks performed by this function.
9585 2008-06-08 Robert Millan <rmh@aybabtu.com>
9587 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
9588 `num_serial' (for consistency with other variables).
9589 (struct grub_ntfs_data): Add `uuid' member.
9590 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
9591 (grub_ntfs_uuid): New function.
9592 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
9594 2008-06-07 Pavel Roskin <proski@gnu.org>
9596 * util/biosdisk.c (open_device): Revert last change to the
9597 function, it broke installation. The sector needs to be
9598 different dependent on which device is opened.
9600 2008-06-06 Robert Millan <rmh@aybabtu.com>
9602 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
9603 rest of GRUB, and breakage doesn't happen if its value were modified.
9605 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
9606 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
9607 a constant (same value).
9608 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
9609 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
9611 2008-06-06 Robert Millan <rmh@aybabtu.com>
9613 * util/biosdisk.c (open_device): Do not modify sector offset when
9614 accessing a partition. kern/disk.c already handles this for us.
9616 2008-06-06 Robert Millan <rmh@aybabtu.com>
9618 * util/grub-emu.c (grub_machine_init): Move code in this function from
9620 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
9621 segfault in case grub_printf() is called).
9623 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
9624 grub_probe. Update all users not to explicitly add it again.
9625 (grub_device): New variable; contains corresponding device for grubdir.
9626 (fs_module, partmap_module, devabstraction_module): Pass
9627 `--device ${grub_device}' to grub_probe to avoid traversing /dev
9630 2008-06-05 Robert Millan <rmh@aybabtu.com>
9632 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
9633 is found, print it (same layout as with labels).
9635 2008-06-04 Robert Millan <rmh@aybabtu.com>
9637 * util/biosdisk.c (get_drive): Rename to ...
9638 (find_grub_drive): ... this. Update all users.
9640 (get_os_disk): Rename to ...
9641 (convert_system_partition_to_system_disk): ... this. Update all users.
9643 (find_drive): Rename to ...
9644 (find_system_device): ... this. Update all users.
9646 2008-06-04 Robert Millan <rmh@aybabtu.com>
9648 * util/biosdisk.c (get_os_disk): Handle IDA devices.
9649 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9650 (make_device_map): Likewise.
9652 2008-06-01 Robert Millan <rmh@aybabtu.com>
9654 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
9655 before dereferencing it.
9657 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
9658 union with fat12/fat16-specific ones. Add some new fields, including
9659 `num_serial' for both versions.
9660 (struct grub_fat_data): Add `uuid' member.
9661 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
9662 names. Initialize `data->uuid' using `num_serial'.
9663 (grub_fat_uuid): New function.
9664 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
9666 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
9667 (grub_reiserfs_uuid): New function.
9668 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
9671 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
9672 (grub_xfs_uuid): New function.
9673 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
9675 2008-06-01 Robert Millan <rmh@aybabtu.com>
9677 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
9678 code that is backward compatible with pre-uuid search command.
9680 2008-05-31 Robert Millan <rmh@aybabtu.com>
9682 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
9683 floppies after everything else, to ensure floppy drive isn't accessed
9684 unnecessarily (patch from Bean).
9686 2008-05-31 Robert Millan <rmh@aybabtu.com>
9688 * commands/search.c (search_label, search_fs_uuid, search_file): Do
9689 not print device names when we were asked to set a variable.
9691 2008-05-31 Robert Millan <rmh@aybabtu.com>
9693 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
9694 using "cursor-on" and "cursor-off" commands (understood at least by
9695 the Open Firmware flavour on OLPC).
9697 2008-05-31 Michael Gorven <michael@gorven.za.net>
9699 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
9700 on and off sequences.
9702 2008-05-31 Robert Millan <rmh@aybabtu.com>
9704 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
9705 * util/update-grub.in: Likewise.
9707 2008-05-30 Pavel Roskin <proski@gnu.org>
9709 * util/biosdisk.c (linux_find_partition): Simplify logic and
9710 make the code more universal. Keep special processing for
9711 devfs, but use a simple rule for all other devices. If the
9712 device ends with a number, append 'p' and the partition number.
9713 Otherwise, append only the partition number.
9715 2008-05-30 Robert Millan <rmh@aybabtu.com>
9717 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
9718 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
9719 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
9720 the `root' parameter to Linux.
9722 2008-05-30 Robert Millan <rmh@aybabtu.com>
9724 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
9725 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
9726 --fs_uuid with --fs-uuid.
9727 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
9728 all filesystems support them).
9730 2008-05-30 Robert Millan <rmh@aybabtu.com>
9732 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
9733 grub_printf() flags, since we're printing in units of 2 bytes.
9735 2008-05-30 Robert Millan <rmh@aybabtu.com>
9737 * util/grub.d/00_header.in: Remove obsolete comment referencing
9738 convert_system_path_to_grub_path().
9739 * util/update-grub.in: Likewise.
9740 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
9741 (convert_system_path_to_grub_path): Add a warning message explaining
9742 that this function is deprecated. Rely on is_path_readable_by_grub()
9743 for the readability checks.
9744 (font_path): Use is_path_readable_by_grub() for the readability
9745 check rather than convert_system_path_to_grub_path().
9747 2008-05-30 Robert Millan <rmh@aybabtu.com>
9749 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
9750 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
9751 converting it first.
9752 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
9753 grub.cfg for access to font file, and afterwards call it again to set
9756 2008-05-30 Robert Millan <rmh@aybabtu.com>
9758 * commands/search.c (options): Add --fs_uuid option.
9759 (search_fs_uuid): New function.
9760 (grub_cmd_search): Fix --set argument passing.
9761 Use search_fs_uuid() when requested via --fs_uuid.
9762 (grub_search_init): Update help message.
9763 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
9764 and redeclare it as an array of 16-bit words.
9765 (grub_ext2_uuid): New function.
9766 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
9767 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
9768 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
9769 (GRUB_DEVICE_BOOT_UUID): New variables.
9770 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
9771 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
9773 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
9774 just assume `root' variable has the right value.
9775 * util/grub.d/10_linux.in: Likewise.
9776 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
9778 (main): Recognise `-t fs_uuid' argument.
9780 2008-05-30 Robert Millan <rmh@aybabtu.com>
9782 * util/biosdisk.c (map): Redefine structure to hold information
9783 about GRUB drive name.
9784 (get_drive): Reimplement without assuming (and verifying) BIOS-like
9786 (call_hook): Remove.
9787 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
9788 member. Assume drive has partitions.
9789 (grub_util_biosdisk_open): Access device names via `.device' struct
9791 (open_device): Likewise.
9792 (find_drive): Likewise.
9793 (read_device_map): Adjust map[] usage to match the new struct
9794 definition. Don't check for duplicates (still possible, but not cheap
9796 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
9797 (make_device_name): Remove assumption of BIOS-like drive names.
9799 2008-05-30 Pavel Roskin <proski@gnu.org>
9801 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
9802 compiling execute.c doesn't need grub_script.tab.h anymore.
9803 (normal/command.c_DEPENDENCIES): Likewise.
9804 (normal/function.c_DEPENDENCIES): Likewise.
9805 * conf/i386-ieee1275.rmk: Likewise.
9806 * conf/i386-linuxbios.rmk: Likewise.
9807 * conf/i386-pc.rmk: Likewise.
9808 * conf/powerpc-ieee1275.rmk: Likewise.
9809 * conf/sparc64-ieee1275.rmk: Likewise.
9811 2008-05-29 Pavel Roskin <proski@gnu.org>
9813 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
9814 when scanning metadata for volume group name.
9816 * include/grub/script.h: Don't include grub_script.tab.h. It's
9817 a generated file, which may only be included from the files with
9818 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
9819 use union YYSTYPE, as the later allows forward declaration.
9820 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
9822 2008-05-29 Robert Millan <rmh@aybabtu.com>
9824 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
9825 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
9826 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
9827 (grub_console_checkkey): Add grub_dprintf() call to report unknown
9830 2008-05-29 Robert Millan <rmh@aybabtu.com>
9832 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
9833 control key combinations.
9835 2008-05-29 Robert Millan <rmh@aybabtu.com>
9837 * util/powerpc/ieee1275/grub-install.in: Move from here ...
9838 * util/ieee1275/grub-install.in: ... to here.
9839 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
9840 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
9841 (grub_install_SOURCES): Likewise.
9843 2008-05-29 Robert Millan <rmh@aybabtu.com>
9845 * fs/affs.c: Update copyright year.
9846 * fs/ext2.c: Likewise.
9847 * fs/fshelp.c: Likewise.
9848 * fs/hfsplus.c: Likewise.
9849 * fs/ntfs.c: Likewise.
9850 * fs/xfs.c: Likewise.
9851 * include/grub/fshelp.h: Likewise.
9852 * util/grub-mkdevicemap.c: Likewise.
9854 2008-05-28 Robert Millan <rmh@aybabtu.com>
9856 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
9857 might need to be fatfs to support some firmware implementations
9860 2008-05-28 Robert Millan <rmh@aybabtu.com>
9862 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
9864 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9865 (make_device_map): Likewise.
9867 2008-05-20 Bean <bean123ch@gmail.com>
9869 * fs/fshelp.c (grub_fshelp_map_block): New function.
9870 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
9871 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
9873 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
9874 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
9875 (grub_fshelp_journal): New structure.
9876 (grub_fshelp_map_block): New function prototype.
9877 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
9878 (grub_fshelp_map_block): Likewise.
9880 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
9881 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
9882 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
9883 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
9884 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
9885 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
9886 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
9887 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
9888 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
9889 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
9890 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
9891 (grub_ext2_sblock): New members for journal support.
9892 (grub_ext3_journal_header): New structure.
9893 (grub_ext3_journal_revoke_header): Likewise.
9894 (grub_ext3_journal_block_tag): Likewise.
9895 (grub_ext3_journal_sblock): Likewise.
9896 (grub_fshelp_node): New members logfile and journal.
9897 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
9898 grub_fshelp_map_block to get real block number.
9899 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
9901 (grub_ext2_read_inode): Likewise.
9902 (grub_ext3_get_journal): New function.
9903 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
9904 (grub_ext2_close): Release memory used by journal.
9906 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
9907 (REISERFS_MAGIC_DESC_BLOCK): New macro.
9908 (grub_reiserfs_transaction_header): Renamed to
9909 grub_reiserfs_description_block, replace field data with real_blocks.
9910 (grub_reiserfs_commit_block): New structure.
9911 (grub_reiserfs_data): New member journal.
9912 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
9914 (grub_reiserfs_read_symlink): Likewise.
9915 (grub_reiserfs_iterate_dir): Likewise.
9916 (grub_reiserfs_open): Likewise.
9917 (grub_reiserfs_read): Likewise.
9918 (grub_reiserfs_get_journal): New function.
9919 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
9920 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
9921 using grub_reiserfs_get_journal.
9922 (grub_reiserfs_close): Release memory used by journal.
9924 * fs/affs.c (grub_affs_read_block): Change block type to
9925 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
9927 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
9929 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
9931 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
9933 * fs/udf.c (grub_udf_read_block): Change block type to
9934 grub_disk_addr_t. Use type cast to avoid warning.
9936 * fs/xfs.c (grub_xfs_read_block): Likewise.
9938 2008-05-16 Christian Franke <franke@computer.org>
9940 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
9941 to ensure that break with ESC will always work.
9942 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
9943 Remove ESC from keyboard queue.
9945 2008-05-16 Christian Franke <franke@computer.org>
9947 * util/biosdisk.c: [__CYGWIN__] Add includes.
9948 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
9949 (get_os_disk): Move variable declarations to OS specific
9950 parts to avoid warning.
9951 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
9952 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
9953 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
9955 * util/getroot.c: [__CYGWIN__] Add includes.
9956 (strip_extra_slashes): Fix "/" case.
9957 [__CYGWIN__] (get_win32_path): New function.
9958 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
9959 [__CYGWIN__] (find_root_device): Disable.
9960 [__CYGWIN__] (get_bootsec_serial): New function.
9961 [__CYGWIN__] (find_cygwin_root_device): Likewise.
9962 [__linux__] (grub_guess_root_device): Add early returns to simplify
9964 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
9965 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
9966 check for Linux only.
9968 2008-05-15 Bean <bean123ch@gmail.com>
9970 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
9971 keyboard hang problem in apple's intel mac.
9973 2008-05-09 Robert Millan <rmh@aybabtu.com>
9975 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
9977 * util/grub-mkdevicemap.c (get_virtio_disk_name)
9978 (make_device_map): Likewise.
9979 Reported by Aurelien Jarno <aurel32@debian.org>
9981 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
9983 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
9984 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
9985 (make_device_map): Output entries for xvd type disks.
9987 2008-05-07 Robert Millan <rmh@aybabtu.com>
9989 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
9991 * util/grub-mkdevicemap.c (get_cciss_disk_name)
9992 (make_device_map): Likewise.
9993 Reported by Roland Dreier <rdreier@cisco.com>
9995 2008-05-07 Robert Millan <rmh@aybabtu.com>
9997 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
9998 grub_strstr() call. Correct a few mistakes in failure path handling.
10000 2008-05-06 Robert Millan <rmh@aybabtu.com>
10002 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
10003 Do not print a trailing slash (therefore, the root directory is an
10005 (convert_system_path_to_grub_path): Do not remove trailing slash
10006 from make_system_path_relative_to_its_root() output.
10008 * util/i386/pc/grub-install.in: Add trailing slash to output from
10009 make_system_path_relative_to_its_root().
10011 2008-05-06 Robert Millan <rmh@aybabtu.com>
10013 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
10014 ensures that output lines aren't intermangled with those sent to
10015 stderr (via grub_util_info()).
10016 * util/grub-probe.c (grub_refresh): Likewise.
10017 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
10019 2008-05-05 Christian Franke <franke@computer.org>
10021 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
10022 Add Cygwin device names.
10023 (get_ide_disk_name) [__CYGWIN__]: Likewise.
10024 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
10025 (check_device): Return error instead of success on empty name.
10026 (make_device_map): Move label inside linux specific code to
10027 prevent compiler warning.
10029 2008-04-30 Robert Millan <rmh@aybabtu.com>
10031 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
10032 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
10034 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
10036 2008-04-29 Robert Millan <rmh@aybabtu.com>
10038 * docs/grub.cfg: New file (example GRUB configuration).
10040 2008-04-26 Robert Millan <rmh@aybabtu.com>
10042 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
10043 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
10044 and `disk/ieee1275/nand.c'.
10046 2008-04-25 Bean <bean123ch@gmail.com>
10048 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
10051 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
10052 change the buffer size to 4096 for cdrom device.
10054 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
10056 (_linux_mod_SOURCES): New variable.
10057 (_linux_mod_CFLAGS): Likewise.
10058 (_linux_mod_LDFLAGS): Likewise.
10059 (linux_mod_SOURCES): Likewise.
10060 (linux_mod_CFLAGS): Likewise.
10061 (linux_mod_LDFLAGS): Likewise.
10062 (nand_mod_SOURCES): Likewise.
10063 (nand_mod_CFLAGS): Likewise.
10064 (nand_mod_LDFLAGS): Likewise.
10066 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
10067 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
10068 type property. (nand device in olpc don't have this property)
10070 * include/grub/disk.h (grub_disk_dev_id): New macro
10071 GRUB_DISK_DEVICE_NAND_ID.
10073 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
10074 function prototype.
10075 (grub_rescue_cmd_initrd): Likewise.
10077 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
10078 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
10079 ofw_cif_handler and ofw_idt, adjust padding number.
10081 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
10082 GRUB_MACHINE_IEEE1275 is defined.
10084 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
10085 Use NESTED_FUNC_ATTR attribute on the hook parameter.
10087 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
10088 on nested function heap_init.
10089 (grub_upper_mem): New variable for i386-ieee1275.
10090 (grub_get_extended_memory): New function for i386-ieee1275.
10091 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
10093 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
10094 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
10097 * loader/i386/ieee1275/linux.c: New file.
10099 * loader/i386/ieee1275/linux_normal.c: New file.
10101 * disk/ieee1275/nand.c: New file.
10103 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
10105 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
10107 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
10109 2008-04-18 Robert Millan <rmh@aybabtu.com>
10111 Restructures early code path on ieee1275 to unify grub_main() as
10112 the first C function that is executed in every platform.
10114 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
10115 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
10117 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
10118 * kern/ieee1275/cmain.c (cmain): Rename to ...
10119 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
10120 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
10123 2008-04-18 Robert Millan <rmh@aybabtu.com>
10125 * util/update-grub.in: Fix syntax error when setting
10126 `GRUB_PRELOAD_MODULES'.
10127 Reported by Stephane Chazelas <stephane@artesyncp.com>
10129 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
10131 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
10132 section into account, newer toolchains generate unique build ids
10133 * configure.ac: remove the test for --build-id=none acceptance,
10134 we want build ids to be preserved
10135 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
10136 far from other sections don't cause the raw binary images grow
10139 2008-04-15 Robert Millan <rmh@aybabtu.com>
10141 * disk/lvm.c: Update copyright year.
10142 * kern/misc.c: Likewise.
10144 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10146 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
10147 there is no memory left for physical volume name.
10149 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10151 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
10152 volume name mapping to support bigger than 9 character names properly.
10154 2008-04-13 Robert Millan <rmh@aybabtu.com>
10156 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
10157 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
10159 2008-04-13 Christian Franke <franke@computer.org>
10161 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
10162 to create a floppy emulation boot CD when non emulation mode
10164 Enable Joliet CD filesystem extension.
10166 2008-04-13 Robert Millan <rmh@aybabtu.com>
10168 * kern/misc.c (grub_strncat): Fix off-by-one error.
10169 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
10171 * kern/env.c (grub_env_context_close): Clear current context, not
10173 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
10175 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
10177 2008-04-13 Robert Millan <rmh@aybabtu.com>
10179 Improve robustness when handling LVM.
10181 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
10182 (and leave `*p' unmodified).
10183 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
10185 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
10186 iterating through it.
10187 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
10189 (grub_lvm_scan_device): Check the return value (and fail gracefully
10190 when due) on each grub_lvm_getvalue() or grub_strstr() call.
10191 Don't assume `vg->pvs != NULL' when iterating through it.
10193 2008-04-13 Robert Millan <rmh@aybabtu.com>
10195 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
10196 * genmk.rb (partmap): New variable.
10197 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
10198 (#{partmap}): New target rule.
10199 * genpartmaplist.sh: New file.
10200 * Makefile.in (pkglib_DATA): Add partmap.lst.
10201 (partmap.lst): New target rule.
10202 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
10203 modules (including all partition maps), instead of preloading them.
10205 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
10207 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
10208 `linux-boot-prober' (if installed) to detect other operating
10209 systems which are installed on the computer and add them to
10211 * conf/common.rmk: Build and install 30_os-prober.
10213 2008-04-12 Robert Millan <rmh@aybabtu.com>
10215 * kern/powerpc/ieee1275/init.c: Move from here ...
10216 * kern/ieee1275/init.c: ... to here. Update all users.
10218 * kern/powerpc/ieee1275/cmain.c: Move from here ...
10219 * kern/ieee1275/cmain.c: ... to here. Update all users.
10221 * kern/powerpc/ieee1275/openfw.c: Move from here ...
10222 * kern/ieee1275/openfw.c: ... to here. Update all users.
10224 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
10225 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
10227 2008-04-10 Pavel Roskin <proski@gnu.org>
10229 * configure.ac: Always use "_cv_" in cache variables for
10230 compatibility with Autoconf 2.62.
10232 2008-04-07 Robert Millan <rmh@aybabtu.com>
10234 Revert grub/machine/init.h addition by Pavel (since it breaks on
10235 i386-ieee1275 and others):
10236 * util/i386/pc/misc.c: Remove grub/machine/init.h.
10237 * util/powerpc/ieee1275/misc.c: Likewise.
10239 2008-04-07 Robert Millan <rmh@aybabtu.com>
10241 * util/grub-probe.c (probe): Improve error message.
10243 2008-04-07 Robert Millan <rmh@aybabtu.com>
10245 * util/biosdisk.c (read_device_map): Skip devices that don't exist
10246 (this prevents the presence of a bogus entry from ruining the whole
10249 2008-04-06 Pavel Roskin <proski@gnu.org>
10251 * util/biosdisk.c: Include grub/util/biosdisk.h.
10252 * util/grub-fstest.c (execute_command): Make static.
10253 * util/grub-mkdevicemap.c (check_device): Likewise.
10254 * util/i386/pc/misc.c: Include grub/machine/init.h.
10255 * util/powerpc/ieee1275/misc.c: Likewise.
10256 * util/lvm.c: Include grub/util/lvm.h.
10257 * util/misc.c: Include grub/kernel.h, grub/misc.h and
10259 * util/raid.c: Include grub/util/raid.h.
10260 (grub_util_getdiskname): Make static.
10262 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
10263 grub_hostfs_fini(), as they are called from grub_init_all() and
10264 grub_fini_all() respectively. This fixes an infinite loop in
10265 grub-fstest due to double registration of hostfs.
10266 Reported by Christian Franke <Christian.Franke@t-online.de>
10268 2008-04-05 Pavel Roskin <proski@gnu.org>
10270 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
10271 all 8 functions. Otherwise, probe function 0 only.
10273 2008-04-04 Pavel Roskin <proski@gnu.org>
10275 * commands/lspci.c (grub_lspci_iter): Print the bus number
10278 * commands/lspci.c (grub_pci_classes): Fix typos.
10279 (grub_lspci_iter): Don't print func twice. Print vendor ID
10280 before device ID, as it's normally done.
10282 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
10283 Fix signedness warnings.
10284 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
10286 * util/ieee1275/get_disk_name.c: Include config.h so that
10287 _GNU_SOURCE is defined and getline() is declared. Mark an
10288 unused argument as such. Fix a signedness warning.
10290 2008-04-02 Pavel Roskin <proski@gnu.org>
10292 * genkernsyms.sh.in: Use more robust assignments for CC and
10293 srcdir. Quote srcdir.
10294 * gensymlist.sh.in: Likewise. Assert at the compile time that
10295 the symbol table is not empty.
10297 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
10298 * fs/cpio.c (grub_cpio_read): Likewise.
10300 2008-04-01 Pavel Roskin <proski@gnu.org>
10302 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
10303 * disk/host.c (grub_host_open): Likewise.
10304 * disk/loopback.c (grub_loopback_open): Likewise.
10305 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
10306 disk->id as in disk/host.c, not a multi-character constant.
10308 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
10309 later is obsolete, potentially dangerous and sets a bad example.
10310 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
10311 * util/misc.c (grub_util_get_image_size): Likewise.
10313 * disk/loopback.c (options): Improve help for "--partitions".
10315 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
10316 options to align them with the short options, e.g. "echo -e".
10318 2008-03-31 Bean <bean123ch@gmail.com>
10320 * video/reader/png.c (grub_png_data): New member is_16bit and
10322 (grub_png_decode_image_header): Detect 16 bit png image.
10323 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
10324 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
10325 (grub_video_reader_png): Release memory occupied by image_data.
10327 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
10329 (grub_nfs_mount): Skip the test for sector per cluster.
10331 * include/grub/ntfs.h (MAX_SPC): Removed.
10333 2008-03-31 Bean <bean123ch@gmail.com>
10335 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
10336 (grub_probe_SOURCES): Add fs/afs.c.
10337 (grub_fstest_SOURCES): Likewise.
10338 (afs_mod_SOURCES): New variable.
10339 (afs_mod_CFLAGS): Likewise.
10340 (afs_mod_LDFLAGS): Likewise.
10342 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
10343 (grub_emu_SOURCES): Likewise.
10345 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10347 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10349 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10351 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10353 * fs/afs.c: New file.
10355 2008-03-30 Pavel Roskin <proski@gnu.org>
10357 * disk/host.c: Include grub/misc.h to fix a warning.
10358 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
10359 warnings about implicit declarations.
10361 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
10363 * include/grub/i386/loader.h: Change declaration of
10364 grub_linux_boot() to match what grub_loader_set() expects.
10365 * util/getroot.c (grub_guess_root_device): Return const char* to
10367 * util/grub-probe.c (probe): Fix a warning about uninitialized
10368 abstraction_name variable.
10369 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
10370 second argument as unused to fix a warning.
10372 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
10373 missing grub_error() call.
10375 * util/update-grub_lib.in: Define datarootdir, since Autoconf
10376 2.60 and newer uses it to define datadir.
10378 * commands/sleep.c: Fix warning about implicit declaration.
10379 * disk/memdisk.c: Likewise.
10380 * loader/aout.c: Likewise.
10381 * loader/i386/bsd_normal.c: Likewise.
10382 * util/grub-probe.c: Likewise.
10384 * commands/i386/cpuid.c (has_longmode): Make static.
10385 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
10386 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
10388 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
10389 GDT. This is more robust, as %ds can change.
10390 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
10391 calling real_to_prot().
10392 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
10394 2008-03-28 Pavel Roskin <proski@gnu.org>
10396 * kern/i386/pc/startup.S: Assert that uncompressed functions
10397 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
10398 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
10399 code, as they push parts of the code (error handlers) beyond
10400 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
10401 code as correctness and size.
10403 2008-03-28 Pavel Roskin <proski@gnu.org>
10405 * kern/i386/pc/startup.S
10406 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
10407 data block address to the real mode, keep offset minimal. This
10408 works around a bug in AWARD BIOS on old Athlon systems, which
10409 makes CD detection hang.
10411 2008-03-26 Pavel Roskin <proski@gnu.org>
10413 * normal/color.c (grub_parse_color_name_pair): Make `name' a
10415 * include/grub/normal.h: Add grub_parse_color_name_pair()
10418 2008-03-24 Bean <bean123ch@gmail.com>
10420 * disk/i386/pc/biosdisk.c (cd_start): Removed.
10421 (cd_count): Removed.
10422 (cd_drive): New variable.
10423 (grub_biosdisk_get_drive): Don't check for (cdN) device.
10424 (grub_biosdisk_call_hook): Likewise.
10425 (grub_biosdisk_iterate): Change cdrom detection method.
10426 (grub_biosdisk_open): Replace cd_start with cd_drive.
10427 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
10428 detect cdrom device.
10430 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
10432 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
10433 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
10434 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
10435 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
10436 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
10437 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
10438 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
10439 (grub_biosdisk_cdrp): New structure.
10440 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
10442 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
10444 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
10447 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
10450 2008-03-20 Robert Millan <rmh@aybabtu.com>
10452 Remove 2 TiB limit in ata.mod.
10453 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
10454 (grub_ata_dumpinfo): Print sector count with 0x%llx.
10455 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
10456 grub_uint64_t instead of grub_uint32_t.
10458 2008-03-05 Bean <bean123ch@gmail.com>
10460 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
10461 (grub_multiboot): Set boot device.
10463 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
10465 2008-03-02 Bean <bean123ch@gmail.com>
10467 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
10470 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
10472 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
10475 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
10478 * docs/fdl.texi: New file.
10480 * docs/mdate-sh: New file. Copied from gnulib.
10481 * docs/texinfo.tex: Likewise.
10483 * config.guess: Updated from gnulib.
10484 * install-sh: Likewise.
10486 2008-02-28 Robert Millan <rmh@aybabtu.com>
10488 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
10489 (aout_mod_SOURCES): New variable.
10490 (aout_mod_CFLAGS): Likewise.
10491 (aout_mod_LDFLAGS): Likewise.
10493 * conf/i386-ieee1275.rmk: Likewise.
10495 2008-02-28 Robert Millan <rmh@aybabtu.com>
10497 * util/update-grub.in: Reorganise terminal validity check. Accept
10498 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
10499 Based on suggestion by Franklin PIAT.
10501 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
10503 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
10505 * util/getroot.c (grub_util_check_block_device): New function that
10506 returns the given argument if it is a block device and returns NULL else.
10507 * util/grub-probe.c (argument_is_device): New variable.
10508 (probe): Promote device_name from a variable to an argument. Receive
10509 device_name from grub_util_check_block_device() if path is NULL and from
10510 grub_guess_root_device() else. Do not free() device_name anymore.
10511 (options): Introduce new parameter '-d, --device'.
10512 (main): Add description of the new parameter to the help screen.
10513 Rename path variable to argument. Set argument_is_device if the '-d'
10514 option is given. Pass argument to probe() depending on
10515 argument_is_device.
10517 2008-02-24 Bean <bean123ch@gmail.com>
10519 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
10520 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
10521 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
10522 (GRUB_ISO9660_VOLDESC_PART): Likewise.
10523 (GRUB_ISO9660_VOLDESC_END): Likewise.
10524 (grub_iso9660_primary_voldesc): New member escape.
10525 (grub_iso9660_data): New member joliet.
10526 (grub_iso9660_convert_string): New function.
10527 (grub_iso9660_mount): Detect joliet extension.
10528 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
10529 (grub_iso9660_iso9660_label): Likewise.
10531 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
10532 (grub_setup_SOURCES): Add fs/udf.c.
10533 (grub_fstest_SOURCES): Likewise.
10534 (udf_mod_SOURCES): New variable.
10535 (udf_mod_CFLAGS): Likewise.
10536 (udf_mod_LDFLAGS): Likewise.
10538 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
10539 (grub_emu_SOURCES): Likewise.
10541 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10543 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10545 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10547 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10549 * fs/udf.c: New file.
10551 2008-02-24 Robert Millan <rmh@aybabtu.com>
10553 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
10554 (normal/lexer.c_DEPENDENCIES): New variables.
10555 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10556 (normal/lexer.c_DEPENDENCIES): Likewise.
10557 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
10558 (normal/lexer.c_DEPENDENCIES): Likewise.
10559 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
10560 (normal/lexer.c_DEPENDENCIES): Likewise.
10561 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10562 (normal/lexer.c_DEPENDENCIES): Likewise.
10563 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10564 (normal/lexer.c_DEPENDENCIES): Likewise.
10566 2008-02-23 Robert Millan <rmh@aybabtu.com>
10568 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
10569 since they were intended to be in hex. This didn't break previously
10570 because of a bug in gpt_partition_map_iterate() (see below).
10572 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
10573 when checking the validity of GPT header.
10574 Remove `partno', since it always provides the same information as `i'.
10576 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
10578 * include/grub/efi/time.h: Fix a wrong comment.
10580 2008-02-19 Pavel Roskin <proski@gnu.org>
10582 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
10585 2008-02-19 Bean <bean123ch@gmail.com>
10587 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
10588 (aout_mod_SOURCES): New variable.
10589 (aout_mod_CFLAGS): Likewise.
10590 (aout_mod_LDFLAGS): Likewise.
10591 (_bsd_mod_SOURCES): New variable.
10592 (_bsd_mod_CFLAGS): Likewise.
10593 (_bsd_mod_LDFLAGS): Likewise.
10594 (bsd_mod_SOURCES): New variable.
10595 (bsd_mod_CFLAGS): Likewise.
10596 (bsd_mod_LDFLAGS): Likewise.
10598 * include/grub/aout.h: New file.
10600 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
10602 * include/grub/i386/bsd.h: New file.
10604 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
10607 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
10608 function is called, so that it's possible to change it inside the hook.
10609 (grub_elf64_load): Likewise.
10610 (grub_elf_file): Don't close the file if elf header is not found.
10611 (grub_elf_close): Close the file if grub_elf_file fails (The new
10612 grub_elf_file won't close it).
10613 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
10614 (grub_elf64_size): Likewise.
10616 * kern/i386/loader.S (grub_unix_real_boot): New function.
10618 * loader/aout.c: New file.
10620 * loader/i386/bsd.c: New file.
10622 * loader/i386/bsd_normal.c: New file.
10624 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
10626 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
10627 can test other formats.
10629 2008-02-19 Robert Millan <rmh@aybabtu.com>
10631 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
10632 (grub_gpt_partition_type_empty): Redefine with macro from
10633 `<grub/gpt_partition.h>'.
10634 (gpt_partition_map_iterate): Adjust partition type comparison.
10636 Export `entry' as partmap-specific `part.data' struct.
10637 (grub_gpt_header, grub_gpt_partentry): Move from here ...
10639 * include/grub/gpt_partition.h (grub_gpt_header)
10640 (grub_gpt_partentry): ... to here (new file).
10642 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
10644 (grub_gpt_partition_type_bios_boot): New const variable, defined
10645 with macro from `<grub/gpt_partition.h>'.
10647 (setup): Replace `first_start' with `embed_region', which keeps
10648 track of the embed region (and is partmap-agnostic).
10650 Replace find_first_partition_start() with find_usable_region(),
10651 which finds a usable region for embedding using partmap-specific
10652 knowledge (supports PC/MSDOS and GPT).
10654 Fix all assumptions that the embed region start at sector 1, using
10655 `embed_region.start' from now on. Similarly, use `embed_region.end'
10656 rather than `first_start' to calculate available size.
10658 In grub_util_info() message, replace "into after the MBR" with an
10659 indication of the specific sector our embed region starts at.
10661 2008-02-19 Robert Millan <rmh@aybabtu.com>
10663 * DISTLIST: Replace `commands/ieee1275/halt.c' and
10664 `commands/ieee1275/reboot.c' with `commands/halt.c' and
10665 `commands/reboot.c'.
10666 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10667 (halt_mod_SOURCES): Likewise.
10668 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10669 (halt_mod_SOURCES): Likewise.
10671 2008-02-17 Christian Franke <franke@computer.org>
10673 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
10675 2008-02-17 Robert Millan <rmh@aybabtu.com>
10677 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10678 set `first_start' to 0 for non-PC/MSDOS partition maps.
10680 2008-02-16 Robert Millan <rmh@aybabtu.com>
10682 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10683 do not assume partition map is PC/MSDOS before performing checks that
10684 are specific to that layout.
10686 2008-02-13 Robert Millan <rmh@aybabtu.com>
10688 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
10689 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
10690 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
10692 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
10694 * configure.ac: Only a cosmetic change on the handling of
10695 -fno-stack-protector.
10697 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
10699 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
10700 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
10702 (grub_install_SOURCES): Add halt.mod and reboot.mod.
10703 (halt_mod_SOURCES): New variable.
10704 (halt_mod_CFLAGS): Likewise.
10705 (halt_mod_LDFLAGS): Likewise.
10706 (reboot_mod_SOURCES): Likewise.
10707 (reboot_mod_CFLAGS): Likewise.
10708 (reboot_mod_LDFLAGS): Likewise.
10710 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
10711 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
10713 (halt_mod_SOURCES): Likewise.
10714 (reboot_mod_SOURCES): Likewise.
10716 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
10717 commands/i386/pc/reboot.c by commands/reboot.c.
10718 (reboot_mod_SOURCES): Likewise.
10720 * commands/i386/pc/reboot.c: merge this file ...
10722 * commands/ieee1275/reboot.c: ... and this file ...
10724 * commands/reboot.c: ... to this file.
10725 Add some precompiler directive to include the correct header for
10728 * commands/ieee1275/halt.c: move this file ...
10730 * commands/halt.c: ... to here.
10731 Add some precompiler directive to include the correct header for
10734 * include/grub/efi/efi.h (grub_reboot): New function declaration.
10735 (grub_halt): Likewise.
10737 * kern/efi/efi.c (grub_reboot): New function.
10738 (grub_halt): Likewise.
10740 2008-02-12 Robert Millan <rmh@aybabtu.com>
10742 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
10743 /dev (like it is done for /dev/mapper). This doesn't provide support
10744 for EVMS, but at least it is now easy to identify the problem when it
10747 2008-02-11 Robert Millan <rmh@aybabtu.com>
10749 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
10750 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
10751 comparing it with -1, not 0.
10753 2008-02-10 Robert Millan <rmh@aybabtu.com>
10755 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
10757 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10758 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10760 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
10761 `disk/lvm.c' to the end of the list.
10762 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10763 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10765 2008-02-10 Robert Millan <rmh@aybabtu.com>
10767 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
10768 grub_print_error() instead. This will let user know why we're entering
10770 Based on suggestions from Sam Morris.
10772 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
10774 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
10775 on remaining N args, instead of "--" arg N times.
10777 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
10779 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
10780 (fill_with_default_glyph): Changed to use unknown_glyph for fill
10781 pattern for unknown glyphs.
10783 2008-02-09 Robert Millan <rmh@aybabtu.com>
10785 * configure.ac: Probe for `help2man'.
10786 * Makefile.in (builddir): New variable.
10787 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
10788 or otherwise add a few flags/options to it.
10789 (install-local): For every executable utility or script that is
10790 installed, invoke $(HELP2MAN) to install a manpage based on --help
10793 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
10794 that it doesn't prevent --help from working in build tree.
10796 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
10797 with `bug-grub@gnu.org'.
10798 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
10799 * util/update-grub.in (usage): New function.
10800 Implement proper argument check, with support for --help and --version
10801 (as well as existing -y).
10803 2008-02-09 Christian Franke <franke@computer.org>
10805 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
10806 avoid overwriting previous output.
10807 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
10809 2008-02-09 Robert Millan <rmh@aybabtu.com>
10811 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
10814 2008-02-09 Robert Millan <rmh@aybabtu.com>
10816 * commands/sleep.c: New file.
10817 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
10818 (sleep_mod_SOURCES): New variable.
10819 (sleep_mod_CFLAGS): Likewise.
10820 (sleep_mod_LDFLAGS): Likewise.
10822 2008-02-09 Robert Millan <rmh@aybabtu.com>
10824 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
10825 situations in which we can deduce the RAID size and the superblock
10828 2008-02-09 Robert Millan <rmh@aybabtu.com>
10830 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
10831 and return a grub_diskmemberlist_t composed of LVM physical volumes.
10832 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
10834 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
10835 and return a grub_diskmemberlist_t composed of physical array members.
10836 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
10838 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
10840 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
10841 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
10842 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
10844 * util/grub-probe.c (probe): Move partmap probing code from here ...
10845 (probe_partmap): ... to here.
10846 (probe): Use probe_partmap() once for the disk we're probing, and
10847 additionally, when such disk contains a memberlist() struct member,
10848 once for each disk that is contained in the structure returned by
10851 2008-02-09 Robert Millan <rmh@aybabtu.com>
10853 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
10854 environment variable to 'all' in order to obtain debug output from
10856 * util/i386/pc/grub-setup.c (main): Likewise.
10858 2008-02-08 Robert Millan <rmh@aybabtu.com>
10860 * disk/raid.c (grub_raid_scan_device): Check for
10861 `array->device[sb.this_disk.number]' rather than for
10862 `array->device[sb.this_disk.number]->name', since the latter is not
10863 guaranteed to be accessible.
10865 2008-02-08 Robert Millan <rmh@aybabtu.com>
10867 * disk/raid.c: Update copyright.
10868 * fs/cpio.c: Likewise.
10869 * include/grub/raid.h: Likewise.
10870 * loader/i386/pc/multiboot.c: Likewise.
10871 * util/hostfs.c: Likewise.
10873 2008-02-08 Robert Millan <rmh@aybabtu.com>
10875 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
10876 to a grub_disk_t array.
10877 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
10879 (grub_raid_scan_device): Replace `device[x].name' accesses with
10880 `device[x]->name'. Simplify initialization of `array->device[x]'.
10882 2008-02-08 Robert Millan <rmh@aybabtu.com>
10884 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
10885 grub_dprintf() calls.
10886 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
10889 2008-02-07 Christian Franke <franke@computer.org>
10891 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
10892 instead of fseek and ftell to support large files.
10893 (grub_hostfs_read): Likewise.
10895 2008-02-07 Robert Millan <rmh@aybabtu.com>
10897 Patch from Jeroen Dekkers.
10898 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
10899 failure, since successfully reading all array members might not be
10902 2008-02-06 Robert Millan <rmh@aybabtu.com>
10904 * util/grub-probe.c (probe): Simplify partmap probing (with the
10905 assumption that the first word up to the underscore equals to
10908 2008-02-06 Christian Franke <franke@computer.org>
10910 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
10911 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
10912 last block of a cpio or tar stream.
10913 Check for "TRAILER!!!" instead of any empty data
10914 block to detect last block of a cpio stream.
10915 (grub_cpio_dir): Fix constness of variable np.
10916 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
10917 cpio or tar trailer is detected. This fixes a crash
10918 on open of a non existing file.
10920 2008-02-05 Bean <bean123ch@gmail.com>
10922 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
10924 (grub_multiboot_load_elf64): Likewise.
10925 (grub_multiboot): Initialize mbi structure.
10927 * util/grub-fstest.c: Don't include unused header file script.h.
10929 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
10931 (grub_fstest_SOURCES): Likewise.
10933 2008-02-05 Robert Millan <rmh@aybabtu.com>
10935 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
10936 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
10937 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
10938 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
10940 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
10941 (translation_table): Replace hardcoded values with macros
10942 provided by `<grub/term.h>'.
10944 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
10945 (keyboard_map): Correct/add a few values, with macros provided
10946 by `<grub/term.h>'.
10947 (keyboard_map_shift): Zero values that don't differ from their
10948 `keyboard_map' equivalents.
10949 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
10950 Discard the second scan code that is always sent by Caps lock.
10951 Only use `keyboard_map_shift' when it provides a non-zero value,
10952 otherwise fallback to `keyboard_map'.
10954 2008-02-04 Bean <bean123ch@gmail.com>
10956 * Makefile.in (enable_grub_fstest): New variable.
10958 * conf/common.rmk (grub_fstest_init.lst): New rule.
10959 (grub_fstest_init.h): Likewise.
10960 (grub_fstest_init.c): Likewise.
10961 (util/grub-fstest.c_DEPENDENCIES): New variable.
10962 (grub_fstest_SOURCES): Likewise.
10964 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
10966 * util/grub-fstest.c: New file.
10968 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10970 Make grub-setup handle a separate root device.
10972 * util/i386/pc/grub-setup.c (setup): Always open the root device,
10973 so that the root device can be compared with the destination
10975 When embedding the core image, if the root and destination devices
10976 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
10978 When not embedding, set ROOT_DRIVE to 0xFF.
10980 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10982 Add support for having a grub directory in a different drive. This
10983 is still only the data handling part.
10985 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
10986 (codestart): Save %dh in GRUB_ROOT_DRIVE.
10987 (grub_root_drive): New variable.
10989 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
10990 instead of GRUB_BOOT_DRIVE to construct a device name. Set
10991 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
10994 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
10996 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
10998 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
11000 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
11001 is bogus, because PXE booting does not specify any drive
11004 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
11005 am not sure if this is really correct.
11007 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
11008 is always identical to the boot drive when booting from a CD.
11010 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
11012 (root_drive): New variable.
11013 (real_start): Unconditionally set %dh to ROOT_DRIVE.
11014 (setup_sectors): Push %dx right after popping it, because %dh will
11016 (copy_buffer): Restore %dx.
11018 2008-02-03 Robert Millan <rmh@aybabtu.com>
11020 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
11021 use `cdboot.img' for cdrom images.
11023 2008-02-03 Robert Millan <rmh@aybabtu.com>
11025 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
11026 only setup gfxterm when `font' command has succeeded.
11028 2008-02-03 Robert Millan <rmh@aybabtu.com>
11030 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
11031 (grub_rescue_cmd_multiboot_loader)
11032 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
11034 2008-02-03 Pavel Roskin <proski@gnu.org>
11036 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
11037 %edx and %esi from stack only after grub_gate_a20() is called.
11038 grub_gate_a20() clobbers %edx.
11040 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11042 * configure.ac (AC_INIT): Bumped to 1.96.
11044 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
11045 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
11046 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
11047 video/readers/png.c.
11049 2008-02-03 Bean <bean123ch@gmail.com>
11051 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
11052 (cdboot_img_SOURCES): New variable.
11053 (cdboot_img_ASFLAGS): New variable.
11054 (cdboot_img_LDFLAGS): New variable.
11056 * boot/i386/pc/cdboot.S: New file.
11058 * disk/i386/pc/biosdisk.c (cd_start): New variable.
11059 (cd_count): Likewise.
11060 (grub_biosdisk_get_drive): Add support for cd device.
11061 (grub_biosdisk_call_hook): Likewise.
11062 (grub_biosdisk_iterate): Likewise.
11063 (grub_biosdisk_open): Likewise.
11064 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
11065 (grub_biosdisk_rw): Support reading from cd device.
11066 (GRUB_MOD_INIT): Iterate cd devices.
11068 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
11069 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
11070 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
11072 * kern/i386/pc/init.c (make_install_device): Check for cd device.
11074 2008-02-02 Robert Millan <rmh@aybabtu.com>
11076 * commands/read.c: New file.
11077 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
11078 (read_mod_SOURCES): New variable.
11079 (read_mod_CFLAGS): Likewise.
11080 (read_mod_LDFLAGS): Likewise.
11082 2008-02-02 Robert Millan <rmh@aybabtu.com>
11084 * normal/main.c (grub_normal_execute): Check for `menu->size' when
11085 determining whether menu has to be displayed.
11087 2008-02-02 Marco Gerards <marco@gnu.org>
11089 * bus/pci.c: New file.
11091 * include/grub/pci.h: Likewise.
11093 * include/grub/i386/pc/pci.h: Likewise.
11095 * commands/lspci.c: Likewise.
11097 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
11099 (pci_mod_SOURCES): New variable.
11100 (pci_mod_CFLAGS): Likewise.
11101 (pci_mod_LDFLAGS): Likewise.
11102 (lspci_mod_SOURCES): Likewise.
11103 (lspci_mod_CFLAGS): Likewise.
11104 (lspci_mod_LDFLAGS): Likewise.
11106 2008-02-02 Bean <bean123ch@gmail.com>
11108 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
11109 (grub_ufs_get_file_block): Fix indirect block calculation problem.
11111 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
11112 (grub_xfs_btree_node): New structure.
11113 (grub_xfs_btree_root): New structure.
11114 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
11115 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
11116 (GRUB_XFS_EXTENT_BLOCK): Likewise.
11117 (GRUB_XFS_EXTENT_SIZE): Likewise.
11118 (grub_xfs_read_block): Support btree format type.
11119 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
11120 Use directory block as basic unit.
11122 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
11124 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
11125 __attribute__ ((__regparm__ (1))).
11127 2008-02-01 Robert Millan <rmh@aybabtu.com>
11129 Correct a mistake in previous commit.
11131 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
11133 (normal/command.c_DEPENDENCIES): New variable.
11135 2008-02-01 Robert Millan <rmh@aybabtu.com>
11137 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
11139 (normal/command.c_DEPENDENCIES): New variable.
11140 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
11141 * conf/i386-ieee1275.rmk: Likewise.
11142 * conf/i386-linuxbios.rmk: Likewise.
11143 * conf/i386-pc.rmk: Likewise.
11144 * conf/sparc64-ieee1275.rmk: Likewise.
11145 * conf/powerpc-ieee1275.rmk: Likewise.
11146 (grub_emu_SOURCES): Add `fs/fshelp.c'.
11148 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
11150 2008-02-01 Robert Millan <rmh@aybabtu.com>
11152 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
11153 call at beginning of function.
11155 2008-01-31 Pavel Roskin <proski@gnu.org>
11157 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
11158 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
11159 (grub_mkrescue_SOURCES): Likewise.
11160 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
11162 2008-01-30 Robert Millan <rmh@aybabtu.com>
11164 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
11165 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
11166 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
11167 (grub_probe_SOURCES): ... to here.
11169 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
11170 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
11171 * conf/i386-ieee1275.rmk: Likewise.
11172 * conf/i386-linuxbios.rmk: Likewise.
11173 * conf/powerpc-ieee1275.rmk: Likewise.
11175 2008-01-30 Tristan Gingold <gingold@free.fr>
11177 * kern/rescue.c: Silently accept empty lines.
11179 2008-01-29 Bean <bean123ch@gmail.com>
11181 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
11182 (real_code_2): Code cleanup and change comment style.
11183 (move_memory): Avoid using 32-bit address mode.
11185 2008-01-29 Bean <bean123ch@gmail.com>
11187 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
11188 (png_mod_SOURCES): New variable.
11189 (png_mod_CFLAGS): Likewise.
11190 (png_mod_LDFLAGS): Likewise.
11192 * video/readers/png.c: New file.
11194 2008-01-28 Robert Millan <rmh@aybabtu.com>
11196 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
11197 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
11198 `ifndef GRUB_MOD_GAP' hack.
11199 * util/elf/grub-mkimage.c (add_segments): Likewise.
11201 2008-01-27 Robert Millan <rmh@aybabtu.com>
11203 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
11204 `GRUB_MOD_GAP' for platforms in which it's not defined.
11205 * util/elf/grub-mkimage.c (add_segments): Likewise.
11207 2008-01-27 Robert Millan <rmh@aybabtu.com>
11209 Get grub-emu to build again (including parallel builds).
11211 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
11213 (util/grub-emu.c_DEPENDENCIES): ... this, ...
11214 (normal/execute.c_DEPENDENCIES): ... this, ...
11215 (grub-emu_DEPENDENCIES): ... and this.
11217 * conf/i386-efi.rmk: Likewise.
11218 * conf/i386-linuxbios.rmk: Likewise.
11219 * conf/i386-ieee1275.rmk: Likewise.
11220 * conf/powerpc-ieee1275.rmk: Likewise.
11221 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
11223 2008-01-27 Robert Millan <rmh@aybabtu.com>
11225 * NEWS: Add a few items.
11227 2008-01-27 Robert Millan <rmh@aybabtu.com>
11229 Fix parallel builds with grub-emu. Based on earlier commit for
11230 grub-probe and grub-setup.
11232 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11233 (util/grub-emu.c_DEPENDENCIES): ... this.
11234 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11235 (util/grub-emu.c_DEPENDENCIES): ... this.
11236 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11237 (util/grub-emu.c_DEPENDENCIES): ... this.
11238 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11239 (util/grub-emu.c_DEPENDENCIES): ... this.
11240 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11241 (util/grub-emu.c_DEPENDENCIES): ... this.
11243 2008-01-27 Pavel Roskin <proski@gnu.org>
11245 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
11246 to create a gap between _end and the modules added to the image
11247 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
11248 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
11249 * util/elf/grub-mkimage.c (add_segments): Likewise.
11251 2008-01-26 Pavel Roskin <proski@gnu.org>
11253 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
11254 just return an error.
11256 2008-01-26 Bean <bean123ch@gmail.com>
11258 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
11259 (grub_reiserfs_get_item): Save offset of the next item.
11260 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
11262 2008-01-25 Robert Millan <rmh@aybabtu.com>
11264 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
11265 make all filesystem sources appear together (possibly fixing omissions
11267 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11268 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11269 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11270 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11272 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
11274 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
11275 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11276 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
11277 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11279 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
11280 (probe): Add a sanity check to make sure of our ability to read
11281 requested files when probing for filesystem type.
11283 * genmk.rb: Update copyright year (2007).
11285 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
11286 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
11287 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
11288 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
11289 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
11290 : Remove function prototypes.
11292 2008-01-25 Robert Millan <rmh@aybabtu.com>
11294 Revert my previous commits (based on wrong assumption of how grub_errno
11297 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
11298 * kern/file.c (grub_file_open): Likewise.
11300 2008-01-24 Pavel Roskin <proski@gnu.org>
11302 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
11303 that hang if GRUB tries to setup colors.
11304 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
11305 colors for firmwares that don't support it.
11306 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
11307 Recognize Open Hack'Ware, set flags to work around its
11310 2008-01-24 Robert Millan <rmh@aybabtu.com>
11312 * kern/file.c (grub_file_open): Do not account previous failures of
11313 unrelated functions when grub_errno is checked for.
11314 Reported by Oleg Strikov.
11316 2008-01-24 Bean <bean123ch@gmail.com>
11318 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
11319 (grub_ufs_sblock): New member volume name.
11320 (grub_ufs_find_file): Fix string copy bug.
11321 (grub_ufs_label): Implement this function properly.
11323 * fs/hfs.c (grub_hfs_cnid_type): New enum.
11324 (grub_hfs_iterate_records): Use the correct file number for extents
11325 and catalog file. Fix problem in next index calculation.
11326 (grub_hfs_find_node): Replace recursive function call with loop.
11327 (grub_hfs_iterate_dir): Replace recursive function call with loop.
11329 2008-01-23 Robert Millan <rmh@aybabtu.com>
11331 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
11332 `<grub/symbol.h>' and `<grub/multiboot.h>'.
11333 (grub_multiboot2_real_boot): New function prototype.
11335 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
11336 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
11338 * kern/i386/ieee1275/init.c (grub_os_area_addr)
11339 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
11341 2008-01-23 Robert Millan <rmh@aybabtu.com>
11343 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
11344 #ifdef'ed out grub_printf().
11346 2008-01-23 Robert Millan <rmh@aybabtu.com>
11348 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
11349 grub_dprintf calls, since they make "debug=all" mode unusable.
11350 (grub_console_checkkey): Likewise.
11352 2008-01-23 Robert Millan <rmh@aybabtu.com>
11354 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
11355 `term/i386/pc/at_keyboard.c'.
11356 (pkglib_MODULES): Add `serial.mod'.
11357 (serial_mod_SOURCES): New variable.
11358 (serial_mod_CFLAGS): Likewise.
11359 (serial_mod_LDFLAGS): Likewise.
11361 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
11362 `<grub/powerpc/ieee1275/console.h>'.
11363 (grub_keyboard_controller_init): New function prototype.
11364 (grub_console_checkkey): Likewise.
11365 (grub_console_getkey): Likewise.
11367 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
11370 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
11371 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
11373 2008-01-23 Robert Millan <rmh@aybabtu.com>
11375 * kern/i386/pc/init.c (make_install_device): When memdisk image is
11376 present, "(memdisk)/boot/grub" becomes the default prefix.
11378 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
11379 a memdisk tarball with all the modules. Add --overlay=DIR option that
11380 allows users to overlay additional files into the image.
11382 2008-01-23 Robert Millan <rmh@aybabtu.com>
11384 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
11385 and `machine/memory.h'.
11386 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
11387 (_multiboot_mod_SOURCES): New variable.
11388 (_multiboot_mod_CFLAGS): Likewise.
11389 (_multiboot_mod_LDFLAGS): Likewise.
11390 (multiboot_mod_SOURCES): Likewise.
11391 (multiboot_mod_CFLAGS): Likewise.
11392 (multiboot_mod_LDFLAGS): Likewise.
11394 * include/grub/i386/ieee1275/loader.h: New file.
11396 * include/grub/i386/ieee1275/machine.h: Likewise.
11398 * include/grub/i386/ieee1275/memory.h: Likewise.
11400 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
11401 variable declaration.
11402 (grub_os_area_size): Likewise.
11404 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
11405 (grub_lower_mem, grub_upper_mem): New variables.
11406 (grub_stop_floppy): New function (just to make
11407 grub_multiboot2_real_boot() happy).
11409 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
11410 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
11411 (grub_stop): New function.
11412 Include `"../realmode.S"' and `"../loader.S"'.
11414 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
11415 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
11417 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
11418 rely on grub_multiboot2_real_boot() for final boot.
11420 2008-01-22 Robert Millan <rmh@aybabtu.com>
11422 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
11423 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
11424 device that doesn't look like an SD card.
11425 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
11426 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
11427 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
11428 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
11431 2008-01-22 Robert Millan <rmh@aybabtu.com>
11433 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
11434 avoid claiming over our own code.
11436 2008-01-22 Bean <bean123ch@gmail.com>
11438 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
11439 (jpeg_mod_SOURCES): New variable.
11440 (jpeg_mod_CFLAGS): Likewise.
11441 (jpeg_mod_LDFLAGS): Likewise.
11443 * video/readers/jpeg.c : New file.
11445 2008-01-22 Bean <bean123ch@gmail.com>
11447 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
11448 there are no more items.
11450 2008-01-21 Robert Millan <rmh@aybabtu.com>
11452 * kern/mm.c (grub_mm_init_region): Improve debug message.
11454 2008-01-21 Robert Millan <rmh@aybabtu.com>
11456 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
11457 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
11459 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
11461 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
11462 Indicates start of upper memory.
11463 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
11464 (generate_image): Abort when image size is big enough to corrupt
11467 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
11468 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
11469 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11470 instead of hardcoding 0xA0000.
11471 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
11472 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11473 instead of hardcoding 0xA0000.
11475 2008-01-21 Robert Millan <rmh@aybabtu.com>
11477 * disk/memdisk.c (memdisk_size): New variable.
11478 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
11480 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
11481 image to dynamic memory.
11482 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
11483 `memdisk_size'. Free memdisk block.
11485 2008-01-21 Robert Millan <rmh@aybabtu.com>
11487 Fix detection of very small filesystems (like tar).
11489 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
11490 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
11491 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
11492 a problem with this disk).
11494 2008-01-21 Robert Millan <rmh@aybabtu.com>
11496 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
11497 on grub_biosdisk_rw_standard() error.
11499 2008-01-21 Robert Millan <rmh@aybabtu.com>
11501 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
11503 * kern/elf.c: Likewise.
11504 * kern/ieee1275/ieee1275.c: Likewise.
11505 * kern/powerpc/ieee1275/openfw.c: Likewise.
11506 * term/ieee1275/ofconsole.c: Likewise.
11508 2008-01-21 Robert Millan <rmh@aybabtu.com>
11510 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
11512 * include/grub/kernel.h (grub_arch_memdisk_addr)
11513 (grub_arch_memdisk_size): Moved from here ...
11515 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
11516 (grub_arch_memdisk_size): ... to here.
11518 2008-01-21 Robert Millan <rmh@aybabtu.com>
11520 Mostly based on bugfix from Bean.
11522 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
11523 attribute with hook() parameter.
11524 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
11526 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
11527 attribute with hook() parameter.
11528 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
11531 2008-01-21 Robert Millan <rmh@aybabtu.com>
11533 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
11534 (pkglib_MODULES): Add `memdisk.mod'.
11535 (memdisk_mod_SOURCES): New variable.
11536 (memdisk_mod_CFLAGS): Likewise.
11537 (memdisk_mod_LDFLAGS): Likewise.
11539 * disk/memdisk.c: New file.
11541 * include/grub/disk.h (grub_disk_dev_id): Add
11542 `GRUB_DISK_DEVICE_MEMDISK_ID'.
11544 * include/grub/i386/pc/kernel.h
11545 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
11546 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
11547 (grub_kernel_image_size): New variable declaration.
11548 (grub_total_module_size): Likewise.
11549 (grub_memdisk_image_size): Likewise.
11551 * include/grub/i386/pc/memory.h
11552 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
11554 * include/grub/kernel.h: Include `<grub/symbol.h>'.
11555 (grub_arch_memdisk_addr): New variable declaration.
11556 (grub_arch_memdisk_size): Likewise.
11558 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
11559 (grub_arch_memdisk_size): Likewise.
11561 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
11562 (codestart): Replace hardcoded `0x100000' with
11563 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
11565 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
11566 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
11567 not NULL, append the contents of the file it refers to, at the end of
11568 the compressed kernel image. Initialize `grub_memdisk_image_size'
11569 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
11570 (options): Add "memdisk"|'m' option.
11571 (main): Parse --memdisk|-m option, and pass user-provided path as
11572 parameter to generate_image().
11574 2008-01-20 Robert Millan <rmh@aybabtu.com>
11576 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
11577 grub_dprintf() calls from here ...
11578 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
11580 2008-01-20 Robert Millan <rmh@aybabtu.com>
11582 Fix detection of "real mode" when /options/real-mode? doesn't exist.
11584 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
11586 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
11587 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
11588 `GRUB_IEEE1275_FLAG_REAL_MODE'.
11589 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
11591 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
11592 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
11594 2008-01-19 Robert Millan <rmh@aybabtu.com>
11596 Get rid of confusing function (superseded by
11597 `grub_ieee1275_get_integer_property')
11598 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
11600 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
11602 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
11603 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
11604 in native endianness from grub_ieee1275_get_integer_property().
11606 2008-01-19 Robert Millan <rmh@aybabtu.com>
11608 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
11609 command after "shut-down", since implementations differ on which
11610 the command for halt is.
11612 2008-01-19 Robert Millan <rmh@aybabtu.com>
11614 * include/grub/i386/linuxbios/console.h: Add header protection.
11615 (grub_keyboard_controller_init): New function prototype.
11616 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
11617 (KEYBOARD_COMMAND_READ): Likewise.
11618 (KEYBOARD_COMMAND_WRITE): Likewise.
11619 (KEYBOARD_SCANCODE_SET1): Likewise.
11620 (grub_keyboard_controller_write): New function.
11621 (grub_keyboard_controller_read): Likewise.
11622 (grub_keyboard_controller_init): Likewise.
11624 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
11625 (grub_console_init): On coreboot/LinuxBIOS, call
11626 grub_keyboard_controller_init().
11628 2008-01-19 Robert Millan <rmh@aybabtu.com>
11630 PowerPC changes provided by Pavel Roskin.
11632 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
11633 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
11634 don't rely on cmain() doing it.
11635 * kern/i386/ieee1275/startup.S (_start): Store %eax in
11636 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
11638 2008-01-16 Robert Millan <rmh@aybabtu.com>
11640 * include/grub/i386/linuxbios/memory.h
11641 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
11642 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
11643 receive `table_header' as argument. Instead, probe for it in the
11644 known memory ranges where it can be present.
11645 (grub_available_iterate): Do not pass a fixed `table_header' address
11646 to grub_linuxbios_table_iterate().
11648 2008-01-15 Robert Millan <rmh@aybabtu.com>
11650 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
11651 * conf/i386-ieee1275.rmk: New file.
11652 * include/grub/i386/ieee1275/console.h: Likewise.
11653 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
11654 * include/grub/i386/ieee1275/kernel.h: Likewise.
11655 * include/grub/i386/ieee1275/time.h: Likewise.
11656 * kern/i386/ieee1275/init.c: Likewise.
11657 * kern/i386/ieee1275/startup.S: Likewise.
11659 2008-01-15 Robert Millan <rmh@aybabtu.com>
11661 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
11662 when pointers are 32-bit (but still do set it to one when they are
11665 2008-01-15 Robert Millan <rmh@aybabtu.com>
11667 * include/grub/ieee1275/ieee1275.h
11668 (grub_ieee1275_get_integer_property): New function prototype.
11670 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
11671 (grub_ieee1275_get_integer_property): New function. Wraps around
11672 grub_ieee1275_get_property() to handle endianness.
11674 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
11675 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
11677 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
11678 (grub_map): Likewise.
11679 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
11681 2008-01-15 Bean <bean123ch@gmail.com>
11683 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
11684 (grub_script_execute_cmdline): Reset grub_errno.
11686 * normal/main.c (read_config_file): Reset grub_errno.
11688 * normal/parse.y (script_init): New.
11689 (script): Move function and menuentry here.
11691 (command): Add delimiter at the end of command.
11692 (commands): Adjust to match the new command.
11693 (commandblock): Remove grub_script_lexer_record_start.
11694 (menuentry): Add grub_script_lexer_record_start, use the new commands.
11695 (if): Use the new commands.
11697 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
11699 2008-01-15 Robert Millan <rmh@aybabtu.com>
11701 * normal/menu.c (run_menu): Move timeout message from here ...
11702 (print_timeout): ... to here.
11703 (run_menu): Use print_timeout() once during initial draw to print
11704 the whole message, and again in every clock tick to update only
11705 the number of seconds.
11707 2008-01-15 Robert Millan <rmh@aybabtu.com>
11709 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
11710 actual size of `available' from grub_ieee1275_get_property(), and
11711 restrict parsing to that bound.
11713 2008-01-15 Christian Franke <franke@computer.org>
11715 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
11716 (argp_program_version): Remove variable.
11717 (argp_program_bug_address): Likewise.
11718 (options): Convert from struct argp_option to struct option.
11719 (struct arguments): Remove.
11720 (parse_opt): Remove.
11721 (usage): New function.
11722 (main): Replace struct args members by simple variables.
11723 Replace argp_parse() by getopt_long().
11724 Add switch to evaluate options.
11725 Add missing "(...)" around root_dev in prefix string.
11727 2008-01-14 Robert Millan <rmh@aybabtu.com>
11729 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
11730 for grub_ieee1275_exit(), in order to improve portability.
11732 2008-01-14 Robert Millan <rmh@aybabtu.com>
11734 * util/grub.d/10_linux.in (prefix): Define.
11735 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
11737 2008-01-13 Pavel Roskin <proski@gnu.org>
11739 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
11740 grub_errno if no errors have been detected.
11742 2008-01-12 Robert Millan <rmh@aybabtu.com>
11744 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
11745 (grub_util_get_dev_abstraction): New function prototype.
11747 * util/getroot.c: Include `<grub/util/getroot.h>'
11748 (grub_util_get_grub_dev): Move detection of abstraction type to ...
11749 (grub_util_get_dev_abstraction): ... here (new function).
11751 * util/grub-probe.c: Convert PRINT_* to an enum. Add
11752 `PRINT_ABSTRACTION'.
11753 (probe): Probe for abstraction type when requested.
11754 (main): Understand `--target=abstraction'.
11756 * util/i386/efi/grub-install.in: Add abstraction module to core
11757 image when it is found to be necessary.
11758 * util/i386/pc/grub-install.in: Likewise.
11759 * util/powerpc/ieee1275/grub-install.in: Likewise.
11761 * util/update-grub_lib.in (font_path): Return system path without
11762 converting to GRUB path.
11763 * util/update-grub.in: Convert system path returned by font_path()
11764 to a GRUB path. Use `grub-probe -t abstraction' to determine what
11765 abstraction module is needed for loading fonts (if any). Export
11766 that as `GRUB_PRELOAD_MODULES'.
11767 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
11770 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
11772 Remove some unused code from reiserfs.
11774 * fs/reiserfs.c (struct grub_reiserfs_key)
11775 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
11776 (struct grub_reiserfs_node_body): Removed.
11777 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11779 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11781 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11783 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11785 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11787 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
11789 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11790 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11791 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11793 2008-01-10 Robert Millan <rmh@aybabtu.com>
11795 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
11796 Determines if a file is garbage left by packaging systems, etc.
11797 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
11798 for processing /etc/grub.d scripts.
11799 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
11800 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
11801 as a condition for processing Linux images.
11803 2008-01-10 Pavel Roskin <proski@gnu.org>
11805 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
11806 to compile reiserfs.c on PowerPC.
11808 2008-01-10 Robert Millan <rmh@aybabtu.com>
11810 * kern/device.c (grub_device_iterate): Do not abort device iteration
11811 when one of the devices cannot be opened.
11812 * kern/disk.c (grub_disk_open): Do not account previous failures of
11813 unrelated functions when grub_errno is checked for.
11815 2008-01-08 Robert Millan <rmh@aybabtu.com>
11817 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
11818 `! grub_linux_is_bzimage', change order of address comparison to make
11819 it more intuitive, and improve "too big zImage" error message.
11821 2008-01-08 Robert Millan <rmh@aybabtu.com>
11823 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
11824 `$(update-grub_DATA)'.
11825 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
11828 2008-01-07 Robert Millan <rmh@aybabtu.com>
11830 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
11831 which instruction is modified by grub-setup during installation
11832 (since it wasn't obvious by only looking at this file).
11834 2008-01-07 Robert Millan <rmh@aybabtu.com>
11836 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
11837 listing actual TODO items.
11839 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11841 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
11843 (grub_reiserfs_get_key_offset): Likewise.
11844 (grub_reiserfs_set_key_offset): Likewise.
11845 (grub_reiserfs_set_key_type): Likewise.
11846 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
11848 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
11849 better to remove the bitfield version completely.
11851 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11853 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
11854 allocated from the heap, due to the fshelp implementation.
11855 (grub_reiserfs_dir): Free NODE, due to the same reason.
11857 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11859 Mostly from Vincent Pelletier:
11861 * fs/reiserfs.c: New file.
11863 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
11864 (reiserfs_mod_SOURCES): New variable.
11865 (reiserfs_mod_CFLAGS): Likewise.
11866 (reiserfs_mod_LDFLAGS): Likewise.
11868 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
11869 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
11870 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
11873 2008-01-06 Robert Millan <rmh@aybabtu.com>
11875 * normal/color.c: Remove `<grub/env.h>'.
11877 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
11879 * include/grub/normal.h: Include <grub/env.h>.
11881 2008-01-05 Robert Millan <rmh@aybabtu.com>
11883 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
11884 usage example with `(hd0,1)'.
11885 Reported by Samuel Thibault.
11887 2008-01-05 Robert Millan <rmh@aybabtu.com>
11889 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
11890 (grub_linux_boot_zimage): Rename to ...
11891 (grub_linux_boot): ... this.
11892 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
11893 (grub_linux_boot_zimage): Conditionalize zImage copy.
11895 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
11896 (grub_linux_boot_bzimage): Remove prototype.
11897 (grub_linux_boot_zimage): Rename to ...
11898 (grub_linux_boot): ... this.
11900 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
11901 (grub_linux_boot): Remove function.
11903 2008-01-05 Robert Millan <rmh@aybabtu.com>
11905 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
11906 (grub_env_write_color_highlight): Likewise.
11907 (grub_wait_after_message): Likewise.
11909 * normal/color.c: New file.
11911 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11912 (normal_mod_DEPENDENCIES): Likewise.
11914 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11915 (normal_mod_DEPENDENCIES): Likewise.
11917 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11918 (normal_mod_DEPENDENCIES): Likewise.
11920 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11921 (normal_mod_DEPENDENCIES): Likewise.
11923 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
11924 for waiting after a message is printed.
11925 * normal/main.c (read_config_file): Likewise.
11926 (grub_normal_init): Register grub_env_write_color_normal() and
11927 grub_env_write_color_highlight() hooks. Mark `color_normal' and
11928 `color_highlight' variables as global.
11930 * normal/menu.c (grub_wait_after_message): New function.
11931 (grub_color_menu_normal): New variable. Replaces ...
11932 (GRUB_COLOR_MENU_NORMAL): ... this macro.
11933 (grub_color_menu_highlight): New variable. Replaces ...
11934 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
11935 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
11936 `GRUB_TERM_COLOR_STANDARD'.
11937 (print_message): Use `grub_setcolorstate' to reload colors. Rename
11938 `normal_code' and `highlight_code' to `old_color_normal' and
11939 `old_color_highlight', respectively.
11940 (grub_menu_init_page): Update colors when drawing the menu, based on
11941 `menu_color_normal' and `menu_color_highlight' variables.
11942 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
11943 a message is printed.
11945 2008-01-05 Robert Millan <rmh@aybabtu.com>
11947 * kern/env.c (grub_env_context_open): Propagate hooks for global
11948 variables to new context.
11950 * kern/main.c (grub_set_root_dev): Export `root' variable.
11952 2008-01-05 Robert Millan <rmh@aybabtu.com>
11954 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
11955 discs unconditionally, since udev and others have options to provide
11958 2008-01-05 Robert Millan <rmh@aybabtu.com>
11960 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
11962 2008-01-04 Christian Franke <franke@computer.org>
11964 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
11967 2008-01-03 Pavel Roskin <proski@gnu.org>
11969 * kern/i386/linuxbios/init.c: Put "void" to all function
11970 declarations with no arguments.
11971 * kern/powerpc/ieee1275/init.c: Likewise.
11972 * term/i386/pc/at_keyboard.c: Likewise.
11973 * term/i386/pc/vga_text.c: Likewise.
11974 * util/grub-mkdevicemap.c: Likewise.
11976 2008-01-02 Robert Millan <rmh@aybabtu.com>
11978 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
11979 message when loaded image is out of bounds.
11980 (grub_multiboot_load_elf64): Likewise.
11982 2008-01-02 Pavel Roskin <proski@gnu.org>
11984 * util/grub.d/10_linux.in: Try version without ".old" when
11985 looking for initrd. It's better to use initrd from the newer
11986 kernel of the same version than no initrd at all.
11988 2008-01-01 Robert Millan <rmh@aybabtu.com>
11990 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
11992 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
11994 * include/grub/video.h: Added grub_video_unmap_color and
11995 grub_video_get_active_render_target.
11996 (grub_video_adapter): Added unmap_color and get_active_render_target.
11998 * video/video.c: Added grub_video_unmap_color and
11999 grub_video_get_active_render_target.
12000 (grub_video_get_info): Changed method to accept NULL pointer as an
12001 argument to allow detection of active video adapter.
12003 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
12004 grub_video_vbe_unmap_color_int.
12005 Added grub_video_vbe_unmap_color and
12006 grub_video_vbe_get_active_render_target.
12007 (grub_video_vbe_adapter): Added unmap_color and
12008 get_active_render_target.
12010 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
12011 with grub_video_vbe_unmap_color_int.
12013 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
12014 (DEFAULT_NORMAL_COLOR): Likewise.
12015 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
12016 (DEFAULT_FG_COLOR): Removed.
12017 (DEFAULT_BG_COLOR): Likewise.
12018 (DEFAULT_CURSOR_COLOR): Changed value.
12019 (grub_virtual_screen): Added standard_color_setting,
12020 normal_color_setting, highlight_color_setting and term_color.
12021 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
12022 (bitmap_width): Added.
12023 (bitmap_height): Likewise.
12024 (bitmap): Likewise.
12025 (set_term_color): Likewise.
12026 (grub_virtual_screen_setup): Changed to use new terminal coloring
12028 (grub_gfxterm_init): Added init for bitmap.
12029 (grub_gfxterm_fini): Added destroy for bitmap.
12030 (redraw_screen_rect): Updated to use background bitmap and new
12032 (scroll_up): Added optimization for case when there is no bitmap.
12033 (grub_gfxterm_cls): Fixed to use correct background color.
12034 (grub_virtual_screen_setcolorstate): Changed to use new terminal
12036 (grub_virtual_screen_setcolor): Likewise.
12037 (grub_virtual_screen_getcolor): Added.
12038 (grub_gfxterm_background_image_cmd): Likewise.
12039 (grub_video_term): Added setcolor and getcolor.
12040 (MOD_INIT): Added registration of background_image command.
12041 (MOD_TERM): Added unregistration for background_image command.
12043 2007-12-30 Pavel Roskin <proski@gnu.org>
12045 * loader/multiboot_loader.c: Fix multiboot command
12046 unregistration. Fix all typos in the word "multiboot".
12048 2007-12-29 Pavel Roskin <proski@gnu.org>
12050 * util/grub.d/10_linux.in: Refactor search for initrd. Add
12051 support for initrd names used in Fedora.
12053 2007-12-26 Bean <bean123ch@gmail.com>
12055 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
12056 (cpio_mod_SOURCES): New variable.
12057 (cpio_mod_CFLAGS): Likewise.
12058 (cpio_mod_LDFLAGS): Likewise.
12060 * fs/cpio.c: New file.
12062 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
12064 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12066 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
12068 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12070 2007-12-25 Robert Millan <rmh@aybabtu.com>
12072 * include/grub/term.h (struct grub_term): Add `getcolor' function.
12073 (grub_getcolor): New function.
12075 * kern/term.c (grub_getcolor): New function.
12076 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
12077 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
12078 (print_entry): Set normal and highlight colors to
12079 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
12080 respectively, before printing and restore them to old
12082 (grub_menu_init_page): Likewise. Fill an additional colored space
12083 that would otherwise be left blank.
12085 * term/efi/console.c (grub_console_getcolor): New function.
12086 (struct grub_console_term.getcolor): New variable.
12087 * term/i386/pc/console.c (grub_console_getcolor): New function.
12088 (struct grub_console_term.getcolor): New variable.
12089 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
12090 (struct grub_console_term.getcolor): New variable.
12092 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
12093 (struct grub_console_term.setcolor): Remove variable.
12094 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
12095 (struct grub_console_term.setcolor): Remove variable.
12096 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
12097 (struct grub_console_term.setcolor): Remove variable.
12098 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
12099 (struct grub_console_term.setcolor): Remove variable.
12101 2007-12-25 Robert Millan <rmh@aybabtu.com>
12103 * configure.ac: Search for possible unifont.hex locations, and
12104 define UNIFONT_HEX if found.
12106 * Makefile.in (UNIFONT_HEX): Define variable.
12107 (DATA): Rename to ...
12108 (PKGLIB): ... this. Update all users.
12109 (PKGDATA): New variable.
12110 (pkgdata_IMAGES): Rename to ...
12111 (pkglib_IMAGES): ... this. Update all users.
12112 (pkgdata_MODULES): Rename to ...
12113 (pkglib_MODULES): ... this. Update all users.
12114 (pkgdata_PROGRAMS): Rename to ...
12115 (pkglib_PROGRAMS): ... this. Update all users.
12116 (pkgdata_DATA): Rename to ...
12117 (pkglib_DATA): ... this. Update all users.
12118 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
12119 (unicode.pff, ascii.pff): New rules.
12120 (all-local): Add `$(PKGDATA)' dependency.
12121 (install-local): Process `$(PKGDATA)'.
12123 * util/update-grub_lib.in (font_path): Search for *.pff files in
12124 a few more locations, including `${pkgdata}'.
12126 2007-12-23 Robert Millan <rmh@aybabtu.com>
12128 Patch from Bean <bean123ch@gmail.com>:
12129 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
12132 2007-12-21 Bean <bean123ch@gmail.com>
12134 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
12135 (ntfscomp_mod_SOURCES): New variable.
12136 (ntfscomp_mod_CFLAGS): Likewise.
12137 (ntfscomp_mod_LDFLAGS): Likewise.
12139 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
12140 (grub_probe_SOURCES): Likewise.
12141 (grub_emu_SOURCES): Likewise.
12143 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12144 (grub_emu_SOURCES): Likewise.
12146 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12147 (grub_emu_SOURCES): Likewise.
12149 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12150 (grub_emu_SOURCES): Likewise.
12152 * fs/ntfs.c (grub_ntfscomp_func): New variable.
12153 (read_run_list): Renamed to grub_ntfs_read_run_list.
12154 (decomp_nextvcn): Moved to ntfscomp.c.
12155 (decomp_getch): Likewise.
12156 (decomp_get16): Likewise.
12157 (decomp_block): Likewise.
12158 (read_block): Likewise.
12159 (read_data): Partially moved to ntfscomp.c.
12160 (fixup): Change unsigned to grub_uint16_t.
12161 (read_mft): Change unsigned long to grub_uint32_t.
12162 (read_attr): Likewise.
12163 (read_data): Likewise.
12164 (read_run_data): Likewise.
12165 (read_run_list): Likewise.
12166 (read_mft): Likewise.
12168 * fs/ntfscomp.c: New file.
12170 * include/grub/ntfs.h: New file.
12172 2007-12-16 Robert Millan <rmh@aybabtu.com>
12174 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
12175 IDE disk check, since Linux is known to support 20 IDE disks.
12176 Reported by Colin Watson.
12178 2007-12-15 Bean <bean123ch@gmail.com>
12180 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
12181 (lnxboot_img_SOURCES): New variable.
12182 (lnxboot_img_ASFLAGS): Likewise.
12183 (lnxboot_img_LDFLAGS): Likewise.
12185 * boot/i386/pc/lnxboot.S: New file.
12187 2007-11-24 Pavel Roskin <proski@gnu.org>
12189 * configure.ac: Test if '--build-id=none' is supported by the
12190 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
12191 objcopy to generate incorrect binary files (binutils
12192 2.17.50.0.18-1 as shipped by Fedora 8).
12193 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
12194 linking, so that build ID doesn't break the test.
12196 2007-11-24 Pavel Roskin <proski@gnu.org>
12198 * include/grub/i386/time.h: use "void" in the argument list
12199 of grub_cpu_idle().
12200 * include/grub/powerpc/time.h: Likewise.
12201 * include/grub/sparc64/time.h: Likewise.
12203 2007-11-18 Christian Franke <franke@computer.org>
12205 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
12206 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
12207 This fixes the problem that function keys did not work in grub-emu.
12209 2007-11-18 Christian Franke <franke@computer.org>
12211 * disk/host.c (grub_host_open): Remove attribute unused from
12212 name parameter. Add check for "host". This fixes the problem
12213 that grub-emu does not find partitions.
12215 2007-11-18 Christian Franke <franke@computer.org>
12217 * util/hostfs.c (is_dir): New function.
12218 (grub_hostfs_dir): Handle missing dirent.d_type case.
12219 (grub_hostfs_read): Add missing fseek().
12220 (grub_hostfs_label): Clear label pointer. This fixes a crash
12221 of grub-emu on "ls (host)".
12223 2007-11-18 Christian Franke <franke@computer.org>
12225 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
12226 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
12227 to 64 bit boundary by default.
12229 2007-11-18 Bean <bean123ch@gmail.com>
12231 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
12232 (hexdump_mod_SOURCES): New variable.
12233 (hexdump_mod_CFLAGS): Likewise.
12234 (hexdump_mod_LDFLAGS): Likewise.
12236 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12238 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12240 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12242 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12244 * include/grub/hexdump.h: New file.
12246 * commands/hexdump.c: New file.
12248 2007-11-10 Robert Millan <rmh@aybabtu.com>
12250 * commands/i386/pc/play.c (beep_off): Switch order of arguments
12251 in grub_outb() calls.
12252 (beep_on): Likewise.
12254 2007-11-10 Christian Franke <franke@computer.org>
12256 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
12257 (grub_menu_run): Likewise.
12259 2007-11-10 Robert Millan <rmh@aybabtu.com>
12261 * include/grub/i386/efi/machine.h: New file.
12262 * include/grub/i386/linuxbios/machine.h: Likewise.
12263 * include/grub/i386/pc/machine.h: Likewise.
12264 * include/grub/powerpc/ieee1275/machine.h: Likewise.
12265 * include/grub/sparc64/ieee1275/machine.h: Likewise.
12267 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
12268 (serial_hw_io_addr): New variable.
12269 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
12270 instead of `(unsigned short *) 0x400'.
12272 2007-11-10 Bean <bean123ch@gmail.com>
12274 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
12276 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12278 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
12279 (vga_mod_SOURCES): Added.
12280 (vga_mod_CFLAGS): Likewise.
12281 (vga_mod_LDFLAGS): Likewise.
12283 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
12285 (set_map_mask): Likewise.
12286 (set_read_map): Likewise.
12287 (set_read_address): Likewise.
12288 (vga_font): Removed variable.
12289 (get_vga_glyph): Removed function.
12290 (invalidate_char): Likewise.
12291 (write_char): Changed to use grub_font_get_glyph() for font
12293 (grub_vga_putchar): Likewise.
12294 (grub_vga_getcharwidth): Likewise.
12296 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12298 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
12300 (pxeboot_img_LDFLAGS): Likewise.
12301 (diskboot_img_LDFLAGS): Likewise.
12302 (kernel_img_LDFLAGS): Likewise.
12304 2007-11-06 Robert Millan <rmh@aybabtu.com>
12306 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
12307 in grub_outb() calls.
12308 (serial_hw_init): Likewise.
12310 2007-11-05 Robert Millan <rmh@aybabtu.com>
12312 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
12313 spaces. Skip non-regular files.
12315 2007-11-05 Robert Millan <rmh@aybabtu.com>
12317 * kern/disk.c (grub_disk_firmware_fini)
12318 (grub_disk_firmware_is_tainted): New variables.
12320 * include/grub/disk.h (grub_disk_firmware_fini)
12321 (grub_disk_firmware_is_tainted): Likewise.
12323 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
12324 (grub_disk_biosdisk_fini): ... to here.
12325 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
12326 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
12327 is set. Register grub_disk_biosdisk_fini() in
12328 `grub_disk_firmware_fini'.
12330 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
12331 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
12332 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
12333 to finish existing firmware disk interface.
12335 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
12336 (ata_mod_SOURCES): New variable.
12337 (ata_mod_CFLAGS): Likewise.
12338 (ata_mod_LDFLAGS): Likewise.
12340 2007-11-05 Robert Millan <rmh@aybabtu.com>
12342 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
12343 (grub_ata_wait): Reimplement using grub_millisleep().
12345 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
12346 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
12348 2007-11-03 Marco Gerards <marco@gnu.org>
12350 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
12351 (CRTC_ADDR_PORT): New macro.
12352 (CRTC_DATA_PORT): Likewise.
12353 (CRTC_CURSOR): Likewise.
12354 (CRTC_CURSOR_ADDR_HIGH): Likewise.
12355 (CRTC_CURSOR_ADDR_LOW): Likewise.
12356 (update_cursor): New function.
12357 (grub_console_real_putchar): Call `update_cursor'.
12358 (grub_console_gotoxy): Likewise.
12359 (grub_console_cls): Set the default color when clearing the
12361 (grub_console_setcursor): Implemented.
12363 2007-11-03 Marco Gerards <marco@gnu.org>
12365 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
12367 (grub_ata_pio_write): Likewise.
12369 (grub_atapi_identify): Wait after issuing an ATA command.
12370 (grub_atapi_packet): Likewise.
12371 (grub_ata_identify): Likewise.
12372 (grub_ata_readwrite): Likewise.
12374 2007-11-03 Marco Gerards <marco@gnu.org>
12376 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
12377 (grub_ata_pio_write): Likewise.
12378 (grub_ata_readwrite): Use `grub_error', instead of
12379 returning `grub_errno'.
12381 2007-11-03 Marco Gerards <marco@gnu.org>
12383 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
12384 grub_ata_pio_write once for every single sector, instead of for
12387 2007-10-31 Robert Millan <rmh@aybabtu.com>
12389 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
12391 * conf/i386-linuxbios.rmk: New file.
12393 * kern/i386/pc/hardware.c: Likewise.
12394 * term/i386/pc/at_keyboard.c: Likewise.
12395 * term/i386/pc/vga_text.c: Likewise.
12397 * include/grub/i386/linuxbios/boot.h: Likewise.
12398 * include/grub/i386/linuxbios/console.h: Likewise.
12399 * include/grub/i386/linuxbios/init.h: Likewise.
12400 * include/grub/i386/linuxbios/kernel.h: Likewise.
12401 * include/grub/i386/linuxbios/loader.h: Likewise.
12402 * include/grub/i386/linuxbios/memory.h: Likewise.
12403 * include/grub/i386/linuxbios/serial.h: Likewise.
12404 * include/grub/i386/linuxbios/time.h: Likewise.
12406 * kern/i386/linuxbios/init.c: Likewise.
12407 * kern/i386/linuxbios/startup.S: Likewise.
12408 * kern/i386/linuxbios/table.c: Likewise.
12410 2007-10-31 Marco Gerards <marco@gnu.org>
12412 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
12413 (ata_mod_SOURCES): New variable.
12414 (ata_mod_CFLAGS): Likewise.
12415 (ata_mod_LDFLAGS): Likewise.
12417 * disk/ata.c: New file.
12419 * include/grub/disk.h (grub_disk_dev_id): Add
12420 `GRUB_DISK_DEV_ATA_ID'.
12422 2007-10-31 Robert Millan <rmh@aybabtu.com>
12424 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
12425 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
12427 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
12428 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
12430 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
12433 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
12435 2007-10-27 Robert Millan <rmh@aybabtu.com>
12437 * include/grub/types.h (ULONG_MAX): Define macro.
12439 2007-10-22 Robert Millan <rmh@aybabtu.com>
12441 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
12443 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
12445 2007-10-22 Robert Millan <rmh@aybabtu.com>
12447 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
12448 (pkgdata_MODULES): Add `biosdisk.mod'.
12449 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
12452 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
12453 (grub_biosdisk_init): Replace with ...
12454 (GRUB_MOD_INIT(biosdisk)): ... this.
12455 (grub_biosdisk_fini): Replace with ...
12456 (GRUB_MOD_FINI(biosdisk)): ... this.
12458 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
12459 (grub_machine_init): Remove call to grub_biosdisk_init().
12460 (grub_machine_fini): Remove call to grub_machine_fini().
12462 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
12464 2007-10-22 Robert Millan <rmh@aybabtu.com>
12466 * include/grub/time.h: New file.
12467 * include/grub/i386/time.h: Likewise.
12468 * include/grub/powerpc/time.h: Likewise.
12469 * include/grub/sparc64/time.h: Likewise.
12471 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
12473 (KERNEL_MACHINE_TIME_HEADER): ... this.
12474 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12476 (KERNEL_MACHINE_TIME_HEADER): ... this.
12477 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12479 (KERNEL_MACHINE_TIME_HEADER): ... this.
12481 * kern/i386/efi/init.c: Include `<grub/time.h>'.
12482 (grub_millisleep): New function.
12483 * kern/i386/pc/init.c: Include `<grub/time.h>'.
12484 (grub_millisleep): New function.
12485 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
12486 Remove `grub/machine/time.h' include.
12487 (grub_millisleep): New function.
12488 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
12489 Remove `grub/machine/time.h' include.
12490 (grub_millisleep): New function.
12492 * include/grub/misc.h (grub_div_roundup): New function.
12494 * kern/misc.c: Include `<grub/time.h>'.
12495 (grub_millisleep_generic): New function.
12497 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
12499 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
12501 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
12502 `machine/time.h'. Add `time.h'.
12503 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
12505 2007-10-21 Robert Millan <rmh@aybabtu.com>
12507 * include/grub/misc.h (grub_max): New function.
12509 2007-10-21 Robert Millan <rmh@aybabtu.com>
12511 * util/misc.c (grub_util_info): Call fflush() before returning.
12513 2007-10-20 Robert Millan <rmh@aybabtu.com>
12515 * genmk.rb (Image): Copy `extra_flags' from here ...
12516 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
12518 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
12519 to `argc' and `args' arguments.
12521 2007-10-17 Robert Millan <rmh@aybabtu.com>
12523 * kern/i386/loader.S: New file.
12525 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
12526 * kern/i386/loader.S (grub_linux_prot_size)... to here.
12527 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
12528 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
12529 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
12530 * kern/i386/loader.S (grub_linux_real_addr)... to here.
12531 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
12532 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
12533 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
12534 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
12535 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
12536 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
12537 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
12538 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
12540 * kern/i386/realmode.S: New file.
12542 * kern/i386/pc/startup.S (protstack): Moved from here ...
12543 * kern/i386/realmode.S (protstack)... to here.
12544 * kern/i386/pc/startup.S (gdt): Moved from here ...
12545 * kern/i386/realmode.S (gdt)... to here.
12546 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
12547 * kern/i386/realmode.S (prot_to_real)... to here.
12549 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
12550 `kern/i386/realmode.S'.
12552 2007-10-17 Robert Millan <rmh@aybabtu.com>
12554 * include/grub/i386/loader.h: New file.
12556 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
12557 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12558 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12559 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12560 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
12561 * include/grub/i386/loader.h (grub_linux_prot_size)
12562 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12563 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12564 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12565 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
12567 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
12569 2007-10-15 Robert Millan <rmh@aybabtu.com>
12571 * normal/misc.c (grub_normal_print_device_info): Do not probe for
12572 filesystem when dev->disk is unset.
12573 Do probe for filesystem even when dev->disk->has_partitions is set.
12574 In case a filesystem is found, always report it.
12575 In case it isn't, if dev->disk->has_partitions is set, report that
12576 a partition table was found instead of reporting that no filesystem
12577 could be identified.
12579 2007-10-12 Robert Millan <rmh@aybabtu.com>
12581 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
12582 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
12584 * include/grub/types.h (grub_host_to_target16): New macro.
12585 (grub_host_to_target32): Likewise.
12586 (grub_host_to_target64): Likewise.
12587 (grub_target_to_host16): Likewise.
12588 (grub_target_to_host32): Likewise.
12589 (grub_target_to_host64): Likewise.
12591 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
12592 Renamed from to ...
12593 (GRUB_MOD_ALIGN): ...this. Update all users.
12595 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
12596 grub_host_to_target32.
12597 Replace grub_be_to_cpu32 with grub_target_to_host32.
12598 (load_modules): Likewise.
12599 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
12600 Replace grub_be_to_cpu32 with grub_target_to_host32.
12601 Replace grub_cpu_to_be16 with grub_host_to_target16.
12602 Replace grub_cpu_to_be32 grub_host_to_target32.
12604 2007-10-12 Robert Millan <rmh@aybabtu.com>
12606 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
12607 * util/elf/grub-mkimage.c: ... here.
12609 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
12610 `util/powerpc/ieee1275/grub-mkimage.c'.
12612 2007-10-07 Robert Millan <rmh@aybabtu.com>
12614 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
12615 and make it easier to figure out.
12616 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
12617 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
12618 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
12619 leave us with less than HEAP_MIN_SIZE total heap.
12620 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
12622 2007-10-03 Robert Millan <rmh@aybabtu.com>
12624 * include/grub/i386/io.h: New file.
12625 * commands/i386/pc/play.c (inb): Removed.
12627 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12629 * term/i386/pc/serial.c (inb): Removed.
12631 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12633 * term/i386/pc/vga.c (inb): Removed.
12635 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12638 2007-10-02 Robert Millan <rmh@aybabtu.com>
12640 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
12641 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12642 Reported by Marcin Kurek.
12644 2007-09-07 Robert Millan <rmh@aybabtu.com>
12646 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
12647 SmartFirmware version updates (as released by Sven Luther), and avoid
12648 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
12649 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
12652 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12654 From Hitoshi Ozeki:
12655 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
12656 when merging two regions.
12658 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12660 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
12661 * normal/completion.c (grub_normal_do_completion): Likewise.
12662 Reported by Hitoshi Ozeki.
12664 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12666 Do not use devices at boot in chainloading.
12668 * loader/i386/pc/chainloader.c (boot_drive): New variable.
12669 (boot_part_addr): Likewise.
12670 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
12671 with BOOT_DRIVE and BOOT_PART_ADDR.
12672 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
12673 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
12675 2007-08-29 Robert Millan <rmh@aybabtu.com>
12677 Patch from Simon Peter <dn.tlp@gmx.net>:
12678 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
12679 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
12680 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
12681 util/i386/pc/grub-setup.c_DEPENDENCIES.
12682 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
12683 util/grub-probe.c_DEPENDENCIES.
12684 * conf/powerpc-ieee1275.rmk: Likewise.
12686 2007-08-28 Robert Millan <rmh@aybabtu.com>
12688 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
12689 to tell grub-mkdevicemap how to name devices.
12690 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
12693 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
12694 util/i386/get_disk_name.c.
12695 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
12696 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
12697 util/ieee1275/get_disk_name.c.
12699 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
12701 * DISTLIST: Add util/i386/get_disk_name.c and
12702 util/ieee1275/get_disk_name.c.
12704 * util/grub-mkdevicemap.c: Replace device naming logic with
12705 grub_util_get_disk_name() calls.
12707 2007-08-20 Robert Millan <rmh@aybabtu.com>
12709 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
12710 (so that it works for both plural and singular quantities).
12712 2007-08-05 Robert Millan <rmh@aybabtu.com>
12714 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
12715 so that [xz] isn't taken into account when determining order.
12717 2007-08-02 Marco Gerards <marco@gnu.org>
12719 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
12720 `include/multiboot2.h', `include/grub/elfload.h',
12721 `include/multiboot.h', `include/grub/multiboot.h',
12722 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
12723 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
12724 `kern/elf.c', `loader/multiboot_loader.c',
12725 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
12726 `loader/i386/pc/multiboot2.c',
12727 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
12728 `util/i386/pc/grub-mkrescue.in'. Remove
12729 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
12730 `include/grub/i386/pc/util/biosdisk.h' and
12731 `include/grub/powerpc/ieee1275/multiboot.h'.
12733 2007-08-02 Bean <bean123ch@gmail.com>
12735 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
12736 (ntfs_mod_SOURCES): New variable.
12737 (ntfs_mod_CFLAGS): Likewise.
12738 (ntfs_mod_LDFLAGS): Likewise.
12740 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
12741 (grub_probe_SOURCES): Likewise.
12742 (grub_emu_SOURCES): Likewise.
12744 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12745 (grub_emu_SOURCES): Likewise.
12747 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12748 (grub_emu_SOURCES): Likewise.
12750 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
12752 * fs/ntfs.c: New file.
12754 2007-08-02 Bean <bean123ch@gmail.com>
12756 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
12758 * file.h (grub_file): Likewise.
12760 * fshelp.h (grub_fshelp_read_file): Likewise.
12762 * util/i386/pc/grub-setup.c (setup): Likewise.
12763 (save_first_sector): Likewise.
12764 (save_blocklists): Likewise.
12766 * fs/affs.c (grub_affs_read_file): Likewise.
12768 * fs/ext2.c (grub_ext2_read_file): Likewise.
12770 * fs/fat.c (grub_fat_read_data): Likewise.
12772 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
12774 * fs/hfs.c (grub_hfs_read_file): Likewise.
12776 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
12778 * fs/jfs.c (grub_jfs_read_file): Likewise.
12780 * fs/minix.c (grub_minix_read_file): Likewise.
12782 * fs/sfs.c (grub_sfs_read_file): Likewise.
12784 * fs/ufs.c (grub_ufs_read_file): Likewise.
12786 * fs/xfs.c (grub_xfs_read_file): Likewise.
12788 * command/blocklist.c (read_blocklist): Likewise.
12789 (print_blocklist): Likewise.
12791 2007-08-02 Marco Gerards <marco@gnu.org>
12793 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
12796 * disk/host.c: New file.
12798 * util/hostfs.c: Likewise.
12800 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
12801 return `GRUB_ERR_BAD_FS'.
12802 * fs/sfs.c (grub_sfs_mount): Likewise.
12803 * fs/xfs.c (grub_xfs_mount): Likewise.
12805 * include/grub/disk.h (enum grub_disk_dev_id): Add
12806 `GRUB_DISK_DEVICE_HOST_ID'.
12808 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
12810 2007-07-24 Jerone Young <jerone@gmail.com>
12812 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
12813 modules for compilation.
12814 * conf/powerpc-ieee1275.rmk: Likewise.
12816 * include/multiboot.h: Move multiboot definitions to one file. Rename
12817 many definitions to not get grub specific.
12818 * include/multiboot2.h: Create header with multiboot 2 definitions.
12819 * include/grub/multiboot.h: Header for grub specific function
12820 prototypes and definitions.
12821 * include/grub/multiboot2.h: Likewise.
12822 * include/grub/multiboot_loader.h: Likewise.
12823 * include/grub/i386/pc/multiboot.h: Removed.
12824 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
12826 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
12827 and 2 to allow for one multiboot and module commands.
12828 * loader/multiboot2.c: Add multiboot2 functionality.
12829 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
12830 and definition names.
12831 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
12833 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
12834 ieee1275 specific multiboot2 code.
12836 * kern/i386/pc/startup.S: Change headers and definition names for
12837 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
12839 2007-07-22 Robert Millan <rmh@aybabtu.com>
12841 * geninitheader.sh: Process file specified in first parameter rather
12842 than hardcoding grub_modules_init.lst.
12843 * geninit.sh: Likewise. Also, construct header name dynamically rather
12844 than hardcoding grub_modules_init.h.
12846 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
12847 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
12848 grub_probe_init.[ch] and grub_setup_init.[ch].
12850 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
12851 grub_modules_init.h with grub_emu_init.h.
12852 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
12853 grub_probe_init.[ch] files.
12854 * conf/i386-efi.rmk: Likewise.
12855 * conf/i386-pc.rmk: Likewise.
12856 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
12857 grub_setup_init.[ch] files.
12859 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
12860 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
12861 to initialize modules rather than a list of hardcoded functions.
12862 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
12863 grub_init_all() to initialize modules rather than a list of hardcoded
12866 2007-07-22 Robert Millan <rmh@aybabtu.com>
12868 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12869 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
12871 2007-07-22 Robert Millan <rmh@aybabtu.com>
12873 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
12874 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
12875 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
12876 flag when running on SmartFirmware.
12877 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
12878 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
12881 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12882 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
12883 rather than decreasing it.
12885 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
12886 there's not enough space to do it, fail in the same way as when it
12887 can't be done because there are no partitions.
12889 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
12890 when nvsetenv failed.
12892 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12894 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
12895 because this rule is automatically generated.
12896 (grub-mkrescue): Removed for the same reason as above.
12898 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12900 Migrate to GNU General Public License Version 3.
12902 * COPYING: Replaced with the plain text version of GPLv3.
12904 * config.guess: Updated from gnulib.
12905 * config.sub: Likewise.
12907 * geninit.sh: Output a GPLv3 copyright notice.
12908 * geninitheader.sh: Likewise.
12909 * genmodsrc.sh: Likewise.
12910 * gensymlist.sh.in: Likewise.
12912 * boot/i386/pc/boot.S: Upgraded to GPLv3.
12913 * boot/i386/pc/diskboot.S: Likewise.
12914 * boot/i386/pc/pxeboot.S: Likewise.
12915 * commands/blocklist.c: Likewise.
12916 * commands/boot.c: Likewise.
12917 * commands/cat.c: Likewise.
12918 * commands/cmp.c: Likewise.
12919 * commands/configfile.c: Likewise.
12920 * commands/echo.c: Likewise.
12921 * commands/help.c: Likewise.
12922 * commands/ls.c: Likewise.
12923 * commands/search.c: Likewise.
12924 * commands/terminal.c: Likewise.
12925 * commands/test.c: Likewise.
12926 * commands/videotest.c: Likewise.
12927 * commands/i386/cpuid.c: Likewise.
12928 * commands/i386/pc/halt.c: Likewise.
12929 * commands/i386/pc/play.c: Likewise.
12930 * commands/i386/pc/reboot.c: Likewise.
12931 * commands/i386/pc/vbeinfo.c: Likewise.
12932 * commands/i386/pc/vbetest.c: Likewise.
12933 * commands/ieee1275/halt.c: Likewise.
12934 * commands/ieee1275/reboot.c: Likewise.
12935 * commands/ieee1275/suspend.c: Likewise.
12936 * disk/loopback.c: Likewise.
12937 * disk/lvm.c: Likewise.
12938 * disk/raid.c: Likewise.
12939 * disk/efi/efidisk.c: Likewise.
12940 * disk/i386/pc/biosdisk.c: Likewise.
12941 * disk/ieee1275/ofdisk.c: Likewise.
12942 * font/manager.c: Likewise.
12943 * fs/affs.c: Likewise.
12944 * fs/ext2.c: Likewise.
12945 * fs/fat.c: Likewise.
12946 * fs/fshelp.c: Likewise.
12947 * fs/hfs.c: Likewise.
12948 * fs/hfsplus.c: Likewise.
12949 * fs/iso9660.c: Likewise.
12950 * fs/jfs.c: Likewise.
12951 * fs/minix.c: Likewise.
12952 * fs/sfs.c: Likewise.
12953 * fs/ufs.c: Likewise.
12954 * fs/xfs.c: Likewise.
12955 * hello/hello.c: Likewise.
12956 * include/grub/acorn_filecore.h: Likewise.
12957 * include/grub/arg.h: Likewise.
12958 * include/grub/bitmap.h: Likewise.
12959 * include/grub/boot.h: Likewise.
12960 * include/grub/cache.h: Likewise.
12961 * include/grub/device.h: Likewise.
12962 * include/grub/disk.h: Likewise.
12963 * include/grub/dl.h: Likewise.
12964 * include/grub/elfload.h: Likewise.
12965 * include/grub/env.h: Likewise.
12966 * include/grub/err.h: Likewise.
12967 * include/grub/file.h: Likewise.
12968 * include/grub/font.h: Likewise.
12969 * include/grub/fs.h: Likewise.
12970 * include/grub/fshelp.h: Likewise.
12971 * include/grub/gzio.h: Likewise.
12972 * include/grub/hfs.h: Likewise.
12973 * include/grub/kernel.h: Likewise.
12974 * include/grub/loader.h: Likewise.
12975 * include/grub/lvm.h: Likewise.
12976 * include/grub/misc.h: Likewise.
12977 * include/grub/mm.h: Likewise.
12978 * include/grub/net.h: Likewise.
12979 * include/grub/normal.h: Likewise.
12980 * include/grub/parser.h: Likewise.
12981 * include/grub/partition.h: Likewise.
12982 * include/grub/pc_partition.h: Likewise.
12983 * include/grub/raid.h: Likewise.
12984 * include/grub/rescue.h: Likewise.
12985 * include/grub/script.h: Likewise.
12986 * include/grub/setjmp.h: Likewise.
12987 * include/grub/symbol.h: Likewise.
12988 * include/grub/term.h: Likewise.
12989 * include/grub/terminfo.h: Likewise.
12990 * include/grub/tparm.h: Likewise.
12991 * include/grub/types.h: Likewise.
12992 * include/grub/video.h: Likewise.
12993 * include/grub/efi/api.h: Likewise.
12994 * include/grub/efi/chainloader.h: Likewise.
12995 * include/grub/efi/console.h: Likewise.
12996 * include/grub/efi/console_control.h: Likewise.
12997 * include/grub/efi/disk.h: Likewise.
12998 * include/grub/efi/efi.h: Likewise.
12999 * include/grub/efi/pe32.h: Likewise.
13000 * include/grub/efi/time.h: Likewise.
13001 * include/grub/i386/linux.h: Likewise.
13002 * include/grub/i386/setjmp.h: Likewise.
13003 * include/grub/i386/types.h: Likewise.
13004 * include/grub/i386/efi/kernel.h: Likewise.
13005 * include/grub/i386/efi/loader.h: Likewise.
13006 * include/grub/i386/efi/time.h: Likewise.
13007 * include/grub/i386/pc/biosdisk.h: Likewise.
13008 * include/grub/i386/pc/boot.h: Likewise.
13009 * include/grub/i386/pc/chainloader.h: Likewise.
13010 * include/grub/i386/pc/console.h: Likewise.
13011 * include/grub/i386/pc/init.h: Likewise.
13012 * include/grub/i386/pc/kernel.h: Likewise.
13013 * include/grub/i386/pc/loader.h: Likewise.
13014 * include/grub/i386/pc/memory.h: Likewise.
13015 * include/grub/i386/pc/multiboot.h: Likewise.
13016 * include/grub/i386/pc/serial.h: Likewise.
13017 * include/grub/i386/pc/time.h: Likewise.
13018 * include/grub/i386/pc/vbe.h: Likewise.
13019 * include/grub/i386/pc/vbeblit.h: Likewise.
13020 * include/grub/i386/pc/vbefill.h: Likewise.
13021 * include/grub/i386/pc/vbeutil.h: Likewise.
13022 * include/grub/i386/pc/vga.h: Likewise.
13023 * include/grub/ieee1275/ieee1275.h: Likewise.
13024 * include/grub/ieee1275/ofdisk.h: Likewise.
13025 * include/grub/powerpc/libgcc.h: Likewise.
13026 * include/grub/powerpc/setjmp.h: Likewise.
13027 * include/grub/powerpc/types.h: Likewise.
13028 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
13029 * include/grub/powerpc/ieee1275/console.h: Likewise.
13030 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
13031 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
13032 * include/grub/powerpc/ieee1275/loader.h: Likewise.
13033 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
13034 * include/grub/powerpc/ieee1275/time.h: Likewise.
13035 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
13036 * include/grub/sparc64/libgcc.h: Likewise.
13037 * include/grub/sparc64/setjmp.h: Likewise.
13038 * include/grub/sparc64/types.h: Likewise.
13039 * include/grub/sparc64/ieee1275/console.h: Likewise.
13040 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
13041 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13042 * include/grub/sparc64/ieee1275/time.h: Likewise.
13043 * include/grub/util/biosdisk.h: Likewise.
13044 * include/grub/util/getroot.h: Likewise.
13045 * include/grub/util/lvm.h: Likewise.
13046 * include/grub/util/misc.h: Likewise.
13047 * include/grub/util/raid.h: Likewise.
13048 * include/grub/util/resolve.h: Likewise.
13049 * io/gzio.c: Likewise.
13050 * kern/device.c: Likewise.
13051 * kern/disk.c: Likewise.
13052 * kern/dl.c: Likewise.
13053 * kern/elf.c: Likewise.
13054 * kern/env.c: Likewise.
13055 * kern/err.c: Likewise.
13056 * kern/file.c: Likewise.
13057 * kern/fs.c: Likewise.
13058 * kern/loader.c: Likewise.
13059 * kern/main.c: Likewise.
13060 * kern/misc.c: Likewise.
13061 * kern/mm.c: Likewise.
13062 * kern/parser.c: Likewise.
13063 * kern/partition.c: Likewise.
13064 * kern/rescue.c: Likewise.
13065 * kern/term.c: Likewise.
13066 * kern/efi/efi.c: Likewise.
13067 * kern/efi/init.c: Likewise.
13068 * kern/efi/mm.c: Likewise.
13069 * kern/i386/dl.c: Likewise.
13070 * kern/i386/efi/init.c: Likewise.
13071 * kern/i386/efi/startup.S: Likewise.
13072 * kern/i386/pc/init.c: Likewise.
13073 * kern/i386/pc/lzo1x.S: Likewise.
13074 * kern/i386/pc/startup.S: Likewise.
13075 * kern/ieee1275/ieee1275.c: Likewise.
13076 * kern/powerpc/cache.S: Likewise.
13077 * kern/powerpc/dl.c: Likewise.
13078 * kern/powerpc/ieee1275/cmain.c: Likewise.
13079 * kern/powerpc/ieee1275/crt0.S: Likewise.
13080 * kern/powerpc/ieee1275/init.c: Likewise.
13081 * kern/powerpc/ieee1275/openfw.c: Likewise.
13082 * kern/sparc64/cache.S: Likewise.
13083 * kern/sparc64/dl.c: Likewise.
13084 * kern/sparc64/ieee1275/init.c: Likewise.
13085 * kern/sparc64/ieee1275/openfw.c: Likewise.
13086 * loader/efi/chainloader.c: Likewise.
13087 * loader/efi/chainloader_normal.c: Likewise.
13088 * loader/i386/efi/linux.c: Likewise.
13089 * loader/i386/efi/linux_normal.c: Likewise.
13090 * loader/i386/pc/chainloader.c: Likewise.
13091 * loader/i386/pc/chainloader_normal.c: Likewise.
13092 * loader/i386/pc/linux.c: Likewise.
13093 * loader/i386/pc/linux_normal.c: Likewise.
13094 * loader/i386/pc/multiboot.c: Likewise.
13095 * loader/i386/pc/multiboot_normal.c: Likewise.
13096 * loader/powerpc/ieee1275/linux.c: Likewise.
13097 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13098 * normal/arg.c: Likewise.
13099 * normal/cmdline.c: Likewise.
13100 * normal/command.c: Likewise.
13101 * normal/completion.c: Likewise.
13102 * normal/execute.c: Likewise.
13103 * normal/function.c: Likewise.
13104 * normal/lexer.c: Likewise.
13105 * normal/main.c: Likewise.
13106 * normal/menu.c: Likewise.
13107 * normal/menu_entry.c: Likewise.
13108 * normal/misc.c: Likewise.
13109 * normal/parser.y: Likewise.
13110 * normal/script.c: Likewise.
13111 * normal/i386/setjmp.S: Likewise.
13112 * normal/powerpc/setjmp.S: Likewise.
13113 * normal/sparc64/setjmp.S: Likewise.
13114 * partmap/acorn.c: Likewise.
13115 * partmap/amiga.c: Likewise.
13116 * partmap/apple.c: Likewise.
13117 * partmap/gpt.c: Likewise.
13118 * partmap/pc.c: Likewise.
13119 * partmap/sun.c: Likewise.
13120 * term/gfxterm.c: Likewise.
13121 * term/terminfo.c: Likewise.
13122 * term/efi/console.c: Likewise.
13123 * term/i386/pc/console.c: Likewise.
13124 * term/i386/pc/serial.c: Likewise.
13125 * term/i386/pc/vesafb.c: Likewise.
13126 * term/i386/pc/vga.c: Likewise.
13127 * term/ieee1275/ofconsole.c: Likewise.
13128 * util/biosdisk.c: Likewise.
13129 * util/console.c: Likewise.
13130 * util/genmoddep.c: Likewise.
13131 * util/getroot.c: Likewise.
13132 * util/grub-emu.c: Likewise.
13133 * util/grub-mkdevicemap.c: Likewise.
13134 * util/grub-probe.c: Likewise.
13135 * util/lvm.c: Likewise.
13136 * util/misc.c: Likewise.
13137 * util/raid.c: Likewise.
13138 * util/resolve.c: Likewise.
13139 * util/update-grub.in: Likewise.
13140 * util/update-grub_lib.in: Likewise.
13141 * util/grub.d/00_header.in: Likewise.
13142 * util/grub.d/10_hurd.in: Likewise.
13143 * util/grub.d/10_linux.in: Likewise.
13144 * util/i386/efi/grub-install.in: Likewise.
13145 * util/i386/efi/grub-mkimage.c: Likewise.
13146 * util/i386/pc/grub-install.in: Likewise.
13147 * util/i386/pc/grub-mkimage.c: Likewise.
13148 * util/i386/pc/grub-mkrescue.in: Likewise.
13149 * util/i386/pc/grub-setup.c: Likewise.
13150 * util/i386/pc/misc.c: Likewise.
13151 * util/powerpc/ieee1275/grub-install.in: Likewise.
13152 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
13153 * util/powerpc/ieee1275/misc.c: Likewise.
13154 * video/bitmap.c: Likewise.
13155 * video/video.c: Likewise.
13156 * video/i386/pc/vbe.c: Likewise.
13157 * video/i386/pc/vbeblit.c: Likewise.
13158 * video/i386/pc/vbefill.c: Likewise.
13159 * video/i386/pc/vbeutil.c: Likewise.
13160 * video/readers/tga.c: Likewise.
13162 2007-07-02 Robert Millan <rmh@aybabtu.com>
13164 * conf/i386-efi.rmk: Replace obsolete reference to
13165 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
13166 with util/getroot.c.
13167 * conf/powerpc-ieee1275.rmk: Likewise.
13168 * conf/sparc64-ieee1275.rmk: Likewise.
13170 * util/grub-emu.c (main): Fix unchecked pointer handling.
13172 2007-07-02 Robert Millan <rmh@aybabtu.com>
13174 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
13175 invocation to fail, in order to support partition-less media.
13177 * util/i386/pc/grub-install.in: Likewise.
13179 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
13180 which fs or partmap modules are needed (akin to its sister scripts).
13182 Also use grub-probe to get rid of unportable /proc/mounts check.
13184 Print the same informational message that the other scripts do, before
13187 2007-06-23 Robert Millan <rmh@aybabtu.com>
13189 * util/update-grub_lib.in (font_path): New function. Determine whether
13190 a font file can be found and, if so, echo the GRUB path to it.
13192 * util/update-grub.in: Handle multiple terminals depending on user
13193 input, platform availability and font file presence. Propagate
13194 variables of our findings to /etc/grub.d/ children.
13196 * util/grub.d/00_header.in: Handle multiple terminals, based on
13197 environment setup by update-grub.
13199 2007-06-23 Robert Millan <rmh@aybabtu.com>
13201 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
13203 2007-06-21 Robert Millan <rmh@aybabtu.com>
13205 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
13206 indicate end of data section in kernel image.
13207 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
13208 GRUB_KERNEL_MACHINE_DATA_END.
13210 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
13212 * kern/i386/efi/startup.S: Likewise.
13214 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
13215 during image generation. Implement --prefix option to override this
13217 * util/i386/efi/grub-mkimage.c: Likewise.
13219 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
13220 code to make path relative to its root into a separate function.
13222 * util/i386/pc/grub-install.in: Use newly provided
13223 make_system_path_relative_to_its_root() to convert ${grubdir}, then
13224 pass the result to grub-install --prefix.
13226 2007-06-13 Robert Millan <rmh@aybabtu.com>
13228 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
13229 DEFAULT_DEVICE_MAP.
13230 * util/grub-emu.c: Use above definitions from misc.h instead of
13232 * util/grub-mkdevicemap.c: Likewise.
13233 * util/i386/pc/grub-setup.c: Likewise.
13234 * util/grub-probe.c: Likewise.
13235 (probe): Abort with grub_util_error() when either
13236 grub_guess_root_device or grub_util_get_grub_dev fails.
13238 2007-06-12 Robert Millan <rmh@aybabtu.com>
13240 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
13241 "pager" assignment.
13242 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
13244 * util/grub-probe.c (probe): Likewise for "drive_name".
13246 2007-06-11 Robert Millan <rmh@aybabtu.com>
13248 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
13249 not just the cdrom one.
13251 2007-06-11 Robert Millan <rmh@aybabtu.com>
13253 * util/i386/pc/grub-mkrescue.in: Add "set -e".
13254 Add --pkglibdir=DIR option to override pkglibdir.
13255 Mention --image-type=TYPE in help output.
13256 Fix --grub-mkimage (it was a no-op).
13257 Abort gracefully when no parameter is given.
13259 2007-06-11 Robert Millan <rmh@aybabtu.com>
13261 * util/i386/pc/grub-mkrescue.in: New file.
13262 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
13263 * Makefile.in: Handle bin_SCRIPTS.
13265 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
13267 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
13268 list of video modes.
13270 2007-06-06 Robert Millan <rmh@aybabtu.com>
13272 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
13273 file doesn't exist, or if it is in a filesystem grub can't read.
13275 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
13276 not abort if GRUB_DRIVE could not be defined. Rearrange generated
13277 header comment to fit in 80 columns when the variables are resolved.
13279 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
13280 could be identified by update-grub. Remove redundant check for
13281 unifont.pff existence (since convert_system_path_to_grub_path now
13284 2007-06-04 Robert Millan <rmh@aybabtu.com>
13286 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
13288 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
13290 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
13292 2007-06-04 Robert Millan <rmh@aybabtu.com>
13294 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
13296 * include/grub/partition.h: Declare grub_apple_partition_map_init and
13297 grub_apple_partition_map_fini.
13300 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
13301 to access >2 TiB disks).
13303 Print disk->total_sectors with %llu instead of %lu, since this
13304 variable is always 64-bit (prevents wrong disk size from being displayed
13305 on either >2 TiB disk or big-endian CPU).
13307 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
13308 into a generic case that supports all (sane) partition maps.
13310 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
13313 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
13314 and grub_apple_partition_map_fini() after that.
13316 2007-06-01 Robert Millan <rmh@aybabtu.com>
13318 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
13320 * util/grub.d/00_header.in: Only enable gfxterm when
13321 convert_system_path_to_grub_path() succeeds.
13323 2007-05-20 Robert Millan <rmh@aybabtu.com>
13325 * util/update-grub_lib.in: New file.
13326 * DISTLIST: Add update-grub_lib.in.
13327 * conf/common.rmk: Generate update-grub_lib and install it in
13329 * Makefile.in: Add install routine for $(lib_DATA).
13331 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
13332 function provided by update-grub_lib to support arbitrary paths of
13334 * util/update-grub.in: Use convert_system_path_to_grub_path() to
13335 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
13337 2007-05-19 Robert Millan <rmh@aybabtu.com>
13339 * commands/i386/cpuid.c: New module.
13340 * DISTLIST: Add it.
13341 * conf/i386-efi.rmk: Enable cpuid.mod.
13342 * conf/i386-pc.rmk: Likewise.
13344 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13346 * kern/disk.c (grub_disk_read): Check return value of
13349 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13351 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
13353 * disk/raid.c (grub_raid_open): Likewise.
13355 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13357 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
13358 stack instead of on the heap.
13360 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
13361 before doing a read on it.
13363 * configure.ac: Only use -fno-stack-protector for the target
13366 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13368 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
13369 __attribute_ ((unused)) to mode_type argument.
13371 * util/getroot.c (grub_guess_root_device): Fix #endif.
13373 * kern/misc.c (memcmp): Fix prototype.
13375 * include/grub/partition.h [GRUB_UTIL]
13376 (grub_gpt_partition_map_init): Add prototype.
13377 (grub_gpt_partition_map_fini): Likewise.
13379 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
13380 at the right place.
13382 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
13383 (grub_fat_read_data): Likewise.
13384 (grub_fat_find_dir): Likewise.
13386 * font/manager.c (find_glyph): Make table a const.
13387 (grub_font_get_glyph): Remove bitmap from if statement.
13389 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
13391 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
13392 code, first search for device in /dev/mapper, then in /dev.
13393 (grub_util_get_grub_dev): New function.
13394 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
13396 * util/grub-probe.c (probe): Remove check for RAID, call
13397 grub_util_get_grub_dev() instead of
13398 grub_util_biosdisk_get_grub_dev().
13399 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
13400 grub_util_biosdisk_get_grub_dev().
13401 * util/i386/pc/grub-setup.c (main): Likewise.
13403 2007-05-16 Robert Millan <rmh@aybabtu.com>
13405 * DISTLIST: Update for the latest changes.
13406 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
13407 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
13408 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
13409 grub/util/biosdisk.h.
13410 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
13411 grub/util/biosdisk.h.
13413 2007-05-16 Robert Millan <rmh@aybabtu.com>
13415 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
13417 2007-05-16 Robert Millan <rmh@aybabtu.com>
13419 * util/i386/efi/grub-install.in: New.
13420 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
13421 newly added grub-install.
13422 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
13424 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
13425 grub/util/biosdisk.h.
13426 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
13427 grub/util/biosdisk.h.
13429 2007-05-16 Robert Millan <rmh@aybabtu.com>
13431 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
13432 * include/grub/util/biosdisk.h: ... here.
13433 * util/i386/pc/biosdisk.c: Moved to ...
13434 * util/biosdisk.c: ... here.
13435 * util/i386/pc/getroot.c: Moved to ...
13436 * util/getroot.c: ... here.
13437 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
13438 * util/grub-mkdevicemap.c: ... here.
13439 * util/i386/pc/grub-probe.c: Moved to ...
13440 * util/grub-probe.c: ... here.
13442 2007-05-15 Robert Millan <rmh@aybabtu.com>
13444 * util/update-grub.in: Remove duplicated line in grub.cfg header
13447 2007-05-13 Robert Millan <rmh@aybabtu.com>
13449 * util/update-grub.in: Fix a few assumptions about the devices holding
13450 /, /boot and /boot/grub being the same.
13451 * util/grub.d/00_header.in: Likewise.
13452 * util/grub.d/10_hurd.in: Likewise.
13453 * util/grub.d/10_linux.in: Likewise.
13455 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
13456 patterns. Use that to define the `.old' suffix as older than `'.
13458 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
13460 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
13461 the grub.cfg header message.
13463 2007-05-11 Robert Millan <rmh@aybabtu.com>
13465 * util/update-grub.in: Create device.map if it doesn't already exist,
13466 before attempting to run grub-probe.
13467 Check for grub-probe and grub-mkdevicemap with the same code
13468 grub-install is using.
13471 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
13473 * Makefile.in: Add the datarootdir autoconf variable.
13475 2007-05-09 Robert Millan <rmh@aybabtu.com>
13477 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
13478 fail gracefully if dev->disk->partition == NULL.
13480 2007-05-07 Robert Millan <rmh@aybabtu.com>
13482 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
13483 determine partition map module.
13484 * util/i386/pc/grub-install.in: Use this feature to decide which
13485 partition module to load, instead of hardcoding pc and gpt.
13487 2007-05-07 Robert Millan <rmh@aybabtu.com>
13489 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
13490 source directory differs from build directory.
13492 2007-05-05 Robert Millan <rmh@aybabtu.com>
13494 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
13497 2007-05-05 Robert Millan <rmh@aybabtu.com>
13499 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
13501 2007-05-05 Robert Millan <rmh@aybabtu.com>
13503 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
13504 command-line arguments via ${GRUB_CMDLINE_LINUX}.
13506 2007-05-05 Robert Millan <rmh@aybabtu.com>
13508 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
13509 (grub_probe_SOURCES): Likewise.
13510 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
13511 GPT and initialize dos_part and bsd_part accordingly.
13512 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
13514 (main): Activate gpt module for use during partition identification,
13515 and deactivate it afterwards.
13516 * util/i386/pc/grub-install.in: Add gpt module to core.img.
13517 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
13518 partition identification, and deactivate it afterwards.
13520 2007-05-05 Robert Millan <rmh@aybabtu.com>
13522 * term/i386/pc/console.c (grub_console_fini): Call
13523 grub_term_set_current() before grub_term_unregister().
13525 2007-05-04 Robert Millan <rmh@aybabtu.com>
13527 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
13528 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
13529 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
13530 and update-grub_DATA.
13531 * conf/common.rmk: Build and install update-grub components.
13532 * conf/common.mk: Regenerate.
13533 * util/update-grub.in: New. Core of update-grub.
13534 * util/grub.d/00_header.in: New. Generates grub.cfg header.
13535 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
13536 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
13537 * util/grub.d/README: New. Document grub.d directory layout.
13539 2007-05-01 Robert Millan <rmh@aybabtu.com>
13541 * util/grub-emu.c: Move initialization functions
13542 grub_util_biosdisk_init() and grub_init_all() before
13543 grub_util_biosdisk_get_grub_dev(), which relies on them.
13545 2007-04-19 Robert Millan <rmh@aybabtu.com>
13547 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
13550 2007-04-18 Jerone Young <jerone@gmail.com>
13552 * kernel/elf.c: Add missing parenthesis for conditional statement
13555 2007-04-10 Jerone Young <jerone@gmail.com>
13557 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
13558 continue on and look for device node with real device name.
13560 2007-04-10 Jerone Young <jerone@gmail.com>
13562 * configure.ac: Add argument for autoconf to use transformation
13564 * Makefile.in: Add autoconf package transformation code.
13565 * util/i386/pc/grub-install.in: Likewise.
13566 * util/powerpc/ieee1275/grub-install.in: Likewise.
13568 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
13570 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
13571 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
13572 (EXT2_REVISION): Likewise.
13573 (EXT2_INODE_SIZE): Likewise.
13574 (struct grub_ext2_block_group): Added a missing member
13576 (grub_ext2_read_inode): Divide by the inode size in a superblock
13577 instead of 128 to obtain INODES_PER_BLOCK.
13578 Use the macro EXT2_INODE_SIZE instead of directly using
13579 SBLOCK->INODE_SIZE.
13581 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
13583 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
13584 superblock instead of the structure size to compute an
13585 offset. This fixes the problem that GRUB could not read a
13586 filesystem when inode size is different from 128-byte.
13588 2007-03-05 Marco Gerards <marco@gnu.org>
13590 * normal/main.c (read_config_file): When "menu" is not set, create
13591 an initial context.
13593 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13595 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
13596 (HEAP_LIMIT): New macro.
13597 (grub_claim_heap): Claim memory up to `heaplimit'.
13599 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13601 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
13602 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
13603 (_start): Likewise.
13604 (grub_arch_modules_addr): Return address after `_end'.
13605 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
13606 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
13607 (add_segments): Calculate `_end' from phdr size and location.
13608 (ALIGN_UP): Moved to ...
13609 * include/grub/misc.h: here.
13610 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
13612 (GRUB_IEEE1275_MODULE_BASE): Removed.
13614 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13616 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
13619 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13621 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
13623 (grub_elf64_load_hook_t): Likewise.
13624 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
13627 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13629 * kern/mm.c: Update copyright.
13630 (grub_mm_debug): Correct syntax error.
13631 (grub_mm_dump_free): New function.
13632 (grub_debug_free): Call `grub_free'.
13633 * include/grub/mm.h: Update copyright.
13634 (grub_mm_dump_free): Add declaration.
13636 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13638 * include/grub/ieee1275/ieee1275.h: Update copyright.
13639 * kern/powerpc/ieee1275/init.c: Likewise.
13640 * kern/powerpc/ieee1275/openfw.c: Likewise.
13642 * loader/powerpc/ieee1275/linux.c: Likewise.
13643 * include/grub/elfload.h: Likewise.
13644 * kern/elf.c: Likewise.
13645 (grub_elf32_load): Pass `base' and `size' parameters. Update all
13647 (grub_elf64_load): Likewise.
13648 (grub_elf32_load_segment): Move to a nested function.
13649 (grub_elf64_load_segment): Likewise.
13651 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13653 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
13655 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
13656 (grub_heap_len): Likewise.
13657 (HEAP_SIZE): New macro.
13658 (grub_claim_heap): New function.
13659 (grub_machine_init): Don't claim heap directly. Call
13661 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
13662 (grub_available_iterate): New function.
13664 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
13666 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
13667 * configure.ac: Use it for testing the HOST and TARGET compilers.
13669 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
13671 * Makefile.in (enable_grub_emu): New variable.
13672 * configure.ac (--enable-grub-emu): New option.
13673 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
13674 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
13675 * conf/i386-pc.rmk: Likewise.
13676 * conf/powerpc-ieee1275.rmk: Likewise.
13677 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
13679 2006-12-12 Marco Gerards <marco@gnu.org>
13681 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
13683 * kern/env.c (grub_env_unset): Don't free the member `value' when
13684 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
13687 * normal/main.c (current_menu): Removed.
13688 (free_menu): Unset the `menu' environment variable.
13689 (grub_normal_menu_addentry): Make use of the environment variable
13690 `menu', instead of using the global `current_menu'. Allocate
13691 memory for the sourcecode of this entry.
13692 (read_config_file): New argument `nested', changed all callers.
13693 Only in the case of a new context, initialize a new menu. Set the
13694 `menu' environment variable.
13695 (grub_normal_execute): Don't set and unset the environment
13696 variable `menu' here anymore. Only free the menu when leaving the
13699 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
13702 2006-12-11 Marco Gerards <marco@gnu.org>
13704 * normal/menu_entry.c (run): Fix off by one bug so the last line
13705 is executed. Move the loader check to outside the loop.
13707 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
13709 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
13711 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
13713 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
13714 the number of sectors. Reported by Andrey Shuvikov
13715 <mr_hyro@yahoo.com>.
13717 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
13719 * kern/disk.c (grub_disk_read): When there is a read error, always
13720 try to read only the necessary data.
13722 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
13724 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
13726 [GRUB_UTIL] (grub_raid_fini): Likewise.
13727 [GRUB_UTIL] (grub_lvm_init): Likewise.
13728 [GRUB_UTIL] (grub_lvm_fini): Likewise.
13729 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
13730 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
13731 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
13732 and grub_raid_fini().
13734 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
13736 * include/grub/types.h (__unused): Rename to UNUSED.
13737 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
13738 (grub_elf64_size): Likewise.
13740 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13742 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
13743 grub_error_push and grub_error_pop in the error-handling path.
13744 (grub_elf32_load_segment): Only call grub_file_read with non-zero
13747 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13749 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
13750 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13751 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13752 (kernel_elf_SOURCES): Likewise.
13753 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
13754 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
13755 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13756 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13757 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
13758 (elf_mod_SOURCES): New variable.
13759 (elf_mod_CFLAGS): Likewise.
13760 (elf_mod_LDFLAGS): Likewise.
13761 * include/grub/types.h (__unused): New macro.
13762 * include/grub/elfload.h: New file.
13763 * kern/elf.c: Likewise.
13764 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
13765 (ELF32_LOADMASK): New macro.
13766 (ELF64_LOADMASK): Likewise.
13767 (vmlinux): Removed.
13768 (grub_linux_load32): New function.
13769 (grub_linux_load64): Likewise.
13770 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
13771 Use grub_elf_t instead of grub_file_t.
13773 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
13775 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
13776 `catch_result' to struct set_color_args.
13778 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
13780 * normal/menu.c: Include grub/script.h.
13781 * normal/menu_entry.c: Likewise.
13782 * include/grub/normal.h: Do not include grub/script.h.
13784 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13786 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
13788 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13790 * kern/disk.c (grub_disk_open): Print debug messages when opening a
13792 (grub_disk_close): Print debug messages when closing a disk.
13793 (grub_disk_read): Print debug messages when disk read fails.
13794 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
13796 * kern/partition.c: Include misc.h.
13797 (grub_partition_iterate): Print debug messages when detecting
13800 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13802 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
13804 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
13806 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
13808 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13809 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
13811 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
13813 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
13814 instead of sizeof(lv). Patch by Michael Guntsche.
13816 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
13818 * disk/lvm.c: Rename VGS to VG_LIST.
13819 (grub_lvm_iterate): Change VGS->LV to VG-LV.
13820 (grub_lvm_open): Likewise.
13821 Thanks to Michael Guntsche for finding this bug.
13823 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
13825 * configure.ac (AC_INIT): Bumped to 1.95.
13827 2006-10-14 Robert Millan <rmh@aybabtu.com>
13829 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
13830 with "/dev/.static/dev/md".
13832 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13834 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
13835 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
13836 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
13837 DRIVE_NAME are always freed.
13839 * util/i386/pc/biosdisk.c (make_device_name): Add one into
13840 DOS_PART, as a DOS partition is counted from one instead of zero
13841 now. Reported by Robert Millan.
13843 2006-10-14 Robert Millan <rmh@aybabtu.com>
13845 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
13846 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
13847 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
13848 string returned by grub_guess_root_device.
13849 * util/i386/pc/grub-setup.c: Likewise.
13850 * util/i386/pc/grub-probefs.c: Likewise.
13852 * util/i386/pc/grub-probefs.c: Rename to ...
13853 * util/i386/pc/grub-probe.c: ... this.
13854 * DISTLIST: Remove grub-probefs, add grub-probe.
13855 * conf/i386-efi.rmk: Likewise.
13856 * conf/i386-pc.rmk: Likewise.
13857 * util/i386/pc/grub-install.in: Likewise.
13859 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
13860 choose which information we want to print.
13862 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13864 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
13865 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
13866 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
13867 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
13868 video/readers/tga.c and video/i386/pc/vbeutil.c.
13870 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
13872 Added support for RAID and LVM.
13874 * disk/lvm.c: New file.
13875 * disk/raid.c: Likewise.
13876 * include/grub/lvm.h: Likewise.
13877 * include/grub/raid.h: Likewise.
13878 * include/grub/util/lvm.h: Likewise.
13879 * include/grub/util/raid.h: Likewise.
13880 * util/lvm.c: Likewise.
13881 * util/raid.c: Likewise.
13883 * include/grub/disk.h (grub_disk_dev_id): Add
13884 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
13885 (grub_disk_get_size): New prototype.
13886 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
13887 returns a partition.
13888 (grub_disk_get_size): New function.
13890 * kern/i386/pc/init.c (make_install_device): Copy the prefix
13891 verbatim if grub_install_dos_part is -2.
13893 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
13896 * util/i386/pc/grub-setup.c (setup): New argument
13897 MUST_EMBED. Force embedding of GRUB when the argument is
13898 true. Close FILE before returning.
13899 (main): Add support for RAID and LVM.
13901 * conf/common.rmk: Add RAID and LVM modules.
13902 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
13904 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
13906 * kern/misc.c (grub_strstr): New function.
13907 * include/grub/misc.h (grub_strstr): New prototype.
13909 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
13911 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
13913 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
13915 * kern/misc.c (grub_strtoull): Guess the base only if not
13918 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13920 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
13923 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13925 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
13927 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
13928 Remove `flags' argument. All callers changed.
13929 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
13930 (IEEE1275_IHANDLE_INVALID): New variable.
13931 (IEEE1275_CELL_INVALID): New variable.
13932 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
13933 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
13934 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
13935 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
13936 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
13937 codes from Open Firmware. All callers updated.
13938 (grub_ieee1275_next_property): Directly return Open Firmware return
13940 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
13941 Standardize error checking from `grub_ieee1275_get_property'.
13942 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
13943 `devalias' to `aliases'. Correct comments. Consolidate error paths.
13945 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13947 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
13948 `instance_to_package_args' to `instance_to_path_args'.
13950 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
13951 `grub_ieee1275_chosen'.
13953 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
13954 `grub_ieee1275_interpret'.
13956 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13958 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
13960 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13962 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
13963 (__cmpdi): Likewise.
13965 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
13966 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
13969 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
13971 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
13972 to type `grub_ssize_t'.
13973 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
13975 2006-09-22 Marco Gerards <marco@gnu.org>
13977 * normal/script.c (grub_script_create_cmdmenu): Skip leading
13980 2006-09-22 Marco Gerards <marco@gnu.org>
13982 * commands/echo.c: New file.
13984 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
13986 * conf/common.rmk (echo_mod_SOURCES): New variable.
13987 (echo_mod_CFLAGS): Likewise.
13988 (echo_mod_LDFLAGS): Likewise.
13990 2006-09-22 Marco Gerards <marco@gnu.org>
13992 * normal/main.c (get_line): Malloc memory instead of using
13993 preallocated memory. Removed the arguments `cmdline' and
13994 `max_len'. Updated all callers.
13996 2006-09-22 Marco Gerards <marco@gnu.org>
13998 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
13999 (normal_mod_DEPENDENCIES): Likewise.
14001 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
14002 (normal_mod_DEPENDENCIES): Likewise.
14004 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
14006 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
14008 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
14010 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
14011 (normal_mod_DEPENDENCIES): Likewise.
14012 * conf/i386-pc.mk: Regenerate.
14013 * conf/i386-efi.mk: Likewise
14014 * conf/common.mk: Likewise.
14015 * conf/powerpc-ieee1275.mk: Likewise.
14016 * conf/sparc64-ieee1275.mk: Likewise.
14018 2006-09-22 Robert Millan <rmh@aybabtu.com>
14020 Sync with i386 version.
14021 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
14022 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
14024 2006-09-21 Robert Millan <rmh@aybabtu.com>
14026 Import from GRUB Legacy (lib/device.c):
14027 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
14028 (init_device_map) [__linux__]: Add support for I2O devices.
14030 2006-09-14 Marco Gerards <marco@gnu.org>
14032 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
14035 2006-09-14 Robert Millan <rmh@aybabtu.com>
14037 * util/i386/pc/grub-install.in: Skip menu.lst when removing
14040 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
14042 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
14043 before adding it to device.map.
14045 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
14047 * genmk.rb: Let GCC generate dependencies the first time it
14048 compiles a file; using the -MD option.
14049 * conf/common.mk: Regenerate.
14050 * conf/i386-pc.mk: Likewise.
14051 * conf/i386-efi.mk: Likewise.
14052 * conf/powerpc-ieee1275.mk: Likewise.
14053 * conf/sparc64-ieee1275.mk: Likewise.
14055 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
14057 Move the prototypes of grub_setjmp and grub_longjmp to
14058 cpu/setjmp.h, so that each architecture may specify different
14061 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
14062 (grub_longjmp): Likewise.
14063 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
14064 (grub_longjmp): Likewise.
14065 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
14066 (grub_longjmp): Likewise.
14068 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
14069 [!GRUB_UTIL] (grub_longjmp): Removed.
14071 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
14073 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
14074 "color!" method does not return any value.
14076 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14078 * include/grub/bitmap.h: New file.
14080 * include/grub/i386/pc/vbeutil.h: Likewise.
14082 * video/bitmap.c: Likewise.
14084 * video/readers/tga.c: Likewise.
14086 * video/i386/pc/vbeutil.c: Likewise.
14088 * commands/videotest.c: Code cleanup and updated to reflect to new
14091 * term/gfxterm.c: Likewise.
14093 * video/video.c: Likewise.
14095 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
14096 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
14097 (bitmap_mod_SOURCES): New entry.
14098 (bitmap_mod_CFLAGS): Likewise.
14099 (bitmap_mod_LDFLAGS): Likewise.
14100 (tga_mod_SOURCES): Likewise.
14101 (tga_mod_CFLAGS): Likewise.
14102 (tga_mod_LDFLAGS): Likewise.
14104 * include/grub/video.h (grub_video_blit_operators): New enum type.
14105 (grub_video_render_target): Changed as forward declaration and moved
14106 actual definition to be video driver specific.
14107 (grub_video_adapter.blit_bitmap): Added blitting operator.
14108 (grub_video_adapter.blit_render_target): Likewise.
14109 (grub_video_blit_bitmap): Likewise.
14110 (grub_video_blit_render_target): Likewise.
14112 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
14113 driver specific render target definition.
14114 (grub_video_vbe_map_rgba): Added driver internal helper.
14115 (grub_video_vbe_unmap_color): Updated to use
14116 grub_video_i386_vbeblit_info.
14117 (grub_video_vbe_get_video_ptr): Likewise.
14119 * include/grub/i386/pc/vbeblit.h
14120 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
14121 grub_video_i386_vbeblit_info.
14122 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14123 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14124 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14125 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14126 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14127 (grub_video_i386_vbeblit_index_index): Likewise.
14128 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
14129 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14130 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14131 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
14133 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
14136 * video/i386/pc/vbeblit.c: Updated to reflect changes on
14137 include/grub/i386/pc/vbeblit.h.
14139 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
14140 Updated to use grub_video_i386_vbeblit_info.
14141 (grub_video_i386_vbefill_R8G8B8): Likewise.
14142 (grub_video_i386_vbefill_index): Likewise.
14143 (grub_video_i386_vbefill): Added generic filler.
14145 * video/i386/pc/vbefill.c: Updated to reflect changes on
14146 include/grub/i386/pc/vbefill.h.
14148 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
14149 grub_video_i386_vbeblit_info.
14150 (grub_video_vbe_unmap_color): Likewise.
14151 (grub_video_vbe_blit_glyph): Likewise.
14152 (grub_video_vbe_scroll): Likewise.
14153 (grub_video_vbe_draw_pixel): Removed function.
14154 (grub_video_vbe_get_pixel): Likewise.
14155 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
14156 updated code to use it.
14157 (common_blitter): Added common blitter for render target and bitmap.
14158 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
14159 (grub_video_vbe_blit_render_target): Likewise.
14161 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
14163 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
14164 is in text mode if there is no console control protocol instance
14167 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14169 * include/grub/video.h: Code cleanup.
14171 * include/grub/i386/pc/vbe.h: Likewise.
14173 * video/i386/pc/vbe.c: Likewise.
14175 * video/i386/pc/vbeblit.c: Likewise.
14177 * video/i386/pc/vbefill.c: Likewise.
14179 * video/video.c: Likewise. Also added more comments.
14181 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14183 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
14184 (struct grub_biosdisk_dap): Likewise.
14186 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
14187 linkage settings for all functions.
14189 2006-07-12 Marco Gerards <marco@gnu.org>
14191 * configure.ac (--enable-mm-debug): Fix typo.
14193 * genkernsyms.sh.in: Use proper quoting for `CC'.
14195 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
14197 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
14198 (normal_mod_ASFLAGS): Remove "-m32".
14200 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
14202 * util/misc.c: Include config.h.
14203 [!HAVE_MEMALIGN]: Do not include malloc.h.
14204 (grub_memalign): Use posix_memalign, if present. Then, use
14205 memalign, if present. Otherwise, emit an error.
14207 * util/grub-emu.c: Do not include malloc.h.
14209 * include/grub/util/misc.h: Include unistd.h. This is required for
14210 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
14211 D. Eades III <hde@foobar-qux.org>.
14213 * configure.ac (AC_GNU_SOURCE): Added.
14214 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
14217 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
14219 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
14220 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
14222 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
14224 * include/grub/types.h (grub_host_addr_t): Rename to
14225 grub_target_addr_t.
14226 (grub_host_off_t): Rename to grub_target_off_t.
14227 (grub_host_size_t): Rename to grub_target_size_t.
14228 (grub_host_ssize_t): Rename to grub_target_ssize_t.
14229 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
14231 * include/grub/kernel.h (struct grub_module_header): Change type
14232 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
14233 (grub_module_info): Likewise.
14235 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14237 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
14238 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
14239 Velazquez <jesus.velazquez@gmail.com>.
14241 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14243 Count partitions from 1 instead of 0 in the string representation
14244 of partitions. Still use 0-based internally.
14246 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
14247 (sun_partition_map_iterate): Use grub_partition_t instead of
14248 struct grub_partition *. Cast DESC->START_CYLINDER to
14249 grub_uint64_t after converting the endian.
14250 (sun_partition_map_probe): Subtract 1 for PARTNUM.
14251 (sun_partition_map_get_name): Add 1 to P->INDEX.
14253 * partmap/pc.c (grub_partition_parse): Subtract 1 for
14255 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
14257 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
14258 zero instead of one.
14259 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
14260 (gpt_partition_map_get_name): Add 1 into P->INDEX.
14262 * partmap/apple.c (apple_partition_map_iterate): Change the type
14263 of POS to unsigned.
14264 (apple_partition_map_probe): Subtract 1 for PARTNUM.
14265 (apple_partition_map_get_name): Add 1 into P->INDEX.
14267 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
14268 of POS to unsigned.
14269 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
14270 calculate the offset of a partition.
14271 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
14272 (amiga_partition_map_get_name): Add 1 into P->INDEX.
14274 * partmap/acorn.c (acorn_partition_map_find): Change the type of
14275 SECTOR to grub_disk_addr_t.
14276 (acorn_partition_map_iterate): Likewise.
14277 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
14278 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
14280 (acorn_partition_map_get_name): Add 1 into P->INDEX.
14282 * kern/i386/pc/init.c (make_install_device): Add 1 into
14283 GRUB_INSTALL_DOS_PART.
14285 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
14288 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14290 Clean up the code to support 64-bit addressing in disks and
14291 files. This change is not enough for filesystems yet.
14293 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
14294 type of "start" to grub_uint64_t.
14295 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
14296 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
14297 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
14300 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
14301 to grub_disk_addr_t.
14303 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
14306 * partmap/pc.c (pc_partition_map_iterate): Likewise.
14308 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
14311 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
14313 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
14315 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
14317 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
14318 to grub_off_t, to detect an error from grub_file_seek.
14319 (grub_multiboot_load_elf32): Likewise.
14321 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
14322 maximum unsigned long value when an overflow is detected.
14323 (grub_strtoull): New function.
14324 (grub_divmod64): Likewise.
14325 (grub_lltoa): use grub_divmod64.
14327 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
14329 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
14330 the pointer to next character. Use grub_strtoull instead of
14332 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
14333 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
14336 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
14337 return value is signed.
14338 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
14339 test if OFFSET is less than zero, as OFFSET is unsigned now.
14341 * kern/disk.c (struct grub_disk_cache): Change the type of
14342 "sector" to grub_disk_addr_t.
14343 (grub_disk_cache_get_index): Change the type of SECTOR to
14344 grub_disk_addr_t. Calculate the hash with SECTOR casted to
14345 unsigned after shifting.
14346 (grub_disk_cache_invalidate): Change the type of SECTOR to
14348 (grub_disk_cache_unlock): Likewise.
14349 (grub_disk_cache_store): Likewise.
14350 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
14351 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
14352 grub_disk_addr_t and grub_uint64_t, respectively.
14353 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
14354 body, as the value of OFFSET is tweaked by
14355 grub_disk_check_range. Change the types of START_SECTOR, LEN and
14356 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
14358 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
14359 body, as the value of OFFSET is tweaked by
14360 grub_disk_check_range. Change the types of LEN and N to
14363 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
14364 and "saved_offset" to grub_off_t.
14365 (test_header): Cast BUF to char *.
14366 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
14368 (grub_gzio_read): Change the types of OFFSET and SIZE to
14369 grub_off_t and grub_size_t, respectively.
14371 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
14373 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
14374 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
14375 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
14376 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
14377 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
14379 * include/grub/types.h (grub_off_t): Unconditionally set to
14381 (grub_disk_addr_t): Changed to grub_uint64_t.
14383 * include/grub/partition.h (struct grub_partition): Change the
14384 types of "start", "len" and "offset" to grub_disk_addr_t,
14385 grub_uint64_t and grub_disk_addr_t, respectively.
14386 (grub_partition_get_start): Return grub_disk_addr_t.
14387 (grub_partition_get_len): Return grub_uint64_t.
14389 * include/grub/misc.h (grub_strtoull): New prototype.
14390 (grub_divmod64): Likewise.
14392 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
14393 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
14394 grub_off_t, respectively.
14395 All callers and references changed.
14397 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
14398 grub_size_t in "read".
14399 All callers and references changed.
14401 * include/grub/file.h (struct grub_file): Change the types of
14402 "offset" and "size" to grub_off_t and grub_off_t,
14403 respectively. Change the type of SECTOR to grub_disk_addr_t in
14405 (grub_file_read): Change the type of LEN to grub_size_t.
14406 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
14408 (grub_file_size): Return grub_off_t.
14409 (grub_file_tell): Likewise.
14410 All callers and references changed.
14412 * include/grub/disk.h (struct grub_disk_dev): Change the types of
14413 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
14415 (struct grub_disk): Change the type of "total_sectors" to
14416 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
14418 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
14419 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
14420 (grub_disk_write): Likewise.
14421 All callers and references changed.
14423 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
14424 char * for grub_strncmp to silence gcc.
14425 (grub_iso9660_mount): Likewise.
14426 (grub_iso9660_mount): Likewise.
14427 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
14429 (grub_iso9660_iterate_dir): Likewise.
14430 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
14432 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
14433 LEN to grub_disk_addr_t and grub_size_t, respectively.
14435 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
14437 * fs/jfs.c (grub_jfs_read_file): Likewise.
14439 * fs/minix.c (grub_jfs_read_file): Likewise.
14441 * fs/sfs.c (grub_jfs_read_file): Likewise.
14443 * fs/ufs.c (grub_jfs_read_file): Likewise.
14445 * fs/xfs.c (grub_jfs_read_file): Likewise.
14447 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
14448 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
14451 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
14452 BLKNR to -1 instead of returning GRUB_ERRNO.
14453 (grub_ext2_read_file): Change the types of SECTOR and
14454 LEN to grub_disk_addr_t and grub_size_t, respectively.
14456 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
14457 LEN to grub_disk_addr_t and grub_size_t, respectively.
14459 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
14462 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
14463 string. Do not cast SECTOR explicitly.
14465 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
14466 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
14467 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
14468 grub_disk_addr_t and grub_size_t, respectively. If the sector is
14469 over 2TB and LBA mode is not supported, raise an error.
14470 (get_safe_sectors): New function.
14471 (grub_biosdisk_read): Use get_safe_sectors.
14472 (grub_biosdisk_write): Likewise.
14474 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
14475 (grub_efidisk_write): Likewise.
14477 * disk/loopback.c (delete_loopback): Cosmetic changes.
14478 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
14480 (grub_loopback_open): Likewise.
14481 (grub_loopback_read): Likewise. Also, change the type of POS to
14482 grub_off_t, and fix the usage of grub_memset.
14484 * commands/i386/pc/play.c: Include grub/machine/time.h.
14486 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
14489 * commands/configfile.c: Include grub/env.h.
14491 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
14492 GRUB_ERRNO directly instead. Change the type of POS to
14493 grub_off_t. Follow the coding standard.
14495 * commands/blocklist.c: Include grub/partition.h.
14496 (grub_cmd_blocklist): Return an error if the underlying device is
14497 not a disk. Take the starting sector of a partition into account,
14498 if a partition is used.
14500 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
14502 (lba_mode): Support 64-bit addresses.
14503 (chs_mode): Likewise.
14504 (copy_buffer): Adapted to the new offsets of a length field and a
14506 (blocklist_default_start): Allocate 64-bit space.
14508 * boot/i386/pc/boot.S (force_lba): Removed.
14509 (boot_drive): Moved to under KERNEL_SECTOR.
14510 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
14512 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
14514 (lba_mode): Refactored to support a 64-bit address. More size
14516 (setup_sectors): Likewise.
14518 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14520 * DISTLIST: Added include/grub/i386/linux.h. Removed
14521 include/grub/i386/pc/linux.h
14523 * configure.ac (AC_INIT): Bumped to 1.94.
14525 * config.guess: Updated from gnulib.
14526 * config.sub: Likewise.
14527 * install-sh: Likewise.
14528 * mkinstalldirs: Likewise.
14530 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14532 * conf/common.rmk (grub_modules_init.lst): Depended on
14533 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
14536 * genmk.rb (PModule::rule): Reverted the previous change.
14538 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14540 * conf/common.rmk (grub_modules_init.lst): Depends on
14541 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
14542 that the target does not exist before producing.
14543 (grub_modules_init.h): Remove the target before generating.
14544 (grub_emu_init.c): Likewise.
14546 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
14548 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
14550 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
14551 for the target-specific tests. Make sure that we also have the
14552 up-to-date target variables for those tests.
14554 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14556 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
14557 (PModule::rule): Likewise.
14559 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14561 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
14562 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
14563 target-specific flags should be prefixed.
14564 (PModule::rule): Likewise.
14566 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
14568 * configure.ac (CMP): Check if cmp is available explicitly.
14570 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
14572 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
14573 (target_cpu): New variable.
14574 (pkglibdir): Use target_cpu instead of host_cpu.
14576 * util/i386/pc/grub-install.in (host_cpu): Removed.
14577 (target_cpu): New variable.
14578 (pkglibdir): Use target_cpu instead of host_cpu.
14580 * util/genmoddep.c: Removed.
14582 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
14583 instead of GRUB_HOST_SIZEOF_VOID_P.
14584 * kern/dl.c: Likewise.
14586 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
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/powerpc/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.
14600 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14602 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14603 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14604 (GRUB_TARGET_SIZEOF_LONG): ... this.
14605 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14606 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14608 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
14609 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
14610 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
14611 instead of GRUB_HOST_SIZEOF_LONG.
14612 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
14613 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
14614 GRUB_CPU_WORDS_BIGENDIAN.
14615 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
14616 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
14619 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
14620 (genmoddep_SOURCES): Likewise.
14621 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
14622 (genmoddep_SOURCES): Likewise.
14623 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
14624 (genmoddep_SOURCES): Likewise.
14625 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
14627 (genmoddep_SOURCES): Likewise.
14629 * genmoddep.awk: New file.
14631 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
14632 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
14633 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
14634 (PModule::rule): Likewise.
14635 (Program::rule): Likewise.
14636 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
14637 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
14640 * configure.ac: Rewritten intensively to use host and target
14641 instead of build and host, respectively.
14643 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
14644 (host_cpu): Removed.
14645 (target_cpu): New variable.
14646 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
14647 (BUILD_CC): Removed.
14648 (BUILD_CFLAGS): Likewise.
14649 (BUILD_CPPFLAGS): Likewise.
14650 (TARGET_CC): New variable.
14651 (TARGET_CFLAGS): Likewise.
14652 (TARGET_CPPFLAGS): Likewise.
14653 (TARGET_LDFLAGS): Likewise.
14655 (include): Use target_cpu instead of host_cpu.
14656 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
14658 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
14660 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
14662 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
14663 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
14664 field 'false' to 'exec_on_false'.
14665 (grub_script_create_cmdif): Renamed argument names to reflect above
14668 * normal/execute.c (grub_script_execute_cmdif): Likewise.
14670 * normal/script.c (grub_script_create_cmdif): Likewise.
14672 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
14674 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
14676 (grub_hfsplus_btree_recptr): Likewise.
14677 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
14678 FILEBLOCK both to pass a block number and store next block
14680 (grub_hfsplus_read_block): Rewritten heavily to support an extent
14681 overflow file correctly. Specify errors appropriately, because
14682 fshelp expects that GRUB_ERRNO is set when fails. Reuse
14683 grub_hfsplus_btree_recptr to get the pointer to a found key.
14684 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
14687 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
14689 (_linux_mod_SOURCES): New variable.
14690 (_linux_mod_CFLAGS): Likewise.
14691 (_linux_mod_LDFLAGS): Likewise.
14692 (linux_mod_SOURCES): Likewise.
14693 (linux_mod_CFLAGS): Likewise.
14694 (linux_mod_LDFLAGS): Likewise.
14696 * DISTLIST: Added loader/i386/efi/linux.c,
14697 loader/i386/efi/linux_normal.c and
14698 include/grub/i386/efi/loader.h.
14700 * loader/i386/efi/linux.c: New file.
14701 * loader/i386/efi/linux_normal.c: Likewise.
14702 * include/grub/i386/efi/loader.h: Likewise.
14704 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
14706 * commands/blocklist.c: New file.
14708 * DISTLIST: Added commands/blocklist.c.
14710 * term/efi/console.c (grub_console_highlight_color): Use a lighter
14711 color for the background, and a darker color for the foreground.
14712 (grub_console_checkkey): Return READ_KEY.
14713 (grub_console_cls): Set the background to
14714 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
14716 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
14718 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
14719 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
14721 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
14724 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
14725 BG. The spec is wrong again.
14727 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
14729 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
14731 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
14732 commands/blocklist.c.
14733 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14735 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
14736 (blocklist_mod_SOURCES): New variable.
14737 (blocklist_mod_CFLAGS): Likewise.
14738 (blocklist_mod_LDFLAGS): Likewise.
14740 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
14742 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
14744 (lba_mode): Use %eax more intensively to reduce the code size.
14746 2006-05-20 Marco Gerards <marco@gnu.org>
14748 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
14750 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
14752 (script): Accept leading newlines.
14753 (newlines): New rule to describe 0 or more newlines.
14754 (commands): Accept `command' with trailing newline. Fixed the
14755 order in which arguments were passed to `grub_script_add_cmd'.
14756 Accept commands separated by newlines.
14757 (function): Changed to accept newlines.
14758 (menuentry) Rewritten.
14760 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
14761 front of the list, instead of to the end.
14763 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
14765 * util/i386/pc/grub-install.in (bindir): New variable.
14766 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
14767 Shaver <lbgwjl@gmail.com>.
14769 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
14771 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
14772 grub/machine/linux.h
14773 * loader/i386/pc/linux.c: Likewise.
14775 * include/grub/i386/pc/linux.h: Moved to ...
14776 * include/grub/i386/linux.h: ... here.
14778 * include/grub/i386/linux.h (struct linux_kernel_params): New
14781 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
14783 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
14785 (grub_video_vbe_blit_glyph): Likewise.
14786 (grub_video_vbe_blit_bitmap): Likewise.
14787 (grub_video_vbe_blit_render_target): Likewise.
14789 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
14791 * configure.ac (--with-platform): Properly quote the square
14794 2006-05-08 Marco Gerards <marco@gnu.org>
14796 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
14798 (kernel_elf_HEADERS): ...to this. Updated all users.
14799 (grubof_symlist.c): Renamed from this...
14800 (kernel_elf_symlist.c): ...to this. Updated all users.
14801 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14802 (grubof_SOURCES): Renamed from this...
14803 (kernel_elf_SOURCES): ...to this.
14804 (grubof_HEADERS): Renamed from this...
14805 (kernel_elf_HEADERS): ...to this.
14806 (grubof_CFLAGS): Renamed from this...
14807 (kernel_elf_CFLAGS): ...to this.
14808 (grubof_ASFLAGS): Renamed from this...
14809 (kernel_elf_ASFLAGS): ...to this.
14810 (grubof_LDFLAGS): Renamed from this...
14811 (kernel_elf_LDFLAGS): ...to this.
14813 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
14815 (kernel_elf_HEADERS): ...to this. Updated all users.
14816 (grubof_symlist.c): Renamed from this...
14817 (kernel_elf_symlist.c): ...to this. Updated all users.
14818 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14819 (grubof_SOURCES): Renamed from this...
14820 (kernel_elf_SOURCES): ...to this.
14821 (grubof_HEADERS): Renamed from this...
14822 (kernel_elf_HEADERS): ...to this.
14823 (grubof_CFLAGS): Renamed from this...
14824 (kernel_elf_CFLAGS): ...to this.
14825 (grubof_ASFLAGS): Renamed from this...
14826 (kernel_elf_ASFLAGS): ...to this.
14827 (grubof_LDFLAGS): Renamed from this...
14828 (kernel_elf_LDFLAGS): ...to this.
14830 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
14831 `kernel.elf' instead of `grubof'.
14833 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
14835 Add --with-platform to configure. Use pkglibdir instead of
14836 pkgdatadir. This is reported by Roger Leigh.
14838 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
14839 (host_vendor): Likewise.
14840 (host_os): Likewise.
14841 (pkgdatadir): Likewise.
14842 (platform): New variable.
14843 (pkglibdir): Likewise.
14844 Use PKGLIBDIR instead of PKGDATADIR.
14846 * util/i386/pc/grub-install.in (datadir): Removed.
14847 (host_vendor): Likewise.
14848 (host_os): Likewise.
14849 (pkgdatadir): Likewise.
14850 (platform): New variable.
14851 (pkglibdir): Likewise.
14852 Use PKGLIBDIR instead of PKGDATADIR.
14854 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
14855 instead of GRUB_DATADIR.
14857 * util/i386/pc/grub-mkimage.c (usage): Likewise.
14859 * util/i386/efi/grub-mkimage.c (usage): Likewise.
14862 * configure.ac (--with-platform): New option.
14863 Use PLATFORM instead of HOST_VENDOR to specify a platform.
14865 * Makefile.in: Include a makefile based on PLATFORM instead of
14867 (pkgdatadir): Not appended by the machine type.
14868 (pkglibdir): Appended by the machine type.
14869 (host_vendor): Removed.
14870 (platform): New variable.
14871 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
14872 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
14873 (uninstall): Likewise.
14875 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
14877 Use the environment context in the menu. Remove the commands
14878 "default" and "timeout", and use variables instead.
14880 * normal/menu.c: Include grub/env.h.
14881 (print_entry): Cast TITLE to silence gcc.
14882 (get_timeout): New function.
14883 (set_timeout): Likewise.
14884 (get_entry_number): Likewise.
14885 (run_menu): Use a default entry, a fallback entry and a timeout
14886 in the environment variables "default", "fallback" and
14887 "timeout". Also, tweak the default entry if it is not within the
14888 current menu entries.
14889 (grub_menu_run): Use a fallback entry in the environment variable
14892 * normal/main.c (read_config_file): Do not initialize
14893 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
14895 (grub_normal_execute): Use a data slot to store the menu.
14897 * include/grub/normal.h (struct grub_menu): Removed default_entry,
14898 fallback_entry and timeout.
14899 (struct grub_menu_list): Removed.
14900 (grub_menu_list_t): Likewise.
14901 (struct grub_context): Likewise.
14902 (grub_context_t): Likewise.
14903 (grub_context_get): Likewise.
14904 (grub_context_get_current_menu): Likewise.
14905 (grub_context_push_menu): Likewise.
14906 (grub_context_pop_menu): Likewise.
14907 (grub_default_init): Likewise.
14908 (grub_default_fini): Likewise.
14909 (grub_timeout_init): Likewise.
14910 (grub_timeout_fini): Likewise.
14912 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
14914 (normal_mod_SOURCES): Removed normal/context.c.
14916 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
14917 commands/default.c, commands/timeout.c and normal/context.c.
14918 (normal_mod_SOURCES): Removed normal/context.c.
14920 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
14921 commands/timeout.c and normal/context.c.
14922 (normal_mod_SOURCES): Removed normal/context.c.
14924 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
14925 commands/default.c, commands/timeout.c and normal/context.c.
14926 (normal_mod_SOURCES): Removed normal/context.c.
14928 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
14930 (default_mod_SOURCES): Removed.
14931 (default_mod_CFLAGS): Likewise.
14932 (default_mod_LDFLAGS): Likewise.
14933 (timeout_mod_SOURCES): Removed.
14934 (timeout_mod_CFLAGS): Likewise.
14935 (timeout_mod_LDFLAGS): Likewise.
14937 * DISTLIST: Removed commands/default.c, commands/timeout.c and
14940 * commands/default.c: Removed.
14941 * commands/timeout.c: Likewise.
14942 * normal/context.c: Likewise.
14944 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
14946 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
14948 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
14950 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
14951 "next" to "prev" for readability.
14952 (struct grub_env_sorted_var): New struct.
14953 (grub_env_context): Renamed to ...
14954 (initial_context): ... this.
14955 (grub_env_var_context): Renamed to ...
14956 (current_context): ... this.
14957 (grub_env_find): Look only at CURRENT_CONTEXT.
14958 (grub_env_context_open): Rewritten to copy exported variables from
14960 (grub_env_context_close): Rewritten according to the new
14961 scheme. Also, add an assertion to prevent the initial context from
14963 (grub_env_insert): Removed the code for the sorted list.
14964 (grub_env_remove): Likewise.
14965 (grub_env_export): Simply mark the variable with
14966 GRUB_ENV_VAR_GLOBAL.
14967 (grub_env_set): A cosmetic change for naming consistency.
14968 (grub_env_get): Likewise.
14969 (grub_env_unset): Likewise.
14970 (grub_env_iterate): Rewritten to sort variables within this
14972 (grub_register_variable_hook): Fixed for naming consistency. Call
14973 grub_env_find again, only if NAME is not found at the first time.
14974 (mangle_data_slot_name): New function.
14975 (grub_env_set_data_slot): Likewise.
14976 (grub_env_get_data_slot): Likewise.
14977 (grub_env_unset_data_slot): Likewise.
14979 * include/grub/env.h (grub_env_var_type): New enum.
14980 (GRUB_ENV_VAR_LOCAL): New constant.
14981 (GRUB_ENV_VAR_GLOBAL): Likewise.
14982 (GRUB_ENV_VAR_DATA): Likewise.
14983 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
14985 (grub_env_set): Replace VAR with NAME for consistency.
14986 (grub_register_variable_hook): Likewise.
14987 (grub_env_export): Specify the name of the argument.
14988 (grub_env_set_data_slot): New prototype.
14989 (grub_env_get_data_slot): Likewise.
14990 (grub_env_unset_data_slot): Likewise.
14992 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
14994 Extend the loader so that GRUB can accept a loader which comes
14995 back to GRUB when a loaded image exits. Also, this change adds
14996 support for a chainloader on EFI.
14998 * term/efi/console.c: Include grub/misc.h.
14999 (grub_console_checkkey): Display a scan code on the top for
15000 debugging. This will be removed once the EFI port gets stable.
15001 Correct the scan code mapping.
15003 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
15004 allocate memory from larger regions, in order to reduce the number
15005 of allocated regions. Otherwise, the MacOSX loader panics.
15006 (filter_memory_map): Avoid less than 1MB for compatibility with
15008 (add_memory_regions): Allocate from the tail of a region, if
15009 possible, to avoid allocating a region near to 1MB, for the MacOSX
15012 * kern/efi/init.c (grub_efi_set_prefix): Specify
15013 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
15015 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
15016 argument IMAGE_HANDLE and specify it to get a loaded image.
15017 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
15018 grub_efi_get_loaded_image.
15019 (grub_efi_get_filename): Divide the length by the size of
15021 (grub_efi_get_device_path): New function.
15022 (grub_efi_print_device_path): Print End Device Path nodes. Divide
15023 the length by the size of grub_efi_char16_t for a file path device
15026 * kern/loader.c (grub_loader_noreturn): New variable.
15027 (grub_loader_set): Accept a new argument NORETURN. Set
15028 GRUB_LOADER_NORETURN to NORETURN.
15029 All callers changed.
15030 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
15033 * include/grub/efi/efi.h (grub_efi_get_device_path): New
15035 (grub_efi_get_loaded_image): Take an argument to specify an image
15038 * include/grub/loader.h (grub_loader_set): Added one more argument
15041 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
15042 instead of grub_efi_open_protocol.
15043 (grub_efidisk_get_device_name): Likewise.
15044 (grub_efidisk_close): Print a newline.
15045 (grub_efidisk_get_device_handle): Fixed to use
15046 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
15047 GRUB_EFI_DEVICE_PATH_TYPE.
15049 * disk/efi/efidisk.c (device_path_guid): Moved to ...
15050 * kern/efi/efi.c (device_path_guid): ... here.
15052 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
15054 (kernel_mod_HEADERS): Added efi/disk.h.
15055 (_chain_mod_SOURCES): New variable.
15056 (_chain_mod_CFLAGS): Likewise.
15057 (_chain_mod_LDFLAGS): Likewise.
15058 (chain_mod_SOURCES): Likewise.
15059 (chain_mod_CFLAGS): Likewise.
15060 (chain_mod_LDFLAGS): Likewise.
15062 * DISTLIST: Added include/grub/efi/chainloader.h,
15063 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
15065 * include/grub/efi/chainloader.h: New file.
15066 * loader/efi/chainloader.c: Likewise.
15067 * loader/efi/chainloader_normal.c: Likewise.
15069 2006-04-30 Marco Gerards <marco@gnu.org>
15071 * commands/configfile.c (grub_cmd_source): New function.
15072 (GRUB_MOD_INIT): Register the commands `source' and `.'.
15073 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
15075 2006-04-30 Marco Gerards <marco@gnu.org>
15077 * normal/execute.c (grub_script_execute_cmd): Change the return
15078 type to `grub_err_t'. Correctly return the error.
15079 (grub_script_execute_cmdline): In case a command line is not a
15080 command or a function, try to interpret it as an assignment.
15082 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
15084 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
15085 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
15086 skip a node whose name is obviously invalid as UTF-16,
15087 i.e. contains a NUL character. Stop the iteration when the last
15088 directory entry is found. Instead of using the return value of
15089 grub_hfsplus_btree_iterate_node, store the value in RET and use
15090 it, because the iterator can be stopped by the last directory
15093 2006-04-30 Marco Gerards <marco@gnu.org>
15095 * include/grub/env.h (grub_env_export): New prototype. Reported
15096 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
15098 2006-04-30 Marco Gerards <marco@gnu.org>
15100 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
15101 size of the extents in a catalog file record.
15103 2006-04-29 Marco Gerards <marco@gnu.org>
15105 * commands/configfile.c (grub_cmd_configfile): Execute the
15106 configfile within its own context.
15108 * include/grub/env.h (grub_env_context_open): New prototype.
15109 (grub_env_context_close): Likewise.
15111 * kern/env.c (grub_env): Removed.
15112 (grub_env_sorted): Likewise.
15113 (grub_env_context): New variable.
15114 (grub_env_var_context): Likewise.
15115 (grub_env_find): Search both the active context and the global
15117 (grub_env_context_open): New function.
15118 (grub_env_context_close): Likewise.
15119 (grub_env_insert): Likewise.
15120 (grub_env_remove): Likewise.
15121 (grub_env_export): Likewise.
15122 (grub_env_set): Changed to use helper functions to avoid code
15124 (grub_env_iterate): Rewritten so both the current context and the
15125 global context are being used.
15127 * normal/command.c (export_command): New function.
15128 (grub_command_init): Register the `export' function.
15130 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
15132 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
15133 explicitly to suppress gcc's warnings.
15134 * fs/fat.c (grub_fat_find_dir): Likewise.
15135 (grub_fat_label): Likewise.
15136 * fs/xfs.c (grub_xfs_read_inode): Likewise.
15137 (grub_xfs_mount): Likewise.
15138 (grub_xfs_label): Likewise.
15139 * fs/affs.c (grub_affs_mount): Likewise.
15140 (grub_affs_label): Likewise.
15141 (grub_affs_iterate_dir): Likewise.
15142 * fs/sfs.c (grub_sfs_mount): Likewise.
15143 (grub_sfs_iterate_dir): Likewise.
15144 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
15145 * fs/hfs.c (grub_hfs_mount): Likewise.
15146 (grub_hfs_cmp_catkeys): Likewise.
15147 (grub_hfs_find_dir): Likewise.
15148 (grub_hfs_dir): Likewise.
15149 (grub_hfs_label): Likewise.
15150 * fs/jfs.c (grub_jfs_mount): Likewise.
15151 (grub_jfs_opendir): Likewise.
15152 (grub_jfs_getent): Likewise.
15153 (grub_jfs_lookup_symlink): Likewise.
15154 (grub_jfs_label): Likewise.
15155 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
15156 (grub_hfsplus_iterate_dir): Likewise.
15157 (grub_hfsplus_btree_iterate_node): Made static.
15159 * util/grub-emu.c (prefix): New variable.
15160 (grub_machine_set_prefix): New function.
15161 (main): Do not set the environment variable "prefix" here. Only
15162 set PREFIX, which is used later by grub_machine_set_prefix.
15164 * include/grub/video.h: Do not include grub/symbol.h.
15165 (grub_video_register): Not exported. This symbol is not defined in
15167 (grub_video_unregister): Likewise.
15168 (grub_video_iterate): Likewise.
15169 (grub_video_setup): Likewise.
15170 (grub_video_restore): Likewise.
15171 (grub_video_get_info): Likewise.
15172 (grub_video_get_blit_format): Likewise.
15173 (grub_video_set_palette): Likewise.
15174 (grub_video_get_palette): Likewise.
15175 (grub_video_set_viewport): Likewise.
15176 (grub_video_get_viewport): Likewise.
15177 (grub_video_map_color): Likewise.
15178 (grub_video_map_rgb): Likewise.
15179 (grub_video_map_rgba): Likewise.
15180 (grub_video_fill_rect): Likewise.
15181 (grub_video_blit_glyph): Likewise.
15182 (grub_video_blit_bitmap): Likewise.
15183 (grub_video_blit_render_target): Likewise.
15184 (grub_video_scroll): Likewise.
15185 (grub_video_swap_buffers): Likewise.
15186 (grub_video_create_render_target): Likewise.
15187 (grub_video_delete_render_target): Likewise.
15188 (grub_video_set_active_render_target): Likewise.
15190 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
15192 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
15194 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
15195 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15196 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15197 instead of $(srcdir)/genkernsyms.sh.
15199 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
15200 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15201 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15202 instead of $(srcdir)/genkernsyms.sh.
15204 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
15205 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15206 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15207 instead of $(srcdir)/genkernsyms.sh.
15209 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
15210 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15211 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15212 instead of $(srcdir)/genkernsyms.sh.
15214 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
15217 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
15219 (gensymlist.sh): New target.
15220 (genkernsyms.sh): Likewise.
15222 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
15223 genkernsyms.sh.in and gensymlist.sh.in.
15225 * genkernsyms.sh: Removed.
15226 * gensymlist.sh: Likewise.
15228 * genkernsyms.sh.in: New file.
15229 * gensymlist.sh.in: Likewise.
15231 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15233 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
15234 clobber "prefix", since we may have already set it manually.
15236 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15238 * kern/misc.c (abort): New alias for grub_abort.
15240 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
15242 A new machine-specific function "grub_machine_set_prefix" is
15243 defined. This is called after loading modules, so that a prefix
15244 initialization can use modules. Also, this change adds an
15245 intensive debugging feature for the memory manager via the
15246 configure option "--enable-mm-debug".
15248 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
15251 * kern/sparc64/ieee1275/init.c (abort): Removed.
15252 (grub_stop): Likewise.
15253 (grub_exit): New function.
15254 (grub_set_prefix): Renamed to ...
15255 (grub_machine_set_prefix): ... this.
15256 (grub_machine_init): Do not call grub_set_prefix.
15258 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
15259 (grub_machine_set_prefix): ... this.
15260 (grub_machine_init): Do not call grub_set_prefix.
15262 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
15263 (grub_machine_init): Do not set the prefix here.
15265 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
15267 * kern/efi/init.c: Include grub/mm.h.
15268 (grub_efi_set_prefix): New function.
15270 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
15271 (grub_efi_get_filename): New function.
15272 (grub_print_device_path): Renamed to ...
15273 (grub_efi_print_device_path): ... this.
15275 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
15276 [MM_DEBUG] (grub_realloc): Likewise.
15277 [MM_DEBUG] (grub_free): Likewise.
15278 [MM_DEBUG] (grub_memalign): Likewise.
15279 [MM_DEBUG] (grub_mm_debug): New variable.
15280 [MM_DEBUG] (grub_debug_malloc): New function.
15281 [MM_DEBUG] (grub_debug_free): New function.
15282 [MM_DEBUG] (grub_debug_realloc): New function.
15283 [MM_DEBUG] (grub_debug_memalign): New function.
15285 * kern/misc.c (grub_abort): Print a newline to distinguish
15288 * kern/main.c (grub_main): Call grub_machine_set_prefix and
15289 grub_set_root_dev after loading modules. This is necessary when
15290 setting a prefix depends on modules.
15292 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
15293 (grub_efi_print_device_path): ... this.
15294 (grub_efi_get_filename): New prototype.
15295 (grub_efi_set_prefix): Likewise.
15297 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
15299 (grub_efidisk_get_device_handle): New prototype.
15300 (grub_efidisk_get_device_name): Likewise.
15302 * include/grub/mm.h: Include config.h.
15303 (MM_DEBUG): Removed.
15304 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
15305 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
15306 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
15307 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
15308 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
15309 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
15310 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
15311 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
15312 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
15314 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
15316 * disk/efi/efidisk.c: Include grub/partition.h.
15317 (iterate_child_devices): New function.
15318 (add_device): First, compare only last device path nodes, so that
15319 devices are sorted by the types.
15320 (grub_efidisk_get_device_handle): New function.
15321 (grub_efidisk_get_device_name): Likewise.
15323 * configure.ac (--enable-mm-debug): New option to enable the
15324 memory manager debugging feature. This makes the binary much
15325 bigger, so is disabled by default.
15327 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
15329 Use grub_abort instead of grub_stop, and grub_exit must be
15330 define in each architecture now. Also, this change adds support
15333 * util/i386/pc/grub-probefs.c: Include grub/term.h.
15334 (grub_getkey): New function.
15335 (grub_term_get_current): Likewise.
15337 * util/i386/pc/grub-setup.c: Include grub/term.h.
15338 (grub_getkey): New function.
15339 (grub_term_get_current): Likewise.
15341 * util/misc.c (grub_stop): Renamed to ...
15342 (grub_exit): ... this.
15344 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
15345 (grub_exit): ... this.
15346 (grub_machine_init): Use grub_abort instead of abort.
15347 (grub_stop): Removed.
15349 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
15352 * kern/i386/pc/startup.S (grub_exit): New function.
15353 (cold_reboot): New label.
15355 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
15356 (grub_efi_init): Call grub_efidisk_init.
15357 (grub_efi_fini): Call grub_efidisk_fini.
15359 * kern/efi/efi.c: Include grub/mm.h.
15360 (grub_efi_console_control_guid): Renamed to ...
15361 (console_control_guid): ... this.
15362 (grub_efi_loaded_image_guid): Renamed to ...
15363 (loaded_image_guid): ... this.
15364 (grub_efi_locate_handle): New function.
15365 (grub_efi_open_protocol): Likewise.
15366 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
15367 GRUB_EFI_CONSOLE_CONTROL_GUID.
15368 (grub_efi_exit): Removed.
15369 (grub_stop): Likewise.
15370 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
15371 (grub_exit): New function.
15372 (grub_print_device_path): Likewise.
15374 * kern/rescue.c (grub_rescue_cmd_exit): New function.
15375 (grub_enter_rescue_mode): Register "exit".
15377 * kern/misc.c (grub_real_dprintf): A cosmetic change.
15378 (grub_abort): New function.
15380 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
15382 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
15384 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
15386 * include/grub/efi/efi.h (grub_efi_exit): Removed.
15387 (grub_print_device_path): New prototype.
15388 (grub_efi_locate_handle): Likewise.
15389 (grub_efi_open_protocol): Likewise.
15391 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
15392 * disk/efi/efidisk.c: Likewise.
15394 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
15396 * include/grub/efi/console_control.h
15397 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
15399 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
15400 last 8 bytes as an array.
15401 (GRUB_EFI_DISK_IO_GUID): New macro.
15402 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
15403 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
15404 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
15406 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
15407 (struct grub_efi_device_path): Rename the member "sub_type" to
15409 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
15410 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
15411 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
15412 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
15413 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
15414 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
15415 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
15416 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
15417 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
15418 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
15419 (struct grub_efi_pci_device_path): New structure.
15420 (grub_efi_pci_device_path_t): New type.
15421 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
15422 (struct grub_efi_pccard_device_path): New structure.
15423 (grub_efi_pccard_device_path_t): New type.
15424 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
15425 (struct grub_efi_memory_mapped_device_path): New structure.
15426 (grub_efi_memory_mapped_device_path_t): New type.
15427 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
15428 (struct grub_efi_vendor_device_path): New structure.
15429 (grub_efi_vendor_device_path_t): New type.
15430 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
15431 (struct grub_efi_controller_device_path): New structure.
15432 (grub_efi_controller_device_path_t): New type.
15433 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
15434 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
15435 (struct grub_efi_acpi_device_path): New structure.
15436 (grub_efi_acpi_device_path_t): New type.
15437 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
15438 (struct grub_efi_expanded_acpi_device_path): New structure.
15439 (grub_efi_expanded_acpi_device_path_t): New type.
15440 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
15441 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
15442 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
15443 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
15444 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
15445 (struct grub_efi_atapi_device_path): New structure.
15446 (grub_efi_atapi_device_path_t): New type.
15447 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
15448 (struct grub_efi_fibre_channel_device_path): New structure.
15449 (grub_efi_fibre_channel_device_path_t): New type.
15450 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
15451 (struct grub_efi_1394_device_path): New structure.
15452 (grub_efi_1394_device_path_t): New type.
15453 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
15454 (struct grub_efi_usb_device_path): New structure.
15455 (grub_efi_usb_device_path_t): New type.
15456 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
15457 (struct grub_efi_usb_class_device_path): New structure.
15458 (grub_efi_usb_class_device_path_t): New type.
15459 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
15460 (struct grub_efi_i2o_device_path): New structure.
15461 (grub_efi_i2o_device_path_t): New type.
15462 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
15463 (struct grub_efi_mac_address_device_path): New structure.
15464 (grub_efi_mac_address_device_path_t): New type.
15465 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
15466 (struct grub_efi_ipv4_device_path): New structure.
15467 (grub_efi_ipv4_device_path_t): New type.
15468 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
15469 (struct grub_efi_ipv6_device_path): New structure.
15470 (grub_efi_ipv6_device_path_t): New type.
15471 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
15472 (struct grub_efi_infiniband_device_path): New structure.
15473 (grub_efi_infiniband_device_path_t): New type.
15474 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
15475 (struct grub_efi_uart_device_path): New structure.
15476 (grub_efi_uart_device_path_t): New type.
15477 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
15478 (struct grub_efi_vendor_messaging_device_path): New structure.
15479 (grub_efi_vendor_messaging_device_path_t): New type.
15480 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
15481 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
15482 (struct grub_efi_hard_drive_device_path): New structure.
15483 (grub_efi_hard_drive_device_path_t): New type.
15484 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
15485 (struct grub_efi_cdrom_device_path): New structure.
15486 (grub_efi_cdrom_device_path_t): New type.
15487 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
15488 (struct grub_efi_vendor_media_device_path): New structure.
15489 (grub_efi_vendor_media_device_path_t): New type.
15490 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
15491 (struct grub_efi_file_path_device_path): New structure.
15492 (grub_efi_file_path_device_path_t): New type.
15493 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
15494 (struct grub_efi_protocol_device_path): New structure.
15495 (grub_efi_protocol_device_path_t): New type.
15496 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
15497 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
15498 (struct grub_efi_bios_device_path): New structure.
15499 (grub_efi_bios_device_path_t): New type.
15500 (struct grub_efi_disk_io): New structure.
15501 (grub_efi_disk_io_t): New type.
15502 (struct grub_efi_block_io_media): New structure.
15503 (grub_efi_block_io_media_t): New type.
15504 (struct grub_efi_block_io): New structure.
15505 (grub_efi_block_io_t): New type.
15507 * include/grub/misc.h (grub_stop): Removed.
15508 (grub_exit): New prototype.
15509 (grub_abort): Likewise.
15511 * include/grub/disk.h (enum grub_disk_dev_id): Added
15512 GRUB_DISK_DEVICE_EFIDISK_ID.
15514 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
15515 disk/efi/efidisk.c.
15516 (kernel_syms.lst): Remove the target if an error occurs.
15518 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
15520 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
15521 as it was simply too buggy.
15523 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
15525 * kern/misc.c (grub_lltoa): New function.
15526 (grub_vsprintf): Added support for the long long suffix,
15529 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
15531 * Makefile.in (LDFLAGS): Add variable.
15532 (LD): Remove variable.
15533 * configure.ac: Add -m32 to LDFLAGS.
15534 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
15535 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
15536 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
15537 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
15538 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
15540 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
15541 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
15542 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
15544 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
15546 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
15547 length for unknown glyph.
15549 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15551 Add support for pre-loaded modules into the EFI port.
15553 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
15554 completely. Accept one more argument DIR. The caller has changed.
15556 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
15558 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
15559 (grub_efi_loaded_image_guid): New variable.
15560 (grub_efi_get_loaded_image): New function.
15561 (grub_arch_modules_addr): Likewise.
15563 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
15566 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
15567 (struct grub_efi_loaded_image): New structure.
15568 (grub_efi_loaded_image_t): New type.
15570 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15572 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
15573 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
15574 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
15576 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
15578 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
15580 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
15582 * DISTLIST: Added include/grub/efi/console.h,
15583 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
15584 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15586 * include/grub/efi/console.h: New file.
15587 * include/grub/efi/time.h: Likewise.
15588 * include/grub/i386/efi/kernel.h: Likewise.
15589 * kern/efi/init.c: Likewise.
15590 * kern/efi/mm.c: Likewise.
15591 * term/efi/console.c: Likewise.
15593 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
15594 (grub_stop): Removed.
15595 (grub_get_rtc): Likewise.
15596 (grub_machine_init): Simply call grub_efi_init.
15597 (grub_machine_fini): Call grub_efi_fini.
15599 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
15600 (grub_efi_output_string): Removed.
15601 (grub_efi_stall): New function.
15602 (grub_stop): Likewise.
15603 (grub_get_rtc): Likewise.
15605 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
15606 (grub_efi_stall): New prototype.
15607 (grub_efi_allocate_pages): Likewise.
15608 (grub_efi_free_pages): Likewise.
15609 (grub_efi_get_memory_map): Likewise.
15610 (grub_efi_mm_init): Likewise.
15611 (grub_efi_mm_fini): Likewise.
15612 (grub_efi_init): Likewise.
15613 (grub_efi_fini): Likewise.
15615 * include/grub/i386/efi/time.h: Do not include
15616 grub/symbol.h. Include grub/efi/time.h.
15617 (GRUB_TICKS_PER_SECOND): Removed.
15618 (grub_get_rtc): Likewise.
15620 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
15621 Added padding. The EFI spec is buggy.
15622 (GRUB_EFI_BLACK): New macro.
15623 (GRUB_EFI_BLUE): Likewise.
15624 (GRUB_EFI_GREEN): Likewise.
15625 (GRUB_EFI_CYAN): Likewise.
15626 (GRUB_EFI_RED): Likewise.
15627 (GRUB_EFI_MAGENTA): Likewise.
15628 (GRUB_EFI_BROWN): Likewise.
15629 (GRUB_EFI_LIGHTGRAY): Likewise.
15630 (GRUB_EFI_BRIGHT): Likewise.
15631 (GRUB_EFI_DARKGRAY): Likewise.
15632 (GRUB_EFI_LIGHTBLUE): Likewise.
15633 (GRUB_EFI_LIGHTGREEN): Likewise.
15634 (GRUB_EFI_LIGHTCYAN): Likewise.
15635 (GRUB_EFI_LIGHTRED): Likewise.
15636 (GRUB_EFI_LIGHTMAGENTA): Likewise.
15637 (GRUB_EFI_YELLOW): Likewise.
15638 (GRUB_EFI_WHITE): Likewise.
15639 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
15640 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
15641 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
15642 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
15643 (GRUB_EFI_BACKGROUND_RED): Likewise.
15644 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
15645 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
15646 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
15647 (GRUB_EFI_TEXT_ATTR): Likewise.
15649 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
15650 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15651 (kernel_mod_HEADERS): Added efi/time.h.
15653 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
15655 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
15656 include/grub/efi/api.h, include/grub/efi/console_control.h,
15657 include/grub/efi/efi.h, include/grub/efi/pe32.h,
15658 include/grub/i386/efi/time.h, kern/efi/efi.c,
15659 kern/i386/efi/init.c, kern/i386/efi/startup.S,
15660 and util/i386/efi/grub-mkimage.c.
15662 * Makefile.in (RMKFILES): Added i386-efi.rmk.
15664 * genmk.rb (PModule#rule): Do not export symbols if
15665 #{prefix}_EXPORTS is set to "no".
15667 * conf/i386-efi.mk: New file.
15668 * conf/i386-efi.rmk: Likewise.
15669 * include/grub/efi/api.h: Likewise.
15670 * include/grub/efi/console_control.h: Likewise.
15671 * include/grub/efi/efi.h: Likewise.
15672 * include/grub/efi/pe32.h: Likewise.
15673 * include/grub/i386/efi/time.h: Likewise.
15674 * kern/efi/efi.c: Likewise.
15675 * kern/i386/efi/init.c: Likewise.
15676 * kern/i386/efi/startup.S: Likewise.
15677 * util/i386/efi/grub-mkimage.c: Likewise.
15679 2006-04-17 Marco Gerards <marco@gnu.org>
15681 * include/grub/script.h: Include <grub/parser.h> and
15682 "grub_script.tab.h".
15683 (struct grub_lexer_param): New struct.
15684 (struct grub_parser_param): Likewise.
15685 (grub_script_create_arglist): Pass the state in an argument.
15686 (grub_script_add_arglist): Likewise.
15687 (grub_script_create_cmdline): Likewise.
15688 (grub_script_create_cmdblock): Likewise.
15689 (grub_script_create_cmdif): Likewise.
15690 (grub_script_create_cmdmenu): Likewise.
15691 (grub_script_add_cmd): Likewise.
15692 (grub_script_arg_add): Likewise.
15693 (grub_script_lexer_ref): Likewise.
15694 (grub_script_lexer_deref): Likewise.
15695 (grub_script_lexer_record_start): Likewise.
15696 (grub_script_lexer_record_stop): Likewise.
15697 (grub_script_mem_record): Likewise.
15698 (grub_script_mem_record_stop): Likewise.
15699 (grub_script_malloc): Likewise.
15700 (grub_script_yylex): Likewise.
15701 (grub_script_yyparse): Likewise.
15702 (grub_script_yyerror): Likewise.
15703 (grub_script_yylex): Likewise.
15704 (grub_script_lexer_init): Return the state.
15706 * normal/lexer.c (grub_script_lexer_state): Removed variable.
15707 (grub_script_lexer_done): Likewise.
15708 (grub_script_lexer_getline): Likewise.
15709 (grub_script_lexer_refs): Likewise.
15710 (script): Likewise.
15711 (newscript): Likewise.
15712 (record): Likewise.
15713 (recording): Likewise.
15714 (recordpos): Likewise.
15715 (recordlen): Likewise.
15716 (grub_script_lexer_init): Return the state instead of setting
15718 (grub_script_lexer_ref): Use the newly added argument for state
15719 instead of globals.
15720 (grub_script_lexer_deref): Likewise.
15721 (grub_script_lexer_record_start): Likewise.
15722 (grub_script_lexer_record_stop): Likewise.
15723 (recordchar): Likewise.
15724 (nextchar): Likewise.
15725 (grub_script_yylex2): Likewise.
15726 (grub_script_yylex): Likewise.
15727 (grub_script_yyerror): Likewise.
15729 * normal/parser.y (func_mem): Removed variable.
15730 (menu_entry): Likewise.
15732 (%lex-param): New parser option.
15733 (%parse-param): Likewise.
15734 (script): Always return the AST.
15735 (argument): Pass the state around.
15736 (arguments): Likewise.
15737 (grubcmd): Likewise.
15738 (commands): Likewise.
15739 (function): Likewise.
15740 (menuentry): Likewise.
15741 (if_statement): Likewise.
15744 * normal/script.c (grub_script_memused): Removed variable.
15745 (grub_script_parsed): Likewise.
15746 (grub_script_malloc): Added a state argument. Use that instead of
15748 (grub_script_mem_record): Likewise.
15749 (grub_script_mem_record_stop): Likewise.
15750 (grub_script_arg_add): Likewise.
15751 (grub_script_add_arglist): Likewise.
15752 (grub_script_create_cmdline): Likewise.
15753 (grub_script_create_cmdif): Likewise.
15754 (grub_script_create_cmdmenu): Likewise.
15755 (grub_script_add_cmd): Likewise.
15756 (grub_script_parse): Setup the state before calling the parser.
15758 2006-04-16 Marco Gerards <marco@gnu.org>
15760 * normal/command.c (grub_command_init): Remove the title command.
15762 * normal/lexer.c (grub_script_yylex): Renamed from this...
15763 (grub_script_yylex2): ... to this.
15764 (grub_script_yylex): New function. Temporary
15765 introduced to filter some tokens.
15766 (grub_script_yyerror): Print a newline.
15768 * normal/main.c (read_config_file): Output information about the
15769 lines that contain errors. Wait for a key after all lines have
15770 been processed. Don't return an empty menu.
15772 * normal/parser.y (func_mem): Don't initialize.
15773 (menu_entry): Likewise.
15774 (err): New variable.
15775 (script): Don't return anything when an error was encountered.
15776 (ws, returns): Removed rules.
15777 (argument): Disabled concatenated variable support.
15778 (arguments): Remove explicit separators.
15779 (grubcmd): Likewise.
15780 (function): Likewise.
15781 (menuentry): Likewise.
15783 (commands): Likewise. Add error handling.
15785 * normal/script.c (grub_script_create_cmdline): If
15786 `grub_script_parsed' is 0, assume the parser encountered an error.
15788 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
15790 * configure.ac: Add support for EFI. Fix the typo
15791 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
15793 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15795 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
15796 foreign multibyte characters should be shown correctly.
15798 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15800 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
15802 (read_config_file): Made it to close file before returning.
15804 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
15806 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
15807 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
15808 video/i386/pc/vbefill.c.
15810 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
15811 video/i386/pc/vbefill.c.
15813 * include/grub/video.h (grub_video_blit_format): New enum.
15814 (grub_video_mode_info): Added new member blit_format.
15815 (grub_video_get_blit_format): New function prototype.
15817 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
15818 function prototype.
15819 (grub_video_vbe_map_rgb): Likewise.
15820 (grub_video_vbe_unmap_color): Likewise.
15822 * include/grub/i386/pc/vbeblit.h: New file.
15824 * include/grub/i386/pc/vbefill.h: New file.
15826 * video/video.c (grub_video_get_blit_format): New function.
15827 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
15828 (grub_video_vbe_map_rgb): Likewise.
15829 (grub_video_vbe_unmap_color): Likewise.
15831 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
15833 (grub_video_vbe_blit_render_target): Changed to use more optimized
15835 (grub_video_vbe_setup): Added detection for optimized settings.
15836 (grub_video_vbe_create_render_target): Likewise.
15838 * video/i386/pc/vbeblit.c: New file.
15840 * video/i386/pc/vbefill.c: New file.
15842 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
15844 * font/manager.c (grub_font_get_glyph): Removed font fixup from
15847 * util/unifont2pff.rb: ... and moved it to here. Improved argument
15848 parsing to support both hex and dec ranges. If filename was missing
15849 show usage information.
15851 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
15853 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
15854 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
15856 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
15857 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
15858 (video_mod_SOURCES): Added.
15859 (video_mod_CFLAGS): Likewise.
15860 (video_mod_LDFLAGS): Likewise.
15861 (gfxterm_mod_SOURCES): Likewise.
15862 (gfxterm_mod_CFLAGS): Likewise.
15863 (gfxterm_mod_LDFLAGS): Likewise.
15864 (videotest_mod_SOURCES): Likewise.
15865 (videotest_mod_CFLAGS): Likewise.
15866 (videotest_mod_LDFLAGS): Likewise.
15867 (vesafb_mod_SOURCES): Removed.
15868 (vesafb_mod_CFLAGS): Likewise.
15869 (vesafb_mod_LDFLAGS): Likewise.
15870 (vga_mod_SOURCES): Likewise.
15871 (vga_mod_CFLAGS): Likewise.
15872 (vga_mod_LDFLAGS): Likewise.
15874 * commands/videotest.c: New file.
15876 * font/manager.c (fill_with_default_glyph): Modified to use
15878 (grub_font_get_glyph): Likewise.
15879 (fontmanager): Renamed from this...
15880 (font_manager): ... to this.
15882 * include/grub/font.h (grub_font_glyph): Added new structure.
15883 (grub_font_get_glyph): Modified to use grub_font_glyph.
15885 * include/grub/misc.h (grub_abs): Added as inline function.
15887 * include/grub/video.h: New file.
15889 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
15890 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
15891 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
15892 (grub_vbe_get_controller_info): Renamed from this...
15893 (grub_vbe_bios_get_controller_info): ... to this.
15894 (grub_vbe_get_mode_info): Renamed from this...
15895 (grub_vbe_bios_get_mode_info): ... to this.
15896 (grub_vbe_set_mode): Renamed from this...
15897 (grub_vbe_bios_set_mode): ... to this.
15898 (grub_vbe_get_mode): Renamed from this...
15899 (grub_vbe_bios_get_mode): ... to this.
15900 (grub_vbe_set_memory_window): Renamed from this...
15901 (grub_vbe_bios_set_memory_window): ... to this.
15902 (grub_vbe_get_memory_window): Renamed from this...
15903 (grub_vbe_bios_get_memory_window): ... to this.
15904 (grub_vbe_set_scanline_length): Renamed from this...
15905 (grub_vbe_set_scanline_length): ... to this.
15906 (grub_vbe_get_scanline_length): Renamed from this...
15907 (grub_vbe_bios_get_scanline_length): ... to this.
15908 (grub_vbe_set_display_start): Renamed from this...
15909 (grub_vbe_bios_set_display_start): ... to this.
15910 (grub_vbe_get_display_start): Renamed from this...
15911 (grub_vbe_bios_get_display_start): ... to this.
15912 (grub_vbe_set_palette_data): Renamed from this...
15913 (grub_vbe_bios_set_palette_data): ... to this.
15914 (grub_vbe_set_pixel_rgb): Removed.
15915 (grub_vbe_set_pixel_index): Likewise.
15917 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
15919 (grub_vbe_bios_get_controller_info): ... to this.
15920 (grub_vbe_get_mode_info): Renamed from this...
15921 (grub_vbe_bios_get_mode_info): ... to this.
15922 (grub_vbe_set_mode): Renamed from this...
15923 (grub_vbe_bios_set_mode): ... to this.
15924 (grub_vbe_get_mode): Renamed from this...
15925 (grub_vbe_bios_get_mode): ... to this.
15926 (grub_vbe_set_memory_window): Renamed from this...
15927 (grub_vbe_bios_set_memory_window): ... to this.
15928 (grub_vbe_get_memory_window): Renamed from this...
15929 (grub_vbe_bios_get_memory_window): ... to this.
15930 (grub_vbe_set_scanline_length): Renamed from this...
15931 (grub_vbe_set_scanline_length): ... to this.
15932 (grub_vbe_get_scanline_length): Renamed from this...
15933 (grub_vbe_bios_get_scanline_length): ... to this.
15934 (grub_vbe_set_display_start): Renamed from this...
15935 (grub_vbe_bios_set_display_start): ... to this.
15936 (grub_vbe_get_display_start): Renamed from this...
15937 (grub_vbe_bios_get_display_start): ... to this.
15938 (grub_vbe_set_palette_data): Renamed from this...
15939 (grub_vbe_bios_set_palette_data): ... to this.
15940 (grub_vbe_bios_get_controller_info): Fixed problem with registers
15941 getting corrupted after calling it. Added more pushes and pops.
15942 (grub_vbe_bios_set_mode): Likewise.
15943 (grub_vbe_bios_get_mode): Likewise.
15944 (grub_vbe_bios_get_memory_window): Likewise.
15945 (grub_vbe_bios_set_scanline_length): Likewise.
15946 (grub_vbe_bios_get_scanline_length): Likewise.
15947 (grub_vbe_bios_get_display_start): Likewise.
15948 (grub_vbe_bios_set_palette_data): Likewise.
15950 * normal/cmdline.c (cl_set_pos): Refresh the screen.
15951 (cl_insert): Likewise.
15952 (cl_delete): Likewise.
15954 * term/gfxterm.c: New file.
15956 * term/i386/pc/vesafb.c: Removed file.
15958 * video/video.c: New file.
15960 * video/i386/pc/vbe.c (real2pm): Added new function.
15961 (grub_video_vbe_draw_pixel): Likewise.
15962 (grub_video_vbe_get_video_ptr): Likewise.
15963 (grub_video_vbe_get_pixel): Likewise
15964 (grub_video_vbe_init): Likewise.
15965 (grub_video_vbe_fini): Likewise.
15966 (grub_video_vbe_setup): Likewise.
15967 (grub_video_vbe_get_info): Likewise.
15968 (grub_video_vbe_set_palette): Likewise.
15969 (grub_video_vbe_get_palette): Likewise.
15970 (grub_video_vbe_set_viewport): Likewise.
15971 (grub_video_vbe_get_viewport): Likewise.
15972 (grub_video_vbe_map_color): Likewise.
15973 (grub_video_vbe_map_rgb): Likewise.
15974 (grub_video_vbe_map_rgba): Likewise.
15975 (grub_video_vbe_unmap_color): Likewise.
15976 (grub_video_vbe_fill_rect): Likewise.
15977 (grub_video_vbe_blit_glyph): Likewise.
15978 (grub_video_vbe_blit_bitmap): Likewise.
15979 (grub_video_vbe_blit_render_target): Likewise.
15980 (grub_video_vbe_scroll): Likewise.
15981 (grub_video_vbe_swap_buffers): Likewise.
15982 (grub_video_vbe_create_render_target): Likewise.
15983 (grub_video_vbe_delete_render_target): Likewise.
15984 (grub_video_vbe_set_active_render_target): Likewise.
15985 (grub_vbe_set_pixel_rgb): Remove function.
15986 (grub_vbe_set_pixel_index): Likewise.
15987 (index_color_mode): Remove static variable.
15988 (active_mode): Likewise.
15989 (framebuffer): Likewise.
15990 (bytes_per_scan_line): Likewise.
15991 (grub_video_vbe_adapter): Added new static variable.
15992 (framebuffer): Likewise.
15993 (render_target): Likewise.
15994 (initial_mode): Likewise.
15995 (mode_in_use): Likewise.
15996 (mode_list): Likewise.
15998 2006-03-10 Marco Gerards <marco@gnu.org>
16000 * configure.ac (AC_INIT): Bumped to 1.93.
16002 * DISTLIST: Added `include/grub/hfs.h'.
16004 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
16006 * boot/i386/pc/boot.S (general_error): Before looping, try INT
16007 18H, which might help the BIOS falling back to next boot media.
16009 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
16011 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
16012 Poe Chen <poe.poechen@gmail.com>.
16014 2006-01-17 Marco Gerards <marco@gnu.org>
16016 * include/grub/normal.h: Include <grub/script.h>.
16017 (grub_command_list): Removed struct.
16018 (grub_command_list_t): Removed type.
16019 (grub_menu_entry): Remove members `num' and `command_list'. Add
16020 members `commands' and `sourcecode'.
16021 * include/grub/script.h: Add inclusion guards.
16022 (grub_script_cmd_menuentry): New struct.
16023 (grub_script_execute_menuentry): New prototype.
16024 (grub_script_lexer_record_start): Likewise.
16025 (grub_script_lexer_record_stop): Likewise.
16026 * normal/execute.c (grub_script_execute_menuentry): New function.
16027 * normal/lexer.c (record, recording, recordpos, recordlen): New
16029 (grub_script_lexer_record_start): New function.
16030 (grub_script_lexer_record_stop): Likewise.
16031 (recordchar): Likewise.
16032 (nextchar): Likewise.
16033 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
16034 2048 as the buffer size. Add the tokens `menuentry' and `@'.
16035 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
16036 (current_menu): New variable.
16037 (free_menu): Mainly rewritten.
16038 (grub_normal_menu_addentry): New function.
16039 (read_config_file): Rewritten.
16040 * normal/menu.c (run_menu_entry): Mainly rewritten.
16041 * normal/menu_entry.c (make_screen): Rewritten the code to insert
16043 (run): Mainly rewritten.
16044 * normal/parser.y (menu_entry): New variable.
16045 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
16046 (menuentry): New rule.
16047 (command): Add `menuentry'.
16048 (if_statement): Allow additional returns before `fi'.
16049 * normal/script.c (grub_script_create_cmdmenu): New function.
16051 2006-01-03 Marco Gerards <marco@gnu.org>
16053 * INSTALL: GNU Bison is required.
16054 * configure.ac: Rewritten the test to detect Bison.
16055 * Makefile.in (YACC): New variable. Reported by Xun Sun
16056 <xun.sun.cn@gmail.com>.
16058 2006-01-03 Marco Gerards <marco@gnu.org>
16060 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
16061 the HFS+ filesystem to filesystem blocks.
16062 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
16063 GCC warning is silenced.
16065 2006-01-03 Marco Gerards <marco@gnu.org>
16067 * partmap/apple.c (apple_partition_map_iterate): Convert the data
16068 read from disk from big endian to host byte order.
16070 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
16072 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
16074 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
16075 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
16076 embedded HFS+ filesystem.
16077 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
16078 (grub_hfs_sblock): Move from here...
16079 * include/grub/hfs.h: To here... New file.
16080 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
16082 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
16084 (grub_hfsplus_volheader): Change type of member `magic' to
16086 (grub_hfsplus_data): Add new member `embedded_offset'.
16087 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
16089 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
16090 Calculate the offset.
16092 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16094 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
16096 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
16098 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16100 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
16101 ENV->NAME is NULL after allocating ENV->VALUE.
16103 2005-12-25 Marco Gerards <marco@gnu.org>
16105 * kern/env.c (grub_env_set): Rewritten the error handling code.
16107 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16109 * geninit.sh: Made more robust, and more portable.
16111 2005-12-25 Marco Gerards <marco@gnu.org>
16113 Add support for Apple HFS+ filesystems.
16115 * fs/hfsplus.c: New file.
16117 * DISTLIST: Added `fs/hfsplus.c'.
16119 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
16120 (hfsplus_mod_SOURCES): New variable.
16121 (hfsplus_mod_CFLAGS): Likewise.
16122 (hfsplus_mod_LDFLAGS): Likewise.
16123 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
16124 (grub_setup_SOURCES): Likewise.
16125 (grub_mkdevicemap_SOURCES): Likewise.
16126 (grub_emu_SOURCES): Likewise.
16127 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16129 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
16131 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
16133 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16135 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
16136 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
16137 include/grub/parser.h, include/grub/script.h, kern/parser.c,
16138 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
16139 normal/lexer.c, normal/parser.y, normal/script.c, and
16141 Removed kern/sparc64/cache.c.
16143 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
16144 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
16147 * configure.ac (AC_INIT): Bumped to 1.92.
16149 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
16151 * kern/err.c (grub_error_push): Added new function to support error
16153 (grub_error_pop): Likewise.
16154 (grub_error_stack_items): New local variable to support error stacks.
16155 (grub_error_stack_pos): Likewise.
16156 (grub_error_stack_assert): Likewise.
16157 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
16159 (grub_print_error): Added support to print errors from error stack.
16161 * include/grub/err.h (grub_error_push): Added function prototype.
16162 (grub_error_pop): Likewise.
16164 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
16166 * configure.ac: Accept `powerpc64' as host_cpu.
16167 (amd64): Rename to `biarch32'.
16169 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
16170 non-cacheline-aligned addresses.
16172 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
16173 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
16174 if `size' is non-zero.
16176 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
16178 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
16179 and `cd' to make sure the filename is not prefixed with a
16181 (pkgdata_MODULES): Add `gpt.mod'.
16182 (gpt_mod_SOURCES): New variable.
16183 (gpt_mod_CFLAGS): Likewise.
16184 (gpt_mod_LDFLAGS): Likewise.
16186 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
16188 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
16191 * partmap/gpt.c: New file.
16193 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
16194 GPT partition map is detected.
16196 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
16198 * commands/i386/pc/play.c: New file.
16199 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
16200 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
16203 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
16205 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
16206 ((unused))' to silence gcc warning.
16208 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
16210 * configure.ac: Correct `AC_PROG_YACC' test.
16212 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16214 * util/powerpc/ieee1275/grub-install.in: Run the mount point
16215 check before installing files.
16217 2005-11-22 Mike Small <smallm@panix.com>
16219 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
16220 number regex so multidigit numbers are recognized correctly.
16222 2005-11-22 Mike Small <smallm@panix.com>
16224 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
16225 debugging message before attempting to claim memory.
16226 (grub_rescue_cmd_initrd): Add a claim debugging message and try
16227 multiple addresses in case of failure.
16229 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16231 * term/tparm.c (get_space): Remove empty `if' statement.
16233 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
16235 * kern/parser.c (check_varstate): Rename `state' to 's'.
16237 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16239 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
16240 variable definitions to the beginning of each function. Sort stack
16242 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
16243 `buf' argument to `char *'.
16245 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16247 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
16248 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16249 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16250 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16251 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16252 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16253 configfile.mod, search.mod, gzio.mod and test.mod.
16254 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16255 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16256 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16257 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16258 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16259 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16260 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16261 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16262 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16263 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16264 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16265 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16266 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16267 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16268 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16269 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16270 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16271 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16272 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16273 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16274 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16275 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16276 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
16278 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
16280 (pkgdata_MODULES): Add test.mod.
16282 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16284 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
16285 appending to variables with "+=".
16286 (PModule): Use full pathname to generate *.lst filenames.
16288 * Makefile.in: Fixed list rules moved from genmk.rb.
16289 (.DELETE_ON_ERROR): New special target.
16290 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
16292 * conf/i386-pc.rmk: Include conf/common.mk.
16293 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16294 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16295 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16296 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16297 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16298 configfile.mod, search.mod, gzio.mod and test.mod.
16299 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16300 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16301 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16302 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16303 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16304 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16305 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16306 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16307 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16308 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16309 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16310 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16311 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16312 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16313 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16314 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16315 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16316 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16317 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16318 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16319 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16320 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16321 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
16323 * conf/common.rmk: ... to here. New file.
16325 * conf/common.mk: New file.
16327 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
16329 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
16330 (grub_script.tab.c): ... here.
16332 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
16333 (grub_script.tab.c): ... here.
16335 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
16336 (grub_script.tab.c): ... here.
16338 * normal/command.c (grub_command_find): Fixed a memory leak of
16339 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
16341 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16343 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
16344 "@" which marks the start of a comment on ARM.
16345 (VARIABLE): Likewise.
16347 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16349 Add support for Linux/ADFS partition tables.
16351 * partmap/acorn.c: New file.
16353 * include/grub/acorn_filecore.h: Likewise.
16355 * DISTLIST: Added `partmap/acorn.c' and
16356 `include/grub/acorn_filecore.h'.
16358 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16360 (pkgdata_MODULES): Add `acorn.mod'.
16361 (acorn_mod_SOURCES): New variable.
16362 (acorn_mod_CFLAGS): Likewise.
16364 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16366 (pkgdata_MODULES): Add `acorn.mod'.
16367 (acorn_mod_SOURCES): New variable.
16368 (acorn_mod_CFLAGS): Likewise.
16370 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
16371 (pkgdata_MODULES): Add `acorn.mod'.
16372 (acorn_mod_SOURCES): New variable.
16373 (acorn_mod_CFLAGS): Likewise.
16374 (acorn_mod_LDFLAGS): Likewise.
16376 * include/types.h (grub_disk_addr_t): New typedef.
16378 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
16380 * geninit.sh: New file.
16382 * geninitheader.sh: Likewise.
16384 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
16385 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
16386 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
16387 * commands/configfile.c (grub_configfile_init)
16388 (grub_configfile_fini): Likewise.
16389 * commands/default.c (grub_default_init, grub_default_fini):
16391 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
16392 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
16393 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
16394 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
16396 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
16397 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
16399 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
16400 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
16402 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
16404 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
16406 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
16407 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
16408 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
16409 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
16410 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
16411 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
16412 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
16413 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
16414 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
16415 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
16416 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
16417 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
16418 * partmap/amiga.c (grub_amiga_partition_map_init)
16419 (grub_amiga_partition_map_fini): Likewise.
16420 * partmap/apple.c (grub_apple_partition_map_init)
16421 (grub_apple_partition_map_fini): Likewise.
16422 * partmap/pc.c (grub_pc_partition_map_init)
16423 (grub_pc_partition_map_fini): Likewise.
16424 * partmap/sun.c (grub_sun_partition_map_init,
16425 grub_sun_partition_map_fini): Likewise.
16426 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
16429 * util/grub-emu.c: Include <grub_modules_init.h>.
16430 (main): Don't initialize and de-initialize any modules directly,
16431 use `grub_init_all' and `grub_fini_all' instead.
16433 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
16434 `grub_vesafb_mod_init'.
16435 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
16437 * term/i386/pc/vga.c (grub_vga_init): Renamed to
16438 `grub_vga_mod_init'. Updated all users.
16439 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
16441 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
16442 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
16445 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
16446 Generate a function to initialize the module in utilities.
16447 Updated all callers.
16448 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
16449 initialize the module in utilities. Updated all callers.
16451 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16453 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
16454 escape sequence and a literal ^L to clear the screen.
16456 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
16457 when returning from Open Firmware.
16459 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16461 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
16462 (grub_ofconsole_height): Likewise.
16463 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
16464 manually insert a '\n'.
16465 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
16466 `grub_ofconsole_height'. Return early if these are already set.
16468 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
16470 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16471 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
16472 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
16473 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
16474 and `normal/script.c'.
16475 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16476 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16477 (test_mod_SOURCES): New variable.
16478 (test_mod_CFLAGS): Likewise.
16479 (test_mod_LDFLAGS): Likewise.
16480 (pkgdata_MODULES): Add `test.mod'.
16481 (grub_script.tab.c): New rule.
16482 (grub_script.tab.h): Likewise.
16484 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
16486 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16487 `commands/test.c', `normal/execute.c', `normal/lexer.c',
16488 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16489 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16490 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16491 (test_mod_SOURCES): New variable.
16492 (test_mod_CFLAGS): Likewise.
16493 (pkgdata_MODULES): Add `test.mod'.
16494 (grub_script.tab.c): New rule.
16495 (grub_script.tab.h): Likewise.
16497 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
16499 Add initial scripting support.
16501 * commands/test.c: New file.
16502 * include/grub/script.h: Likewise.
16503 * normal/execute.c: Likewise.
16504 * normal/function.c: Likewise.
16505 * normal/lexer.c: Likewise.
16506 * normal/parser.y: Likewise.
16507 * normal/script.c: Likewise.
16509 * configure.ac: Add `AC_PROG_YACC' test.
16511 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
16512 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
16513 `normal/function.c' and `normal/script.c'.
16514 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16515 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16516 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
16518 (pkgdata_MODULES): Add `test.mod'.
16519 (grub_script.tab.c): New rule.
16520 (grub_script.tab.h): Likewise.
16522 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
16524 * include/grub/normal.h (grub_test_init): New prototype.
16525 (grub_test_fini): Likewise.
16527 * normal/command.c: Include <grub/script.h>.
16528 (grub_command_execute): Rewritten.
16530 * util/grub-emu.c (main): Call `grub_test_init' and
16533 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16535 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
16537 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
16538 there are no pending characters.
16540 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16542 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
16543 `grub_strndup' to drop device arguments. Replace unnecessary
16544 `grub_strndup' with `grub_strdup'.
16546 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16548 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
16549 `debug' environment variable has been set.
16551 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
16553 * Makefile.in (install-local): Use $(DATA).
16554 (uninstall): Likewise.
16555 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
16556 (sbin_UTILITIES): ... to here.
16557 (sbin_SCRIPTS): New variable.
16558 (grub_install_SOURCES): New variable.
16559 * util/powerpc/ieee1275/grub-install.in: New file.
16560 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
16562 (add_segments): Call `grub_util_get_path'.
16564 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
16566 From Timothy Baldwin:
16567 * commands/ls.c (grub_ls_list_files): Close FILE with
16569 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
16571 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
16573 * include/grub/parser.h: New file.
16575 * kern/parser.c: Likewise.
16577 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
16578 (grub_setup_SOURCES): Likewise.
16579 (grub_probefs_SOURCES): Likewise.
16580 (grub_emu_SOURCES): Likewise.
16581 (kernel_img_HEADERS): Add `parser.h'.
16583 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16584 (grub_emu_SOURCES): Add `kern/parser.c'.
16585 (grubof_SOURCES): Likewise.
16587 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16588 (grubof_SOURCES): Add `kern/parser.c'.
16590 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
16592 * kern/misc.c (grub_split_cmdline): Removed function.
16594 * kern/rescue.c: Include <grub/parser.h>.
16595 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
16596 of `grub_split_cmdline'.
16598 * normal/command.c: Include <grub/parser.h>.
16599 (grub_command_execute): Use `grub_parser_split_cmdline' instead
16600 of `grub_split_cmdline'.
16602 * normal/completion.c: Include <grub/parser.h>.
16603 (cmdline_state): New variable.
16604 (iterate_dir): End the filename with a quote depending on the
16605 command line state.
16606 (get_state): new function.
16607 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
16608 split the arguments and determine the current argument. When the
16609 argument string is not quoted, escape all spaces.
16611 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16613 * normal/sparc64/setjmp.S: New file.
16615 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16617 * include/grub/sparc64/libgcc.h: New file.
16618 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
16619 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
16620 normal/sparc64/setjmp.c.
16622 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16624 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
16625 * kern/sparc64/cache.S: New file.
16626 * kern/sparc64/cache.c: Removed.
16627 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
16628 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
16630 (COMMON_LDFLAGS): Add -melf64_sparc.
16631 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
16632 (grubof_SOURCES): Use cache.S instead of cache.c.
16633 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
16634 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
16635 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
16637 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
16638 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
16639 (linux_mod_CFLAGS): Commented out.
16640 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
16641 out because module isn't built.
16642 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
16643 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
16644 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
16645 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
16646 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
16647 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16648 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16649 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
16650 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
16651 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
16652 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16653 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16654 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
16655 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
16657 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
16659 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
16660 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
16661 longer, because HFS should not be used on PC.
16663 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16665 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
16666 consistently within the loop.
16668 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
16670 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
16671 directory can not be read.
16673 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16675 * configure.ac (AC_INIT): Increase the version number to 1.91.
16677 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
16678 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
16679 term/i386/pc/serial.c.
16681 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16683 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
16684 file size must be permitted.
16686 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
16687 between %ah and %al.
16689 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16691 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
16693 Call the hook with a NUL-terminated filename.
16694 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
16697 * kern/term.c (cursor_state): New variable.
16698 (grub_term_set_current): Reset the cursor state on a new
16700 (grub_setcursor): Rewritten to use CURSOR_STATE.
16701 (grub_getcursor): New function.
16703 * include/grub/term.h (grub_getcursor): New prototype.
16705 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
16706 integers on ARM. Reported by Timothy Baldwin
16707 <T.E.Baldwin99@members.leeds.ac.uk>.
16709 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
16711 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
16713 (grub_sfs_dir): Likewise.
16715 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
16717 Add support for the SFS filesystem.
16719 * fs/sfs.c: New file.
16721 * DISTLIST: Added `fs/sfs.c'.
16723 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
16724 (grub_probefs_SOURCES): Likewise.
16725 (grub_emu_SOURCES): Likewise.
16726 (pkgdata_MODULES): Add `sfs.mod'.
16727 (sfs_mod_SOURCES): New variable.
16728 (sfs_mod_CFLAGS): Likewise.
16729 (sfs_mod_LDFLAGS): Likewise.
16731 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
16732 (pkgdata_MODULES): Add `sfs.mod'.
16733 (sfs_mod_SOURCES): New variable.
16734 (sfs_mod_CFLAGS): Likewise.
16736 * util/grub-emu.c (main): Call `grub_sfs_init' and
16739 * include/grub/fs.h (grub_sfs_init): New prototype.
16740 (grub_sfs_fini): Likewise.
16742 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
16744 Add support for the AFFS filesystem.
16746 * fs/affs.c: New file.
16748 * DISTLIST: Added `fs/affs.c'.
16750 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
16751 (grub_probefs_SOURCES): Likewise.
16752 (grub_emu_SOURCES): Likewise.
16753 (pkgdata_MODULES): Add `affs.mod'.
16754 (affs_mod_SOURCES): New variable.
16755 (affs_mod_CFLAGS): Likewise.
16756 (affs_mod_LDFLAGS): Likewise.
16758 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
16759 (pkgdata_MODULES): Add `affs.mod'.
16760 (affs_mod_SOURCES): New variable.
16761 (affs_mod_CFLAGS): Likewise.
16763 * util/grub-emu.c (main): Call `grub_affs_init' and
16766 * include/grub/fs.h (grub_affs_init): New prototype.
16767 (grub_affs_fini): Likewise.
16769 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16771 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
16773 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16775 * configure.ac: Accept `x86_64' as host_cpu. In that case add
16778 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
16781 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
16782 (COMMON_LDFLAGS): New variable.
16783 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
16784 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
16785 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
16786 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
16787 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
16788 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
16789 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
16790 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
16791 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
16792 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
16793 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16794 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16795 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
16796 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
16797 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
16799 (normal_mod_ASFLAGS): Add `-m32'.
16801 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
16802 (grub_host_size_t, grub_host_ssize_t): New types.
16803 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
16804 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
16805 `GRUB_HOST_SIZEOF_VOID_P'.
16807 * include/grub/kernel.h (struct grub_module_header): Type of
16808 member offset changed to `grub_host_off_t'. Type of member size
16809 changed to `grub_host_size_t'.
16810 (struct grub_module_info): Type of member offset changed to
16811 `grub_host_off_t'. Type of member size changed to
16812 `grub_host_size_t'.
16814 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
16816 Make GRUB's kernel compliant to Multiboot Specification.
16818 * kern/i386/pc/startup.S (multiboot_header): New label.
16819 (multiboot_entry): Likewise.
16820 (multiboot_trampoline): Likewise.
16822 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16823 Increased to 0x4A0.
16825 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
16826 put parentheses after a question mark.
16827 [!GRUB_UTIL] (my_mod): New variable.
16829 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
16831 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
16833 Adds support for the XFS filesystem. Btrees are not supported
16836 * fs/xfs.c: New file.
16838 * DISTLIST: Added `fs/xfs.c'.
16840 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
16841 (grub_probefs_SOURCES): Likewise.
16842 (grub_emu_SOURCES): Likewise.
16843 (pkgdata_MODULES): Add `xfs.mod'.
16844 (xfs_mod_SOURCES): New variable.
16845 (xfs_mod_CFLAGS): Likewise.
16847 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
16848 (pkgdata_MODULES): Add `xfs.mod'.
16849 (xfs_mod_SOURCES): New variable.
16850 (xfs_mod_CFLAGS): Likewise.
16852 * util/grub-emu.c (main): Call `grub_xfs_init' and
16855 * include/grub/fs.h (grub_xfs_init): New prototype.
16856 (grub_xfs_fini): Likewise.
16859 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
16861 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
16862 color modes, allow greater than 16 colors to be configured as
16865 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
16867 * normal/completion.c (complete_arguments): Add the qualifier
16868 const into OPTIONS.
16870 From Omniflux <omniflux+lists@omniflux.com>:
16871 * include/grub/terminfo.h: New file.
16872 * include/grub/tparm.h: Likewise.
16873 * include/grub/i386/pc/serial.h: Likewise.
16874 * term/terminfo.c: Likewise.
16875 * term/tparm.c: Likewise.
16876 * term/i386/pc/serial.c: Likewise.
16877 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
16879 (terminfo_mod_SOURCES): New variable.
16880 (terminfo_mod_CFLAGS): Likewise.
16881 (serial_mod_SOURCES): Likewise.
16882 (serial_mod_CFLAGS): Likewise.
16884 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
16886 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
16887 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
16888 and kern/powerpc/ieee1275/cmain.c, respectively.
16890 * boot/powerpc/ieee1275/crt0.S: Moved to ...
16891 * kern/powerpc/ieee1275/crt0.S: ... here.
16893 * boot/powerpc/ieee1275/cmain.c: Moved to ...
16894 * kern/powerpc/ieee1275/cmain.c: ... here.
16896 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
16897 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
16898 instead of boot/powerpc/ieee1275/crt0.S and
16899 boot/powerpc/ieee1275/cmain.c, respectively.
16901 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
16902 sectors. It was not used anyway.
16904 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16906 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
16907 `unused parameter' warning.
16909 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16911 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
16913 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
16916 2005-08-28 Marco Gerards <metgerards@student.han.nl>
16918 * include/grub/normal.h (enum grub_completion_type): Added
16919 `GRUB_COMPLETION_TYPE_ARGUMENT'.
16921 * normal/cmdline.c (print_completion): Handle
16922 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
16923 * normal/menu_entry.c (store_completion): Likewise.
16925 * normal/completion.c (complete_arguments): New function.
16926 (grub_normal_do_completion): Call `complete_arguments' when the
16927 current words start with a dash.
16929 2005-08-27 Marco Gerards <metgerards@student.han.nl>
16931 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
16932 `gzio.mod' instead of `io.mod').
16934 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
16936 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
16937 (DISTDIRS): Added io and video.
16938 Rewrite the search routine to make an output consistently.
16940 * DISTLIST: Added conf/sparc64-ieee1275.mk,
16941 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
16942 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
16943 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
16944 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
16945 util/powerpc/ieee1275/misc.c.
16947 * include/grub/gzio.h: New file.
16948 * io/gzio.c: Likewise.
16950 * kern/file.c (grub_file_close): Call grub_device_close only if
16951 FILE->DEVICE is not NULL.
16953 * include/grub/mm.h [!NULL] (NULL): New macro.
16955 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
16957 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
16958 (pkgdata_MODULES): Added gzio.mod.
16959 (gzio_mod_SOURCES): New variable.
16960 (gzio_mod_CFLAGS): Likewise.
16962 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
16963 (pkgdata_MODULES): Added gzio.mod.
16964 (gzio_mod_SOURCES): New variable.
16965 (gzio_mod_CFLAGS): Likewise.
16967 * commands/cat.c: Include grub/gzio.h.
16968 (grub_cmd_cat): Use grub_gzfile_open instead of
16971 * commands/cmp.c: Include grub/gzio.h.
16972 (grub_cmd_cmp): Use grub_gzfile_open instead of
16975 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
16976 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
16978 (grub_rescue_cmd_module): Likewise.
16980 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
16982 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
16983 kern/sparc64/ieee1275/init.c because it contains _start.
16984 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
16986 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
16988 * configure.ac: Add support for sparc64 host with ieee1275
16990 * configure: Generated from configure.ac.
16991 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
16993 (grub_ofdisk_read): Likewise.
16994 (grub_ofdisk_open): Use %p to print pointer values, and cast the
16995 pointers as (void *) to remove a warning.
16996 (grub_ofdisk_close): Likewise.
16997 (grub_ofdisk_read): Likewise.
16998 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
16999 returns, so make it return void to remove a warning.
17000 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
17001 Corresponding prototype change.
17002 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
17003 values, and cast the pointers as (void *) to remove a warning.
17004 (grub_mm_dump): Likewise.
17005 * conf/sparc64-ieee1275.mk: New file.
17006 * conf/sparc64-ieee1275.rmk: Likewise.
17007 * include/grub/sparc64/setjmp.h: Likewise.
17008 * include/grub/sparc64/types.h: Likewise.
17009 * include/grub/sparc64/ieee1275/console.h: Likewise.
17010 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
17011 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
17012 * include/grub/sparc64/ieee1275/time.h: Likewise.
17013 * kern/sparc64/cache.c: Likewise.
17014 * kern/sparc64/dl.c: Likewise.
17015 * kern/sparc64/ieee1275/init.c: Likewise.
17016 * kern/sparc64/ieee1275/openfw.c: Likewise.
17018 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
17020 * util/console.c (grub_ncurses_putchar): If C is greater than
17021 0x7f, set C to a question mark.
17022 (grub_ncurses_getcharwidth): New function.
17023 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
17026 * normal/menu.c (print_entry): Made aware of Unicode. First,
17027 convert TITLE to UCS-4, and predict the cursor position by
17030 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
17032 * kern/misc.c (grub_utf16_to_utf8): Likewise.
17034 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17036 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
17037 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17040 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
17041 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17042 grub_strcpy and grub_strlen. Take it into account that a space
17043 character is inserted as a delimiter.
17045 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17047 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
17048 invalid magic in the error.
17050 * commands/search.c: New file.
17052 * util/grub-emu.c (main): Call grub_search_init and
17055 * kern/rescue.c (grub_rescue_print_disks): Removed.
17056 (grub_rescue_print_devices): New function.
17057 (grub_rescue_cmd_ls): Use grub_device_iterate with
17058 grub_rescue_print_devices instead of grub_disk_dev_iterate with
17059 grub_rescue_print_disks.
17061 * kern/partition.c (grub_partition_iterate): Return the result of
17062 PARTMAP->ITERATE instead of GRUB_ERRNO.
17064 * kern/device.c: Include grub/partition.h.
17065 (grub_device_iterate): New function.
17067 * include/grub/partition.h (grub_partition_iterate): Return int
17068 instead of grub_err_t.
17070 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
17072 [GRUB_UTIL] (grub_search_fini): Likewise.
17074 * include/grub/device.h (grub_device_iterate): New prototype.
17076 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17078 (pkgdata_MODULES): Added search.mod.
17079 (search_mod_SOURCES): New variable.
17080 (search_mod_CFLAGS): Likewise.
17082 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
17083 (pkgdata_MODULES): Added search.mod.
17084 (search_mod_SOURCES): New variable.
17085 (search_mod_CFLAGS): Likewise.
17087 * commands/ls.c (grub_ls_list_disks): Renamed to ...
17088 (grub_ls_list_devices): ... this, and use grub_device_iterate.
17089 All callers changed.
17091 * DISTLIST: Added commands/search.c.
17093 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17095 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
17097 (grub_getcharwidth): New function.
17099 * kern/misc.c (grub_utf8_to_ucs4): New function.
17101 * include/grub/term.h (struct grub_term): Added a new member
17103 (grub_getcharwidth): New prototype.
17105 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
17107 * term/i386/pc/console.c (map_char): New function. Segregated from
17108 grub_console_putchar.
17109 (grub_console_putchar): Use map_char.
17110 (grub_console_getcharwidth): New function.
17111 (grub_console_term): Specified grub_console_getcharwidth as
17114 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
17115 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
17117 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
17119 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
17120 on grub_strtoul completely.
17121 (write_char): Declare local variables in the beginning of the
17123 (grub_vesafb_getcharwidth): New function.
17124 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
17127 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
17129 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
17130 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
17131 commands/i386/pc/vbetest.c.
17133 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
17134 call grub_vbe_get_controller_info again, because the returned
17135 information is volatile.
17136 (grub_vbe_set_video_mode): Mostly rewritten.
17137 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
17138 grub_vbe_status_t correctly.
17139 (grub_vbe_get_video_mode_info): Likewise.
17140 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
17141 several if statements.
17143 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
17144 * commands/i386/pc/vbeinfo.c: ... this.
17146 * commands/i386/pc/vbe_test.c: Renamed to ...
17147 * commands/i386/pc/vbetest.c: ... this.
17149 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
17151 (grub_cmd_vbeinfo): ... this. Save video modes before
17152 iterating. Skip a video mode, if it is not available, not enough
17153 information is given or it is monochrome. Show the memory
17154 model. Leave the interpretation of MODEVAR to grub_strtoul
17156 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
17157 (GRUB_MOD_FINI): Likewise.
17159 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
17160 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
17161 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
17162 duplicated grub_env_get. Leave the interpretation of MODEVAR to
17163 grub_strtoul completely.
17164 (real2pm): Removed.
17165 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
17166 (GRUB_MOD_FINI): Likewise.
17168 * normal/misc.c: Include grub/mm.h.
17170 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
17171 vbe_list_modes with vbetest.mod and vbeinfo.mod.
17172 (vbe_list_modes_mod_SOURCES): Removed.
17173 (vbe_list_modes_mod_CFLAGS): Likewise.
17174 (vbe_test_mod_SOURCES): Likewise.
17175 (vbe_test_mod_CFLAGS): Likewise.
17176 (vbeinfo_mod_SOURCES): New variable.
17177 (vbeinfo_mod_CFLAGS): Likewise.
17178 (vbetest_mod_SOURCES): Likewise.
17179 (vbetest_mod_CFLAGS): Likewise.
17181 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
17183 * normal/misc.c: New file.
17185 * DISTLIST: Added normal/misc.c.
17187 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
17188 DISK to HOOK. Call HOOK with DISK.
17189 * partmap/apple.c (apple_partition_map_iterate): Likewise.
17190 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17191 * partmap/sun.c (sun_partition_map_iterate): Likewise.
17193 * normal/menu_entry.c (struct screen): Added a new member
17194 "completion_shown".
17195 (completion_buffer): New global variable.
17196 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
17197 (store_completion): New function.
17198 (complete): Likewise.
17199 (clear_completions): Likewise.
17200 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
17201 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
17202 a tab, call complete.
17204 * normal/completion.c (disk_dev): Removed.
17205 (print_simple_completion): Likewise.
17206 (print_partition_completion): Likewise.
17207 (print_func): New global variable.
17208 (add_completion): Do not take the arguments WHAT or PRINT any
17209 longer. Added a new argument TYPE. Instead of printing directly,
17210 call PRINT_FUNC if not NULL.
17211 All callers changed.
17212 (complete_device): Use a local variable DEV instead of
17213 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
17214 (grub_normal_do_completion): Take a new argument HOOK. Do not
17215 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
17216 empty string, return NULL instead.
17217 All callers changed.
17219 * normal/cmdline.c (print_completion): New function.
17221 * kern/partition.c (grub_partition_iterate): Add an argument DISK
17223 All callers changed.
17225 * kern/disk.c (grub_print_partinfo): Removed.
17227 * include/grub/partition.h (struct grub_partition_map): Add a new
17228 argument DISK into HOOK of ITERATE.
17229 (grub_partition_iterate): Add a new argument DISK to HOOK.
17231 * include/grub/normal.h (enum grub_completion_type): New enum.
17232 (grub_completion_type_t): New type.
17233 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
17234 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
17235 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
17236 (GRUB_COMPLETION_TYPE_FILE): Likewise.
17237 (grub_normal_do_completion): Added a new argument HOOK.
17238 (grub_normal_print_device_info): New prototype.
17240 * include/grub/disk.h (grub_print_partinfo): Removed.
17242 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
17243 (normal_mod_SOURCES): Likewise.
17244 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17245 (normal_mod_SOURCES): Likewise.
17247 * commands/ls.c (grub_ls_list_disks): Use
17248 grub_normal_print_device_info instead of grub_print_partinfo. Free
17250 (grub_ls_list_files): Use grub_normal_print_device_info instead of
17251 duplicating the code.
17253 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17255 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
17256 follow GCS more precisely.
17257 * commands/i386/pc/vbe_test.c: Likewise.
17258 * include/grub/i386/pc/vbe.h: Likewise.
17259 * term/i386/pc/vesafb.c: Likewise.
17260 * video/i386/pc/vbe.c: Likewise.
17262 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17264 * DISTLIST: Added term/i386/pc/vesafb.c
17265 DISTLIST: Added video/i386/pc/vbe.c
17266 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
17267 DISTLIST: Added commands/i386/pc/vbe_test.c.
17268 * commands/i386/pc/vbe_list_modes.c: New file.
17269 * commands/i386/pc/vbe_test.c: Likewise.
17270 * term/i386/pc/vesafb.c: Likewise.
17271 * video/i386/pc/vbe.c: Likewise.
17272 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
17273 (grub_vbe_probe) Added prototype.
17274 (grub_vbe_set_video_mode) Likewise.
17275 (grub_vbe_get_video_mode) Likewise.
17276 (grub_vbe_get_video_mode_info) Likewise.
17277 (grub_vbe_set_pixel_rgb) Likewise.
17278 (grub_vbe_set_pixel_index) Likewise.
17279 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
17280 (pkgdata_MODULES): Added vesafb.mod.
17281 (pkgdata_MODULES): Added vbe_list_modes.mod.
17282 (pkgdata_MODULES): Added vbe_test.mod.
17283 (vbe_mod_SOURCES): Added.
17284 (vbe_mod_CFLAGS): Likewise.
17285 (vesafb_mod_SOURCES): Likewise.
17286 (vesafb_mod_CFLAGS): Likewise.
17287 (vbe_list_modes_mod_SOURCES): Likewise.
17288 (vbe_list_modes_mod_CFLAGS): Likewise.
17289 (vbe_test_mod_SOURCES): Likewise.
17290 (vbe_test_mod_CFLAGS): Likewise.
17292 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
17294 * normal/command.c (grub_command_execute): If INTERACTIVE is
17295 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
17296 CMDLINE. Disable the pager if INTERACTIVE is true.
17297 All callers are changed.
17299 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
17300 before reading a config file.
17301 * normal/main.c (read_config_file): Even if a command is not
17302 found, register it if it is within an entry.
17304 * util/grub-emu.c: Include sys/types.h and unistd.h.
17305 (options): Added --hold.
17306 (struct arguments): Added a new member "hold".
17307 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
17309 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
17310 cleared by a debugger, if it is not zero.
17312 * include/grub/normal.h (grub_command_execute): Add an argument
17315 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
17317 * DISTLIST: Added include/grub/i386/pc/vbe.h.
17319 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
17321 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
17322 program with another one, because the old one didn't detect a bug
17323 in gcc-3.4. Always use regparm 2, because the new test is still
17324 not enough for gcc-4.0. Someone must investigate a simple test
17325 case which detects a bug in gcc-4.0.
17327 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
17329 * DISTLIST: Added normal/completion.c.
17331 * normal/completion.c: New file.
17333 * term/i386/pc/console.c (grub_console_getwh): New function.
17334 (grub_console_term): Assign grub_console_getwh to getwh.
17336 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
17337 function is defined in normal/completion.c as
17338 grub_normal_do_completion.
17339 (grub_cmdline_get): Use grub_normal_do_completion instead of
17342 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
17343 returns non-zero, otherwise return 0.
17344 (grub_partition_iterate): First, probe the partition map. Then,
17345 call ITERATE only for this partition map.
17347 * kern/misc.c (grub_strncmp): Rewritten.
17349 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
17350 returns non-zero. Otherwise return 0.
17352 * include/grub/partition.h (grub_partition_map_iterate): Return
17353 int instead of void.
17355 * include/grub/normal.h (grub_normal_do_completion): New prototype.
17357 * include/grub/misc.h (grub_strncmp): Change the type of N to
17360 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
17363 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
17364 unsigned explicitly before comparing it with I.
17366 * kern/main.c (grub_env_write_root): Add the attribute unused into
17369 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17370 normal/completion.c.
17371 (normal_mod_SOURCES): Likewise.
17372 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17373 (normal_mod_SOURCES): Likewise.
17375 * normal/command.c (grub_iterate_commands): If ITERATE returns
17376 non-zero, return one immediately.
17378 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
17380 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
17381 * kern/i386/pc/startup.S: Updated Global Descriptor table's
17383 (grub_vbe_get_controller_info): New function.
17384 (grub_vbe_get_mode_info): Likewise.
17385 (grub_vbe_set_mode): Likewise.
17386 (grub_vbe_get_mode): Likewise.
17387 (grub_vbe_set_memory_window): Likewise.
17388 (grub_vbe_get_memory_window): Likewise.
17389 (grub_vbe_set_scanline_length): Likewise.
17390 (grub_vbe_get_scanline_length): Likewise.
17391 (grub_vbe_set_display_start): Likewise.
17392 (grub_vbe_get_display_start): Likewise.
17393 (grub_vbe_set_palette_data): Likewise.
17394 * include/grub/i386/pc/vbe.h: New file.
17396 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17398 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17399 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
17400 * DISTLIST: Likewise.
17401 * kern/ieee1275/of.c: Moved to ...
17402 * kern/ieee1275/ieee1275.c: ... here.
17404 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17406 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
17407 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
17408 Pass 0 as `end' parameter to grub_strtoul().
17410 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17412 * include/grub/powerpc/ieee1275/console.h: Do not include
17413 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
17415 (grub_console_cur_color): Remove i386-specific prototype.
17416 (grub_console_real_putchar): Likewise.
17417 (grub_console_checkkey): Likewise.
17418 (grub_console_getkey): Likewise.
17419 (grub_console_getxy): Likewise.
17420 (grub_console_gotoxy): Likewise.
17421 (grub_console_cls): Likewise.
17422 (grub_console_setcursor): Likewise.
17423 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
17424 Include <grub/machine/console.h>.
17425 * term/ieee1275/ofconsole.c: Likewise.
17427 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
17429 * Makefile.in (LIBLZO): New variable.
17431 * configure.ac: Check for LZO version 2.
17433 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
17434 lzo/lzo1x.h instead of lzo1x.h.
17436 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
17439 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
17440 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
17442 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
17443 copying the data from PARTITION to P.
17445 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17447 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
17448 negative, unload the module.
17450 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
17451 map is "pc_partition_map" but not "pc".
17452 (usage): Fix the description. The options are --boot-image and
17453 --core-image but not --boot-file or --core-file.
17454 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
17455 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
17458 * util/i386/pc/grub-install.in: Do not specify --boot-file or
17459 --core-file. Specify INSTALL_DEVICE as an argument.
17461 * util/console.c: Include config.h.
17462 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
17463 [HAVE_NCURSES_H]: Include ncurses.h.
17464 [HAVE_CURSES_H]: Include curses.h.
17465 [!A_NORMAL] (A_NORMAL): Defined as zero.
17466 [!A_STANDOUT] (A_STANDOUT): Likewise.
17468 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
17470 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
17472 * configure.ac: Check for curses libraries and headers.
17474 * Makefile.in (LIBCURSES): New variable.
17476 * genmk.rb (Script::rule): Set the executable bits.
17478 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
17479 name of the PC partition map is "pc_partition_map" but not "pc".
17481 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17483 * util/i386/pc/grub-install.in (grub_probefs): New variable.
17484 (modules): Likewise.
17485 (usage): Added descriptions for --modules and --grub-probefs.
17486 Handle --modules and --grub-probefs. Save the arguments in MODULES
17487 and GRUB_PROBEFS, respectively.
17488 Auto-detect a filesystem module against GRUBDIR. If the result is
17489 empty and modules are not specified explicitly, abort the
17490 installation. Add the result to MODULES.
17492 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
17493 disk/powerpc/ieee1275/ofdisk.c,
17494 include/grub/powerpc/ieee1275/init.h and
17495 term/powerpc/ieee1275/ofconsole.c.
17496 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
17497 term/ieee1275/ofconsole.c.
17499 * include/grub/powerpc/ieee1275/console.h: Resurrected.
17501 * COPYING: Upgraded to the latest version. Only the address of the
17502 FSF office has changed.
17504 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17506 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17507 kern/ieee1275.c with kern/ieee1275/of.c.
17509 * kern/ieee1275.c: Moved to ...
17510 * kern/ieee1275/of.c: ... here.
17512 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
17514 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
17517 * config.guess: Updated to the latest version from gnulib.
17518 * config.sub: Likewise.
17519 * install.sh: Likewise.
17520 * mkinstalldirs: Likewise.
17522 * include/grub/console.h: Removed. This file is arch-specific. Do
17523 not put this in include/grub.
17525 * include/grub/i386/pc/console.h: Resurrected.
17527 * util/console.c: Include grub/machine/console.h instead of
17529 * util/grub-emu.c: Likewise.
17531 2005-08-04 Marco Gerards <metgerards@student.han.nl>
17533 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
17536 From Vincent Pelletier <subdino2004@yahoo.fr>
17537 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
17538 Redefined to use grub_getwh.
17539 (grub_term): New member named getwh.
17540 (grub_getwh): New prototype.
17541 * kern/term.c (grub_getwh): New function.
17542 * term/i386/pc/console.c (grub_console_getwh): New function.
17543 (grub_console_term): New member `getwh'.
17544 * term/i386/pc/vga.c (grub_vga_getwh): New function.
17545 (grub_vga_term): New member `getwh'.
17546 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
17548 (grub_ofconsole_getw): New function.
17549 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
17550 (grub_ofconsole_term): New field named getwh and new initial
17553 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
17555 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
17556 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
17557 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
17558 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
17559 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
17560 of <grub/machine/ieee1275.h>.
17561 * commands/ieee1275/reboot.c: Likewise.
17562 * boot/powerpc/ieee1275/ieee1275.c: Move ...
17563 * kern/ieee1275.c: ... to here. All users updated. Change all
17564 parameter structs to use new type `grub_ieee1275_cell_t'.
17565 * term/powerpc/ieee1275/ofconsole.c: Move ...
17566 * term/ieee1275/ofconsole.c: ... to here. All users updated.
17567 * disk/powerpc/ieee1275/ofdisk.c: Move ...
17568 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
17569 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
17571 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
17572 Remove unused prototypes. All users updated.
17573 * include/grub/powerpc/ieee1275/console.h: Removed.
17574 * include/grub/powerpc/ieee1275/ieee1275.h: Define
17575 `grub_ieee1275_cell_t'.
17576 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
17577 Cast comparisons with -1 to the correct type.
17578 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
17579 type to match `grub_ieee1275_entry_fn'.
17581 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
17583 * DISTLIST: Added util/i386/pc/grub-probefs.c.
17585 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
17586 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
17588 (grub_probefs_SOURCES): New variable.
17590 * util/i386/pc/grub-probefs.c: New file.
17592 * util/i386/pc/grub-setup.c (main): Call
17593 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
17594 grub_hfs_init and grub_jfs_init to initialize the system. Call
17595 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
17596 grub_pc_partition_map_fini to finish the system.
17598 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
17600 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
17602 (grub_multiboot_load_elf32): Likewise.
17603 (grub_multiboot_is_elf64): Likewise.
17604 (grub_multiboot_load_elf64): Likewise.
17605 (grub_multiboot_load_elf): Likewise.
17606 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
17607 an ELF32 or ELF64 file.
17608 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
17610 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
17611 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
17612 NULL before calling FS->LABEL.
17613 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
17614 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
17615 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
17616 before calling FS->LABEL.
17618 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
17620 * util/i386/pc/grub-install.in (datadir): New variable.
17622 (pkgdatadir): New variable.
17623 (pkglibdir): Removed.
17625 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
17627 * DISTLIST: Added util/i386/pc/grub-install.in.
17629 * util/i386/pc/grub-install.in: New file.
17631 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
17632 (grub_install_SOURCES): Likewise.
17634 * genmk.rb: Added support for scripts.
17635 (Script): New class.
17636 (scripts): New variable.
17638 * Makefile.in (install-local): Install sbin_SCRIPTS by
17640 (uninstall): Remove sbin_SCRIPTS.
17642 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
17643 device, try to get a GRUB device by
17644 grub_util_biosdisk_get_grub_dev.
17647 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
17648 description for --device-map.
17650 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17652 Change the semantics of variable hooks. They now return strings
17653 instead of error values.
17655 * util/i386/pc/grub-setup.c: Include grub/env.h.
17656 (setup): Use grub_device_set_root instead of grub_env_set.
17658 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
17659 grub_env_get instead of grub_device_set_root and
17660 grub_device_get_root, respectively.
17662 * kern/main.c (grub_env_write_root): New function.
17663 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
17664 grub_env_set instead of grub_device_set_root.
17666 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
17668 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
17669 rather than calling ENV->WRITE_HOOK afterwards.
17670 (grub_env_get): Return the result of ENV->READ_HOOK rather than
17671 passing a pointer of a pointer.
17672 (grub_register_variable_hook): Change the types of "read_hook" and
17673 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
17675 Allocate the default empty string on the heap, because this string
17676 may be freed later.
17678 * kern/device.c: Include grub/env.h.
17679 (grub_device_set_root): Removed.
17680 (grub_device_get_root): Likewise.
17681 (grub_device_open): Use grub_env_get instead of
17682 grub_device_get_root.
17684 * include/grub/env.h (grub_env_read_hook_t): New type.
17685 (grub_env_write_hook_t): Likewise.
17686 (grub_env_var): Change the types of "read_hook" and "write_hook"
17687 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
17688 (grub_register_variable_hook): Likewise.
17690 * include/grub/device.h (grub_device_set_root): Removed.
17691 (grub_device_set_root): Likewise.
17693 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
17694 make sure that DIRNAME terminates with '/', so that
17695 grub_fat_find_dir will fail if PATH is not a directory.
17697 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
17699 Use the qualifier auto for print_files and print_files_long.
17700 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
17702 Put a newline only if there is no error.
17703 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
17706 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17708 * kern/partition.c (grub_partition_probe): Initialize PART to
17709 NULL. Otherwise, when no partition map is registered, this returns
17712 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
17714 * partmap/apple.c (apple_partition_map_iterate): Check if POS
17715 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
17718 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
17720 * commands/ls.c (grub_ls_list_disks): Print the filesystem
17721 information on each device, if it does not have partitions. Print
17722 "Device" instead of "Disk", because this function is not specific
17725 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
17726 static to ensure that it is put on the memory rather than a
17729 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17731 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
17732 (grub_cat_init): Likewise.
17733 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
17734 (options): Likewise.
17735 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
17736 (grub_configfile_init): Likewise.
17737 * font/manager.c (GRUB_MOD_INIT): Likewise.
17738 * commands/help.c (GRUB_MOD_INIT): Likewise.
17739 (grub_help_init): Likewise.
17740 * normal/command.c (grub_command_init): Likewise.
17741 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
17742 * disk/loopback.c (grub_loop_init): Likewise.
17743 (GRUB_MOD_INIT): Likewise.
17744 * commands/ls.c (grub_ls_init): Likewise.
17745 (GRUB_MOD_INIT): Likewise.
17746 (options): Likewise.
17747 * commands/boot.c (grub_boot_init): Likewise.
17748 (GRUB_MOD_INIT): Likewise.
17749 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
17750 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
17751 (GRUB_MOD_INIT): Likewise.
17752 * commands/cmp.c (grub_cmp_init): Likewise.
17753 (GRUB_MOD_INIT): Likewise.
17755 * normal/arg.c: Use <> instead of "" to include header files.
17756 (SHORT_ARG_HELP): New macro.
17757 (SHORT_ARG_USAGE): Likewise.
17758 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
17759 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
17761 (find_short): Check if C is 'h' or 'u' explicitly.
17762 (grub_arg_show_help): Use space characters instead of tabs. Treat
17763 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
17764 are shown with --help and --usage only if they are not used for
17765 the command itself.
17766 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
17769 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
17770 const into "longarg". Change the type of "shortarg" to int.
17772 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17774 * boot/i386/pc/boot.S (boot_drive_check): New label.
17776 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
17779 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
17780 which do not pass a boot drive correctly. Copied from GRUB Legacy.
17782 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17784 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
17785 When turning off Gate A20, skip the check and return immediately,
17786 because this is not fatal usually.
17788 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17790 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
17791 be 0x7C00 instead of 0x8000.
17793 * boot/i386/pc/pxeboot.S: Rewritten.
17795 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
17797 (gate_a20_check_state): Read a byte from 0x108000. Invert the
17800 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
17802 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
17803 robustness. This routine now supports a BIOS call and System
17804 Control Port A to modify the gate A20.
17806 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17807 Increased to 0x440.
17809 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
17811 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
17812 device path and resulting ihandle.
17813 (grub_ofdisk_close): dprintf the ihandle being closed.
17814 (grub_ofdisk_read): dprintf function parameters.
17815 * kern/mm.c (grub_mm_init_region): Likewise.
17816 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
17817 (grub_linux_boot): dprintf the Linux entry point, initrd address and
17818 size, and boot arguments.
17819 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
17820 before loading into memory.
17821 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
17822 before loading into memory.
17824 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
17826 * kern/mm.c: Added much documentation.
17827 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
17828 8, set to 5 instead of 8.
17830 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17832 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
17834 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
17835 (grub_mkdevicemap_SOURCES): New variable.
17837 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
17838 lib/device.c of GRUB Legacy.
17840 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17842 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
17843 instead of PATH is NULL.
17845 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
17847 * commands/cmp.c (BUFFER_SIZE): New macro.
17848 (grub_cmd_cmp): Close the right file at the right time. Compare
17849 only data just read. Don't report files of different size as
17850 identical. Dynamically allocate buffers. Move variable
17851 declarations at the beginning of function.
17853 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
17855 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
17858 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
17860 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
17861 when backspace is pressed at beginning of line.
17863 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
17865 * DISTLIST: Added genfslist.sh.
17867 * normal/main.c (fs_module_list): New variable.
17868 (autoload_fs_module): New function.
17869 (read_fs_list): Likewise.
17870 (grub_normal_execute): Call read_fs_list.
17872 * kern/fs.c (grub_fs_autoload_hook): New variable.
17873 (grub_fs_probe): Added support for auto-loading.
17875 * include/grub/normal.h (struct grub_fs_module_list): New struct.
17876 (grub_fs_module_list_t): New type.
17878 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
17879 (grub_fs_autoload_hook): New prototype.
17881 * genfslist.sh: New file.
17883 * genmk.rb: Added a rule to generate a filesystem list.
17885 2005-06-30 Marco Gerards <metgerards@student.han.nl>
17887 * configure.ac: Fix the test for cross-compiling.
17889 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
17890 define GRUB_UTIL anymore.
17892 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
17893 so this function works on other systems than just big endian.
17894 (load_modules): Likewise.
17895 (add_segments): Likewise.
17897 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
17899 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
17900 contains `l' modifier, get a long from va_arg().
17902 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
17904 * kern/mm.c (grub_free): If the next free block which is being
17905 merged is the first free block, set the first block to the block
17907 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
17909 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17911 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
17912 `grub_ieee1275_chosen'.
17914 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17916 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
17917 (grub_ieee1275_chosen): New variable.
17918 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
17920 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
17921 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
17922 Rename first argument to `phandle' for consistency.
17923 (grub_ieee1275_get_property_length): Likewise.
17924 (grub_ieee1275_next_property): Likewise. Change type of first argument
17925 to grub_ieee1275_phandle_t.
17926 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
17927 Move export next to declaration.
17928 (grub_ieee1275_chosen): New variable.
17929 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
17930 Correct cosmetic typo.
17931 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
17932 `grub_ieee1275_chosen'.
17933 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
17934 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
17935 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
17936 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
17937 `grub_ieee1275_chosen'.
17939 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
17941 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
17943 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
17944 /chosen/bootargs as "variable=value" pairs.
17946 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
17948 * include/grub/misc.h (grub_dprintf): New macro.
17949 (grub_real_dprintf): New prototype.
17950 (grub_strword): Likewise.
17951 (grub_iswordseparator): Likewise.
17952 * kern/misc.c (grub_real_dprintf): New function.
17953 (grub_strword): Likewise.
17954 (grub_iswordseparator): Likewise.
17956 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
17958 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
17959 (roundup): Remove macro.
17960 (grub_ieee1275_flags): Make static.
17961 (grub_ieee1275_realmode): Remove.
17962 (grub_ieee1275_test_flag): New function.
17963 (grub_ieee1275_set_flag): Likewise.
17964 (find_options): Rename to `grub_ieee1275_find_options'; update
17965 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
17966 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
17967 (cmain): New prototype.
17968 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
17969 `grub_ieee1275_flags' directly.
17970 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
17971 machine/biosdisk.h.
17972 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
17973 Don't include grub/machine/init.h.
17974 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
17975 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
17977 (grub_ieee1275_realmode): Likewise.
17978 (grub_ieee1275_flag): New enum.
17979 (grub_ieee1275_test_flag): New prototype.
17980 (grub_ieee1275_set_flag): New prototype.
17981 * include/grub/powerpc/ieee1275/init.h: Remove file.
17982 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
17983 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
17984 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
17985 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
17987 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
17988 `grub_ieee1275_test_flag'.
17989 (grub_ieee1275_encode_devname): Likewise.
17991 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
17993 * include/grub/powerpc/ieee1275/ieee1275.h
17994 (grub_ieee1275_encode_devname): New prototype.
17995 (grub_ieee1275_get_filename): Likewise.
17996 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
17998 (grub_set_prefix): Likewise.
17999 (grub_machine_init): Call grub_set_prefix.
18000 * kern/powerpc/ieee1275/openfw.c: Fix typos.
18001 (grub_parse_type): New enum.
18002 (grub_ieee1275_get_devargs): New function.
18003 (grub_ieee1275_get_devname): Likewise.
18004 (grub_ieee1275_parse_args): Likewise.
18005 (grub_ieee1275_get_filename): Likewise.
18006 (grub_ieee1275_encode_devname): Likewise.
18008 2005-03-30 Marco Gerards <metgerards@student.han.nl>
18010 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
18011 `grub_loader_unset'.
18013 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
18015 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
18016 instead of grub_ieee1275_interpret.
18017 (grub_halt_init): New function.
18018 (grub_halt_fini): Likewise.
18019 (GRUB_MOD_INIT): Correct message grammar.
18020 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
18021 instead of grub_ieee1275_interpret.
18022 (grub_reboot_init): New function.
18023 (grub_reboot_fini): Likewise.
18024 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
18025 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
18026 util/i386/pc/misc.c with commands/ieee1275/halt.c,
18027 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
18028 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
18030 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
18032 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
18034 (grub_halt): Likewise.
18035 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
18036 (cmain): Remove __attribute__((unused)).
18037 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
18038 (grub_heap_len): Likewise.
18039 (grub_machine_fini): New function.
18040 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
18041 (grub_halt): Likewise.
18042 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
18044 * util/powerpc/ieee1275/misc.c: New file.
18046 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
18048 * DISTLIST: New file.
18049 * gendistlist.sh: Likewise.
18051 * Makefile.in (COMMON_DISTFILES): Removed.
18052 (BOOT_DISTFILES): Likewise.
18053 (CONF_DISTFILES): Likewise.
18054 (DISK_DISTFILES): Likewise.
18055 (FS_DISTFILES): Likewise.
18056 (INCLUDE_DISTFILES): Likewise.
18057 (KERN_DISTFILES): Likewise.
18058 (LOADER_DISTFILES): Likewise.
18059 (TERM_DISTFILES): Likewise.
18060 (UTIL_DISTFILES): Likewise.
18061 (DISTFILES): Likewise.
18062 (uninstall): Uninstall files in $(pkgdata_DATA).
18063 (DISTLIST): New target.
18064 (distdir): Use the contents of the file DISTLIST to get a list of
18067 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
18069 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
18070 descriptor. This is ported from GRUB Legacy.
18072 * gencmdlist.sh: Added an extra semicolon to make it work with
18073 old sed versions. Reported by Robert Bihlmeyer
18074 <robbe@orcus.priv.at>.
18076 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
18078 Automatic loading of commands is supported.
18080 * normal/main.c (read_command_list): New function.
18081 (grub_normal_execute): Call read_command_list.
18083 * normal/command.c (grub_register_command): Return zero or CMD.
18084 Allocate CMD->NAME from the heap.
18085 Initialize CMD->MODULE_NAME to zero.
18086 Find the same name as well. If the same command is found and it is
18087 a dummy command, overwrite members. If it is not a dummy command,
18089 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
18090 (grub_command_find): If a dummy command is found, load a module
18091 and retry to find a command only once.
18093 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
18094 make sure that each command is loaded.
18096 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
18098 (struct grub_command): Remove const from the member `name'.
18099 Add a new member `module_name'.
18100 (grub_register_command): Return grub_command_t.
18102 * commands/help.c (grub_cmd_help): Call grub_command_find to make
18103 sure that each command is loaded.
18105 * genmk.rb (PModule::rule): Specify a module name without the
18106 suffix ".mod" to gencmdlist.sh.
18108 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18110 * gencmdlist.sh: New file.
18112 * genmk.rb (PModule::rule): Generate a rule for a command list.
18114 Generate command.lst from $(COMMANDFILES).
18116 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
18117 (DATA): Added $(pkgdata_DATA).
18118 (install-local): Install files in $(pkgdata_DATA).
18120 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18122 * term/i386/pc/vga.c (debug_command): Removed.
18123 (GRUB_MOD_INIT): Do not register the command "debug".
18125 From Hollis Blanchard:
18126 * commands/configfile.c: New file.
18127 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18128 commands/configfile.c.
18129 (pkgdata_MODULES): Added configfile.mod.
18130 (configfile_mod_SOURCES): New variable.
18131 (configfile_mod_CFLAGS): Likewise.
18132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18133 commands/configfile.c.
18134 (pkgdata_MODULES): Added configfile.mod.
18135 (configfile_mod_SOURCES): New variable.
18136 (configfile_mod_CFLAGS): Likewise.
18137 * util/grub-emu.c (main): Call grub_configfile_init and
18138 grub_configfile_fini.
18139 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
18141 [GRUB_UTIL] (grub_configfile_fini): Likewise.
18143 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18145 * normal/arg.c (grub_arg_show_help): Do not show the bug report
18148 * commands/help.c (grub_cmd_help): Do not print newlines after
18149 the last command in print_command_help.
18151 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18153 * commands/default.h: New file.
18154 * commands/timeout.h: Likewise.
18155 * normal/context.c: Likewise.
18157 * util/misc.c: Do not include sys/times.h.
18158 Include sys/time.h and grub/machine/time.h.
18159 (grub_get_rtc): Rewritten with gettimeofday.
18161 * util/grub-emu.c (main): Call grub_default_init and
18162 grub_timeout_init before grub_normal_init, and call
18163 grub_timeout_fini and grub_default_fini after grub_main.
18165 * util/console.c (grub_ncurses_checkkey): Return the read
18168 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
18171 * normal/main.c (read_config_file): Push MENU. If this fails,
18172 print an error and wait for a user input.
18173 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
18174 If a menu is empty or an error occurs, pop MENU.
18175 (grub_normal_execute): Pop and free MENU after grub_menu_run
18178 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
18180 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
18182 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18184 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
18186 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18189 * include/grub/normal.h (struct grub_menu_list): New struct.
18190 (grub_menu_list_t): New type.
18191 (struct grub_context): New struct.
18192 (grub_context_t): New type.
18193 (grub_register_command): Got rid of EXPORT_FUNC.
18194 (grub_unregister_command): Likewise.
18195 (grub_context_get): New prototype.
18196 (grub_context_get_current_menu): Likewise.
18197 (grub_context_push_menu): Likewise.
18198 (grub_context_pop_menu): Likewise.
18199 [GRUB_UTIL] (grub_default_init): Likewise.
18200 [GRUB_UTIL] (grub_default_fini): Likewise.
18201 [GRUB_UTIL] (grub_timeout_init): Likewise.
18202 [GRUB_UTIL] (grub_timeout_fini): Likewise.
18204 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
18205 commands/timeout.c and normal/context.c.
18206 (pkgdata_MODULES): Added default.mod and timeout.mod.
18207 (normal_mod_SOURCES): Added normal/context.c.
18208 (default_mod_SOURCES): New variable.
18209 (default_mod_CFLAGS): Likewise.
18210 (timeout_mod_SOURCES): Likewise.
18211 (timeout_mod_CFLAGS): Likewise.
18212 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
18214 (pkgdata_MODULES): Added default.mod and timeout.mod.
18215 (normal_mod_SOURCES): Added normal/context.c.
18216 (default_mod_SOURCES): New variable.
18217 (default_mod_CFLAGS): Likewise.
18218 (timeout_mod_SOURCES): Likewise.
18219 (timeout_mod_CFLAGS): Likewise.
18221 * Makefile.in (all-local): Added $(MKFILES).
18223 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
18225 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
18226 (grub_emu_SOURCES): Likewise.
18227 (pkgdata_MODULES): Add `sun.mod'.
18228 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18229 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18231 (pkgdata_MODULES): Add `sun.mod'.
18232 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18233 * include/grub/partition.h (grub_sun_partition_map_init): New
18235 (grub_sun_partition_map_fini): Likewise.
18236 * partmap/sun.c: New file.
18237 * util/grub-emu.c (main): Initialize and de-initialize the sun
18238 partitionmap support.
18240 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
18242 This implements an Emacs-like menu entry editor.
18244 * normal/menu_entry.c: New file.
18246 * util/console.c (grub_ncurses_putchar): Translate some Unicode
18247 characters to ASCII.
18248 (saved_char): New variable.
18249 (grub_ncurses_checkkey): Rewritten completely.
18250 (grub_ncurses_getkey): Likewise.
18251 (grub_ncurses_init): Call raw instead of cbreak.
18253 * normal/menu.c (print_entry): Do not put a space.
18254 (init_page): Renamed to ...
18255 (grub_menu_init_page): ... this. All callers changed.
18256 (edit_menu_entry): Removed.
18257 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
18259 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
18261 * kern/misc.c (grub_vprintf): Call grub_refresh.
18263 * normal/menu.c (DISP_LEFT): Renamed to ...
18264 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
18265 * normal/menu.c (DISP_UP): Renamed to ...
18266 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
18267 * normal/menu.c (DISP_RIGHT): Renamed to ...
18268 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
18269 * normal/menu.c (DISP_DOWN): Renamed to ...
18270 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
18271 * normal/menu.c (DISP_HLINE): Renamed to ...
18272 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
18273 * normal/menu.c (DISP_VLINE): Renamed to ...
18274 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
18275 * normal/menu.c (DISP_UL): Renamed to ...
18276 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
18277 * normal/menu.c (DISP_UR): Renamed to ...
18278 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
18279 * normal/menu.c (DISP_LL): Renamed to ...
18280 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
18281 * normal/menu.c (DISP_LR): Renamed to ...
18282 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
18283 * normal/menu.c (TERM_WIDTH): Renamed to ...
18284 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
18285 * normal/menu.c (TERM_HEIGHT): Renamed to ...
18286 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
18287 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
18288 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
18289 * normal/menu.c (TERM_MARGIN): Renamed to ...
18290 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
18291 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
18292 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
18293 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
18294 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
18295 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
18296 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
18297 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
18298 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
18299 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
18300 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
18301 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
18302 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
18303 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
18304 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
18305 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
18306 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
18307 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
18308 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
18309 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
18310 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
18311 All callers changed.
18313 * include/grub/normal.h: New prototype.
18315 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18316 normal/menu_entry.c.
18317 (normal_mod_SOURCES): Likewise.
18318 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18319 (normal_mod_SOURCES): Likewise.
18321 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
18323 * include/grub/normal.h (grub_halt_init): New prototype.
18324 (grub_halt_fini): Likewise.
18325 (grub_reboot_init): Likewise.
18326 (grub_reboot_fini): Likewise.
18328 * util/grub-emu.c: Include signal.h.
18329 (main_env): New global variable.
18330 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
18332 (grub_machine_fini): New function.
18333 (main): Call grub_halt_init and grub_reboot_init before
18334 grub_main, and grub_reboot_fini and grub_halt_fini after it.
18335 Call setjmp with MAIN_ENV to go back afterwards.
18336 Call grub_machine_fini right before return.
18338 * include/grub/util/misc.h: Include setjmp.h.
18339 (main_env): New prototype.
18341 * include/grub/kernel.h (grub_machine_fini): New prototype.
18342 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
18343 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
18345 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
18346 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
18347 * term/i386/pc/console.c (grub_console_fini): Likewise.
18349 * util/i386/pc/misc.c: New file.
18351 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18352 util/i386/pc/misc.c, commands/i386/pc/halt.c and
18353 commands/i386/pc/reboot.c.
18355 2005-02-14 Guillem Jover <guillem@hadrons.org>
18357 * include/grub/dl.h (grub_dl_check_header): New prototype.
18358 (grub_arch_dl_check_header): Change return type to grub_err_t,
18359 remove size parameter and export function. Update all callers.
18360 * kern/dl.c (grub_dl_check_header): New function.
18361 (grub_dl_load_core): Use `grub_dl_check_header' instead of
18362 `grub_arch_dl_check_header'. Check ELF type. Check if sections
18363 are inside the core.
18364 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
18365 independent ELF header checks.
18366 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18367 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
18368 `grub_dl_check_header' instead of explicit checks. Check for the
18370 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
18371 `grub_dl_check_header' instead of explicit checks. Remove arch
18372 specific ELF header checks.
18374 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
18377 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
18379 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
18380 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
18382 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
18384 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
18385 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
18386 (part_map_iterate): Clear `grub_errno' and return 0 if
18387 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
18388 * partmap/amiga.c (amiga_partition_map_iterate): Return
18389 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
18390 * partmap/apple.c (apple_partition_map_iterate): Likewise.
18392 2005-02-01 Guillem Jover <guillem@hadrons.org>
18394 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
18397 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18399 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
18401 (grub_rescue_cmd_linux): New prototype.
18402 (grub_rescue_cmd_initrd): Likewise.
18403 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
18405 (grub_linux_release_mem): Release the memory for the initrd.
18406 (grub_load_linux): Renamed from this...
18407 (grub_rescue_cmd_linux): ...To this. Changed all callers.
18408 Changed `entry' not to be static. Loop over memory regions to
18409 find another one when the default fails.
18410 (grub_rescue_cmd_initrd): New function.
18411 (grub_linux_init): Remove function.
18412 (grub_linux_fini): Likewise.
18413 (GRUB_MOD_INIT): Register `initrd'.
18414 (GRUB_MOD_FINI): Unregister `initrd'.
18415 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
18417 (grub_linux_normal_fini): Likewise.
18418 (GRUB_MOD_INIT): Register `initrd'.
18419 (GRUB_MOD_FINI): Unregister `initrd'.
18421 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18423 * commands/help.c: New file.
18424 * normal/arg.c (show_help): Renamed to...
18425 (grub_arg_show_help): ... this.
18426 * commands/i386/pc/halt.c: New file.
18427 * commands/i386/pc/reboot.c: Likewise.
18428 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
18429 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
18430 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
18431 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
18433 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18435 (pkgdata_MODULES): Add `help.mod'.
18436 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
18437 * grub/i386/pc/init.h (grub_reboot): New prototype.
18438 (grub_halt): Likewise.
18439 * include/grub/normal.h (grub_arg_show_help): New prototype.
18440 (grub_help_init): Likewise.
18441 (grub_help_fini): Likewise.
18442 * util/grub-emu.c (main): Initialize and deinitialize the help
18445 * normal/cmdline.c (grub_cmdline_get): Doc fix.
18447 * normal/command.c (grub_command_init): Fixed the description of
18448 the `set' and `unset' commands.
18450 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18452 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
18454 * commands/ieee1275/halt.c: New file.
18455 * commands/ieee1275/reboot.c: Likewise.
18456 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
18457 `__attribute__ ((unused))'. Some GCS related fixed.
18458 (grub_suspend_init) [GRUB_UTIL]: Function removed.
18459 (grub_suspend_fini): Likewise.
18460 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
18462 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
18463 (halt_mod_CFLAGS): New variables.
18464 * include/grub/powerpc/ieee1275/ieee1275.h
18465 (grub_ieee1275_interpret): New prototype.
18467 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
18469 * include/grub/misc.h (memmove): New prototype.
18470 (memcpy): Likewise.
18472 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
18474 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
18475 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
18477 2005-01-22 Marco Gerards <metgerards@student.han.nl>
18479 * kern/misc.c (grub_strndup): Function rewritten.
18481 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
18483 * normal/menu.c (TERM_WIDTH): Macro redefined.
18484 (TERM_TOP_BORDER_Y): Likewise.
18485 (draw_border): Replaced while-loop by a for-loop. Make the number
18486 of lines consistent with the number of lines displayed in
18487 print_entries. Added a margin below the rectangle.
18488 (print_entry): Make the entry fit in the rectangle.
18489 (print_entries): Display the scroll arrows next to the right
18492 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18494 * fs/minix.c (grub_minix_find_file): Reserve more space for
18495 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
18496 `grub_strncpy' to copy `path' into it.
18498 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18500 Add the loopback device, a device via which files can be accessed
18503 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
18504 (pkgdata_MODULES): Add loopback.mod.
18505 (loopback_mod_SOURCES): New variable.
18506 (loopback_mod_CFLAGS): Likewise.
18507 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18509 (pkgdata_MODULES): Add loopback.mod.
18510 (loopback_mod_SOURCES): New variable.
18511 (loopback_mod_CFLAGS): Likewise.
18512 * disk/loopback.c: new file.
18513 * include/grub/normal.h (grub_loop_init): New prototype.
18514 (grub_loop_fini): New prototype.
18515 * util/grub-emu.c (main): Initialize and de-initialize loopback
18517 * include/grub/disk.h (grub_disk_dev_id): Add
18518 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
18520 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
18522 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
18524 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
18525 (suspend_mod_SOURCES): New variable.
18526 (suspend_mod_CFLAGS): Likewise.
18527 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
18529 * commands/ieee1275/suspend.c: New file.
18531 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
18533 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
18534 ((unused))' to `__attribute__ ((used))'.
18535 (GRUB_MOD_FINI): Likewise.
18536 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
18537 * genmk.rb (PModule): Assign space to common symbols when linking
18540 2005-01-20 Marco Gerards <metgerards@student.han.nl>
18542 * include/grub/mm.h (grub_mm_init_region): Change the type of the
18543 `unsigned' arguments to `grub_size_t'.
18544 (grub_malloc): Likewise.
18545 (grub_realloc): Likewise.
18546 (grub_memalign): Likewise.
18547 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
18548 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18549 * util/misc.c (grub_malloc): Likewise.
18550 (grub_realloc): Likewise.
18551 * kern/mm.c (get_header_from_pointer): Change the casts to
18552 `unsigned' into a cast to `grub_size_t'.
18554 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
18555 point to `currnode' when `currnode' is changed.
18557 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
18558 Schottelius <nico-linux@schottelius.org>.
18560 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
18562 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
18563 (note_path): Remove variable.
18564 (GRUB_IEEE1275_NOTE_NAME): New macro.
18565 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
18566 (grub_ieee1275_note_hdr): New structure.
18567 (grub_ieee1275_note_desc): Likewise.
18568 (grub_ieee1275_note): Likewise.
18569 (load_note): Remove `dir' argument. All callers updated. Remove
18570 `note_img' and `path'. Do not load a file from `note_path'.
18571 Initialize a struct grub_ieee1275_note and write that to `out'.
18572 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
18574 2005-01-05 Marco Gerards <metgerards@student.han.nl>
18576 * util/misc.c (grub_util_read_image): Revert last change. It
18577 called `grub_util_read_at', which seeks from the beginning of the
18580 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
18582 * TODO: Add note about endianness in grub-mkimage.
18583 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
18585 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
18586 (grub_mkimage_SOURCES): New target.
18587 * include/grub/kernel.h (grub_start_addr): Remove variable.
18588 (grub_end_addr): Likewise.
18589 (grub_total_module_size): Likewise.
18590 (grub_kernel_image_size): Likewise.
18591 (GRUB_MODULE_MAGIC): New constant.
18592 (grub_module_info): New structure.
18593 (grub_arch_modules_addr): New prototype.
18594 (grub_get_end_addr): Remove prototype.
18595 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
18596 * include/grub/powerpc/ieee1275/kernel.h: New file.
18597 * include/grub/util/misc.h (grub_util_get_fp_size): New
18599 (grub_util_read_at): Likewise.
18600 (grub_util_write_image_at): Likewise.
18601 * kern/main.c (grub_get_end_addr): Remove function.
18602 (grub_load_modules): Call grub_arch_modules_addr instead of using
18603 grub_end_addr. Look for a grub_module_info struct in memory. Use
18604 the grub_module_info fields instead of calling grub_get_end_addr
18605 as loop conditions. Move grub_add_unused_region code here.
18606 (grub_add_unused_region): Remove function.
18607 * kern/i386/pc/init.c: Include grub/cache.h.
18608 (grub_machine_init): Remove call to grub_get_end_addr. Remove
18609 one call to add_mem_region.
18610 (grub_arch_modules_addr): New function.
18611 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
18612 (grub_total_module_size): Likewise.
18613 Include grub/machine/kernel.h.
18614 (grub_arch_modules_addr): New function.
18615 * util/grub-emu.c (grub_end_addr): Remove variable.
18616 (grub_total_module_size): Likewise.
18617 (grub_arch_modules_addr): New function.
18618 * util/misc.c: Include unistd.h.
18619 (grub_util_get_fp_size): New function.
18620 (grub_util_read_at): Likewise.
18621 (grub_util_write_image_at): Likewise.
18622 (grub_util_read_image): Call grub_util_read_at.
18623 (grub_util_write_image): Call grub_util_write_image_at.
18624 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
18625 additional memory in kernel_img for a struct grub_module_info.
18626 Fill in that grub_module_info.
18627 * util/powerpc/ieee1275/grub-mkimage.c: New file.
18629 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18631 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
18633 * include/grub/powerpc/ieee1275/ieee1275.h
18634 (grub_ieee1275_milliseconds): New prototype.
18635 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
18637 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
18638 grub_ieee1275_milliseconds.
18640 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18642 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
18644 (find_options): New function.
18645 (cmain): Call find_options.
18646 * include/grub/powerpc/ieee1275/ieee1275.h
18647 (grub_ieee1275_realmode): New extern variable.
18648 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
18649 grub_map if grub_ieee1275_realmode is false.
18651 2004-12-29 Marco Gerards <metgerards@student.han.nl>
18653 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
18654 lines are inserted and make it work like readline. Reported by
18655 Vincent Pelletier <subdino2004@yahoo.fr>.
18657 2004-12-28 Marco Gerards <metgerards@student.han.nl>
18659 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
18661 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
18662 `kern/powerpc/cache.S'.
18664 2004-12-27 Marco Gerards <metgerards@student.han.nl>
18666 * genmk.rb: Handle the `Program' class in the main loop. Written
18667 by Johan Rydberg <jrydberg@gnu.org>.
18668 (Program): New class.
18669 (programs): New variable.
18670 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
18671 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
18672 instead of "grub/kernel.h". Include <grub/machine/init.h>.
18673 (help_arch): Function removed.
18674 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
18675 `powerpc/libgcc.h' and `loader.h'.
18676 (pkgdata_PROGRAMS): New variable.
18677 (sbin_UTILITIES): Variable removed.
18678 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
18679 (grubof_SOURCES): Variable re-defined so it only includes the
18680 core functionality.
18681 (grubof_CFLAGS): Remove `-DGRUBOF'.
18682 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
18683 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
18684 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
18685 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
18686 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
18687 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
18688 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
18689 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
18690 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
18691 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
18692 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
18693 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
18694 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
18695 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
18696 (pc_mod_CFLAGS): New variables.
18697 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
18698 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
18699 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
18700 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
18702 * include/grub/i386/pc/init.h (grub_os_area_addr)
18703 (rub_os_area_size): ... to here.
18704 * include/grub/powerpc/ieee1275/ieee1275.h
18705 (grub_ieee1275_entry_fn): Export symbol.
18706 * include/grub/powerpc/ieee1275/init.h: New file.
18707 * include/grub/powerpc/libgcc.h: Likewise.
18708 * include/grub/cache.h: Likewise.
18709 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
18710 <hollis@penguinppc.org>.
18711 * kern/dl.c: Include <grub/cache.h>.
18712 (grub_dl_flush_cache): New function.
18713 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
18715 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
18716 (grub_console_init): Removed prototypes.
18717 (grub_machine_init): Don't initialize the modules anymore.
18718 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
18720 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
18721 Macro undef removed.
18722 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
18723 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
18724 relocation `R_PPC_REL32'. Return an error when the relocation is
18726 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
18727 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
18728 * util/misc.c (grub_arch_sync_caches): Likewise.
18730 2004-12-19 Marco Gerards <metgerards@student.han.nl>
18732 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
18733 `symlist.c', add `grubof_symlist.c'.
18734 (symlist.c): Variable removed.
18735 (grubof_HEADERS): Variable added.
18736 (grubof_symlist.c): New target.
18737 (kernel_syms.lst): Use `grubof_HEADERS' instead of
18738 `kernel_img_HEADERS'.
18739 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
18740 * kern/powerpc/dl.c: New file.
18741 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
18743 (grub_arch_dl_relocate_symbols): Likewise.
18744 (grub_register_exported_symbols): Likewise.
18746 2004-12-13 Marco Gerards <metgerards@student.han.nl>
18748 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
18749 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
18750 to fail instead. Reported by Vincent Pelletier
18751 <subdino2004@yahoo.fr>.
18753 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
18754 it is not allocated. Reported by Vincent Pelletier
18755 <subdino2004@yahoo.fr>.
18757 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
18758 output so the output looks better.
18760 2004-12-04 Marco Gerards <metgerards@student.han.nl>
18762 Modulize the partition map support and add support for the amiga
18765 * commands/ls.c: Include <grub/partition.h> instead of
18766 <grub/machine/partition.h>.
18767 * kern/disk.c: Likewise.
18768 * kern/rescue.c: Likewise.
18769 * loader/i386/pc/chainloader.c: Likewise.
18770 * normal/cmdline.c: Likewise.
18771 * kern/powerpc/ieee1275/init.c: Likewise.
18772 (grub_machine_init): Call `grub_pc_partition_map_init',
18773 `grub_amiga_partition_map_init' and
18774 `grub_apple_partition_map_init'.
18775 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
18776 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
18777 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
18778 `partition.h' and `pc_partition.h'.
18779 (grub_setup_SOURCES): Remove
18780 `disk/i386/pc/partition.c'. Add `kern/partition.c',
18781 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18782 (grub_emu_SOURCES): Likewise.
18783 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
18784 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
18785 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
18786 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18787 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
18788 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18789 (grubof_SOURCES): Likewise.
18790 * disk/i386/pc/partition.c: File removed.
18791 * disk/powerpc/ieee1275/partition.c: Likewise.
18792 * include/grub/powerpc/ieee1275/partition.h: Likewise.
18793 * include/grub/i386/pc/partition.h: Likewise.
18794 * kern/partition.c: New file.
18795 * partmap/amiga.c: Likewise.
18796 * partmap/apple.c: Likewise.
18797 * partmap/pc.c: Likewise.
18798 * include/grub/partition.h: Likewise..
18799 * include/grub/pc_partition.h: Likewise.
18800 * util/grub-emu.c: Include <grub/partition.h> instead of
18801 <grub/machine/partition.h>.
18802 (main): Call `grub_pc_partition_map_init',
18803 `grub_amiga_partition_map_init' and
18804 `grub_apple_partition_map_init' and deinitialize afterwards.
18805 * util/i386/pc/biosdisk.c: Include `#include
18806 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18807 `<grub/machine/partition.h>'.
18808 * util/i386/pc/grub-setup.c: Likewise.
18809 * util/i386/pc/biosdisk.c: Likewise.
18810 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
18811 partition information in case of a PC partition.
18812 * util/i386/pc/grub-setup.c: Include `#include
18813 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18814 `<grub/machine/partition.h>'.
18815 (setup): Only access the PC specific partition information in case
18818 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
18820 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
18821 (grub_longjmp): Likewise.
18822 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
18824 * normal/powerpc/setjmp.S: New file.
18825 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
18826 `normal/powerpc/setjmp.S'.
18827 (grubof_CFLAGS): Add `-DGRUBOF'.
18828 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
18829 [GRUB_UTIL && !GRUBOF].
18831 2004-11-16 Marco Gerards <metgerards@student.han.nl>
18833 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
18834 property named `name'. Correctly handle the error returned by
18835 `grub_ieee1275_finddevice' if a device can not be opened.
18837 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
18839 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
18840 `actual' for negativity.
18841 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18844 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18846 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
18847 (PAGE_OFFSET): New macro.
18848 (CRTC_ADDR_PORT): Likewise.
18849 (CRTC_DATA_PORT): Likewise.
18850 (START_ADDR_HIGH_REGISTER): Likewise.
18851 (START_ADDR_LOW_REGISTER): Likewise.
18852 (GRAPHICS_ADDR_PORT): Likewise.
18853 (GRAPHICS_DATA_PORT): Likewise.
18854 (READ_MAP_REGISTER): Likewise.
18855 (INPUT_STATUS1_REGISTER): Likewise.
18856 (INPUT_STATUS1_VERTR_BIT): Likewise.
18857 (page): New variable.
18858 (wait_vretrace): New function.
18859 (set_read_map): Likewise.
18860 (set_start_address): Likewise.
18861 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
18863 (check_vga_mem): Take the page into account.
18864 (write_char): Likewise.
18865 (write_cursor): Likewise.
18866 (scroll_up): Likewise. Copy the page to the page that is not
18867 shown and switch between both pages.
18868 (grub_vga_putchar): Fix off by one error.
18869 (grub_vga_cls): Wait for the vertical retrace. Take the page into
18872 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18874 Add support for iso9660 (including rockridge).
18876 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18877 (iso9660_mod_SOURCES): New variable.
18878 (iso9660_mod_CFLAGS): Likewise.
18879 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18880 * include/grub/fs.h (grub_iso9660_init): New prototype.
18881 * util/grub-emu.c (main): Call `grub_iso9660_init'.
18882 * fs/iso9660.c: New file.
18884 * include/grub/misc.h (grub_strncat): New prototype.
18885 * kern/misc.c (grub_strncat): New function.
18887 * fs/hfs.c (grub_hfs_mount): Translate the error
18888 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
18889 * fs/jfs.c (grub_jfs_mount): Likewise.
18890 * fs/ufs.c (grub_ufs_mount): Likewise.
18892 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
18894 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
18895 which initialized BAT registers.
18896 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
18897 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18899 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
18900 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18902 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
18903 (grub_mapclaim): Likewise.
18904 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
18905 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
18908 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
18910 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
18911 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
18912 -ffreestanding and -msoft-float.
18914 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
18916 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
18917 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
18918 set in grub_ieee1275_flags.
18920 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
18922 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
18924 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
18925 grub_console_init first.
18926 Change the memory range used for grub_ieee1275_claim and
18927 grub_mm_init_region.
18928 Print an error message if the claim fails.
18929 Include <grub/misc.h>.
18931 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
18933 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
18934 Call grub_children_iterate for device nodes of type `scsi',
18936 (grub_ofdisk_open): Remove manual device alias resolution.
18937 Fix memory leak when device cannot be opened.
18938 * include/grub/powerpc/ieee1275/ieee1275.h
18939 (grub_children_iterate): New prototype.
18940 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
18942 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18943 Return -1 if args.size was -1.
18945 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18947 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
18948 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
18949 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
18950 Open Firmware's memory for it; claim memory from _start to _end.
18951 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
18952 (_end): New extern.
18953 (_start): Zero BSS from __bss_start to _end.
18954 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
18956 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
18958 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18960 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
18961 -1 if args.base was -1.
18963 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
18965 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
18966 escape sequence instead of a literal ^L. Also call
18967 grub_ofconsole_gotoxy.
18969 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
18971 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
18972 void * arguments to grub_addr_t. All callers updated. Also make
18973 the `result' argument optional.
18974 (grub_ieee1275_release): change void * arguments to grub_addr_t.
18975 All callers updated.
18977 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
18979 * commands/ls.c (grub_ls_list_files): Use the string following the
18980 initial ')', if present, as the filesystem path.
18981 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
18983 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
18985 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
18987 Make the source code of the menu interface more readable.
18989 * normal/menu.c: Include grub/mm.h.
18990 (TERM_WIDTH): New macro.
18991 (TERM_HEIGHT): Likewise.
18992 (TERM_INFO_HEIGHT): Likewise.
18993 (TERM_MARGIN): Likewise.
18994 (TERM_SCROLL_WIDTH): Likewise.
18995 (TERM_TOP_BORDER_Y): Likewise.
18996 (TERM_LEFT_BORDER_X): Likewise.
18997 (TERM_BORDER_WIDTH): Likewise.
18998 (TERM_MESSAGE_HEIGHT): Likewise.
18999 (TERM_BORDER_HEIGHT): Likewise.
19000 (TERM_NUM_ENTRIES): Likewise.
19001 (TERM_FIRST_ENTRY_Y): Likewise.
19002 (TERM_ENTRY_WIDTH): Likewise.
19003 (TERM_CURSOR_X): Likewise.
19004 (draw_border): Use macros instead of magic numbers.
19005 (print_entry): Likewise.
19006 (print_entries): Likewise.
19007 (run_menu): Likewise. Also, handle the key 'e'.
19008 (run_menu_entry): Ignore empty command lines.
19009 (print_message): Added a new argument EDIT. If EDIT is true,
19010 print a different message.
19011 (init_page): Likewise.
19012 (edit_menu_entry): New function. Not implemented yet.
19014 2004-09-17 Marco Gerards <metgerards@student.han.nl>
19016 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
19017 can be loaded from normal mode.
19019 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
19021 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
19022 (multiboot_mod_CFLAGS): New variables.
19023 * loader/i386/pc/linux_normal.c: New file.
19024 * loader/i386/pc/multiboot_normal.c: Likewise.
19026 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
19027 attribute `unused'.
19029 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
19030 `fdiro' to read the mode information from instead of `diro'.
19032 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
19033 looking up a symlink.
19035 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
19037 * normal/command.c (grub_command_execute): Don't parse the
19038 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
19039 flags of the command.
19041 * normal/menu.c (grub_menu_run): Fix typo.
19043 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
19045 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
19047 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
19048 `y + 1' instead of `y - 1'.
19050 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
19052 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
19054 From Hollis Blanchard <hollis@penguinppc.org>:
19055 * kern/misc.c (memmove): New alias for grub_memmove.
19056 (memcmp): New alias for grub_memcmp.
19057 (memset): New alias for grub_memset.
19058 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
19059 Change "int handle" to "grub_ieee1275_phandle_t handle".
19060 * include/grub/powerpc/ieee1275/ieee1275.h
19061 (grub_ieee1275_get_property): Likewise.
19063 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
19065 Added normal mode command `chainloader' as module chain.mod, which
19066 depends on normal.mod and _chain.mod.
19068 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
19069 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
19070 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
19072 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
19073 but arguments parsing moved to ...
19074 (grub_chainloader_cmd): ... here. New function.
19075 * include/grub/i386/pc/chainloader.h: New file.
19076 * loader/i386/pc/chainloader_normal.c: Likewise.
19078 2004-09-11 Marco Gerards <metgerards@student.han.nl>
19080 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
19081 (grub_mkimage_LDFLAGS): Likewise.
19082 (grub_emu_SOURCES): Likewise.
19083 (kernel_img_HEADERS): Added fshelp.h.
19084 * fs/ext2.c: Include <grub/fshelp.h>.
19085 (FILETYPE_REG): New macro.
19086 (FILETYPE_INO_REG): Likewise.
19087 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
19089 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
19091 (grub_fshelp_node): New struct.
19092 (grub_ext2_data): Added member `diropen'. Changed member `inode'
19094 (grub_ext2_get_file_block): Removed function.
19095 (grub_ext2_read_block): New function.
19096 (grub_ext2_read_file): Replaced parameter `data' by `node'.
19097 This function was written.
19098 (grub_ext2_mount): Read the root inode. Create a diropen struct.
19099 (grub_ext2_find_file): Removed function.
19100 (grub_ext2_read_symlink): New function.
19101 (grub_ext2_iterate_dir): Likewise.
19102 (grub_ext2_open): Rewritten.
19103 (grub_ext2_dir): Rewritten.
19104 * include/grub/fshelp.h: New file.
19105 * fs/fshelp.c: Likewise.
19107 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
19109 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
19110 (print_message): Add a missing newline.
19111 (run_menu): Added timeout support.
19112 (run_menu_entry): New local function.
19113 (grub_menu_run): Added support for booting.
19115 * kern/loader.c (grub_loader_is_loaded): New function.
19117 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
19118 (grub_get_rtc): Exported.
19120 * include/grub/i386/pc/time.h: Include grub/symbol.h.
19121 (grub_get_rtc): Exported.
19123 * include/grub/normal.h (struct grub_command_list): Remove
19124 constant from the member `command'.
19126 * include/grub/loader.h (grub_loader_is_loaded): Declared.
19128 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
19130 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
19132 2004-08-28 Marco Gerards <metgerards@student.han.nl>
19134 Add support for the JFS filesystem.
19136 * fs/jfs.c: New file.
19137 * include/grub/fs.h (grub_jfs_init): New prototype.
19138 (grub_jfs_fini): New prototype.
19139 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
19140 (grub_emu_SOURCES): Likewise.
19141 (pkgdata_MODULES): Add jfs.mod.
19142 (jfs_mod_SOURCES): New variable.
19143 (jfs_mod_CFLAGS): Likewise.
19144 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
19145 (grubof_SOURCES): Likewise.
19146 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
19148 * fs/fat.c (grub_fat_find_dir): Convert the filename little
19149 endian to the host endian.
19150 (grub_fat_utf16_to_utf8): Move function from there...
19151 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
19152 the endianness of the source string anymore.
19153 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
19155 2004-08-24 Marco Gerards <metgerards@student.han.nl>
19157 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
19158 (grub_boot_fini) [GRUB_UTIL]: Likewise.
19159 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
19160 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
19162 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
19163 (grub_hfs_iterate_dir): Make the function static. Add prototypes
19164 for `node_found' and `it_dir'.
19165 (grub_hfs_dir): Add prototype for `dir_hook'.
19167 * fs/minix.c (grub_minix_get_file_block): Add prototype for
19168 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
19169 and `indir32' to silence a gcc warning.
19171 * include/grub/fs.h (grub_hfs_init): New prototype.
19172 (grub_hfs_fini): Likewise.
19175 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
19177 Each disk device has its own id now. This is useful to make use
19178 of multiple disk devices.
19180 * include/grub/disk.h (grub_disk_dev_id): New enum.
19181 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
19182 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
19184 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
19185 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19187 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
19188 GRUB_DISK_DEVICE_OFDISK_ID as an id.
19190 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
19191 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19193 * include/grub/disk.h (struct grub_disk_dev): Added a new member
19194 "id" which is used by the cache manager.
19196 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
19199 2004-08-18 Marco Gerards <metgerards@student.han.nl>
19201 * fs/hfs.c: New file.
19202 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
19203 (grub_emu_SOURCES): Likewise.
19204 (pkgdata_MODULES): Add hfs.mod.
19205 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
19206 (grubof_SOURCES): Likewise.
19207 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
19209 * include/grub/misc.h (grub_strncasecmp): Add prototype.
19210 * kern/misc.c (grub_strncasecmp): Add function.
19212 2004-08-14 Marco Gerards <metgerards@student.han.nl>
19214 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
19217 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
19218 (grub_ext2_dir): In case the directory entry type is unknown, read
19221 2004-08-02 Peter Bruin <pjbruin@dds.nl>
19223 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
19224 grub_load_linux instead of grub_rescue_cmd_linux as second
19225 argument of grub_rescue_register_command.
19227 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
19229 2004-07-27 Marco Gerards <metgerards@student.han.nl>
19231 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
19233 * commands/boot.c: Remove the check for `GRUB_UTIL'.
19234 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
19235 `loader/powerpc/ieee1275/linux.c',
19236 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
19237 * include/grub/powerpc/ieee1275/ieee1275.h
19238 (grub_ieee1275_release): New prototype.
19239 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
19240 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
19241 normal, boot, linux and linux_normal.
19242 * loader/powerpc/ieee1275/linux.c: New file.
19243 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
19245 2004-07-12 Marco Gerards <metgerards@student.han.nl>
19247 * normal/arg.c (grub_arg_parse): Correct error handling after
19248 reallocating the argumentlist (check if `argl' is not null instead
19249 of checking if `args' is not null).
19250 * kern/mm.c (grub_realloc): Return the same pointer when using the
19251 same region, instead of returning the header address.
19253 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19255 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
19256 one block instead of two when looking for the initial partition.
19257 (grub_partition_probe): Initialize the local variable `p' with 0.
19258 Use base 10 for the grub_strtoul call.
19259 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
19260 need for one local variable.
19261 (grub_strtoul): Don't add the new value to `num', instead of that
19264 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19266 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
19267 (pxeboot_img_SOURCES): New variable.
19268 (pxeboot_img_ASFLAGS): Likewise.
19269 (pxeboot_img_LDFLAGS): Likewise.
19270 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
19271 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
19272 <lode_leroy@hotmail.com>.
19274 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19276 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
19277 there was no input.
19279 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19281 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
19282 the history buffer logic.
19284 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19286 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
19287 (FILETYPE_INO_SYMLINK): New macros.
19288 (grub_ext2_find_file): Check if the node is a directory using the
19289 inode stat information instead of using the filetype in the
19290 dirent. Exclude the first character of an absolute symlink.
19291 (grub_ext2_dir): Mask out the filetype part of the mode member of
19294 2004-05-24 Marco Gerards <metgerards@student.han.nl>
19296 Add support for UFS version 1 and 2. Add support for the minix
19297 filesystem version 1 and 2, both the variants with 14 and 30 long
19300 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
19302 (grub_emu_SOURCES): Likewise.
19303 (pkgdata_MODULES): Add ufs.mod and minix.mod.
19304 (ufs_mod_SOURCES): New variable.
19305 (ufs_mod_CFLAGS): Likewise.
19306 (minix_mod_SOURCES): Likewise.
19307 (minix_mod_CFLAGS): Likewise.
19308 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
19310 (grubof_SOURCES): Likewise.
19311 * fs/ufs.c: New file.
19312 * fs/minix.c: New file.
19313 * include/grub/fs.h (grub_ufs_init): New prototype.
19314 (grub_ufs_fini): Likewise.
19315 (grub_minix_init): Likewise.
19316 (grub_minix_fini): Likewise.
19317 * util/grub-emu.c (main): Initialize and deinitialize UFS and
19320 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
19322 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
19323 commands/ls.c, commands/terminal.c, commands/boot.c,
19324 commands/cmp.c and commands/cat.c.
19325 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
19327 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
19330 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19332 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
19333 and grub_, respectively. Because the conversion is trivial and
19334 mechanical, I omit the details here. Please refer to the CVS
19335 if you need more information.
19337 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19339 * include/pupa: Renamed to ...
19340 * include/grub: ... this.
19341 * util/i386/pc/pupa-mkimage.c: Renamed to ...
19342 * util/i386/pc/grub-mkimage.c: ... this.
19343 * util/i386/pc/pupa-setup.c: Renamed to ...
19344 * util/i386/pc/grub-setup.c: ... this.
19345 * util/pupa-emu.c: Renamed to ...
19346 * util/grub-emu.c: ... this.
19348 2004-03-29 Marco Gerards <metgerards@student.han.nl>
19350 Add support for the newworld apple macintosh (PPC). This has been
19351 tested on the powerbook 2000 only. It only adds support for
19352 generic ieee1275 functions, console and disk support. This should
19353 be easy to port to other architectures with support for Open
19356 * configure.ac: Accept the powerpc as host_cpu. In the case of
19357 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
19358 specific tests are only executed while building for the i386.
19359 Inverse test for crosscompile.
19360 * genmk.rb (Utility): Allow assembler files.
19361 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
19362 * conf/powerpc-ieee1275.rmk: New file.
19363 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
19364 * disk/powerpc/ieee1275/partition.c: Likewise.
19365 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
19366 * include/pupa/powerpc/ieee1275/console.h: Likewise.
19367 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
19368 * include/pupa/powerpc/ieee1275/time.h: Likewise.
19369 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
19370 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
19371 * include/pupa/powerpc/ieee1275/loader.h
19372 * include/pupa/powerpc/setjmp.h: Likewise.
19373 * include/pupa/powerpc/types.h: Likewise.
19374 * kern/powerpc/ieee1275/init.c: Likewise.
19375 * kern/powerpc/ieee1275/openfw.c: Likewise.
19376 * term/powerpc/ieee1275/ofconsole.c: Likewise.
19378 These files were written by Johan Rydberg
19379 (jrydberg@night.trouble.net) and I only modified them slightly.
19381 * boot/powerpc/ieee1275/cmain.c: New file.
19382 * boot/powerpc/ieee1275/crt0.S: Likewise.
19383 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
19384 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
19386 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
19388 * Makefile.in: Update copyright.
19389 * genmodsrc.sh: Likewise.
19390 * gensymlist.sh: Likewise.
19391 * term/i386/pc/vga.c: Indent correctly.
19393 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
19394 bugreporting address.
19395 * util/i386/pc/pupa-setup.c (usage): Likewise,
19396 (main): Call pupa_ext2_init and pupa_ext2_fini.
19398 * fs/fat.c (log2): Renamed to ...
19399 (fat_log2): ... this.
19400 All callers changed.
19401 * kern/misc.c (memcpy): Alias to pupa_memmove.
19402 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
19404 * util/console.c (pupa_ncurses_fini): Return 0.
19406 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
19407 Move fail label here.
19408 [__GNU__]: Don't warn when using stat.
19409 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
19410 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
19411 long int. Use strtol instead of strtoul.
19413 2004-03-14 Marco Gerards <metgerards@student.han.nl>
19415 * commands/boot.c: New file.
19416 * commands/cat.c: Likewise.
19417 * commands/cmp.c: Likewise.
19418 * commands/ls.c: Likewise.
19419 * commands/terminal.c: Likewise.
19420 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
19421 (pupa_register_command): Changed interface to match the new
19423 (pupa_command_execute): Changed (almost rewritten) so it uses
19424 pupa_split_command. Added support for setting variables using the
19426 (rescue_command): Changed to work with the new argument parser.
19427 (terminal_command): Moved from here to commands/terminal.c.
19428 (set_command): New function.
19429 (unset_command): New function.
19430 (insmod_command): New function.
19431 (rmmod_command): New function.
19432 (lsmod_command): New function.
19433 (pupa_command_init): Don't initialize the command terminal
19434 anymore. Initialize the commands set, unset, insmod, rmmod and
19436 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
19437 (kernel_img_HEADERS): Add arg.h and env.h.
19438 (pupa_mkimage_LDFLAGS): Add kern/env.c.
19439 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
19440 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
19442 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
19444 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
19445 (boot_mod_SOURCES): New variable.
19446 (terminal_mod_SOURCES): Likewise.
19447 (ls_mod_SOURCES): Likewise.
19448 (cmp_mod_SOURCES): Likewise.
19449 (cat_mod_SOURCES): Likewise.
19451 * normal/arg.c: New file.
19452 * kern/env.c: Likewise.
19453 * include/pupa/arg.h: Likewise.
19454 * include/pupa/env.h: Likewise.
19455 * font/manager.c (font_command): Changed to match argument parsing
19457 (PUPA_MOD_INIT): Likewise.
19458 * hello/hello.c (pupa_cmd_hello): Likewise.
19459 (PUPA_MOD_INIT): Likewise.
19460 * include/pupa/disk.h: Include <pupa/device.h>.
19461 (pupa_print_partinfo): New prototype.
19462 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
19463 (pupa_dl_get_prefix): Likewise.
19464 * include/pupa/misc.h: Include <pupa/err.h>.
19465 (pupa_isgraph): New prototype.
19466 (pupa_isdigit): Likewise.
19467 (pupa_split_cmdline): Likewise.
19468 * include/pupa/normal.h: Include <pupa/arg.h>.
19469 (pupa_command): Changed the prototype of the member `func' to
19470 match the argument parsing interface. Added member `options'.
19471 (pupa_register_command): Updated to match function.
19472 (pupa_arg_parse): New prototype.
19473 (pupa_hello_init) [PUPA_UTIL]: New prototype.
19474 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
19475 (pupa_ls_init) [PUPA_UTIL]: Likewise.
19476 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
19477 (pupa_cat_init) [PUPA_UTIL]: Likewise.
19478 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
19479 (pupa_boot_init) [PUPA_UTIL]: Likewise.
19480 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
19481 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
19482 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
19483 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
19484 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
19485 * kern/disk.c: Include <pupa/file.h>.
19486 (pupa_print_partinfo): New function.
19487 * kern/dl.c: Include <pupa/env.h>.
19488 (pupa_dl_dir): Variable removed.
19489 (pupa_dl_load): Use the environment variable `prefix' instead of
19490 the variable pupa_dl_dir.
19491 (pupa_dl_set_prefix): Function removed.
19492 (pupa_dl_get_prefix): Likewise.
19493 * kern/i386/pc/init.c: Include <pupa/env.h>.
19494 (pupa_machine_init): Use the environment variable `prefix' instead of
19495 using pupa_dl_set_prefix to set the prefix.
19496 * kern/main.c: Include <pupa/env.h>.
19497 (pupa_set_root_dev): Use the environment variable `prefix' instead of
19498 using pupa_dl_get_prefix to get the prefix.
19499 * kern/misc.c: Include <pupa/env.h>.
19500 (pupa_isdigit): New function.
19501 (pupa_isgraph): Likewise.
19502 (pupa_ftoa): Likewise.
19503 (pupa_vsprintf): Added support for printing values of the type
19504 `double'. Make it possible to format variable output when using
19505 formatting like `%1.2%f'.
19506 (pupa_split_cmdline): New function.
19507 * kern/rescue.c: Include <pupa/env.h>.
19508 (next_word): Removed function.
19509 (pupa_rescue_cmd_prefix): Likewise.
19510 (pupa_rescue_cmd_set): New function.
19511 (pupa_rescue_cmd_unset): New function.
19512 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
19513 split the command line instead of splitting it here. Added
19514 support for setting variables using the syntax `foo=bar'. Don't
19515 initialize the prefix command anymore. Initialized the set and
19517 * normal/cmdline.c: Include <pupa/env.h>.
19518 (pupa_tab_complete): Added prototypes for print_simple_completion,
19519 print_partition_completion, add_completion, iterate_commands,
19520 iterate_dev, iterate_part and iterate_dir. Moved code to print
19521 partition information from here to kern/disk.c.
19522 (pupa_cmdline_run): Don't check if the function exists anymore.
19523 * normal/main.c: Include <pupa/env.h>.
19524 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
19525 instead of using pupa_dl_get_prefix to get the prefix.
19526 * term/i386/pc/vga.c: Include <pupa/arg.h>.
19527 (check_vga_mem): Cast pointers to `void *' to silence a gcc
19529 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
19530 (pupa_vga_setcolor): Declare unused variables with `__attribute__
19531 ((unused))' to silence a gcc warning.
19532 (pupa_vga_setcolor): Likewise.
19533 (debug_command): Changed to match argument parsing
19535 * util/pupa-emu.c: Include <pupa/env.h>.
19536 (options): Added 0's for unused fields to silence a gcc warning.
19538 (main): Use the environment variable `prefix' instead of using
19539 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
19540 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
19543 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
19544 * util/misc.c: Include <malloc.h>.
19545 (pupa_malloc): Rewritten so errors are correctly reported.
19546 (pupa_realloc): Likewise.
19547 (pupa_memalign): Likewise.
19548 (pupa_mm_init_region): Declare unused variables with
19549 `__attribute__ ((unused))' to silence a gcc warning.
19550 * normal/i386/setjmp.S: Remove tab at the end of the file to
19551 silence a gcc warning.
19552 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
19553 variables with `__attribute__ ((unused))' to silence a gcc
19555 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
19556 local variable i unsigned to silence a gcc warning.
19558 * kern/term.c: Include <pupa/misc.h>.
19559 (pupa_more_lines): New variable.
19560 (pupa_more): Likewise.
19561 (pupa_putcode): When the pager is active pause at the end of every
19563 (pupa_set_more): New function.
19564 * include/pupa/term.h (pupa_set_more): New prototype.
19567 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
19569 Now this project is GRUB 2 rather than PUPA. The location of
19570 the CVS repository was moved to GRUB's.
19572 * configure.ac: Use bug-grub as the reporting address.
19573 Use GRUB instead of PUPA.
19574 Change the version number to 1.90.
19576 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
19578 * genkernsyms.sh: Updated copyright information.
19579 * genmk.rb: Likewise.
19580 * genmodsrc.sh: Likewise.
19581 * gensymlist.sh: Likewise.
19582 * boot/i386/pc/boot.S: Likewise.
19583 * boot/i386/pc/diskboot.S: Likewise.
19584 * disk/i386/pc/biosdisk.c: Likewise.
19585 * disk/i386/pc/partition.c: Likewise.
19586 * font/manager.c: Likewise.
19587 * fs/ext2.c: Likewise.
19588 * fs/fat.c: Likewise.
19589 * include/pupa/boot.h: Likewise.
19590 * include/pupa/device.h: Likewise.
19591 * include/pupa/disk.h: Likewise.
19592 * include/pupa/dl.h: Likewise.
19593 * include/pupa/elf.h: Likewise.
19594 * include/pupa/err.h: Likewise.
19595 * include/pupa/file.h: Likewise.
19596 * include/pupa/font.h: Likewise.
19597 * include/pupa/fs.h: Likewise.
19598 * include/pupa/kernel.h: Likewise.
19599 * include/pupa/loader.h: Likewise.
19600 * include/pupa/misc.h: Likewise.
19601 * include/pupa/mm.h: Likewise.
19602 * include/pupa/net.h: Likewise.
19603 * include/pupa/normal.h: Likewise.
19604 * include/pupa/rescue.h: Likewise.
19605 * include/pupa/setjmp.h: Likewise.
19606 * include/pupa/symbol.h: Likewise.
19607 * include/pupa/term.h: Likewise.
19608 * include/pupa/types.h: Likewise.
19609 * include/pupa/i386/setjmp.h: Likewise.
19610 * include/pupa/i386/types.h: Likewise.
19611 * include/pupa/i386/pc/biosdisk.h: Likewise.
19612 * include/pupa/i386/pc/boot.h: Likewise.
19613 * include/pupa/i386/pc/console.h: Likewise.
19614 * include/pupa/i386/pc/init.h: Likewise.
19615 * include/pupa/i386/pc/kernel.h: Likewise.
19616 * include/pupa/i386/pc/linux.h: Likewise.
19617 * include/pupa/i386/pc/loader.h: Likewise.
19618 * include/pupa/i386/pc/memory.h: Likewise.
19619 * include/pupa/i386/pc/multiboot.h: Likewise.
19620 * include/pupa/i386/pc/partition.h: Likewise.
19621 * include/pupa/i386/pc/time.h: Likewise.
19622 * include/pupa/i386/pc/vga.h: Likewise.
19623 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
19624 * include/pupa/util/getroot.h: Likewise.
19625 * include/pupa/util/misc.h: Likewise.
19626 * include/pupa/util/resolve.h: Likewise.
19627 * kern/device.c: Likewise.
19628 * kern/disk.c: Likewise.
19629 * kern/dl.c: Likewise.
19630 * kern/err.c: Likewise.
19631 * kern/file.c: Likewise.
19632 * kern/fs.c: Likewise.
19633 * kern/loader.c: Likewise.
19634 * kern/main.c: Likewise.
19635 * kern/misc.c: Likewise.
19636 * kern/mm.c: Likewise.
19637 * kern/rescue.c: Likewise.
19638 * kern/term.c: Likewise.
19639 * kern/i386/dl.c: Likewise.
19640 * kern/i386/pc/init.c: Likewise.
19641 * kern/i386/pc/lzo1x.S: Likewise.
19642 * kern/i386/pc/startup.S: Likewise.
19643 * loader/i386/pc/chainloader.c: Likewise.
19644 * loader/i386/pc/linux.c: Likewise.
19645 * loader/i386/pc/multiboot.c: Likewise.
19646 * normal/cmdline.c: Likewise.
19647 * normal/command.c: Likewise.
19648 * normal/main.c: Likewise.
19649 * normal/menu.c: Likewise.
19650 * normal/i386/setjmp.S: Likewise.
19651 * term/i386/pc/console.c: Likewise.
19652 * term/i386/pc/vga.c: Likewise.
19653 * util/console.c: Likewise.
19654 * util/genmoddep.c: Likewise.
19655 * util/misc.c: Likewise.
19656 * util/pupa-emu.c: Likewise.
19657 * util/resolve.c: Likewise.
19658 * util/unifont2pff.rb: Likewise.
19659 * util/i386/pc/biosdisk.c: Likewise.
19660 * util/i386/pc/getroot.c: Likewise.
19661 * util/i386/pc/pupa-mkimage.c: Likewise.
19662 * util/i386/pc/pupa-setup.c: Likewise.
19664 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
19666 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
19667 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
19668 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
19669 reading and reset it after reading.
19670 (pupa_ext2_close): Return PUPA_ERR_NONE.
19672 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
19674 (struct linux_kernel_header): Add kernel_version and
19676 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
19677 pupa_file_read succeeds.
19678 (pupa_rescue_cmd_initrd): Implement.
19680 2003-12-03 Marco Gerards <metgerards@student.han.nl>
19682 * fs/ext2.c (pupa_ext2_label): New function.
19683 (pupa_ext2_fs): Added label.
19684 * fs/fat.c (pupa_fat_label): New function.
19685 (pupa_fat_fs): Added label.
19686 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
19688 * kern/misc.c (pupa_strndup): New function.
19689 * include/pupa/misc.h (pupa_strndup): New prototype.
19691 * include/pupa/normal.h: Include <pupa/err.h>.
19692 (pupa_set_history): New prototype.
19693 (pupa_iterate_commands): New prototype.
19694 * normal/cmdline.c: Include <pupa/machine/partition.h>,
19695 <pupa/disk.h>, <pupa/file.h>.
19696 (hist_size): New variable.
19697 (hist_lines): Likewise.
19698 (hist_end): Likewise.
19699 (hist_used): Likewise.
19700 (pupa_set_history): New function.
19701 (pupa_history_get): Likewise.
19702 (pupa_history_add): Likewise.
19703 (pupa_history_replace): Likewise.
19704 (pupa_tab_complete): Likewise.
19705 (pupa_cmdline_run): Added tab completion and history buffer. Tab
19706 completion shows partitionnames while completing partitions, this
19707 feature was suggested by Jeff Bailey.
19708 * normal/command.c (pupa_iterate_commands): New function.
19709 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
19710 (pupa_normal_init): Initialize history buffer.
19711 (PUPA_MOD_INIT): Likewise.
19712 (pupa_normal_fini): Free the history buffer.
19713 (PUPA_MOD_FINI): Likewise.
19715 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
19718 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
19719 * configure.ac [i386]: Check for regparam bug.
19720 (NESTED_FUNC_ATTR) [! i386]: Defined.
19722 2003-11-17 Marco Gerards <metgerards@student.han.nl>
19724 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
19725 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
19726 (pupa_emu_SOURCES): New variable.
19727 (pupa_emu_LDFLAGS): Likewise.
19728 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
19729 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
19730 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
19731 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19732 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
19733 (pupa_jmp_buf): New typedef.
19734 (pupa_setjmp) [PUPA_UTIL]: New macro.
19735 (pupa_longjmp) [PUPA_UTIL]: Likewise.
19736 * include/pupa/term.h (struct pupa_term): New member `refresh'.
19737 (pupa_refresh): New prototype.
19738 * include/pupa/util/getroot.h: New file.
19739 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
19741 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
19742 (pupa_rescue_cmd_cat): Likewise.
19743 (pupa_rescue_cmd_ls): Likewise.
19744 (pupa_rescue_cmd_testload): Likewise.
19745 (pupa_rescue_cmd_lsmod): Likewise.
19746 * normal/cmdline.c (pupa_cmdline_get): Likewise.
19747 * normal/menu.c (run_menu): Likewise.
19748 * kern/term.c (pupa_cls): Likewise.
19749 (pupa_refresh): New function.
19750 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
19751 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19752 * util/console.c: New file.
19754 * util/i386/pc/getroot.c: New file.
19755 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
19756 (pupa_putchar): New function.
19757 (pupa_refresh): Likewise.
19758 (xgetcwd): Function moved to ...
19759 (strip_extra_slashes): Likewise.
19760 (get_prefix): Likewise.
19761 * util/i386/pc/getroot.c: ... here.
19762 (find_root_device): Function moved and renamed to...
19763 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
19764 Changed all callers.
19765 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
19767 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
19768 Changed all callers.
19769 * util/misc.c (pupa_memalign): New function.
19770 (pupa_mm_init_region): Likewise.
19771 (pupa_register_exported_symbols): Likewise.
19772 (pupa_putchar): Function removed.
19773 * util/pupa-emu.c: New file.
19775 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
19777 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
19778 (_multiboot_mod_SOURCES): New variable.
19779 (_multiboot_mod_CFLAGS): Likewise.
19780 * loader/i386/pc/multiboot.c: New file.
19781 * include/pupa/i386/pc/multiboot.h: Likewise.
19782 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
19783 (pupa_multiboot_real_boot): New function.
19784 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
19785 (pupa_multiboot_real_boot): New prototype.
19786 (pupa_rescue_cmd_multiboot): Likewise
19787 (pupa_rescue_cmd_module): Likewise.
19789 * kern/loader.c (pupa_loader_set): Continue when
19790 pupa_loader_unload_func() fails.
19791 (pupa_loader_unset): New function.
19792 * include/pupa/loader.h (pupa_loader_unset): New prototype.
19794 * kern/misc.c (pupa_stpcpy): New function.
19795 * include/pupa/misc.h (pupa_stpcpy): New prototype.
19797 2003-11-12 Marco Gerards <metgerards@student.han.nl>
19799 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
19800 for available extensions.
19802 * include/pupa/i386/pc/time.h: New file.
19803 * kern/disk.c: Include <pupa/machine/time.h>.
19804 (PUPA_CACHE_TIMEOUT): New macro.
19805 (pupa_last_time): New variable.
19806 (pupa_disk_open): Flush the cache when there was a timeout.
19807 (pupa_disk_close): Reset the timer.
19808 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
19810 * util/misc.c: Include <sys/times.h>
19811 (pupa_get_rtc): New function.
19813 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
19815 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
19817 (pupa_ext2_get_file_block): Use blocks member.
19819 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
19820 first block. Return -1 instead of pupa_errno on error.
19822 2003-10-27 Marco Gerards <metgerards@student.han.nl>
19824 * README: In the pupa-mkimage example use _chain instead of chain
19825 and ext2 instead of fat.
19826 * TODO: Replace ext2fs with jfs as an example. Add an item for
19827 adding journal playback for ext2fs.
19828 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
19829 (pkgdata_MODULES): Added ext2.mod.
19830 (ext2_mod_SOURCES): New variable.
19831 (ext2_mod_CFLAGS): Likewise.
19832 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
19833 * include/pupa/misc.h (pupa_strncpy): New prototype.
19834 (pupa_strcat): Likewise.
19835 (pupa_strncmp): Likewise.
19836 * kern/misc.c (pupa_strcat): Enable function.
19837 (pupa_strncpy): New function.
19838 (pupa_strncmp): Likewise.
19839 * fs/ext2.c: New file.
19841 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
19842 when the read failed before retrying.
19843 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
19844 (_FILE_OFFSET_BITS): Likewise.
19845 * configure.ac: Added AC_SYS_LARGEFILE.
19847 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19849 * genmk.rb (PModule#rule): Make sure to get only symbol names
19850 from the output of nm.
19851 Reported by Robert Millan <zeratul2@wanadoo.es>.
19853 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19855 I forgot to check in these changes for a long time. This adds
19856 incomplete support for VGA console, and this is still very
19857 buggy. Also, a lot of consideration is required for I18N,
19858 UNICODE, and VGA font issues. Therefore, assume that this is
19859 such that "better than nothing".
19861 * font/manager.c: New file.
19862 * include/pupa/font.h: Likewise.
19863 * include/pupa/i386/pc/vga.h: Likewise.
19864 * term/i386/pc/vga.c: Likewise.
19865 * util/unifont2pff.rb: Likewise.
19867 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
19868 (pkgdata_MODULES): Added vga.mod and font.mod.
19869 (vga_mod_SOURCES): New variables.
19870 (vga_mod_CFLAGS): Likewise.
19871 (font_mod_SOURCES): Likewise.
19872 (font_mod_CFLAGS): Likewise.
19874 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
19876 * include/pupa/term.h: Include pupa/err.h.
19877 (struct pupa_term): Added init and fini.
19878 Changed the argument of putchar to pupa_uint32_t.
19880 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
19881 (pupa_console_real_putchar): New prototype.
19882 (pupa_console_putchar): Removed.
19883 (pupa_console_checkkey): Exported.
19884 (pupa_console_getkey): Likewise.
19886 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
19889 * kern/term.c (pupa_term_set_current): Rewritten.
19890 (pupa_putchar): Likewise.
19891 (pupa_putcode): New function.
19893 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
19894 (pupa_console_real_putchar): ... this.
19895 (pupa_vga_set_mode): New function.
19896 (pupa_vga_get_font): Likewise.
19898 * normal/command.c: Include pupa/term.h.
19899 (terminal_command): New function.
19900 (pupa_command_init): Register the command "terminal".
19902 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
19903 (DISP_UP): Likewise.
19904 (DISP_RIGHT): Likewise.
19905 (DISP_DOWN): Likewise.
19906 (DISP_HLINE): Likewise.
19907 (DISP_VLINE): Likewise.
19908 (DISP_UL): Likewise.
19909 (DISP_UR): Likewise.
19910 (DISP_LL): Likewise.
19911 (DISP_LR): Likewise.
19913 * term/i386/pc/console.c (pupa_console_putchar): New function.
19915 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
19917 * util/resolve.c (pupa_util_resolve_dependencies): BUG
19918 FIX. Reverse the path_list.
19920 * include/pupa/normal.h: Export pupa_register_command and
19921 pupa_unregister_command.
19923 * hello/hello.c (pupa_cmd_hello): New module.
19924 * conf/i386-pc.rmk: Added hello.mod.
19926 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
19928 * kern/i386/pc/lzo1x.S: New file.
19930 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
19931 (compress_kernel): New variable.
19932 (generate_image): Heavily modified to support compressing a
19933 large part of the core image.
19935 * util/misc.c (pupa_util_read_image): Fix a file descriptor
19937 (pupa_util_load_image): New function.
19939 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
19940 (pupa_compressed_size): New variable.
19941 (codestart): Enable Gate A20 here.
19942 Decompress the compressed part of the core image.
19943 Rearrange the code to put functions and variables which are
19944 required for initialization in the non-compressed part.
19947 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
19950 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
19952 * include/pupa/i386/pc/kernel.h
19953 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
19954 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
19955 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
19956 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
19957 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
19959 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
19961 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
19962 (Utility#rule): Likewise.
19964 * configure.ac: Check if LZO is available.
19966 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
19968 * include/pupa/normal.h: New file.
19969 * include/pupa/setjmp.h: Likewise.
19970 * include/pupa/i386/setjmp.h: Likewise.
19971 * normal/cmdline.c: Likewise.
19972 * normal/command.c: Likewise.
19973 * normal/main.c: Likewise.
19974 * normal/menu.c: Likewise.
19975 * normal/i386/setjmp.S: Likewise.
19977 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
19978 (pupa_rescue_cmd_initrd): Likewise.
19980 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
19983 * kern/i386/pc/startup.S (translation_table): New variable.
19984 (translate_keycode): New function.
19985 (pupa_console_getkey): Call translate_keycode.
19987 * kern/rescue.c (attempt_normal_mode): New function.
19988 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
19989 it failed, print a message.
19991 * kern/mm.c (pupa_real_malloc): Print more information when a
19992 free magic is broken.
19993 (pupa_free): If the first free header is not free actually, set
19996 * kern/main.c (pupa_load_normal_mode): Just load the module
19998 (pupa_main): Don't print the message
19999 "Entering into rescue mode..." here.
20001 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
20003 (pupa_rescue_cmd_initrd): Likewise.
20004 (pupa_rescue_cmd_initrd): Likewise.
20006 * include/pupa/symbol.h (FUNCTION): Specify the type.
20007 (VARIABLE): Likewise.
20009 * include/pupa/err.h (pupa_err_t): Added
20010 PUPA_ERR_UNKNOWN_COMMAND.
20012 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
20013 (pupa_dl_get_prefix): Likewise.
20015 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
20016 Added _chain.mod and _linux.mod instead of chain.mod and
20018 (chain_mod_SOURCES): Renamed to ...
20019 (_chain_mod_SOURCES): ... this.
20020 (chain_mod_CFLAGS): Renamed to ...
20021 (_chain_mod_CFLAGS): ... this.
20022 (linux_mod_SOURCES): Renamed to ...
20023 (_linux_mod_SOURCES): ... this.
20024 (linux_mod_CFLAGS): Renamed to ...
20025 (_linux_mod_CFLAGS): ... this.
20026 (normal_mod_SOURCES): New variable.
20027 (normal_mod_CFLAGS): Likewise.
20028 (normal_mod_ASFLAGS): Likewise.
20030 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
20032 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
20035 * kern/dl.c (pupa_dl_ref): Refer depending modules
20037 (pupa_dl_unref): Unrefer depending modules recursively.
20038 Don't call pupa_dl_unload implicitly, because PUPA can crash if
20039 a module is unloaded before one depending on that module is
20041 (pupa_dl_unload): Unload depending modules explicitly,
20044 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
20046 * include/pupa/i386/pc/linux.h: New file.
20047 * loader/i386/pc/linux.c: Likewise.
20049 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
20051 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
20052 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
20053 of PUPA_CHAINLOADER_BOOT_SECTOR.
20055 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
20056 (pupa_linux_prot_size): New variable.
20057 (pupa_linux_tmp_addr): Likewise.
20058 (pupa_linux_real_addr): Likewise.
20059 (pupa_linux_boot_zimage): New function.
20060 (pupa_linux_boot_bzimage): Likewise.
20062 * kern/i386/pc/init.c (struct mem_region): New structure.
20063 (MAX_REGIONS): New macro.
20064 (mem_regions): New variable.
20065 (num_regions): Likewise.
20066 (pupa_os_area_addr): Likewise.
20067 (pupa_os_area_size): Likewise.
20068 (pupa_lower_mem): Likewise.
20069 (pupa_upper_mem): Likewise.
20070 (add_mem_region): New function.
20071 (compact_mem_regions): Likewise.
20072 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
20073 the size of the conventional memory and that of so-called upper
20074 memory (before the first memory hole).
20075 Instead of adding each found region to free memory, use
20076 add_mem_region and add them after removing overlaps.
20077 Also, add only 1/4 of the upper memory to free memory. The rest
20078 is used for loading OS images. Maybe this is ad hoc, but this
20079 makes it much easier to relocate OS images when booting.
20081 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
20082 (pupa_enter_rescue_mode): Don't register initrd and module.
20084 * kern/mm.c: Include pupa/dl.h.
20086 * kern/main.c: Include pupa/file.h and pupa/device.h.
20088 * kern/loader.c (pupa_loader_load_module_func): Removed.
20089 (pupa_loader_load_module): Likewise.
20091 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
20094 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
20095 (pupa_linux_tmp_addr): Likewise.
20096 (pupa_linux_real_addr): Likewise.
20097 (pupa_linux_boot_zimage): Likewise.
20098 (pupa_linux_boot_bzimage): Likewise.
20100 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
20101 (pupa_upper_mem): Likewise.
20102 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
20103 module is too dangerous.
20105 * include/pupa/loader.h (pupa_os_area_addr): Declared.
20106 (pupa_os_area_size): Likewise.
20107 (pupa_loader_set): Remove the first argument. Loader doesn't
20108 manage modules or initrd any longer.
20109 (pupa_loader_load_module): Removed.
20111 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
20112 (linux_mod_SOURCES): New variable.
20113 (linux_mod_CFLAGS): Likewise.
20115 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
20117 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
20118 the length of a blocklist correctly.
20120 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
20121 Use ioctl only if the OS file is a block device.
20122 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
20123 not very useful for normal files.
20125 * kern/main.c (pupa_set_root_dev): New function.
20126 (pupa_load_normal_mode): Likewise.
20127 (pupa_main): Call those above.
20129 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
20132 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
20134 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20136 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
20137 (setup): Configure the installed partition information and the
20140 * loader/i386/pc/chainloader.c (my_mod): New variable.
20141 (pupa_chainloader_unload): New function.
20142 (pupa_rescue_cmd_chainloader): Refer itself.
20143 (PUPA_MOD_INIT): Save its own module in MY_MOD.
20145 * kern/i386/pc/startup.S (install_partition): Removed.
20146 (version_string): Likewise.
20147 (config_file): Likewise.
20148 (pupa_install_dos_part): New variable.
20149 (pupa_install_bsd_part): Likewise.
20150 (pupa_prefix): Likewise.
20151 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
20153 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
20155 (make_install_device): New function.
20156 (pupa_machine_init): Set the dl prefix.
20158 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
20159 (buf): Renamed to ...
20160 (linebuf): ... this.
20161 (pupa_rescue_cmd_prefix): New function.
20162 (pupa_rescue_cmd_insmod): Likewise.
20163 (pupa_rescue_cmd_rmmod): Likewise.
20164 (pupa_rescue_cmd_lsmod): Likewise.
20165 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
20168 * kern/mm.c (pupa_memalign): If failed even after invalidating
20169 disk caches, unload unneeded modules and retry.
20171 * kern/misc.c (pupa_memmove): New function.
20172 (pupa_memcpy): Removed.
20173 (pupa_strcpy): New function.
20174 (pupa_itoa): Made static.
20176 * kern/dl.c (pupa_dl_iterate): New function.
20177 (pupa_dl_ref): Likewise.
20178 (pupa_dl_unref): Likewise.
20179 (pupa_dl_unload): Return if succeeded or not.
20180 (pupa_dl_unload_unneeded): New function.
20181 (pupa_dl_unload_all): Likewise.
20182 (pupa_dl_init): Renamed to ...
20183 (pupa_dl_set_prefix): ... this.
20184 (pupa_dl_get_prefix): New function.
20186 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
20187 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
20188 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
20189 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
20190 (pupa_install_dos_part): Declared.
20191 (pupa_install_bsd_part): Likewise.
20192 (pupa_prefix): Likewise.
20193 (pupa_boot_drive): Likewise.
20195 * include/pupa/types.h: Fix a typo.
20197 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
20199 (pupa_memmove): Declared.
20200 (pupa_strcpy): Likewise.
20202 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
20203 pupa_mod_init takes one argument, its own module.
20204 (pupa_dl_unload_unneeded): Declared.
20205 (pupa_dl_unload_all): Likewise.
20206 (pupa_dl_ref): Likewise.
20207 (pupa_dl_unref): Likewise.
20208 (pupa_dl_iterate): Likewise.
20209 (pupa_dl_init): Renamed to ...
20210 (pupa_dl_set_prefix): ... this.
20211 (pupa_dl_get_prefix): Declared.
20213 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
20214 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
20216 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
20217 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
20219 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
20220 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
20222 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20224 * util/i386/pc/pupa-setup.c (setup): Define the internal
20225 function find_first_partition_start at the top level, because GCC
20226 3.0.x cannot compile internal functions in deeper scopes
20228 (find_root_device): Use lstat instead of stat.
20229 Don't follow symbolic links.
20230 Fix the path-constructing code.
20232 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
20233 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
20234 by a BLKGETSIZE ioctl first, because block devices don't fill
20235 the member st_mode of the structure stat on Linux.
20236 [__linux__] (linux_find_partition): Use a temporary buffer
20237 REAL_DEV for the working space. Copy it to DEV before returning.
20238 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
20239 buffer cache consistent.
20240 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
20241 strncmp. The previous value was merely wrong.
20242 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
20244 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
20245 FAT size is 12. The previous value was merely wrong.
20247 * kern/main.c (pupa_main): Don't split the starting message from
20250 * kern/term.c (pupa_putchar): Put CR after LF instead of before
20251 LF, because BIOS goes crazy about character attributes in this
20254 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20256 * include/i386/pc/util/biosdisk.h: New file.
20257 * util/i386/pc/biosdisk.c: Likewise.
20258 * util/i386/pc/pupa-setup.c: Likewise.
20260 * Makefile.in (INCLUDE_DISTFILES): Added
20261 include/pupa/i386/pc/util/biosdisk.h.
20262 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
20263 directory util/i386/pc.
20264 (install-local): Added a rule for sbin_UTILITIES.
20265 (uninstall): Likewise.
20267 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
20269 * util/misc.c (xrealloc): New function.
20270 (pupa_malloc): Likewise.
20271 (pupa_free): Likewise.
20272 (pupa_realloc): Likewise.
20273 (pupa_stop): Likewise.
20274 (pupa_putchar): Likewise.
20276 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
20278 * include/pupa/util/misc.h (xrealloc): Declared.
20280 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
20282 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
20283 (PUPA_BOOT_MACHINE_BPB_END): ... this.
20285 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
20286 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20288 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
20289 way should be implemented.
20290 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20292 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
20293 the size of NAME for safety.
20294 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
20297 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
20298 (pupa_setup_SOURCES): Likewise.
20300 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
20302 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20304 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
20305 bunch of pushl's from pusha, because this destroys the return
20308 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20310 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
20311 This means that any missing prototypes could be fatal. Also, you
20312 must take care when writing assembly code. See the comments at
20313 the beginning of startup.S, for more details.
20315 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
20316 compilation mechanism.
20317 (pupa_chainloader_real_boot): Likewise.
20318 (pupa_biosdisk_rw_int13_extensions): Likewise.
20319 (pupa_biosdisk_rw_standard): Likewise.
20320 (pupa_biosdisk_check_int13_extensions): Likewise.
20321 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
20322 (pupa_biosdisk_get_diskinfo_standard): Likewise.
20323 (pupa_get_memsize): Likewise.
20324 (pupa_get_mmap_entry): Likewise.
20325 (pupa_console_putchar): Likewise.
20326 (pupa_console_setcursor): Likewise.
20327 (pupa_getrtsecs): Use pushl instead of push.
20329 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
20330 memory instead of the stack for a mmap entry, because some
20331 BIOSes may ignore the maximum size and overflow.
20333 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
20335 * genmk.rb (PModule#rule): Compile automatically generated
20336 sources with module-specific CFLAGS as well as other sources.
20338 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20340 * configure.ac: Check ld.
20341 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
20342 respectively, before checking endianness and sizes.
20344 * Makefile.in (LD): New variable.
20346 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20348 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
20350 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20352 * Changelog: New file.