1 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
3 * docs/grub.cfg: Fix example usage of *BSD loaders.
5 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
8 grub_util_error() call.
10 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
13 `reserved_first_sector' member.
14 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
15 `reserved_first_sector' to 1.
16 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
17 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
18 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
19 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
20 filesystems which begin at first sector.
21 (options): New option --skip-fs-probe.
22 (main): Handle --skip-fs-probe and pass it to setup().
24 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
27 (memset): Fix function prototype.
29 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30 2009-10-25 Vasily Averin <vvs@parallels.com>
32 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
33 `dirent.direntlen == 0'.
35 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
37 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
39 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
41 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
43 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
44 `__trampoline_setup' and `__ucmpdi2'.
45 * include/grub/powerpc/libgcc.h: Only export symbols for functions
48 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
50 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
51 * include/grub/sparc64/libgcc.h (memset): Likewise.
52 * include/grub/misc.h (memset, memcmp): New function prototypes.
54 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
56 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
58 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
60 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
62 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
63 * docs/grub.cfg: Compensate for recent change in multiboot
64 loader (since 2009-08-14 it won't pass filename to payload).
65 * util/grub.d/10_hurd.in: Likewise.
67 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
69 * config.guess: Update to latest version from config git
71 * config.sub: Likewise.
73 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
77 * configure.ac: Perform checks for libgcc symbols before
78 adding `-nostdlib' to LDFLAGS.
80 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
82 Let user specify OpenBSD root device.
84 * loader/i386/bsd.c (openbsd_root): New variable.
85 (openbsd_opts): New option 'root'.
86 (OPENBSD_ROOT_ARG): New macro.
87 (grub_openbsd_boot): Use 'openbsd_root'.
88 (grub_cmd_openbsd): Fill 'openbsd_root'.
90 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
92 * NEWS: Misc adjustments.
94 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
96 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
98 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
100 * configure.ac: Bump version to 1.97.
102 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
104 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
105 -mno-3dnow on x86 architectures. Some toolchains enable these
106 features by default, but they rely on registers that aren't enabled
107 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
109 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
111 Make entry text a bit more readable.
113 * util/grub.d/10_linux.in: Add `with' before `Linux'.
115 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
117 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
119 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
121 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
124 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
126 * configure.ac: Add missing dollar.
128 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
130 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
132 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
133 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
135 * include/grub/sparc64/libgcc.h: Likewise. Use
136 preprocessor conditionals.
138 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
140 * conf/common.rmk (grub-dumpbios): Remove rule.
141 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
142 * util/grub-dumpbios.in: Remove file.
144 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
146 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
147 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
149 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
150 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
153 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
154 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
155 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
156 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
159 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
161 * term/tparm.c: Switch to GPLv3.
163 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
165 * include/grub/i386/cpuid.h: Add header protection.
167 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
169 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
171 * include/grub/i386/cpuid.h: New file.
172 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
173 (has_longmode): Rename to ...
174 (grub_cpuid_has_longmode): ... this. Update all users. Remove
176 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
177 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
178 on a CPU that doesn't implement AMD64 instruction set.
180 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
182 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
183 that version.texi is rebuilt on version number changes.
185 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
187 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
190 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
192 * util/i386/pc/grub-install.in: Source
193 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
194 that the --grub-probe option will work.
195 * util/sparc64/ieee1275/grub-install.in: Likewise.
197 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
199 * configure.ac: Bump version to 1.97~beta4.
201 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
203 Resync grub-mkdevicemap in x86_64-efi.
205 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
206 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
209 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
211 * util/grub-editenv.c (create_envblk_file): Write new block with a
212 .new suffix and then rename it into place, to ensure atomic
215 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
217 Do not automatically install headers.
219 * Makefile.in (include_DATA): Remove. Update all users.
221 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
223 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
224 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
226 * util/osdetect.lua: Remove.
227 * script/lua/lauxlib.c: Likewise.
228 * script/lua/ldebug.c: Likewise.
229 * script/lua/grub_main.c: Likewise.
230 * script/lua/lauxlib.h: Likewise.
231 * script/lua/ldebug.h: Likewise.
232 * script/lua/ltablib.c: Likewise.
233 * script/lua/liolib.c: Likewise.
234 * script/lua/lstrlib.c: Likewise.
235 * script/lua/lualib.h: Likewise.
236 * script/lua/ldo.c: Likewise.
237 * script/lua/ldump.c: Likewise.
238 * script/lua/ldo.h: Likewise.
239 * script/lua/loslib.c: Likewise.
240 * script/lua/lundump.c: Likewise.
241 * script/lua/grub_lib.c: Likewise.
242 * script/lua/ldblib.c: Likewise.
243 * script/lua/lundump.h: Likewise.
244 * script/lua/lmem.c: Likewise.
245 * script/lua/grub_lib.h: Likewise.
246 * script/lua/lmathlib.c: Likewise.
247 * script/lua/lstate.c: Likewise.
248 * script/lua/ltm.c: Likewise.
249 * script/lua/lvm.c: Likewise.
250 * script/lua/lmem.h: Likewise.
251 * script/lua/lstate.h: Likewise.
252 * script/lua/ltm.h: Likewise.
253 * script/lua/ltable.c: Likewise.
254 * script/lua/lvm.h: Likewise.
255 * script/lua/llex.c: Likewise.
256 * script/lua/lgc.c: Likewise.
257 * script/lua/grub_lua.h: Likewise.
258 * script/lua/loadlib.c: Likewise.
259 * script/lua/lfunc.c: Likewise.
260 * script/lua/lopcodes.c: Likewise.
261 * script/lua/lparser.c: Likewise.
262 * script/lua/ltable.h: Likewise.
263 * script/lua/llex.h: Likewise.
264 * script/lua/lgc.h: Likewise.
265 * script/lua/lfunc.h: Likewise.
266 * script/lua/lbaselib.c: Likewise.
267 * script/lua/lopcodes.h: Likewise.
268 * script/lua/lparser.h: Likewise.
269 * script/lua/lzio.c: Likewise.
270 * script/lua/linit.c: Likewise.
271 * script/lua/lobject.c: Likewise.
272 * script/lua/llimits.h: Likewise.
273 * script/lua/lstring.c: Likewise.
274 * script/lua/lzio.h: Likewise.
275 * script/lua/lapi.c: Likewise.
276 * script/lua/lcode.c: Likewise.
277 * script/lua/lua.h: Likewise.
278 * script/lua/lobject.h: Likewise.
279 * script/lua/lstring.h: Likewise.
280 * script/lua/lapi.h: Likewise.
281 * script/lua/lcode.h: Likewise.
282 * script/lua/luaconf.h: Likewise.
284 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
286 * docs/grub.texi (Command-line and menu entry commands): Document
287 date and echo commands.
289 2009-09-24 Pavel Roskin <proski@gnu.org>
291 * include/grub/kernel.h (struct grub_module_header): Remove
292 `grub_module_header_types'. Make `type' unsigned. Make `size'
293 32-bit on all platforms.
294 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
295 8-bit field. Use grub_host_to_target32() for `size'.
296 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
297 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
298 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
300 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
302 Fix "lost keypress" bug in at_keyboard.
304 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
305 Checks for readyness of input buffer (without flushing it).
306 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
307 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
309 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
311 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
312 size check within GRUB_MACHINE_PCBIOS section.
314 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
316 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
318 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
319 KEYBOARD_ISREADY check.
320 (grub_at_keyboard_checkkey): Rename to ...
321 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
322 Remove gratuitous cast.
324 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
326 * configure.ac: Call AC_PROG_MKDIR_P.
327 * Makefile.in (docs/stamp-vti): Create docs directory. Create
328 version.texi in $(builddir) rather than $(srcdir).
329 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
330 to makeinfo's @include search path.
332 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
334 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
336 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
338 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
341 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
343 Build info documentation. Some code borrowed from Automake.
345 * configure.ac: Check for makeinfo.
346 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
347 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
349 (MOSTLYCLEANFILES): Add vti.tmp.
350 (docs/version.texi, docs/stamp-vti): Update automatically.
351 (docs/grub.info): Build info documentation. Use --force and ignore
353 (all-local): Add $(INFOS).
354 (install-local): Install info files.
355 (uninstall): Uninstall info files.
356 * docs/version.texi: Remove from revision control. This file is
357 automatically generated on build now.
358 * gendistlist.sh: Add `*.info'.
360 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
362 * kern/term.c: Fix indentation.
364 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
366 * util/hostdisk.c: Fix a comment.
368 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
370 Fix regression introduced in r2539.
372 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
375 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
377 * util/grub.d/30_os-prober.in: Don't throw away stderr from
378 os-prober. Under normal operation, it does not print anything to
379 stderr; if it does, we need to debug it, and throwing away stderr
380 makes that excessively difficult.
382 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
384 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
386 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
388 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
389 AC_LANG_PROGRAM from autoconf.
390 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
391 prototypes (fixes warning).
393 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
394 `--disable-werror' was used.
396 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
398 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
399 uninitialized `lastaddr'.
401 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
403 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
405 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
407 * commands/test.c (get_fileinfo): Return immediately if
410 2009-09-14 José MartÃnez <xosemp@gmail.com>
412 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
414 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
416 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
419 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
421 * configure.ac: Remove --enable-grub-pe2elf. Only build
422 grub-pe2elf when needed by the build system itself.
423 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
425 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
427 * configure.ac: Bump version to 1.97~beta3.
428 * docs/version.texi: Likewise.
430 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
432 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
433 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
435 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
436 (grub_linux_setup_video): ... to here (with some adjustments).
438 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
440 Fix memory corruption issue (spotted by Colin Watson).
442 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
443 causing returned size to be stored in an incorrect memory location.
444 Fix use of uninitialized value when storing the returned size.
446 2009-09-12 Yves Blusseau <blusseau@zetam.org>
448 Change clean rules to properly remove files
450 * genmk.rb: add new clean rules
451 * Makefile.in (clean): add the new targets
452 (mostlyclean): likewise
454 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
456 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
458 * fs/ntfs.c (init_file): Understand 64-bit sizes for
461 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
463 * configure.ac: Don't look for help2man when cross-compiling. Fixes
466 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
468 * util/grub-mkconfig.in: Make the created config mode 400 and
469 print a warning if it fails.
471 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
473 * util/grub.d/40_custom.in: Ask user to type custom entries below
474 comment, rather than below 'exec tail' line.
476 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
478 * util/grub.d/40_custom.in: Make sure that the explanatory text is
481 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
483 * util/grub.d/40_custom.in: Make it a little clearer how to use this
486 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
488 * docs/grub.cfg: Add an example menu entry for memtest86+.
490 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
492 * config.guess: Update to latest version from config git.
493 * config.sub: Likewise.
495 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
497 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
498 unknown-command case. Fixes bug #27320.
500 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
502 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
503 `help' if the command exists.
505 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
507 * INSTALL: Require GCC 4.1.3 or later.
509 2009-09-06 Yves Blusseau <blusseau@zetam.org>
511 * Makefile.in (RMKFILES): add i386-qemu.rmk
512 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
515 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
517 * util/grub-probe.c (probe): Comment out buggy codepath, which
518 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
519 should be re-enabled after 1.97.
521 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
523 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
526 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
528 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
529 unnecessary calls to grub_error.
531 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
533 * NEWS: Mention `keystatus' and Unicode fonts.
535 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
537 * configure.ac: Bump version to 1.97~beta2.
538 * docs/version.texi: Likewise.
540 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
542 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
543 containing unwind information in some cases where it previously did
544 not. Use -fno-dwarf2-cfi-asm if available to restore the old
545 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
548 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
550 Embedding loadenv module into grub-emu
552 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
554 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
555 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
556 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
557 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
558 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
559 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
561 2009-09-03 Magnus Granberg <zorry@ume.nu>
563 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
564 include -fPIE in the default specs.
565 * configure.ac: Check if pie_possible is yes and add -fno-PIE
568 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
570 * INSTALL: Note that GNU Bison 2.3 or later is required.
572 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
574 * kern/i386/pc/startup.S: Fix typo.
576 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
578 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
581 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
583 * docs/grub.texi (Naming convention): Describe one-based partition
585 (Device syntax): Likewise.
586 (File name syntax): Likewise.
587 (Block list syntax): Likewise.
588 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
590 (File name syntax): Likewise.
591 (Command-line and menu entry commands): Document acpi, blocklist,
592 crc, export, insmod, keystatus, ls, set, and unset commands.
594 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
596 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
597 to avoid implying that only one of --shift, --ctrl, or --alt may be
600 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
602 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
603 rather than comparing against S_IFREG, which will almost never work.
605 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
607 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
608 (write_blocklists): Likewise.
610 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
612 * script/lua/grub_lua.h (fputs): Supply a format string as the first
613 argument to grub_printf.
615 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
617 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
620 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
622 * kern/file.c (grub_file_read): Spelling fix
624 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
626 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
627 loading of headers in some cases.
629 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
631 * configure.ac: Bump version to 1.97~beta1.
632 * docs/version.texi: Likewise.
634 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
636 * include/grub/i386/xnu.h: Add license header.
637 include grub/err.h explicitly.
639 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
641 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
642 to `ufs' in the vfs.root.mountfrom kernel parameter.
644 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
646 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
648 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
649 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
651 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
654 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
656 * kern/file.c (grub_file_read): Check offset.
657 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
658 * fs/jfs.c (grub_jfs_read_file): Likewise.
659 * fs/ntfs.c (grub_ntfs_read): Likewise.
660 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
661 * fs/minix.c (grub_minix_read_file): Correct offset check.
662 * fs/ufs.c (grub_ufs_read_file): Likewise.
664 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
666 * term/i386/pc/console.c (bios_data_area): Cast
667 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
669 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
671 1-bit optimised blitters.
673 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
675 (grub_video_fbblit_replace_24bit_1bit): Likewise.
676 (grub_video_fbblit_replace_16bit_1bit): Likewise.
677 (grub_video_fbblit_replace_8bit_1bit): Likewise.
678 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
679 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
680 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
681 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
683 (grub_video_fbblit_replace_24bit_1bit): Likewise.
684 (grub_video_fbblit_replace_16bit_1bit): Likewise.
685 (grub_video_fbblit_replace_8bit_1bit): Likewise.
686 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
687 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
688 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
689 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
691 * video/video.c (grub_video_get_blit_format): Return
692 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
694 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
696 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
697 the first argument to grub_printf.
699 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
700 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
702 Add `getkeystatus' terminal method. Add a new `keystatus' command
705 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
706 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
707 modifier key bitmasks.
708 (struct grub_term_input): Add `getkeystatus' member.
709 (grub_getkeystatus): Add prototype.
710 * kern/term.c (grub_getkeystatus): New function.
712 * include/grub/i386/pc/memory.h
713 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
714 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
716 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
717 (grub_console_term_input): Set `getkeystatus' member.
718 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
720 (grub_usb_keyboard_getreport): Likewise.
721 (grub_usb_keyboard_checkkey): Likewise.
722 (grub_usb_keyboard_getkeystatus): New function.
723 (grub_usb_keyboard_term): Set `getkeystatus' member.
725 * commands/keystatus.c: New file.
726 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
727 (keystatus_mod_SOURCES): New variable.
728 (keystatus_mod_CFLAGS): Likewise.
729 (keystatus_mod_LDFLAGS): Likewise.
730 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
731 commands/keystatus.c.
732 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
733 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
734 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
735 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
736 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
737 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
739 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
741 Split befs.mod and afs.mod into *_be.mod and *.mod
743 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
744 (grub_fstest_SOURCES): Likewise.
745 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
746 (afs_be_mod_SOURCES): New variable.
747 (afs_be_mod_CFLAGS): Likewise.
748 (afs_be_mod_LDFLAGS): Likewise.
749 (befs_be_mod_SOURCES): Likewise.
750 (befs_be_mod_CFLAGS): Likewise.
751 (befs_be_mod_LDFLAGS): Likewise.
752 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
753 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
754 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
755 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
756 (grub_emu_SOURCES): Likewise.
757 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
758 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
759 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
760 * fs/afs_be.c: New file.
761 * fs/befs_be.c: New file.
762 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
763 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
764 (U16): Replaced with ...
765 (grub_afs_to_cpu16): ...this. All users updated.
766 (U32): Replaced with ...
767 (grub_afs_to_cpu32): ...this. All users updated.
768 (U64): Replaced with ...
769 (grub_afs_to_cpu64): ...this. All users updated.
770 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
771 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
772 (grub_afs_validate_sblock): Check only one endianness.
773 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
774 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
775 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
776 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
777 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
778 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
779 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
780 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
782 2009-08-26 Bean <bean123ch@gmail.com>
784 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
786 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
787 (grub_xfs_inode_block): Change return type to grub_uint64_t.
788 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
790 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
792 NetBSD memory map support.
794 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
795 (grub_netbsd_btinfo_mmap_header): New structure.
796 (grub_netbsd_btinfo_mmap_entry): Likewise.
797 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
799 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
801 Enable bsd.mod on coreboot.
803 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
804 (bsd_mod_SOURCES): New variable.
805 (bsd_mod_CFLAGS): Likewise.
806 (bsd_mod_LDFLAGS): Likewise.
807 (bsd_mod_ASFLAGS): Likewise.
808 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
809 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
811 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
813 Cleanup NetBSD root support.
815 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
819 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
821 * util/grub.d/00_header.in: Move check for the video backend of
822 gfxterm from here ...
823 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
824 a suitable video backend.
826 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
828 Fix breakage in grub-setup.
830 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
831 "msdos_partition_map".
833 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
835 Fix breakage in normal/auth.c.
837 * normal/auth.c (grub_iswordseparator): New function.
839 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
841 Authentication support.
843 * commands/password.c: New file.
844 * conf/common.rmk (pkglib_MODULES): Add password.mod.
845 (password_mod_SOURCES): New variable.
846 (password_mod_CFLAGS): Likewise.
847 (password_mod_LDFLAGS): Likewise.
848 (normal_mod_SOURCES): Add normal/auth.c.
849 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
851 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
852 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
853 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
854 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
855 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
856 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
857 * include/grub/auth.h: New file.
858 * include/grub/err.h (grub_err_t): New enum value
859 GRUB_ERR_ACCESS_DENIED.
860 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
862 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
863 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
865 * normal/auth.c: New file.
866 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
867 (grub_cmdline_run): Don't allow to go to command line without
869 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
870 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
871 menuentry without superuser rights.
872 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
873 user isn't a superuser.
875 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
877 Save space by inlining misc.c functions.
879 * kern/misc.c (grub_iswordseparator): Made static.
880 * kern/misc.c (grub_strcat): Moved from here ...
881 * include/grub/misc.h (grub_strcat): ... here. Inlined.
882 * kern/misc.c (grub_strncat): Moved from here ...
883 * include/grub/misc.h (grub_strncat): ... here. Inlined.
884 * kern/misc.c (grub_strcasecmp): Moved from here ...
885 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
886 * kern/misc.c (grub_strncasecmp): Moved from here ...
887 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
888 * kern/misc.c (grub_isalpha): Moved from here ...
889 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
890 * kern/misc.c (grub_isdigit): Moved from here ...
891 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
892 * kern/misc.c (grub_isgraph): Moved from here ...
893 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
894 * kern/misc.c (grub_tolower): Moved from here ...
895 * include/grub/misc.h (grub_tolower): ... here. Inlined.
897 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
899 * script/sh/function.c (grub_script_function_find): Cut error message
900 not to flood terminal.
901 * script/sh/lexer.c (grub_script_yylex): Remove command line length
903 * script/sh/script.c (grub_script_arg_add): Duplicate string.
905 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
907 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
908 `report' grub_uint8_t *.
909 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
910 Use a 50-millisecond timeout rather than just repeating
911 grub_usb_keyboard_getreport 50 times.
912 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
914 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
916 Rename *_partition_map to part_*
918 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
919 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
920 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
921 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
923 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
925 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
926 * util/grub-probe.c (probe_partmap): Don't transform partition name
929 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
931 Fix OpenBSD and NetBSD support.
933 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
934 memory address conflict.
935 (OPENBSD_MMAP_ACPI): New definition.
936 (OPENBSD_MMAP_NVS): Likewise.
937 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
938 and OPENBSD_MMAP_NVS.
939 Add memory map terminator
940 Explicit cast when calling grub_unix_real_boot.
941 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
943 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
945 Let user specify NetBSD root device.
947 * loader/i386/bsd.c (netbsd_root): New variable.
948 (netbsd_opts): New option 'root'.
949 (NETBSD_ROOT_ARG): New macro.
950 (grub_netbsd_boot): Use 'netbsd_root'.
951 (grub_bsd_unload): Free 'netbsd_root'.
952 (grub_cmd_netbsd): Fill 'netbsd_root'.
954 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
956 Support for 64-bit NetBSD.
958 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
959 point when booting non-FreeBSD.
961 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
963 Support --no-smp and --no-acpi for NetBSD.
965 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
966 (NETBSD_AB_NOACPI): Likewise.
967 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
968 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
970 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
972 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
974 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
975 errors. Call grub_error when needed.
977 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
979 * commands/search.c (search_fs): Try searching without autoload first.
980 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
981 filesystem module explicitly for faster booting.
983 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
985 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
987 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
989 * util/grub.d/30_os-prober.in: Disable os-prober if
990 `GRUB_DISABLE_OS_PROBER' was set to true.
992 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
994 * partmap/pc.c: Rename to ...
995 * partmap/msdos.c: ... this. Update all users.
996 (grub_pc_partition_map): Rename to ...
997 (grub_msdos_partition_map): ... this. Update all users.
999 * parttool/pcpart.c: Rename to ...
1000 * parttool/msdospart.c: ... this. Update all users.
1002 * include/grub/pc_partition.h: Rename to ...
1003 * include/grub/msdos_partition.h: ... this. Update all users.
1004 (grub_pc_partition_bsd_entry): Rename to ...
1005 (grub_msdos_partition_bsd_entry): ... this. Update all users.
1006 (grub_pc_partition_disk_label): Rename to ...
1007 (grub_msdos_partition_disk_label): ... this. Update all users.
1008 (grub_pc_partition_entry): Rename to ...
1009 (grub_msdos_partition_entry): ... this. Update all users.
1010 (grub_pc_partition_mbr): Rename to ...
1011 (grub_msdos_partition_mbr): ... this. Update all users.
1012 (grub_pc_partition): Rename to ...
1013 (grub_msdos_partition): ... this. Update all users.
1014 (grub_pc_partition_is_empty): Rename to ...
1015 (grub_msdos_partition_is_empty): ... this. Update all users.
1016 (grub_pc_partition_is_extended): Rename to ...
1017 (grub_msdos_partition_is_extended): ... this. Update all users.
1018 (grub_pc_partition_is_bsd): Rename to ...
1019 (grub_msdos_partition_is_bsd): ... this. Update all users.
1021 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
1022 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
1023 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
1024 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
1025 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
1026 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
1027 (gpt_mod_LDFLAGS): Rename to ...
1028 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
1029 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
1030 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
1031 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
1032 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
1033 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
1034 (part_gpt_mod_LDFLAGS): ... this.
1035 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
1036 `pcpart.mod' to `msdospart.mod'.
1037 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
1039 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
1040 (msdospart_mod_LDFLAGS): ... this.
1042 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1044 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
1045 (openbsd_opts): Likewise.
1046 (netbsd_opts): Likewise.
1047 (freebsd_flags): Added 0 terminator.
1048 (openbsd_flags): Likewise.
1049 (netbsd_flags): Likewise.
1050 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
1051 (grub_cmd_freebsd): Transformed into extended command.
1052 (grub_cmd_openbsd): Likewise.
1053 (grub_cmd_netbsd): Likewise.
1054 (cmd_freebsd): Changed type to grub_extcmd_t.
1055 (cmd_openbsd): Likewise.
1056 (cmd_netbsd): Likewise.
1057 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
1058 grub_cmd_openbsd as extended commands.
1059 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
1060 cmd_netbsd and cmd_openbsd
1062 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1064 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
1066 2009-08-21 Pavel Roskin <proski@gnu.org>
1068 * Makefile.in (install-local): When checking if a file is in the
1069 build directory, use "test -e" to detect symlinks.
1071 * Makefile.in (install-local): Remove all files in
1072 $(DESTDIR)$(pkglibdir) before installing new files there.
1074 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1076 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
1079 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1081 * util/grub-mkconfig.in: Don't use gfxterm by default if not
1082 explicitly specified by the user.
1084 2009-08-18 Pavel Roskin <proski@gnu.org>
1086 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
1087 grub_uint8_t pointer for data.
1088 * include/grub/fbutil.h (struct grub_video_fbblit_info):
1090 * video/fb/fbutil.c: Remove unnecessary casts.
1092 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1096 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
1097 (grub_vbe_set_video_mode): Save active mode info
1098 only after setting the mode.
1099 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
1102 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1104 Rename variables for clarity.
1106 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
1107 (active_vbe_mode_info): ... this. All users updated.
1108 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
1110 (initial_mode): Rename to ...
1111 (initial_vbe_mode): ... this. All users updated.
1112 (mode_in_use): Rename to ..
1113 (vbe_mode_in_use): ... this. All users updated.
1114 (mode_list): Rename to ..
1115 (vbe_mode_list): ... this. All users updated.
1116 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
1117 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
1118 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
1119 'mode_list_size' to 'vbe_mode_list_size'.
1120 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
1121 'best_mode_info' to 'best_vbe_mode_info' and
1122 'best_mode' to 'best_vbe_mode'
1124 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1126 Remove duplicate grub_video_fb_get_video_ptr.
1128 * include/grub/fbutil.h (get_data_ptr): Rename to ...
1129 (grub_video_fb_get_video_ptr): ... this.
1130 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
1131 * video/fb/fbutil.c: Add comment about addressing.
1132 (get_data_ptr): Rename to ...
1133 (grub_video_fb_get_video_ptr): ... this. All users updated.
1134 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
1136 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1138 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
1139 grub_dprintf() that was just added.
1141 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1143 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
1144 (DEFAULT_VIDEO_MODE): Remove macros.
1145 (grub_linux_boot): Remove assumption that Linux has FB support,
1146 and use "text" as default video mode.
1148 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
1150 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
1152 * fs/fat.c (grub_fat_read_data): Likewise.
1154 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1156 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
1158 (grub_module): Likewise.
1160 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1162 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
1163 mbi->cmdline but free playground.
1165 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1167 Handle group offset on UFS1.
1169 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
1170 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
1172 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1174 Split ufs.mod into ufs1.mod and ufs2.mod.
1176 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
1177 (grub_fstest_SOURCES): Likewise.
1178 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
1179 (ufs_mod_SOURCES): Remove.
1180 (ufs_mod_CFLAGS): Likewise.
1181 (ufs_mod_LDFLAGS): Likewise.
1182 (ufs1_mod_SOURCES): New variable.
1183 (ufs1_mod_CFLAGS): Likewise.
1184 (ufs1_mod_LDFLAGS): Likewise.
1185 (ufs2_mod_SOURCES): New variable.
1186 (ufs2_mod_CFLAGS): Likewise.
1187 (ufs2_mod_LDFLAGS): Likewise.
1188 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
1189 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1191 (grub_emu_SOURCES): Likewise.
1192 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1193 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1194 (grub_setup_SOURCES): Likewise.
1195 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1196 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
1197 (grub_setup_SOURCES): Likewise.
1198 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1200 * fs/ufs2.c: New file.
1201 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
1203 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1207 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
1208 subsystem at the end.
1209 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
1210 (video_fb_mod_SOURCES): New variable.
1211 (video_fb_mod_CFLAGS): Likewise.
1212 (video_fb_mod_LDFLAGS): Likewise.
1213 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
1214 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
1215 * video/i386/pc/vbeblit.c: Moved from here ...
1216 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
1217 * video/i386/pc/vbefill.c: Moved from here ...
1218 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
1219 * video/i386/pc/vbeutil.c: Moved from here ...
1220 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
1221 * include/grub/i386/pc/vbeblit.h: Moved from here ...
1222 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
1223 * include/grub/i386/pc/vbefill.h: Moved from here ...
1224 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
1225 * include/grub/i386/pc/vbeutil.h: Moved from here ...
1226 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
1227 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
1228 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
1229 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
1230 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
1231 (grub_video_adapter): Added 'get_info_and_fini'.
1232 (grub_video_get_info_and_fini): New prototype.
1233 (grub_video_set_mode): make modestring const char *.
1234 * loader/i386/linux.c (grub_linux_setup_video): Use
1235 grub_video_get_info_and_fini.
1236 (grub_linux_boot): Move modesetting just before booting.
1237 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
1238 grub_video_get_info_and_fini.
1239 * video/i386/pc/vbe.c: Moved framebuffer part ...
1240 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
1241 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
1242 grub_video_fbstd_colors and grub_video_fb_set_palette.
1243 (grub_video_vbe_init): Clear 'framebuffer' variable and use
1245 (grub_video_vbe_fini): Use grub_video_fb_fini.
1246 (grub_video_vbe_setup): Use framebuffer.render_target instead of
1247 render_target and use grub_video_fb_set_active_render_target and
1248 grub_video_fb_set_palette.
1249 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
1250 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
1251 (grub_video_vbe_adapter): Use framebuffer.
1252 * video/video.c (grub_video_get_info_and_fini): New function.
1253 (grub_video_set_mode): Make modestring const char *.
1254 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
1255 values are already initialised.
1257 2009-08-14 Pavel Roskin <proski@gnu.org>
1259 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
1261 * boot/i386/pc/diskboot.S: Likewise.
1262 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
1263 sectors allow compilation on MacOSX.
1264 * conf/i386-pc.rmk: Enable unconditional compilation of
1267 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
1269 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
1270 * util/grub.d/00_header.in: Enter interruptible sleep if
1271 GRUB_HIDDEN_TIMEOUT is set.
1273 2009-08-13 Yves Blusseau <blusseau@zetam.org>
1275 * include/grub/symbol.h: Add the LOCAL macro.
1276 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
1279 2009-08-13 Pavel Roskin <proski@gnu.org>
1281 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
1282 any modern compilers we support.
1284 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
1285 Use local labels starting with "L_" so that Apple assembler
1286 knows they are local.
1288 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
1290 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
1291 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
1292 (bsd_kernel_types): ... this enum.
1294 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
1295 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
1296 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
1298 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
1299 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
1300 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
1303 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1305 * util/grub-dumpdevtree: Moved from here ...
1306 * util/i386/efi/grub-dumpdevtree: ... to here.
1307 (hexify): New function. Converts a string to its hex version.
1308 Generate hex versions of "efi" and "device-properties" by calling
1309 hexify() on the ASCII strings rather than by hardcoding numbers.
1311 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1313 * fs/jfs.c: Update copyright year.
1315 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1317 * util/grub.d/00_header.in: Fix a comment.
1318 * util/grub.d/10_linux.in: Likewise.
1319 * util/grub.d/10_windows.in: Likewise.
1320 * util/grub.d/10_hurd.in: Likewise.
1322 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1324 * util/grub-mkconfig.in: Allow the user to specify the used font
1327 2009-08-08 Pavel Roskin <proski@gnu.org>
1329 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
1330 available, xfs.mod needs it now.
1332 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
1333 the "g" modifier in sed when the intention is to strip something
1334 once. This fixes comparison of kernels with multiple dashes.
1336 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
1337 on it. Add missing space before closing bracket. Fix
1338 misleading formatting.
1340 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1342 * docs/grub.texi: Major overhaul. Remove all sections that are
1343 specific to GRUB Legacy, or mostly composed of Legacy-specific
1346 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1348 * docs/version.texi: New file. Provides version information for
1351 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1353 * docs/grub.texi: Update CVS information to SVN.
1354 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
1356 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1358 * util/grub-mkconfig.in: Remove a wrong `fi'.
1360 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1362 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
1363 (grub_jfs_uuid): New function.
1364 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
1366 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1368 * util/grub-mkconfig_lib.in (font_path): Move the functionality
1370 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
1371 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
1373 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1375 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
1376 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
1379 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
1380 not just "vmlinu[zx]".
1382 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
1385 * util/grub.d/10_linux.in (find_latest): Moved from here ...
1386 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
1389 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1391 * util/grub.d/10_freebsd.in: Use an absolute device path for
1392 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
1394 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
1396 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
1397 handling of multiple abstraction modules.
1399 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
1401 Fix a bug resulting in black screen when loading Linux using a
1404 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
1407 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
1408 (grub_vbe_bios_getset_dac_palette_width): New function.
1409 (grub_vbe_bios_get_dac_palette_width)
1410 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
1411 grub_vbe_bios_getset_dac_palette_width()).
1413 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
1414 check for return status.
1415 (grub_vbe_get_video_mode_info): When getting information for a packed
1416 mode (<= 8 bpp), obtain DAC palette width using
1417 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
1418 {red,green,blue}_mark_size.
1420 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
1422 * commands/search.c (options): Fix help output to match actual code.
1424 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1426 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
1429 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1431 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
1434 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1436 Support Apple partition map with sector size different from 512 bytes.
1438 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
1439 (apple_partition_map_iterate): Respect 'aheader.blocksize'
1440 and 'apart.partmap_size'.
1442 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1443 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
1447 * commands/i386/cpuid.c (options): New variable.
1448 (grub_cmd_cpuid): Return real error.
1449 (GRUB_MOD_INIT(cpuid)): Declare options.
1451 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
1453 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
1456 2009-07-31 Bean <bean123ch@gmail.com>
1458 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
1460 (grub_fshelp_node): Move inode field to the end.
1461 (grub_xfs_data): Remove inode field.
1462 (grub_xfs_inode_block): Calculate inode size using sblock.
1463 (grub_xfs_inode_offset): Likewise.
1464 (grub_xfs_read_inode): Calculate inode size using sblock.
1465 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
1466 (grub_xfs_iterate_dir): Calculate inode size using sblock.
1467 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
1468 to match inode size.
1469 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
1470 not accessible when data is null.
1471 (grub_xfs_open): Likewise.
1473 2009-07-31 Bean <bean123ch@gmail.com>
1475 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
1476 Don't change pv->disk if it's already set.
1478 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
1479 (grub_raid_register): ... here.
1480 (grub_raid_rescan): Removed.
1482 * include/grub/raid.h (grub_raid_rescan): Removed.
1484 * util/grub-fstest.c: Remove include file <grub/raid.h>.
1485 (fstest): Replace grub_raid_rescan with module fini function followed
1488 * util/grub-probe.c: Add include file <grub/raid.h>.
1489 (probe_raid_level): New function.
1490 (probe): Detect abstraction by walking the disk device, support two
1491 level of abstraction (LVM on RAID) when detecting partition map.
1493 2009-07-31 Pavel Roskin <proski@gnu.org>
1495 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
1496 to grub_zalloc(), it was erroneous.
1497 Reported by Bean <bean123ch@gmail.com>
1499 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
1501 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
1502 embedding zone, not only the first one.
1504 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
1506 * term/gfxterm.c (clear_char): New function.
1507 (grub_virtual_screen_setup): Use clear_char.
1508 (scroll_up): Likewise.
1509 (grub_virtual_screen_cls): Likewise.
1511 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
1513 * util/deviceiter.c (get_acceleraid_disk_name): New static
1515 (grub_util_iterate_devices): Handle Accelraid devices.
1516 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
1518 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
1520 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
1521 separator for the suggested gfxpayload string (';' collides with the
1522 parser and needs escaping).
1524 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
1526 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
1527 Clear direction flag before jumping to OS.
1528 (grub_multiboot2_real_boot): Likewise.
1530 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1532 * util/i386/pc/grub-install: Fix parsing of --disk-module
1535 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1537 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
1540 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
1542 * util/grub-mkconfig.in (package_version): New variable.
1543 Use it do display the version.
1545 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1547 * kern/file.c (grub_file_open): Revert to previous check with
1550 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1552 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
1553 from help line. It's out of sync with code.
1555 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1557 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
1558 entries on failed boot.
1560 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1562 * kern/file.c (grub_file_open): Fix an error check.
1564 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
1566 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
1567 partition map couldn't be identified.
1569 2009-07-23 Pavel Roskin <proski@gnu.org>
1571 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
1572 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
1573 case of little endian words becomes just an optimization.
1574 Respect const modifier.
1575 (md5_final): Use code that doesn't depend on endianness.
1577 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
1578 to avoid loss of upper bits if align is unsigned and shorter
1581 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1583 UUID support for UFS
1585 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
1586 (grub_ufs_uuid): New function.
1587 (grub_ufs_fs): add .uuid
1589 2009-07-21 Pavel Roskin <proski@gnu.org>
1591 * kern/dl.c (grub_dl_check_header): Make static.
1593 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
1595 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
1596 add drivemap for Vista. It breaks Windows 7.
1598 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1600 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
1603 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1607 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
1608 (grub_fstest_SOURCES): Likewise.
1609 (pkglib_MODULES): Add befs.mod.
1610 (befs_mod_SOURCES): New variable.
1611 (befs_mod_CFLAGS): Likewise.
1612 (befs_mod_LDFLAGS): Likewise.
1613 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
1614 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1615 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1616 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1617 (grub_setup_SOURCES): Likewise.
1618 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1619 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1620 (grub_setup_SOURCES): Likewise.
1621 * fs/befs.c: New file.
1622 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
1623 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
1624 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
1625 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
1626 (B_KEY_INDEX_ALIGN): New declaration.
1627 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
1628 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
1629 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
1630 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
1631 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
1632 (grub_afs_mount) [MODE_BFS]: Likewise.
1633 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
1634 (grub_afs_fs): Use GRUB_AFS_FSNAME
1635 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
1636 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
1637 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
1638 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
1640 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
1642 * util/getroot.c (find_root_device): Add support for MacOSX.
1643 * util/hostdisk.c: Likewise.
1645 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1647 * font/font.c (find_glyph): Check whether a font is present to avoid
1650 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
1652 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
1654 2009-07-20 Pavel Roskin <proski@gnu.org>
1656 * configure.ac: Trim excessively wordy excuses.
1658 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1660 Add symlink, mtime and label support to AtheFS.
1662 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
1663 (grub_afs_iterate_dir): Handle symlinks.
1664 (grub_afs_open): Use grub_afs_read_symlink.
1665 (grub_afs_dir): Likewise.
1667 (grub_afs_label): New function.
1668 (grub_afs_fs): Add grub_afs_label.
1669 (grub_afs_read_symlink): New function.
1671 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1675 * fs/afs.c: Fix comments style.
1676 (grub_afs_blockrun): Declare as packed.
1677 (grub_afs_datastream): Likewise.
1678 (grub_afs_bnode): Likewise.
1679 (grub_afs_btree): Likewise.
1680 (grub_afs_sblock): Likewise.
1681 Declare `name' as char.
1682 (grub_afs_inode): Declare as packed.
1683 Change void *vnode to grub_uint32_t unused.
1684 (grub_afs_iterate_dir): Check that key_size is positive.
1685 (grub_afs_mount): Don't read superblock twice.
1686 (grub_afs_dir): Don't free node in case of error,
1687 grub_fshelp_find_file already handles this.
1688 (grub_afs_open): Likewise.
1690 2009-07-19 Pavel Roskin <proski@gnu.org>
1692 * Makefile.in: Remove LIBLZO and enable_lzo.
1693 * conf/i386-pc.rmk: Remove lzo support.
1694 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
1695 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
1697 * kern/i386/pc/lzo1x.S: Remove.
1698 * kern/i386/pc/startup.S: Remove lzo support.
1699 * util/i386/pc/grub-mkimage.c: Likewise.
1701 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
1703 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
1704 * fs/xfs.c (grub_xfs_dir): Likewise.
1705 * fs/afs.c (grub_afs_dir): Likewise.
1706 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
1707 (grub_iso9660_open): Likewise.
1708 * fs/jfs.c (grub_jfs_open): Likewise.
1709 * fs/ext2.c (grub_ext2_dir): Likewise.
1710 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
1711 * script/sh/lexer.c (grub_script_yylex): Likewise.
1713 2009-07-16 Pavel Roskin <proski@gnu.org>
1715 * configure.ac: Never add "-c" to CFLAGS.
1717 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
1719 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
1720 grub_cv_cc_efiemu should be used.
1722 * configure.ac: Typo fixes.
1724 * kern/mm.c (grub_zalloc): New function.
1725 (grub_debug_zalloc): Likewise.
1726 * include/grub/mm.h: Declare grub_zalloc() and
1727 grub_debug_zalloc().
1728 * util/misc.c (grub_zalloc): New function.
1729 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
1730 instead of grub_malloc(), remove unneeded initializations.
1731 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
1732 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
1733 * commands/parttool.c (grub_cmd_parttool): Likewise.
1734 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
1735 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
1736 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
1737 * disk/usbms.c (grub_usbms_finddevs): Likewise.
1738 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
1739 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
1740 (grub_cmd_efiemu_pnvram): Likewise.
1741 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
1742 * fs/iso9660.c (grub_iso9660_mount): Likewise.
1743 (grub_iso9660_iterate_dir): Likewise.
1744 * fs/jfs.c (grub_jfs_opendir): Likewise.
1745 * fs/ntfs.c (list_file): Likewise.
1746 (grub_ntfs_mount): Likewise.
1747 * kern/disk.c (grub_disk_open): Likewise.
1748 * kern/dl.c (grub_dl_load_core): Likewise.
1749 * kern/elf.c (grub_elf_file): Likewise.
1750 * kern/env.c (grub_env_context_open): Likewise.
1751 (grub_env_set): Likewise.
1752 (grub_env_set_data_slot): Likewise.
1753 * kern/file.c (grub_file_open): Likewise.
1754 * kern/fs.c (grub_fs_blocklist_open): Likewise.
1755 * loader/i386/multiboot.c (grub_module): Likewise.
1756 * loader/xnu.c (grub_xnu_create_key): Likewise.
1757 (grub_xnu_create_value): Likewise.
1758 * normal/main.c (grub_normal_add_menu_entry): Likewise.
1759 (read_config_file): Likewise.
1760 * normal/menu_entry.c (make_screen): Likewise.
1761 * partmap/sun.c (sun_partition_map_iterate): Likewise.
1762 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
1763 * script/sh/script.c (grub_script_parse): Likewise.
1764 * video/bitmap.c (grub_video_bitmap_create): Likewise.
1765 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
1766 * video/readers/png.c (grub_png_output_byte): Likewise.
1767 (grub_video_reader_png): Likewise.
1769 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1771 Enable all targets that can be built by default
1773 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
1774 grub-mkfont and grub-fstest if they can be built
1776 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1778 Fix hang and segmentation fault in grub-emu-usb
1780 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
1781 * util/usb.c (grub_libusb_devices): likewise
1782 (grub_libusb_init): rename to ...
1783 (GRUB_MOD_INIT (libusb)):...this
1784 (grub_libusb_fini): rename to ..
1785 (GRUB_MOD_FINI (libusb)):...this
1786 * disk/usbms.c (grub_usbms_transfer): fix retry logic
1787 * include/grub/disk.h (grub_raid_init): removed, it's useless
1788 (grub_raid_fini): likewise
1789 (grub_lvm_init): likewise
1790 (grub_lvm_fini): likewise
1791 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
1794 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1798 * Makefile.in (LIBUSB): new macro
1799 * genmk.rb (Utility/print_tail): new method
1800 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
1801 (top level): call util.print_tail at the end.
1803 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1805 Make FreeBSD accept zpool.cache
1807 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
1808 type is /boot/zfs/zpool.cache
1810 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1814 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
1815 correct wrong typedef
1816 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
1818 2009-07-15 Pavel Roskin <proski@gnu.org>
1820 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
1821 * kern/disk.c (struct grub_disk_cache): Likewise.
1823 * commands/probe.c (options): Typo fix.
1825 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
1826 Increase to 0x5a to accommodate FAT32. Adjust other offsets
1828 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
1830 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
1831 the end of "Error" to make the message more readable.
1833 * boot/i386/pc/boot.S (kernel_segment): Remove.
1834 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
1837 * boot/i386/pc/boot.S (boot_version): Remove.
1838 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
1841 * include/grub/i386/pc/boot.h: Sort all offsets.
1842 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
1843 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
1844 * boot/i386/pc/boot.S: Assert location of every offset listed in
1845 include/grub/i386/pc/boot.h.
1847 2009-07-13 Pavel Roskin <proski@gnu.org>
1849 * include/grub/i386/coreboot/machine.h: Rename
1850 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
1851 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
1852 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
1854 * kern/dl.c: Force native word size to suppress warnings when
1857 * kern/device.c (grub_device_iterate): Change struct part_ent to
1858 hold the name, not a pointer to it. Use one grub_malloc() per
1859 partition, not two. Free partition_name if grub_malloc() fails.
1860 Set ents to NULL only before grub_partition_iterate() is called.
1862 2009-07-11 Bean <bean123ch@gmail.com>
1864 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
1867 2009-07-10 Bean <bean123ch@gmail.com>
1868 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
1870 * kern/ieee1275/openfw.c (grub_children_iterate)
1871 (grub_devalias_iterate): Fix size evaluation for property or path
1872 strings, which was broken since r2132.
1874 2009-07-07 Pavel Roskin <proski@gnu.org>
1876 * commands/search.c (search_file): Merge into ...
1877 (search_fs): ... this. Accept search type as argument.
1878 (grub_cmd_search): Pass search type to search_fs().
1880 * include/grub/util/console.h: New file.
1881 * util/console.c: Use it instead of grub/machine/console.h.
1882 * util/grub-emu.c: Likewise.
1884 * lib/arg.c (find_long_option): Remove.
1885 (find_long): Add `len' argument, make `s' const char *.
1886 (grub_arg_parse): Parse long options in place, not in a
1889 2009-07-06 Pavel Roskin <proski@gnu.org>
1891 * commands/search.c (search_fs): Fix potential NULL pointer
1894 * commands/search.c (search_fs): Replace QUID macro with quid_fn
1897 2009-07-06 Daniel Mierswa <impulze@impulze.org>
1899 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
1902 2009-07-05 Pavel Roskin <proski@gnu.org>
1904 * include/grub/i386/linux.h (struct linux_kernel_params):
1905 Restore padding3, it's still needed.
1907 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
1909 * util/osdetect.lua: Likewise.
1911 2009-07-05 Bean <bean123ch@gmail.com>
1913 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
1915 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
1916 (grub_lua_getenv): Likewise.
1917 (grub_lua_setenv): Likewise.
1918 (save_errno): New function.
1919 (push_result): Likewise.
1920 (grub_lua_enum_device): Likewise.
1921 (grub_lua_enum_file): Likewise.
1922 (grub_lua_file_open): Likewise.
1923 (grub_lua_file_close): Likewise.
1924 (grub_lua_file_seek): Likewise.
1925 (grub_lua_file_read): Likewise.
1926 (grub_lua_file_getline): Likewise.
1927 (grub_lua_file_getsize): Likewise.
1928 (grub_lua_file_getpos): Likewise.
1929 (grub_lua_file_eof): Likewise.
1930 (grub_lua_file_exist): Likewise.
1931 (grub_lua_add_menu): Likewise.
1933 * script/lua/grub_lua.h (isupper): New inline function.
1934 (islower): Likewise.
1935 (ispunct): Likewise.
1936 (isxdigit): Likewise.
1937 (strcspn): Change to normal function.
1938 (strpbkr): New function declaration.
1941 * script/lua/grub_main.c (scan_str): New function.
1942 (strcspn): Likewise.
1943 (strpbrk): Likewise.
1946 * script/lua/linit.c (lualibs): Enable the string library.
1948 * util/osdetect.lua: New file.
1950 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
1952 * include/grub/i386/linux.h (struct linux_kernel_params): Add
1953 `capabilities' member.
1955 2009-07-02 Pavel Roskin <proski@gnu.org>
1957 * genparttoollist.sh: Add missing newline at the end.
1959 2009-07-01 Pavel Roskin <proski@gnu.org>
1961 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
1963 * util/hostdisk.c (open_device): Remove `const' from
1964 `sysctl_size', as sysctlbyname() can change it (in this case it
1965 doesn't actually happen).
1967 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
1968 using signed long int constants.
1970 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
1971 constant to avoid a warning on FreeBSD.
1973 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
1976 * Makefile.in: Install include/grub/machine symlink.
1978 * Makefile.in: When installing symlinks, use "cp -fR", which
1979 works on FreeBSD and MacOSX.
1980 From Yves Blusseau <cl7m42e02@sneakemail.com>
1982 * kern/dl.c (grub_dl_resolve_symbol): Make static.
1983 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
1985 * util/misc.c: Move grub_reboot() and grub_halt() ...
1986 * util/grub-emu.c: ... here. Make main_env static.
1987 * include/grub/util/misc.h: Remove main_env.
1989 * kern/mm.c: Use correct format to print size_t.
1991 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
1992 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
1993 * kern/powerpc/dl.c: Likewise.
1994 * kern/sparc64/dl.c: Likewise.
1995 * kern/x86_64/dl.c: Likewise.
1997 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
1999 Fix grub-emu build on sparc64-ieee1275.
2001 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
2002 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
2004 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2006 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
2007 (grub_reboot, grub_halt): New functions.
2009 * util/i386/pc/misc.c: Delete. Update all users.
2010 * util/sparc64/ieee1275/misc.c: Likewise.
2011 * util/powerpc/ieee1275/misc.c: Likewise.
2013 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2015 * conf/i386.rmk (setjmp_mod_SOURCES)
2016 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
2017 * conf/common.rmk (setjmp_mod_SOURCES)
2018 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
2019 to use $(target_cpu).
2020 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
2021 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
2022 * conf/powerpc-ieee1275.rmk: Likewise.
2023 * conf/sparc64-ieee1275.rmk: Likewise.
2025 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
2026 $(target_cpu) for kern/$(target_cpu)/dl.c.
2027 * conf/i386-efi.rmk: Likewise.
2028 * conf/i386-ieee1275.rmk: Likewise.
2029 * conf/x86_64-efi.rmk: Likewise.
2030 * conf/i386-coreboot.rmk: Likewise.
2031 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
2032 $(target_cpu) for kern/$(target_cpu)/dl.c and for
2033 kern/$(target_cpu)/cache.S.
2034 * conf/sparc64-ieee1275.rmk: Likewise.
2036 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2038 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
2039 type to `grub_uint8_t', and adjust `padding9' accordingly.
2041 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2043 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
2045 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
2046 assembly in final jump, using register constraints.
2048 (grub_linux_boot): For text mode, initialize `have_vga' using
2049 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
2051 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
2052 right before the final jump.
2054 Set `video_mode' to 0x3.
2056 Document initialization of `video_page', `video_mode' and
2059 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2061 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
2062 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
2063 and set GRUB_LINUX_FLAG_QUIET appropriately.
2065 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2067 Fix build on Debian / sparc.
2069 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
2071 2009-06-28 Pavel Roskin <proski@gnu.org>
2073 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
2076 * util/grub.d/10_linux.in: Match SUSE style initrd names.
2078 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2080 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
2083 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2087 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
2088 file can't be opened. grub_file_open() is already supposed to set
2089 grub_errno / grub_errmsg appropriately.
2090 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2092 2009-06-27 Pavel Roskin <proski@gnu.org>
2093 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2095 * include/grub/dl.h: Include grub/elf.h.
2096 (struct grub_dl): Add symtab field.
2097 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
2098 GRUB_MODULES_MACHINE_READONLY.
2099 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
2100 of the header for read-only modules.
2101 (grub_dl_unload): Free mod->symtab for read-only modules.
2102 * kern/i386/dl.c: Use mod->symtab.
2103 * kern/powerpc/dl.c: Likewise.
2104 * kern/sparc64/dl.c: Likewise.
2105 * kern/x86_64/dl.c: Likewise.
2107 * conf/i386-qemu.rmk: New file.
2108 * kern/i386/qemu/startup.S: Likewise.
2109 * kern/i386/qemu/mmap.c: Likewise.
2110 * boot/i386/qemu/boot.S: Likewise.
2111 * include/grub/i386/qemu/time.h: Likewise.
2112 * include/grub/i386/qemu/serial.h: Likewise.
2113 * include/grub/i386/qemu/kernel.h: Likewise.
2114 * include/grub/i386/qemu/console.h: Likewise.
2115 * include/grub/i386/qemu/boot.h: Likewise.
2116 * include/grub/i386/qemu/init.h: Likewise.
2117 * include/grub/i386/qemu/machine.h: Likewise.
2118 * include/grub/i386/qemu/loader.h: Likewise.
2119 * include/grub/i386/qemu/memory.h: Likewise.
2121 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
2122 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
2123 [qemu] (pkglib_IMAGES): Add `boot.img'.
2124 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
2125 [qemu] (boot_img_FORMAT): New variables.
2126 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
2127 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
2128 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
2129 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
2130 [qemu] (kernel_img_FORMAT): New variables.
2132 * configure.ac: Recognise `i386-qemu'.
2134 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
2135 (for no compression).
2136 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
2137 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
2138 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
2139 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
2142 2009-06-27 Pavel Roskin <proski@gnu.org>
2144 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
2146 * efiemu/prepare32.c: Likewise.
2147 * efiemu/prepare64.c: Likewise.
2149 2009-06-26 Pavel Roskin <proski@gnu.org>
2151 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
2152 * include/grub/elf.h: Define symbols without "32" or "64" based
2153 on GRUB_TARGET_WORDSIZE.
2154 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
2155 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
2157 * efiemu/loadcore64.c: Likewise.
2158 * loader/i386/bsd32.c: Likewise.
2159 * loader/i386/bsd64.c: Likewise.
2160 * kern/dl.c: Remove own ELF definitions.
2161 * util/i386/efi/grub-mkimage.c: Likewise.
2163 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
2165 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
2166 segment 0x0 unconditionally, because the reference generated by
2167 GAS is an absolute address.
2169 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2171 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
2172 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
2174 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2176 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
2177 indexes. Check for -f explicitly.
2178 (search_file): Improve error message.
2179 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
2181 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2183 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
2184 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
2186 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2188 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
2189 * conf/i386-ieee1275.rmk: Likewise.
2190 * conf/i386-coreboot.rmk: Likewise.
2192 * kern/i386/pc/startup.S (grub_stop): Remove function.
2193 * kern/i386/ieee1275/startup.S: Likewise.
2194 * kern/i386/coreboot/startup.S: Likewise.
2195 * kern/i386/misc.S (grub_stop): New function.
2197 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2199 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
2200 * kern/i386/realmode.S (real_to_prot): ... to here.
2202 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2204 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
2206 (kernel_elf_SOURCES): Rename to ...
2207 (kernel_img_SOURCES): ... this.
2208 (kernel_elf_HEADERS): Rename to ...
2209 (kernel_img_HEADERS): ... this. Update all users.
2210 (kernel_elf_ASFLAGS): Rename to ...
2211 (kernel_img_ASFLAGS): ... this.
2212 (kernel_elf_CFLAGS): Rename to ...
2213 (kernel_img_CFLAGS): ... this.
2214 (kernel_elf_LDFLAGS): Rename to ...
2215 (kernel_img_LDFLAGS): ... this.
2216 * conf/i386-coreboot.rmk: Likewise.
2217 * conf/powerpc-ieee1275.rmk: Likewise.
2219 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
2222 2009-06-21 Pavel Roskin <proski@gnu.org>
2224 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
2225 to match nested functions.
2226 * loader/sparc64/ieee1275/linux.c: Likewise.
2228 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
2230 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2232 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
2235 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2237 Fix asm file handling on ELF, and remove workarounds.
2239 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
2240 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
2241 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
2242 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
2244 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2246 Load BSD ELF modules
2248 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
2249 and loader/i386/bsd64.c
2250 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
2251 (FREEBSD_MODTYPE_ELF_MODULE): New definition
2252 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
2253 (grub_freebsd_load_elfmodule32): New declaration
2254 (grub_freebsd_load_elfmoduleobj64): Likewise
2255 (grub_freebsd_load_elf_meta32): Likewise
2256 (grub_freebsd_load_elf_meta64): Likewise
2257 (grub_freebsd_add_meta): Likewise
2258 (grub_freebsd_add_meta_module): Likewise
2259 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
2260 (grub_freebsd_add_meta_module): Likewise and move module-specific
2261 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
2262 (grub_cmd_freebsd): Add elf-kernel specific parts
2263 based on grub_freebsd_add_meta_module
2264 (grub_cmd_freebsd_module): Add type parsing moved from
2265 grub_freebsd_add_meta_module
2266 (grub_cmd_freebsd_module_elf): New function
2267 (cmd_freebsd_module_elf): New variable
2268 (GRUB_MOD_INIT): Register freebsd_module_elf
2269 * loader/i386/bsd32.c: New file
2270 * loader/i386/bsd64.c: Likewise
2271 * loader/i386/bsdXX.c: Likewise
2272 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
2273 (grub_elf64_load): Likewise
2274 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
2276 (grub_elf64_load_hook_t): Likewise
2278 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
2280 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
2282 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
2283 don't write a menu entry for recovery mode.
2285 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2287 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
2288 after it's no longer needed.
2290 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2292 * include/grub/i386/loader.h (grub_linux_prot_size)
2293 (grub_linux_tmp_addr, grub_linux_real_addr)
2294 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
2295 GRUB_MACHINE_PCBIOS.
2296 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
2297 common grub_util_info() call to ...
2298 (generate_image): ... here.
2299 Fix use of uninitialized memory, comparison of signed with
2300 unsigned integers and memory leak.
2301 Remove bogus module address message.
2303 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2305 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
2307 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
2309 2009-06-19 Pavel Roskin <proski@gnu.org>
2311 * configure.ac: Remove stray AC_MSG_CHECKING.
2313 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2315 * disk/scsi.c (grub_scsi_open): use continue instead of big if
2317 2009-06-18 Pavel Roskin <proski@gnu.org>
2319 * conf/common.rmk: Add fs_file.mod.
2320 * disk/fs_file.c: New file.
2321 * include/grub/disk.h (enum grub_disk_dev_id): Add
2322 GRUB_DISK_DEVICE_FILE_ID.
2324 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2326 Fix build with Apple's toolchain. Part 2
2328 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
2331 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2333 Fix build with Apple's toolchain. Part 1
2335 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
2337 * configure.ac: remove a leftover AC_MSG_RESULT
2338 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
2341 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2345 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
2346 (decomp_block): initialize ch
2347 use grub_memcpy instead of memcpy
2349 2009-06-17 Pavel Roskin <proski@gnu.org>
2351 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
2352 version, use declarations needed to use vga_text as the startup
2355 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
2356 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
2358 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
2359 and grub_at_keyboard_fini(), it's done on module load and
2362 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
2364 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
2365 file can't be found.
2366 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2368 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2370 Fix newline handling
2372 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
2373 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
2374 (grub_script_yylex): don't segfault on unterminated script
2375 newline terminates command and variable
2377 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2379 avoid double grub_adjust_range call. Bug reported by David Simner
2381 * kern/disk.c (grub_disk_write): change to raw disk access before
2384 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
2386 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
2387 spaces, for the benefit of help2man.
2388 * util/i386/efi/grub-mkimage.c (usage): Likewise.
2390 2009-06-16 Pavel Roskin <proski@gnu.org>
2392 * kern/i386/halt.c: Include grub/machine/init.h.
2393 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
2395 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
2397 * util/grub.d/30_os-prober.in: Use ${root} in the generated
2400 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
2402 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
2405 2009-06-16 Pavel Roskin <proski@gnu.org>
2407 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
2408 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
2409 save %dx, we only need %dl and we never change it.
2410 * boot/i386/pc/cdboot.S: Don't set the root drive.
2411 * boot/i386/pc/pxeboot.S: Likewise.
2412 * include/grub/i386/pc/boot.h: Remove
2413 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
2414 GRUB_BOOT_MACHINE_DRIVE_CHECK.
2415 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
2416 * kern/i386/pc/init.c (make_install_device): Remove references
2418 * kern/i386/pc/startup.S: Likewise.
2419 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
2421 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2425 * commands/xnu_uuid.c: new file
2426 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
2427 (xnu_uuid_mod_SOURCES): new variable
2428 (xnu_uuid_mod_CFLAGS): likewise
2429 (xnu_uuid_mod_LDFLAGS): likewise
2430 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2431 * conf/i386-ieee1275.rmk: likewise
2432 * conf/i386-pc.rmk: likewise
2433 * conf/powerpc-ieee1275.rmk: likewise
2434 * conf/sparc64-ieee1275.rmk: likewise
2435 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
2437 2009-06-16 Pavel Roskin <proski@gnu.org>
2439 * configure.ac: Avoid '==' in test command, it's not portable.
2441 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2445 * commands/probe.c: new file
2446 * conf/common.rmk (pkglib_MODULES): add probe.mod
2447 (probe_mod_SOURCES): new variable
2448 (probe_mod_CFLAGS): likewise
2449 (probe_mod_LDFLAGS): likewise
2450 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2451 * conf/i386-ieee1275.rmk: likewise
2452 * conf/i386-pc.rmk: likewise
2453 * conf/powerpc-ieee1275.rmk: likewise
2454 * conf/sparc64-ieee1275.rmk: likewise
2456 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2458 Fix handling of string like \"hello\" and "a
2461 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
2462 (grub_script_yylex): fix parsing of quoting, escaping and newline
2464 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2466 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
2469 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
2471 * util/grub-mkconfig.in: Fix parsing of --output option.
2473 2009-06-12 Pavel Roskin <proski@gnu.org>
2475 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
2476 genmk.rb don't need to be generated or installed.
2478 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
2480 * commands/i386/pc/drivemap_int13h.S: add more comments
2482 2009-06-11 Pavel Roskin <proski@gnu.org>
2484 * Makefile.in (uninstall): Uninstall manuals.
2486 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
2487 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
2488 and update-grub_lib in two places.
2489 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
2491 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
2494 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
2495 `entry_lo' to fix variable shadowing.
2497 2009-06-11 Christian Franke <franke@computer.org>
2499 * kern/misc.c (__enable_execute_stack): Add missing return type
2500 to prevent gcc warning.
2502 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2504 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
2506 2009-06-11 Pavel Roskin <proski@gnu.org>
2508 * Makefile.in: Don't rely on any scripts being executable.
2509 Always use $(SHELL) to run shell scripts.
2511 * configure.ac: Always define ___main if using -nostdlib. This
2512 fixes tests on Cygwin.
2514 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
2518 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
2519 is in bytes and not in blocks
2521 2009-06-11 Pavel Roskin <proski@gnu.org>
2523 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
2526 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2528 * util/grub.d/30_os-prober.in: Fix a comment. Source
2529 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
2530 to set the root device. Place drivemap command in the generated
2533 2009-06-11 Pavel Roskin <proski@gnu.org>
2535 * configure.ac: Remove host_m32. Issues with 64-bit utilities
2536 have long been resolved.
2538 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
2540 * util/grub.d/10_linux.in: Capitalise "Linux".
2542 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
2544 2009-06-11 Pavel Roskin <proski@gnu.org>
2546 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
2547 fix a gcc warning and ensure that the function won't ever exit.
2549 * kern/i386/ieee1275/init.c: Add missing prototype for
2552 * loader/ieee1275/multiboot2.c [__i386__]: Include
2553 grub/cpu/multiboot.h.
2555 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
2556 casts to short - they are not portable and cause warnings. Fix
2557 use of uninitialized values in input_buf. Use ARRAY_SIZE.
2559 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2563 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
2565 (grub_get_root_biosnumber_saved): new variable
2566 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
2567 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
2568 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
2569 %dx after the call if necessary
2570 * conf/common.rmk (pkglib_MODULES): remove boot.mod
2571 (boot_mod_SOURCES): remove
2572 (boot_mod_CFLAGS): remove
2573 (boot_mod_LDFLAGS): remove
2574 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
2575 (boot_mod_SOURCES): new variable
2576 (boot_mod_CFLAGS): likewise
2577 (boot_mod_LDFLAGS): likewise
2578 * conf/i386-efi.rmk: likewise
2579 * conf/i386-ieee1275.rmk: likewise
2580 * conf/i386-pc.rmk: likewise
2581 * conf/powerpc-ieee1275.rmk: likewise
2582 * conf/sparc64-ieee1275.rmk: likewise
2583 * conf/x86_64-efi.rmk: likewise
2584 * include/grub/i386/pc/biosnum.h: new file
2585 * lib/i386/pc/biosnum.c: likewise
2586 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
2587 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
2588 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
2590 2009-06-10 Pavel Roskin <proski@gnu.org>
2592 * io/gzio.c (test_header): Don't reuse one buffer for all data.
2593 Use separate variables. Read only the file size at the end, but
2594 not the checksum that we don't use.
2596 * kern/file.c (grub_file_read): Use void pointer for the buffer.
2599 * kern/ieee1275/openfw.c: Remove libc includes.
2600 * kern/ieee1275/cmain.c: Likewise.
2601 * include/grub/ieee1275/ieee1275.h: Likewise.
2603 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
2606 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2608 * Makefile.in: Remove all trailing whitespace.
2609 * conf/i386-pc.rmk: Likewise.
2610 * conf/powerpc-ieee1275.rmk: Likewise.
2611 * conf/sparc64-ieee1275.rmk: Likewise.
2612 * docs/grub.texi: Likewise.
2613 * docs/texinfo.tex: Likewise.
2614 * disk/fs_uuid.c: Likewise.
2615 * disk/lvm.c: Likewise.
2616 * disk/scsi.c: Likewise.
2617 * disk/ata.c: Likewise.
2618 * disk/ieee1275/ofdisk.c: Likewise.
2619 * disk/i386/pc/biosdisk.c: Likewise.
2620 * disk/host.c: Likewise.
2621 * disk/raid.c: Likewise.
2622 * disk/efi/efidisk.c: Likewise.
2623 * disk/usbms.c: Likewise.
2624 * disk/memdisk.c: Likewise.
2625 * disk/loopback.c: Likewise.
2626 * kern/powerpc/dl.c: Likewise.
2627 * kern/device.c: Likewise.
2628 * kern/dl.c: Likewise.
2629 * kern/sparc64/dl.c: Likewise.
2630 * kern/ieee1275/ieee1275.c: Likewise.
2631 * kern/term.c: Likewise.
2632 * kern/fs.c: Likewise.
2633 * kern/i386/dl.c: Likewise.
2634 * kern/i386/pc/startup.S: Likewise.
2635 * kern/i386/pc/init.c: Likewise.
2636 * kern/i386/pc/mmap.c: Likewise.
2637 * kern/i386/pc/lzo1x.S: Likewise.
2638 * kern/i386/ieee1275/init.c: Likewise.
2639 * kern/i386/realmode.S: Likewise.
2640 * kern/i386/tsc.c: Likewise.
2641 * kern/partition.c: Likewise.
2642 * kern/corecmd.c: Likewise.
2643 * kern/file.c: Likewise.
2644 * kern/efi/efi.c: Likewise.
2645 * kern/efi/init.c: Likewise.
2646 * kern/efi/mm.c: Likewise.
2647 * kern/main.c: Likewise.
2648 * kern/err.c: Likewise.
2649 * kern/env.c: Likewise.
2650 * kern/disk.c: Likewise.
2651 * kern/generic/millisleep.c: Likewise.
2652 * kern/generic/rtc_get_time_ms.c: Likewise.
2653 * kern/misc.c: Likewise.
2654 * kern/parser.c: Likewise.
2655 * genmk.rb: Likewise.
2656 * configure.ac: Likewise.
2657 * boot/i386/pc/diskboot.S: Likewise.
2658 * boot/i386/pc/pxeboot.S: Likewise.
2659 * boot/i386/pc/boot.S: Likewise.
2660 * boot/i386/pc/lnxboot.S: Likewise.
2661 * boot/i386/pc/cdboot.S: Likewise.
2662 * parttool/pcpart.c: Likewise.
2663 * video/readers/tga.c: Likewise.
2664 * video/video.c: Likewise.
2665 * video/bitmap.c: Likewise.
2666 * lib/envblk.c: Likewise.
2667 * lib/i386/setjmp.S: Likewise.
2668 * fs/xfs.c: Likewise.
2669 * fs/afs.c: Likewise.
2670 * fs/fat.c: Likewise.
2671 * fs/ntfs.c: Likewise.
2672 * fs/udf.c: Likewise.
2673 * fs/affs.c: Likewise.
2674 * fs/iso9660.c: Likewise.
2675 * fs/hfs.c: Likewise.
2676 * fs/fshelp.c: Likewise.
2677 * fs/ext2.c: Likewise.
2678 * fs/jfs.c: Likewise.
2679 * fs/reiserfs.c: Likewise.
2680 * fs/hfsplus.c: Likewise.
2681 * fs/minix.c: Likewise.
2682 * fs/cpio.c: Likewise.
2683 * fs/sfs.c: Likewise.
2684 * fs/ufs.c: Likewise.
2685 * efiemu/prepare.c: Likewise.
2686 * efiemu/loadcore_common.c: Likewise.
2687 * efiemu/runtime/efiemu.sh: Likewise.
2688 * efiemu/runtime/efiemu.S: Likewise.
2689 * efiemu/runtime/efiemu.c: Likewise.
2690 * efiemu/pnvram.c: Likewise.
2691 * efiemu/main.c: Likewise.
2692 * efiemu/i386/pc/cfgtables.c: Likewise.
2693 * efiemu/i386/loadcore64.c: Likewise.
2694 * efiemu/i386/loadcore32.c: Likewise.
2695 * efiemu/loadcore.c: Likewise.
2696 * efiemu/symbols.c: Likewise.
2697 * efiemu/mm.c: Likewise.
2698 * include/grub/autoefi.h: Likewise.
2699 * include/grub/datetime.h: Likewise.
2700 * include/grub/term.h: Likewise.
2701 * include/grub/hfs.h: Likewise.
2702 * include/grub/lvm.h: Likewise.
2703 * include/grub/i386/tsc.h: Likewise.
2704 * include/grub/i386/linux.h: Likewise.
2705 * include/grub/i386/xnu.h: Likewise.
2706 * include/grub/i386/efiemu.h: Likewise.
2707 * include/grub/i386/pc/biosdisk.h: Likewise.
2708 * include/grub/i386/pc/memory.h: Likewise.
2709 * include/grub/i386/pc/vbe.h: Likewise.
2710 * include/grub/parttool.h: Likewise.
2711 * include/grub/video.h: Likewise.
2712 * include/grub/memory.h: Likewise.
2713 * include/grub/fs.h: Likewise.
2714 * include/grub/partition.h: Likewise.
2715 * include/grub/xnu.h: Likewise.
2716 * include/grub/efi/api.h: Likewise.
2717 * include/grub/efi/pe32.h: Likewise.
2718 * include/grub/efi/memory.h: Likewise.
2719 * include/grub/multiboot.h: Likewise.
2720 * include/grub/usbdesc.h: Likewise.
2721 * include/grub/multiboot2.h: Likewise.
2722 * include/grub/acpi.h: Likewise.
2723 * include/grub/efiemu/efiemu.h: Likewise.
2724 * include/grub/disk.h: Likewise.
2725 * include/grub/ieee1275/ieee1275.h: Likewise.
2726 * include/grub/net.h: Likewise.
2727 * include/grub/machoload.h: Likewise.
2728 * include/grub/macho.h: Likewise.
2729 * include/multiboot.h: Likewise.
2730 * genmoddep.awk: Likewise.
2731 * normal/main.c: Likewise.
2732 * normal/menu_entry.c: Likewise.
2733 * normal/menu_viewer.c: Likewise.
2734 * normal/completion.c: Likewise.
2735 * normal/cmdline.c: Likewise.
2736 * normal/misc.c: Likewise.
2737 * normal/datetime.c: Likewise.
2738 * bus/usb/usbtrans.c: Likewise.
2739 * bus/usb/ohci.c: Likewise.
2740 * bus/usb/uhci.c: Likewise.
2741 * bus/usb/usb.c: Likewise.
2742 * mmap/efi/mmap.c: Likewise.
2743 * mmap/i386/pc/mmap_helper.S: Likewise.
2744 * mmap/i386/pc/mmap.c: Likewise.
2745 * mmap/i386/mmap.c: Likewise.
2746 * mmap/i386/uppermem.c: Likewise.
2747 * mmap/mmap.c: Likewise.
2748 * commands/acpi.c: Likewise.
2749 * commands/echo.c: Likewise.
2750 * commands/blocklist.c: Likewise.
2751 * commands/loadenv.c: Likewise.
2752 * commands/usbtest.c: Likewise.
2753 * commands/boot.c: Likewise.
2754 * commands/parttool.c: Likewise.
2755 * commands/search.c: Likewise.
2756 * commands/cat.c: Likewise.
2757 * commands/i386/pc/play.c: Likewise.
2758 * commands/i386/pc/drivemap.c: Likewise.
2759 * commands/i386/pc/vbeinfo.c: Likewise.
2760 * commands/i386/pc/acpi.c: Likewise.
2761 * commands/i386/pc/vbetest.c: Likewise.
2762 * commands/ls.c: Likewise.
2763 * commands/cmp.c: Likewise.
2764 * commands/test.c: Likewise.
2765 * commands/efi/acpi.c: Likewise.
2766 * commands/gptsync.c: Likewise.
2767 * commands/help.c: Likewise.
2768 * partmap/amiga.c: Likewise.
2769 * partmap/apple.c: Likewise.
2770 * partmap/acorn.c: Likewise.
2771 * partmap/pc.c: Likewise.
2772 * partmap/sun.c: Likewise.
2773 * partmap/gpt.c: Likewise.
2774 * script/sh/lexer.c: Likewise.
2775 * script/sh/function.c: Likewise.
2776 * font/font.c: Likewise.
2777 * font/font_cmd.c: Likewise.
2778 * loader/powerpc/ieee1275/linux.c: Likewise.
2779 * loader/efi/chainloader.c: Likewise.
2780 * loader/multiboot_loader.c: Likewise.
2781 * loader/macho.c: Likewise.
2782 * loader/i386/multiboot.c: Likewise.
2783 * loader/i386/linux.c: Likewise.
2784 * loader/i386/pc/linux.c: Likewise.
2785 * loader/i386/pc/multiboot2.c: Likewise.
2786 * loader/i386/pc/chainloader.c: Likewise.
2787 * loader/i386/pc/xnu.c: Likewise.
2788 * loader/i386/bsd_trampoline.S: Likewise.
2789 * loader/i386/efi/linux.c: Likewise.
2790 * loader/i386/multiboot_elfxx.c: Likewise.
2791 * loader/i386/bsd_helper.S: Likewise.
2792 * loader/i386/bsd.c: Likewise.
2793 * loader/i386/linux_trampoline.S: Likewise.
2794 * loader/i386/xnu_helper.S: Likewise.
2795 * loader/i386/xnu.c: Likewise.
2796 * loader/i386/bsd_pagetable.c: Likewise.
2797 * loader/i386/multiboot_helper.S: Likewise.
2798 * loader/xnu.c: Likewise.
2799 * loader/xnu_resume.c: Likewise.
2800 * io/gzio.c: Likewise.
2801 * term/efi/console.c: Likewise.
2802 * term/terminfo.c: Likewise.
2803 * term/ieee1275/ofconsole.c: Likewise.
2804 * term/i386/pc/serial.c: Likewise.
2805 * term/i386/pc/vesafb.c: Likewise.
2806 * term/i386/pc/vga.c: Likewise.
2807 * term/usb_keyboard.c: Likewise.
2808 * term/gfxterm.c: Likewise.
2809 * aclocal.m4: Likewise.
2810 * util/lvm.c: Likewise.
2811 * util/grub.d/30_os-prober.in: Likewise.
2812 * util/grub.d/10_hurd.in: Likewise.
2813 * util/console.c: Likewise.
2814 * util/grub-macho2img.c: Likewise.
2815 * util/grub-probe.c: Likewise.
2816 * util/hostfs.c: Likewise.
2817 * util/i386/pc/grub-mkimage.c: Likewise.
2818 * util/i386/pc/grub-setup.c: Likewise.
2819 * util/i386/efi/grub-mkimage.c: Likewise.
2820 * util/grub-mkconfig.in: Likewise.
2821 * util/raid.c: Likewise.
2822 * util/resolve.c: Likewise.
2823 * util/grub-mkdevicemap.c: Likewise.
2824 * util/grub-emu.c: Likewise.
2825 * util/getroot.c: Likewise.
2826 * util/hostdisk.c: Likewise.
2827 * util/usb.c: Likewise.
2828 * util/grub-editenv.c: Likewise.
2829 * util/misc.c: Likewise.
2831 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2833 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
2834 `genparttoollist.sh'.
2835 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
2836 Add `*.sh' to the list find searches for and change `mdate.sh'
2839 2009-06-10 Pavel Roskin <proski@gnu.org>
2841 * include/grub/multiboot2.h: Provide compatibility defines for
2843 * include/multiboot2.h: Include stdint.h only if needed, using
2845 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
2847 * loader/ieee1275/multiboot2.c: Likewise.
2848 * loader/multiboot2.c: Likewise.
2849 * loader/multiboot_loader.c: Likewise.
2851 * configure.ac: Use -nostdlib when probing for the target. It
2852 should not be required to have libc for the target.
2854 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
2855 they fail without libc headers for the target.
2856 * include/grub/powerpc/libgcc.h: Use weak attribute for all
2858 * include/grub/sparc64/libgcc.h: Likewise. Don't use
2859 preprocessor conditionals.
2861 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
2862 build system doesn't need to be aware of the tar.c internals.
2864 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
2866 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
2868 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
2870 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
2871 disk limit to 26 for IDE, Virtio, Xen and SCSI.
2873 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
2875 * util/i386/pc/grub-install.in: Change the error message if UUIDs
2876 aren't available if ata.mod gets used.
2878 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
2880 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
2881 initialising controller.
2882 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
2884 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2886 * util/i386/pc/grub-install.in: Add a parameter --disk-module
2887 to choose between ata and biosdisk module on i386-pc.
2889 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
2891 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
2892 Subclass and Programming Interface fields in terms of the 3 byte
2893 Class Code register.
2894 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
2896 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
2897 interface is OHCI. Add grub_dprintf for symmetry with
2899 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
2900 interface is UHCI. Add interf variable for programming
2901 interface. Print interface with class/subclass.
2903 * bus/usb/ohci.c: Set interf with correct field.
2905 * bus/usb/uhci.c: Remove unneeded doubled lines.
2906 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
2907 Remove whitespace inside comment.
2909 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
2911 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
2912 as fallback an equivalent option without depth.
2914 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2916 Not fail if unable to retrieve C/H/S on LBA disks
2918 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
2919 if unable to retrieve C/H/S on LBA disks
2921 2009-06-08 Pavel Roskin <proski@gnu.org>
2923 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
2926 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2928 * Makefile.in (uninstall): Remove all $lib_DATA files.
2930 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2932 Bugfix: install on partitionless device
2934 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
2937 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2939 * Makefile.in (uninstall): Remove all $include_DATA files.
2941 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2943 * commands/true.c: New file. Implement the true and false commands.
2944 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
2945 (true_mod_SOURCES): New variable.
2946 (true_mod_CFLAGS): Likewise.
2947 (true_mod_LDFLAGS): Likewise.
2949 2009-06-05 Colin D Bennett <colin@gibibit.com>
2951 Optimized font character lookup using binary search instead of linear
2952 search. Fonts now are required to have the character index ordered by
2955 * font/font.c (load_font_index): Verify that fonts have ordered
2957 (find_glyph): Use binary search instead of linear search to find a
2958 character in a font.
2960 2009-06-05 Michael Scherer <misc@mandriva.org>
2962 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
2963 uses case sensitive btree.
2964 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
2965 only for case insensitive filesystems.
2967 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2969 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
2970 * conf/common.rmk (search_mod_CFLAGS): likewise
2972 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2974 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
2975 compensate a compiler bug
2977 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2979 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
2982 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2984 Definitions for creating asm symbols with Apple's CC
2986 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
2987 [APPLE_CC] (VARIABLE): likewise
2989 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2991 Disable lnxboot.img when compiled
2994 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
2995 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
2996 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
2997 [! APPLE_CC] (CODE_LENG): skip
2998 [! APPLE_CC] (setup_sects): likewise
2999 [! APPLE_CC]: skip filling
3001 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3003 Address in trampolines based on 32-bit registers when compiled
3006 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
3008 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
3010 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3012 Avoid aliases when compiling with Apple's CC for PCBIOS machine
3014 * kern/misc.c [APPLE_CC] (memcpy): new function
3015 [APPLE_CC] (memmove): likewise
3016 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
3017 (memcpy): define alias conditionally on !APPLE_CC
3020 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
3021 APPLE_CC are defined
3022 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
3023 (grub_assert_fail): make prototype conditional
3025 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3027 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
3029 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
3031 (CLEANFILES): add grub-macho2img
3032 (grub_macho2img_SOURCES): new variable
3033 * kern/i386/pc/startup.S (bss_start): new variable
3035 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
3036 * util/grub-macho2img.c: new file
3038 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3040 Use objconv when compiling with Apple's CC
3042 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
3043 (efiemu64.o): likewise
3044 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
3045 when compiling with Apple's CC
3046 (efiemu64_s.o): likewise
3047 * configure.ac: check for objconv when compiling with Apple's CC
3048 * genmk.rb: use objconv for modules when compiled with Apple's CC
3050 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3052 Define segment as well as section when compiling with
3055 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
3056 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
3057 (efiemu_convert_pointer): likewise
3058 (efiemu_set_virtual_address_map): likewise
3059 (efiemu_convert_pointer): likewise
3060 (efiemu_getcrc32): likewise
3061 (init_crc32_table): likewise
3063 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
3064 (GRUB_MOD_DEP): likewise
3066 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3068 Allow a compilation without -mcmodel=large
3070 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
3071 when compiled without -mcmodel=large
3072 (filter_memory_map): remove memory post 4 GiB when compiled
3073 without -mcmodel=large
3074 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
3075 TARGET_CFLAGS when -mcmodel=large isn't supported
3077 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3079 Remove nested functions in efiemu core
3081 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
3083 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3085 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
3087 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
3089 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
3091 (grub_cpu_is_tsc_supported): likewise
3092 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
3094 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3096 Absolute addressing through constant with Apple's cc
3098 * kern/i386/pc/startup.S: Define necessary constants
3099 and address through it when using ABS with Apple's CC
3100 * boot/i386/pc/diskboot.S: likewise
3101 * boot/i386/pc/boot.S: likewise
3102 * boot/i386/pc/lnxboot.S: likewise
3103 * boot/i386/pc/cdboot.S: likewise
3104 * mmap/i386/pc/mmap_helper.S: likewise
3105 * commands/i386/pc/drivemap_int13h.S: likewise
3107 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3109 Check if compiler is apple cc
3111 * Makefile.in (ASFLAGS): new variable
3112 (TARGET_ASFLAGS): likewise
3113 (TARGET_MODULE_FORMAT): likewise
3114 (TARGET_APPLE_CC): likewise
3116 (TARGET_IMG_CFLAGS): likewise
3117 (TARGET_CPPFLAGS): add includedir
3118 * configure.ac: call grub_apple_cc and grub_apple_target_cc
3119 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
3120 Check for linker script only if compiler isn't Apple's CC
3121 (TARGET_MODULE_FORMAT): set
3122 (TARGET_APPLE_CC): likewise
3123 (TARGET_ASFLAGS): likewise
3125 Check for objcopy only if compiler isn't Apple's CC
3126 Check for BSS symbol only if compiler isn't Apple's CC
3127 * genmk.rb: adapt nm options if we use Apple's utils
3128 * aclocal.m4 (grub_apple_cc): new test
3129 (grub_apple_target_cc): likewise
3131 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3133 Simplify sed expressions and improve awk
3135 * Makefile.in (install-local): simplify sed expression
3136 * gencmdlist.sh: likewise
3137 * genmoddep.awk: avoid adding module as a dependency of itself
3139 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3141 Add missing start symbols
3143 * boot/i386/pc/boot.S: add start
3144 * boot/i386/pc/pxeboot.S: likewise
3146 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3148 Fix wrong assumptions with grub-mkimage on EFI
3150 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
3151 (relocate_addresses): consider both r_addend and value at offset
3152 (make_mods_section): zerofill modinfo and header
3153 (convert_elf): write prefix here
3155 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3157 Use .asciz instead of .string
3159 * i386/pc/diskboot.S: use .asciz instead of .string
3160 * i386/pc/boot.S: likewise
3161 * include/grub/dl.h (GRUB_MOD_DEP): likewise
3162 (GRUB_MOD_NAME): likewise
3164 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3168 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
3169 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
3170 (grub_video_setup): remove
3171 (grub_video_set_mode): new prototype
3172 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
3174 (linux_vesafb_res): compile only on PCBIOS
3175 (grub_linux_boot): support gfxpayload
3176 * loader/i386/pc/xnu.c (video_hook): new function
3177 (grub_xnu_set_video): support gfxpayload
3178 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
3179 (DEFAULT_VIDEO_HEIGHT): likewise
3180 (DEFAULT_VIDEO_FLAGS): likewise
3181 (DEFAULT_VIDEO_MODE): new definition
3182 (video_hook): new function
3183 (grub_gfxterm_init): use grub_video_set_mode
3184 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3186 * video/video.c (grub_video_setup): removed
3187 (grub_video_set_mode): new function based on grub_gfxterm_init and
3190 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3192 Avoid calling biosdisk in drivemap
3194 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
3195 (revparse_biosdisk): likewise
3196 (list_mappings): derive name from id directly
3197 (grub_cmd_drivemap): use tryparse_diskstring
3199 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3203 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
3204 (grub_lexer_param): add tokenonhold
3205 (grub_script_create_cmdline): remove cmdline. All callers updated
3206 (grub_script_function_create): make functionname
3207 grub_script_arg. All callers updated
3208 (grub_script_execute_argument_to_string): new prototype
3209 * kern/parser.c (state_transitions): reorder
3210 (grub_parser_cmdline_state): fix a bug and make more compact
3211 * script/sh/execute.c (grub_script_execute_argument_to_string):
3213 (grub_script_execute_cmdline): use new format
3214 * script/sh/function.c (grub_script_function_create): make functionname
3215 grub_script_arg. All callers updated
3216 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
3217 (grub_script_yylex): remove
3218 (grub_script_yylex2): renamed to ...
3219 (grub_script_yylex): ...renamed
3220 parse the expressions like a${b}c
3221 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
3222 (GRUB_PARSER_TOKEN_VAR): remove
3223 (GRUB_PARSER_TOKEN_NAME): likewise
3224 ("if"): declare as typeless
3226 ("function"): likewise
3231 (argument): likewise
3232 (script): accept empty scripts and make exit on error
3233 (arguments): use GRUB_PARSER_TOKEN_ARG
3234 (function): likewise
3235 (command): move error handling to script
3236 (menuentry): move grub_script_lexer_ref before
3237 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
3238 argument. All callers updated
3240 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3242 Prevent GRUB from probing floppies during boot.
3244 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
3245 * commands/search.c (options): Add --no-floppy.
3246 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
3247 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
3248 --no-floppy when searching for UUIDs.
3250 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3252 Simplify the code duplication in commands/search.c.
3254 * commands/search.c (search_label, search_fs_uuid): Merge into ...
3255 (search_fs): ... this. Update all users.
3257 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
3259 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
3261 2009-05-28 Pavel Roskin <proski@gnu.org>
3263 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
3264 Remove the original symlink explicitly.
3266 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
3267 just one slash. That's how grub_fshelp_find_file() does it.
3269 2009-05-26 Pavel Roskin <proski@gnu.org>
3271 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
3274 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
3277 2009-05-25 Christian Franke <franke@computer.org>
3279 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
3281 (grub_atapi_identify): Add wait after drive select.
3282 (grub_ata_identify): Do more strict status register check before
3283 calling grub_atapi_identify (). Suppress error message if status
3284 register is 0x00 after command failure. Add status register
3285 check after PIO read to avoid bogus identify due to stuck DRQ.
3286 Thanks to Pavel Roskin for testing.
3287 (grub_device_initialize): Remove unsafe status register check.
3288 Thanks to 'phcoder' for problem report and patch.
3289 Prevent sign extension in debug message.
3291 2009-05-23 Colin D Bennett <colin@gibibit.com>
3293 Cleaned up `include/grub/normal.h'. Grouped prototypes by
3294 definition file, and functions defined in `normal/menu.c' have had
3295 their prototypes moved to `include/grub/menu.h' for consistency.
3297 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
3299 (grub_menu_get_entry): Likewise.
3300 (grub_menu_get_timeout): Likewise.
3301 (grub_menu_set_timeout): Likewise.
3302 (grub_menu_execute_entry): Likewise.
3303 (grub_menu_execute_with_fallback): Likewise.
3304 (grub_menu_entry_run): Likewise.
3306 * include/grub/normal.h: Re-ordered and grouped function
3307 prototypes by file that the function is defined in.
3308 (grub_menu_execute_callback): Removed; moved to menu.h.
3309 (grub_menu_get_entry): Likewise.
3310 (grub_menu_get_timeout): Likewise.
3311 (grub_menu_set_timeout): Likewise.
3312 (grub_menu_execute_entry): Likewise.
3313 (grub_menu_execute_with_fallback): Likewise.
3314 (grub_menu_entry_run): Likewise.
3315 (grub_menu_addentry): Renamed from this ...
3316 (grub_normal_add_menu_entry): ... to this.
3318 * normal/main.c (grub_menu_addentry): Renamed from this ...
3319 (grub_normal_add_menu_entry): ... to this.
3321 * script/sh/execute.c (grub_script_execute_menuentry): Update
3322 reference to renamed grub_menu_addentry function.
3324 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
3326 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
3328 2009-05-22 Pavel Roskin <proski@gnu.org>
3330 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
3331 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
3332 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
3333 compiling for the i386 targets, but not for the utilities.
3335 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
3337 (grub_root_drive): Likewise.
3338 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
3340 (grub_root_drive): Change size to byte.
3341 (grub_start_addr): Remove.
3342 (grub_end_addr): Likewise.
3343 (grub_apm_bios_info): Likewise.
3345 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
3347 * normal/i386: Remove.
3348 * normal/powerpc: Likewise.
3349 * normal/sparc64: Likewise.
3350 * normal/x86_64: Likewise.
3352 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
3354 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
3355 * loader/i386/linux_trampoline.S: Fix indentation
3356 * loader/i386/xnu_helper.S: Likewise
3358 2009-05-18 Colin D Bennett <colin@gibibit.com>
3360 Display error messages when parsing a Lua statement fails.
3361 Previously, executing a syntactically invalid statement like
3362 ")foo" or "bar;" would silently fail.
3364 * script/lua/grub_main.c (handle_lua_error): New function.
3365 (grub_lua_parse_line): Improved reporting of Lua parser and
3368 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3370 Remove -Werror which causes build to fail on some systems
3372 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
3373 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
3374 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
3376 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3378 trampoline for linux on 64-bit platform
3380 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
3381 loader/i386/efi/linux_trampoline.S
3382 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
3384 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
3386 * loader/i386/linux_trampoline.S: moved here
3387 * loader/i386/efi/linux.c (allocate_pages): reserve space for
3389 (jumpvector): removed
3390 (grub_linux_trampoline_start): new declaration
3391 (grub_linux_trampoline_end): likewise
3392 (grub_linux_boot): use trampoline when on 64-bit platform
3393 * loader/i386/linux.c: likewise
3395 2009-05-16 Pavel Roskin <proski@gnu.org>
3397 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
3398 const to avoid a warning.
3399 (grub_lua_setenv): Likewise.
3400 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
3401 lmsg to fix a warning.
3403 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3405 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
3406 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3407 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
3408 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3409 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3410 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3411 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3412 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3414 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3416 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
3418 2009-05-16 Bean <bean123ch@gmail.com>
3420 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
3421 (lua_mod_SOURCES): New variable.
3422 (lua_mod_CFLAGS): Likewise.
3423 (lua_mod_LDFLAGS): Likewise.
3425 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
3426 (setjmp_mod_SOURCES): New variable.
3427 (setjmp_mod_CFLAGS): Likewise.
3428 (setjmp_LDFLAGS): Likewise.
3430 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
3431 (setjmp_mod_SOURCES): New variable.
3432 (setjmp_mod_CFLAGS): Likewise.
3433 (setjmp_LDFLAGS): Likewise.
3435 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3436 (setjmp_mod_SOURCES): New variable.
3437 (setjmp_mod_CFLAGS): Likewise.
3438 (setjmp_LDFLAGS): Likewise.
3440 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3441 (setjmp_mod_SOURCES): New variable.
3442 (setjmp_mod_CFLAGS): Likewise.
3443 (setjmp_LDFLAGS): Likewise.
3445 * normal/i386/setjmp.S: Moved from here ...
3446 * lib/i386/setjmp.S: ... Moved here
3447 * normal/x86_64/setjmp.S: Moved from here ...
3448 * lib/x86_64/setjmp.S: ... Moved here
3449 * normal/powerpc/setjmp.S: Moved from here ...
3450 * lib/powerpc/setjmp.S: ... Moved here
3451 * normal/sparc64/setjmp.S: Moved from here ...
3452 * lib/sparc64/setjmp.S: ... Moved here
3454 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
3455 returns_twice in mingw.
3457 * script/lua/grub_lib.c: New file.
3458 * script/lua/grub_lib.h: Likewise.
3459 * script/lua/grub_lua.h: Likewise.
3460 * script/lua/grub_main.c: Likewise.
3461 * script/lua/lapi.c: Likewise.
3462 * script/lua/lapi.h: Likewise.
3463 * script/lua/lauxlib.c: Likewise.
3464 * script/lua/lauxlib.h: Likewise.
3465 * script/lua/lbaselib.c: Likewise.
3466 * script/lua/lcode.c: Likewise.
3467 * script/lua/lcode.h: Likewise.
3468 * script/lua/ldblib.c: Likewise.
3469 * script/lua/ldebug.c: Likewise.
3470 * script/lua/ldebug.h: Likewise.
3471 * script/lua/ldo.c: Likewise.
3472 * script/lua/ldo.h: Likewise.
3473 * script/lua/ldump.c: Likewise.
3474 * script/lua/lfunc.c: Likewise.
3475 * script/lua/lfunc.h: Likewise.
3476 * script/lua/lgc.c: Likewise.
3477 * script/lua/lgc.h: Likewise.
3478 * script/lua/linit.c: Likewise.
3479 * script/lua/liolib.c: Likewise.
3480 * script/lua/llex.c: Likewise.
3481 * script/lua/llex.h: Likewise.
3482 * script/lua/llimits.h: Likewise.
3483 * script/lua/lmathlib.c: Likewise.
3484 * script/lua/lmem.c: Likewise.
3485 * script/lua/lmem.h: Likewise.
3486 * script/lua/loadlib.c: Likewise.
3487 * script/lua/lobject.c: Likewise.
3488 * script/lua/lobject.h: Likewise.
3489 * script/lua/lopcodes.c: Likewise.
3490 * script/lua/lopcodes.h: Likewise.
3491 * script/lua/loslib.c: Likewise.
3492 * script/lua/lparser.c: Likewise.
3493 * script/lua/lparser.h: Likewise.
3494 * script/lua/lstate.c: Likewise.
3495 * script/lua/lstate.h: Likewise.
3496 * script/lua/lstring.c: Likewise.
3497 * script/lua/lstring.h: Likewise.
3498 * script/lua/lstrlib.c: Likewise.
3499 * script/lua/ltable.c: Likewise.
3500 * script/lua/ltable.h: Likewise.
3501 * script/lua/ltablib.c: Likewise.
3502 * script/lua/ltm.c: Likewise.
3503 * script/lua/ltm.h: Likewise.
3504 * script/lua/lua.h: Likewise.
3505 * script/lua/luaconf.h: Likewise.
3506 * script/lua/lualib.h: Likewise.
3507 * script/lua/lundump.c: Likewise.
3508 * script/lua/lundump.h: Likewise.
3509 * script/lua/lvm.c: Likewise.
3510 * script/lua/lvm.h: Likewise.
3511 * script/lua/lzio.c: Likewise.
3512 * script/lua/lzio.h: Likewise.
3514 2009-05-16 Bean <bean123ch@gmail.com>
3516 * include/grub/kernel.h (grub_module_header_types): Add type
3519 * kern/main.c (grub_load_config): New function.
3520 (grub_main): Call grub_load_config to read boot config.
3522 * grub-mkimage (generate_image): New parameter config_path.
3523 (options): New option --config.
3524 (main): Parse --config option, and pass it to generate_image.
3526 2009-05-14 Christian Franke <franke@computer.org>
3528 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
3529 This fixes build on Cygwin.
3531 2009-05-14 Pavel Roskin <proski@gnu.org>
3533 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
3534 jump. This saves two bytes, so the typical case of 2 swapped
3535 drives would fit 32 bytes.
3537 2009-05-13 Pavel Roskin <proski@gnu.org>
3539 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
3540 grub_uint32_t to avoid a warning.
3542 * loader/i386/linux.c (allocate_pages): When assigning
3543 real_mode_mem, cast through grub_size_t to fix a warning. The
3544 code already makes sure that the value would fit a pointer.
3545 (grub_linux_setup_video): Cast render_target->data to
3546 grub_size_t to fix a warning.
3548 2009-05-13 Javier MartÃn <lordhabbit@gmail.com>
3550 * commands/i386/pc/drivemap.c: New file - implement drivemap
3552 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
3553 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
3555 2009-05-13 Pavel Roskin <proski@gnu.org>
3557 * util/i386/pc/grub-setup.c (setup): Remove unused variable
3558 embedding_area_exists.
3560 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
3562 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
3563 it easier to understand / work with.
3564 Improve warning messages for cases where there's no embedding area,
3565 or when it is too small (or core.img too large).
3567 2009-05-13 Pavel Roskin <proski@gnu.org>
3569 * loader/i386/pc/multiboot2.c: Add necessary includes for
3570 grub_multiboot2_real_boot().
3572 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
3573 PX record is always little-endian. We only need the lower 2
3576 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
3577 facilitate code reuse.
3578 (grub_cpio_mount): Use "struct head", not a char buffer. This
3579 fixes a warning reported by gcc 4.4.
3581 * kernel/disk.c (grub_disk_read): Use void pointer for the
3583 (grub_disk_write): Use const void pointer for the buffer.
3584 Adjust all callers. Remove unnecessary casts.
3586 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
3588 * util/i386/pc/grub-install.in: Update copyright year.
3590 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3594 * commands/gptsync.c: new file
3595 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
3596 (gptsync_mod_SOURCES): new variable
3597 (gptsync_mod_CFLAGS): likewise
3598 (gptsync_mod_LDFLAGS): likewise
3599 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
3601 (GRUB_PC_PARTITION_TYPE_HFS): likewise
3602 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
3603 * conf/i386-ieee1275.rmk: likewise
3604 * conf/i386-pc.rmk: likewise
3605 * conf/powerpc-ieee1275.rmk: likewise
3607 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3611 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
3612 (grub_dl_ref): likewise
3614 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
3616 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
3617 split in two functions (one for msdos and one for gpt).
3619 2009-05-08 Pavel Roskin <proski@gnu.org>
3621 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
3624 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
3625 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
3626 Initialize them with -1. Add sanity check for bad1. Eliminate
3629 2009-05-08 David S. Miller <davem@davemloft.net>
3631 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
3633 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
3635 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
3638 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
3640 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
3641 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
3643 2009-05-05 David S. Miller <davem@davemloft.net>
3645 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
3647 2009-05-05 Pavel Roskin <proski@gnu.org>
3649 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
3650 of grub_dl_ref() and grub_dl_unref().
3651 * commands/parttool.c: Remove preprocessor conditionals around
3652 grub_dl_ref() and grub_dl_unref().
3653 * fs/affs.c: Likewise.
3654 * fs/afs.c: Likewise.
3655 * fs/cpio.c: Likewise.
3656 * fs/ext2.c: Likewise.
3657 * fs/fat.c: Likewise.
3658 * fs/hfs.c: Likewise.
3659 * fs/hfsplus.c: Likewise.
3660 * fs/iso9660.c: Likewise.
3661 * fs/jfs.c: Likewise.
3662 * fs/minix.c: Likewise.
3663 * fs/ntfs.c: Likewise.
3664 * fs/reiserfs.c: Likewise.
3665 * fs/sfs.c: Likewise.
3666 * fs/udf.c: Likewise.
3667 * fs/ufs.c: Likewise.
3668 * fs/xfs.c: Likewise.
3669 * include/grub/dl.h: Likewise.
3670 * loader/xnu.c: Likewise.
3672 2009-05-04 Pavel Roskin <proski@gnu.org>
3674 * commands/acpi.c: Remove unused variable my_mod.
3675 * partmap/amiga.c: Likewise.
3676 * partmap/apple.c: Likewise.
3677 * partmap/gpt.c: Likewise.
3678 * partmap/pc.c: Likewise.
3679 * partmap/sun.c: Likewise.
3680 * term/gfxterm.c: Likewise.
3681 * term/i386/pc/vesafb.c: Likewise.
3682 * term/i386/pc/vga.c: Likewise.
3684 2009-05-04 David S. Miller <davem@davemloft.net>
3686 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
3687 pointer args to grub_ieee1275_get_property().
3689 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
3691 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
3692 devices, and do not traverse down under controller nodes.
3694 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
3695 (grub_ofdisk_open): Use it to un-escape "," characters.
3696 * kern/disk.c (find_part_sep): New.
3697 (grub_disk_open): Use it to find the first non-escaped ','
3698 character in the disk name.
3699 * util/ieee1275/devicemap.c (escape_of_path): New.
3700 (grub_util_emit_devicemap_entry): Use it.
3701 * util/sparc64/ieee1275/grub-install.in: Update script to
3702 strip partition specifiers properly by not triggering on
3703 '\' escaped ',' characters.
3705 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3707 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
3709 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
3711 (linux_vesafb_modes): Add a lot of additional modes to the list (based
3712 on documentation from Wikipedia).
3714 2009-05-04 Pavel Roskin <proski@gnu.org>
3716 * disk/ata.c: Spelling fixes.
3717 * disk/raid.c: Likewise.
3718 * disk/usbms.c: Likewise.
3719 * disk/dmraid_nvidia.c: Likewise.
3720 * kern/ieee1275/openfw.c: Likewise.
3721 * kern/ieee1275/init.c: Likewise.
3722 * kern/ieee1275/cmain.c: Likewise.
3723 * boot/i386/pc/cdboot.S: Likewise.
3724 * video/readers/png.c: Likewise.
3725 * video/i386/pc/vbe.c: Likewise.
3726 * fs/udf.c: Likewise.
3727 * fs/hfs.c: Likewise.
3728 * fs/reiserfs.c: Likewise.
3729 * efiemu/runtime/efiemu.c: Likewise.
3730 * efiemu/main.c: Likewise.
3731 * efiemu/mm.c: Likewise.
3732 * include/grub/elf.h: Likewise.
3733 * include/grub/xnu.h: Likewise.
3734 * include/grub/usbdesc.h: Likewise.
3735 * include/grub/usb.h: Likewise.
3736 * include/grub/script_sh.h: Likewise.
3737 * include/grub/lib/LzmaEnc.h: Likewise.
3738 * include/grub/efiemu/efiemu.h: Likewise.
3739 * include/grub/command.h: Likewise.
3740 * normal/menu.c: Likewise.
3741 * normal/main.c: Likewise.
3742 * normal/datetime.c: Likewise.
3743 * bus/usb/uhci.c: Likewise.
3744 * mmap/i386/uppermem.c: Likewise.
3745 * mmap/mmap.c: Likewise.
3746 * commands/acpi.c: Likewise.
3747 * commands/test.c: Likewise.
3748 * partmap/apple.c: Likewise.
3749 * font/font.c: Likewise.
3750 * loader/sparc64/ieee1275/linux.c: Likewise.
3751 * loader/macho.c: Likewise.
3752 * loader/i386/bsd_trampoline.S: Likewise.
3753 * loader/i386/bsd.c: Likewise.
3754 * loader/xnu.c: Likewise.
3755 * term/i386/pc/vesafb.c: Likewise.
3756 * term/usb_keyboard.c: Likewise.
3757 * util/resolve.c: Likewise.
3758 * util/getroot.c: Likewise.
3760 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3762 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
3764 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3766 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
3769 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3771 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
3772 parameter only available on BIOS.
3774 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3776 Removed wrong semicolon in declaration
3778 * grub/misc.h (grub_dprintf): remove semicolon
3780 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3782 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
3783 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
3784 is done by grub_cmd_linux() now).
3785 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
3786 restore video to text mode.
3787 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
3788 indicates lack of "vga=" parameter. "vga=0" is mapped to
3789 `GRUB_LINUX_VID_MODE_NORMAL'.
3791 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3793 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
3794 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
3795 and `normal/script.c'. Add `kern/rescue_reader.c',
3796 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
3797 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
3798 `grub_script.tab.c'.
3800 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3801 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
3802 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3803 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
3804 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3806 * Makefile.in: Remove duplicated 2008 in Copyright line.
3808 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3810 * util/misc.c (grub_util_warn): New function. Emits a warning
3812 * include/grub/util/misc.h (grub_util_warn): New declaration.
3814 * util/i386/pc/grub-install.in: Understand --force and pass it down
3817 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
3819 (setup): Improve error messages and add warnings when requested to
3820 install in odd layouts. Refuse to install using blocklists unless
3823 2009-05-04 martin f. krafft <madduck@madduck.net>
3825 * disk/raid.c (grub_raid_scan_device): Improve debug message.
3827 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3829 Updated copyright year
3831 * fs/hfsplus.c: updated copyright year
3833 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3837 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
3838 in the space previously used by unused3
3839 (grub_hfsplus_uuid): new function
3840 (grub_hfsplus_fs): added uuid field
3842 2009-05-03 Pavel Roskin <proski@gnu.org>
3844 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
3845 suppress warnings. It's no longer needed.
3846 * disk/host.c: Likewise.
3847 * disk/ata_pthru.c: Likewise.
3848 * disk/loopback.c: Likewise.
3849 * hook/datehook.c: Likewise.
3850 * parttool/pcpart.c: Likewise.
3851 * fs/i386/pc/pxe.c: Likewise.
3852 * fs/ntfscomp.c: Likewise.
3853 * efiemu/main.c: Likewise.
3854 * mmap/mmap.c: Likewise.
3855 * commands/crc.c: Likewise.
3856 * commands/hexdump.c: Likewise.
3857 * commands/hdparm.c: Likewise.
3858 * commands/acpi.c: Likewise.
3859 * commands/echo.c: Likewise.
3860 * commands/minicmd.c: Likewise.
3861 * commands/blocklist.c: Likewise.
3862 * commands/memrw.c: Likewise.
3863 * commands/loadenv.c: Likewise.
3864 * commands/usbtest.c: Likewise.
3865 * commands/lsmmap.c: Likewise.
3866 * commands/boot.c: Likewise.
3867 * commands/parttool.c: Likewise.
3868 * commands/configfile.c: Likewise.
3869 * commands/search.c: Likewise.
3870 * commands/ieee1275/suspend.c: Likewise.
3871 * commands/cat.c: Likewise.
3872 * commands/i386/pc/pxecmd.c: Likewise.
3873 * commands/i386/pc/play.c: Likewise.
3874 * commands/i386/pc/halt.c: Likewise.
3875 * commands/i386/pc/vbeinfo.c: Likewise.
3876 * commands/i386/pc/vbetest.c: Likewise.
3877 * commands/lspci.c: Likewise.
3878 * commands/date.c: Likewise.
3879 * commands/handler.c: Likewise.
3880 * commands/ls.c: Likewise.
3881 * commands/test.c: Likewise.
3882 * commands/cmp.c: Likewise.
3883 * commands/efi/loadbios.c: Likewise.
3884 * commands/efi/fixvideo.c: Likewise.
3885 * commands/halt.c: Likewise.
3886 * commands/help.c: Likewise.
3887 * commands/reboot.c: Likewise.
3888 * hello/hello.c: Likewise.
3889 * script/sh/main.c: Likewise.
3890 * loader/xnu.c: Likewise.
3891 * term/terminfo.c: Likewise.
3892 * term/i386/pc/serial.c: Likewise.
3893 * term/usb_keyboard.c: Likewise.
3895 2009-05-03 David S. Miller <davem@davemloft.net>
3897 * normal/menu.c: Include grub/parser.h
3899 2009-05-03 Pavel Roskin <proski@gnu.org>
3901 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
3903 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
3904 Suggested by Javier MartÃn <lordhabbit@gmail.com>
3906 * util/i386/pc/grub-mkrescue.in: Allow for the case when
3907 efiemu??.o doesn't exist.
3908 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
3911 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
3913 FreeBSD 64-bit support
3915 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
3916 and loader/i386/bsd_trampoline.S
3917 (bsd_mod_ASFLAGS): new variable
3918 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
3919 (FREEBSD_MODTYPE_KERNEL64): likewise
3920 (grub_bsd64_trampoline_start): likewise
3921 (grub_bsd64_trampoline_end): likewise
3922 (grub_bsd64_trampoline_selfjump): likewise
3923 (grub_bsd64_trampoline_gdt): likewise
3924 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
3925 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
3926 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
3927 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
3928 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
3930 * loader/i386/bsd_pagetable.c: new file
3931 * loader/i386/bsd_trampoline.S: likewise
3932 * loader/i386/bsd.c (ALIGN_QWORD): new macro
3933 (ALIGN_VAR): likewise
3934 (entry_hi): new variable
3935 (kern_end_mdofs): likewise
3936 (is_64bit): likewise
3937 (grub_freebsd_add_meta): use ALIGN_VAR
3938 (grub_e820_mmap): new declaration
3939 (grub_freebsd_add_mmap): new function
3940 (grub_freebsd_add_meta_module): support 64 bit kernels
3941 (grub_freebsd_list_modules): use ALIGN_VAR
3942 (gdt_descriptor): new declaration
3943 (grub_freebsd_boot): support 64 bit kernels
3944 (grub_bsd_elf64_hook): new function
3945 (grub_bsd_load_elf): support elf64
3947 2009-05-03 Bean <bean123ch@gmail.com>
3949 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
3950 after we get the result of if statement.
3952 2009-05-03 Bean <bean123ch@gmail.com>
3954 * Makefile.in (enable_efiemu): New variable.
3956 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
3958 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
3960 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
3961 path, add -mno-red-zone option.
3962 (efiemu64_s.o): Likewise.
3963 (efiemu64.o): Use macro $^ for source file.
3965 * configure.ac (--enable-efiemu): New option.
3967 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3971 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
3972 (pkglib_MODULES): add xnu.mod
3973 (xnu_mod_SOURCES): new variable
3974 (xnu_mod_CFLAGS): likewise
3975 (xnu_mod_LDFLAGS): likewise
3976 (xnu_mod_ASFLAGS): likewise
3977 * conf/i386-pc.rmk: likewise
3978 * conf/x86_64-efi.rmk: likewise
3979 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
3981 * include/grub/i386/macho.h: new file
3982 * include/grub/i386/xnu.h: likewise
3983 * include/grub/macho.h: likewise
3984 * include/grub/machoload.h: likewise
3985 * include/grub/x86_64/macho.h: likewise
3986 * include/grub/x86_64/xnu.h: likewise
3987 * include/grub/xnu.h: likewise
3988 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
3989 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
3990 * loader/i386/efi/xnu.c: new file
3991 * loader/i386/pc/xnu.c: likewise
3992 * loader/i386/xnu.c: likewise
3993 * loader/i386/xnu_helper.S: likewise
3994 * loader/macho.c: likewise
3995 * loader/xnu.c: likewise
3996 * loader/xnu_resume.c: likewise
3997 * util/grub-dumpdevtree: likewise
3998 * include/grub/i386/pit.h: include grub/err.h
3999 (grub_pit_wait): export
4000 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
4002 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4006 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
4007 _linux_efi, linux_efi.
4008 new files in grub-emu
4009 new targets efiemu32.o and efiemu64.o
4010 * loader/linux_normal_efiemu.c: likewise
4011 * loader/i386/efi/linux.c: added preliminary efiemu support
4012 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
4014 * include/grub/autoefi.h: new file
4015 * include/grub/i386/efiemu.h: likewise
4016 * include/grub/i386/pc/efiemu.h: likewise
4017 * include/grub/efi/api.h: add LL suffix when necessary
4018 new definitions relating to tables
4019 * include/grub/efiemu/efiemu.h: new file
4020 * include/grub/efiemu/runtime.h: likewise
4021 * efiemu/prepare.c: likewise
4022 * efiemu/loadcore_common.c: likewise
4023 * efiemu/loadcore64.c: likewise
4024 * efiemu/runtime/efiemu.sh: likewise
4025 * efiemu/runtime/efiemu.S: likewise
4026 * efiemu/runtime/efiemu.c: likewise
4027 * efiemu/runtime/config.h: likewise
4028 * efiemu/prepare32.c: likewise
4029 * efiemu/main.c: likewise
4030 * efiemu/modules/pnvram.c: likewise
4031 * efiemu/modules/i386: likewise
4032 * efiemu/modules/i386/pc: likewise
4033 * efiemu/modules/acpi.c: likewise
4034 * efiemu/i386/pc/cfgtables.c: likewise
4035 * efiemu/i386/loadcore64.c: likewise
4036 * efiemu/i386/loadcore32.c: likewise
4037 * efiemu/prepare64.c: likewise
4038 * efiemu/loadcore.c: likewise
4039 * efiemu/symbols.c: likewise
4040 * efiemu/mm.c: likewise
4041 * efiemu/loadcore32.c: likewise
4043 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4047 * commands/acpi.c: new file
4048 * commands/i386/pc/acpi.c: likewise
4049 * commands/efi/acpi.c: likewise
4050 * include/grub/acpi.h: likewise
4051 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
4052 (acpi_mod_SOURCES): new variable
4053 (acpi_mod_CFLAGS): likewise
4054 (acpi_mod_LDFLAGS): likewise
4055 * conf/i386-efi.rmk: likewise
4056 * conf/x86_64-efi.rmk: likewise
4058 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4060 Missing part from mmap patch
4062 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
4063 (grub_mmap_unregister)
4064 (grub_mmap_free_and_unregister): use grub_mmap_register
4066 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4070 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
4071 * loader/i386/linux.c (find_mmap_size): likewise
4072 (allocate_pages): likewise
4073 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
4074 (grub_fill_multiboot_mmap): likewise
4075 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
4076 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
4077 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
4078 (OPENBSD_MMAP_RESERVED): likewise
4079 * include/grub/i386/pc/memory.h: include grub/memory.h
4080 (grub_lower_mem): removed
4081 (grub_upper_mem): likewise
4082 (GRUB_MACHINE_MEMORY_ACPI): new definition
4083 (GRUB_MACHINE_MEMORY_NVS): likewise
4084 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
4085 (GRUB_MACHINE_MEMORY_HOLE): likewise
4086 (grub_machine_mmap_register): likewise
4087 (grub_machine_mmap_unregister): likewise
4088 (grub_machine_get_upper): likewise
4089 (grub_machine_get_lower): likewise
4090 (grub_machine_get_post64): likewise
4091 * include/grub/i386/efi/memory.h: new file
4092 * include/grub/x86_64/efi/memory.h: likewise
4093 * include/grub/efi/memory.h: likewise
4094 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
4095 (mmap_mod_SOURCES): new variable
4096 (mmap_mod_LDFLAGS): likewise
4097 (mmap_mod_ASFLAGS): likewise
4098 * conf/i386-coreboot.rmk: likewise
4099 * conf/i386-ieee1275.rmk: likewise
4100 * conf/i386-efi.rmk: likewise
4101 * conf/x86_64-efi.rmk: likewise
4102 * include/grub/types.h (UINT_TO_PTR): new macro
4103 (PTR_TO_UINT32): likewise
4104 (PTR_TO_UINT64): likewise
4105 * include/grub/memory.h: new file
4106 * mmap/i386/pc/mmap.c: likewise
4107 * mmap/i386/pc/mmap_helper.S: likewise
4108 * mmap/i386/uppermem.c: likewise
4109 * mmap/mmap.c: likewise
4110 * mmap/efi/mmap.c: likewise
4111 * kern/i386/coreboot/init.c (grub_machine_init): don't use
4113 * kern/i386/pc/init.c (grub_lower_mem): removed variable
4114 (grub_upper_mem): likewise
4115 (grub_machine_init): don't use grub_upper_mem,
4116 make grub_lower_mem local
4117 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
4118 grub_mmap_iterate and grub_mmap_get_upper
4119 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
4121 2009-05-02 Bean <bean123ch@gmail.com>
4123 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
4125 (pkglib_MODULES): Add normal.mod and sh.mod.
4126 (normal_SOURCES): New variable.
4127 (normal_mod_CFLAGS): Likewise.
4128 (normal_mod_LDFLAGS): Likewise.
4129 (sh_mod_SOURCES): Likewise.
4130 (sh_mod_CFLAGS): Likewise.
4131 (sh_mod_LDFLAGS): Likewise.
4133 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
4134 script/sh/lexer.c_DEPENDENCIES.
4135 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
4136 kern/rescue_reader.c and kern/rescue_parser.c.
4137 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
4138 (grub_emu_SOURCES): Change source files.
4139 (pkglib_MODULES): Remove normal.mod.
4140 (normal_SOURCES): Removed.
4141 (normal_mod_CFLAGS): Likewise.
4142 (normal_mod_LDFLAGS): Likewise.
4143 * conf/i386-coreboot.rmk: Likewise.
4144 * conf/i386-efi.rmk: Likewise.
4145 * conf/i386-ieee1276.rmk: Likewise.
4146 * conf/powerpc-ieee1275.rmk: Likewise.
4147 * conf/sparc64-ieee1275.rmk: Likewise.
4148 * conf/x86_64-efi.rmk: Likewise.
4150 * include/grub/command.h (grub_command_execute): New inline function.
4152 * include/grub/menu.h (grub_menu_entry): Removed commands field.
4154 * include/grub/normal.h: Remove <grub/setjmp.h>.
4155 (grub_fs_module_list): Moved to normal/autofs.c.
4156 (grub_exit_env): Removed.
4157 (grub_command_execute): Likewise.
4158 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
4160 (read_command_list): New function declaration.
4161 (read_fs_list): Likewise.
4163 * include/parser.h: Include <grub/reader.h>.
4164 (grub_parser_split_cmdline): Change type of getline parameter.
4165 (grub_parser): New structure.
4166 (grub_parser_class): New variable.
4167 (grub_parser_execute): New function declaration.
4168 (grub_register_rescue_parser): Likewise.
4169 (grub_parser_register): New inline function.
4170 (grub_parser_unregister): Likewise.
4171 (grub_parser_get_current): Likewise.
4172 (grub_parser_set_current): Likewise.
4174 * include/grub/reader.h: New file.
4175 * kern/reader.c: Likewise.
4176 * kern/rescue_parser.c: Likewise.
4177 * kern/rescue_reader.c: Likewise.
4178 * normal/autofs.c: Likewise.
4179 * normal/dyncmd.c: Likewise.
4181 * include/grub/rescue.h: Removed.
4182 * normal/command.h: Likewise.
4184 * include/grub/script.h: Moved to ...
4185 * include/grub/script_sh.h: ... Moved here.
4186 * normal/execute.c: Moved to ...
4187 * script/sh/execute.c: ... Moved here.
4188 * normal/function.c: Moved to ...
4189 * script/sh/function.c: ... Moved here.
4190 * normal/lexer.c: Moved to ...
4191 * script/sh/lexer.c: ... Moved here.
4192 * normal/parser.y: Moved to ...
4193 * script/sh/parser.y: ... Moved here.
4194 * normal/script.c: Moved to ...
4195 * script/sh/script.c: ... Moved here.
4197 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
4199 (grub_exit_env): Removed.
4200 (fs_module_list): Moved to normal/autofs.c.
4201 (grub_file_getline): Don't handle comment here.
4202 (free_menu): Skip removed field entry->commands.
4203 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
4205 (read_config_file): Removed nested parameter, change getline function.
4206 (grub_enter_normal_mode): Removed.
4207 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
4208 (read_command_list): Likewise.
4209 (autoload_fs_module): Moved to normal/autofs.c.
4210 (read_fs_list): Likewise.
4211 (reader_nested): New variable.
4212 (grub_normal_execute): Run parser.sh to switch to sh parser.
4213 (grub_cmd_rescue): Removed.
4214 (cmd_normal): Removed.
4215 (grub_cmd_normal): Unregister itself at the beginning. Don't register
4217 (grub_cmdline_run): New function.
4218 (grub_normal_reader_init): Likewise.
4219 (grub_normal_read_line): Likewise.
4220 (grub_env_write_pager): Likewise.
4221 (cmdline): New variable.
4222 (grub_normal_reader): Likewise.
4223 (GRUB_MOD_INIT): Register normal reader and set as current, register
4224 pager hook, register normal command with grub_register_command_prio,
4225 so that it won't show up in command.lst.
4226 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
4227 grub_fs_autoload_hook.
4229 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
4230 (grub_menu_execute_entry): Replace grub_script_execute with
4231 grub_parser_execute, change parameter to grub_command_execute.
4233 * normal/menu_text.c: Remove <grub/script.h>.
4235 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
4236 and <grub/parser.h>.
4237 (run): Change editor_getline to use new parser interface. Change
4238 parameter to grub_command_execute.
4240 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
4241 <grub/reader.h> and <grub/parser.h>.
4242 (grub_load_normal_mode): Execute normal command.
4243 (grub_main): Call grub_register_core_commands,
4244 grub_register_rescue_parser and grub_register_rescue_reader, use
4245 grub_reader_loop to enter input loop.
4247 * kern/parser.c (grub_parser_split_cmdline): Change type of
4249 (grub_parser_class): New variable.
4250 (grub_parser_execute): New function.
4252 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
4253 * loader/multiboot2.c: Likewise.
4254 * loader/sparc64/ieee1275/linux.c: Likewise.
4256 * util/grub-emu.c (read_command_list): New dummy function.
4258 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4260 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
4261 count to 16 for CCISS and IDA.
4263 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4265 * normal/menu_text.c (grub_wait_after_message): Print a newline
4266 after waiting for user input.
4268 * loader/i386/linux.c: Include `<grub/normal.h>'.
4269 (grub_cmd_linux): Improve the error message about `ask' mode, by
4270 waiting for user input so it's not missed (we can do this, since
4271 user requested interaction).
4273 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4275 Added missing lst to grub-mkrescue
4277 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
4278 and ${input_dir}/parttool.lst
4280 2009-04-30 David S. Miller <davem@davemloft.net>
4282 * util/hostdisk.c (device_is_wholedisk): New function.
4283 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
4284 zero only if device_is_wholedisk() returns true.
4286 * util/hostdisk.c (convert_system_partition_to_system_disk):
4287 Handle virtual disk devices named /dev/vdiskX as found on sparc
4290 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
4291 lettered partition specifier is found, convert to numbered.
4293 2009-04-29 David S. Miller <davem@davemloft.net>
4295 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
4296 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4298 * normal/command.c: Add missing newline at end of file.
4300 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
4302 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
4303 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
4304 grub_ofdisk_read): Likewise, and deal similarly with the fact that
4305 ihandles have a 32-bit type but need to be stored in a "void *".
4307 2009-04-28 Pavel Roskin <proski@gnu.org>
4309 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
4310 not disk. Adjust all dependencies.
4311 (grub_fs_uuid_close): Use grub_device_close(), not
4314 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
4315 parent's partition, don't copy it by reference, as it gets freed
4318 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4320 Preboot hooks support
4322 * commands/boot.c (struct grub_preboot_t): new declaration
4323 (preboots_head): new variable
4324 (preboots_tail): likewise
4325 (grub_loader_register_preboot_hook): new function
4326 (grub_loader_unregister_preboot_hook): likewise
4327 (grub_loader_set): launch preboot hooks
4328 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
4329 (grub_loader_register_preboot_hook): new declaration
4330 (grub_loader_unregister_preboot_hook): likewise
4332 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4336 * disk/scsi.c (grub_scsi_open): added missing cast when
4337 calling grub_dprintf
4339 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4341 Bug and warning fixes
4343 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
4345 * commands/test.c (test_parse): fixed bug with file tests and corrected
4346 declaration of find_file
4348 2009-04-26 Pavel Roskin <proski@gnu.org>
4350 * Makefile.in: Don't install empty manual pages if help2man is
4351 missing. Use help2man option for output, not shell redirection.
4353 2009-04-26 David S. Miller <davem@davemloft.net>
4355 * util/grub-mkdevicemap.c (make_device_map): Add missing
4356 NESTED_FUNC_ATTR to process_device().
4358 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4362 * commands/test.c: rewritten to use bash-like test
4364 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4366 Parttool autoloading and improvements
4368 * Makefile.in (pkglib_DATA): add parttool.lst
4369 (parttool.lst): new target
4370 * genmk.rb: generate parttool-*
4371 (CLEANFILES): add #{parttool}
4372 (PARTTOOLFILES): new variable
4373 * genparttoollist.sh: new file
4374 * parttool/pcpart.c (grub_pcpart_boot): more feedback
4375 (grub_pcpart_type): likewise
4376 * commands/parttool.c (helpmsg): new variable
4377 (grub_cmd_parttool): output help if not enough arguments are supplied
4379 (GRUB_MOD_INIT(parttool)): use helpmsg
4381 2009-04-24 David S. Miller <davem@davemloft.net>
4383 Avoiding opening same device multiple times in device iterator.
4385 * kern/device.c: (grub_device_iterate): Define struct part_ent,
4386 and use it to build a list of partitions in iterate_disk() and
4387 iterate_partition().
4389 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
4392 * disk/ieee1275/nand.c (grub_nand_iterate): Return
4393 grub_devalias_iterate() result instead of unconditional 0.
4394 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
4395 Also, capture hook return value, either directly or via
4396 grub_children_iterate(), and propagate to caller.
4397 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
4398 grub_children_iterate): Return value is now 'int' instead of
4400 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
4401 like a proper iterator, stopping when hooks return non-zero.
4402 (grub_devalias_iterate): Likewise.
4404 2009-04-23 David S. Miller <davem@davemloft.net>
4406 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
4408 2009-04-22 David S. Miller <davem@davemloft.net>
4410 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
4411 is larger than address_cells, use that value for address_cells too.
4413 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
4414 IEEE1275_MAX_PATH_LEN): Define.
4415 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
4416 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
4417 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
4418 'devtype'. Explicitly NULL terminate devalias expansion.
4420 * util/sparc64/ieee1275/misc.c: New file.
4421 * util/sparc64/ieee1275/grub-setup.c: New file.
4422 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
4423 * util/sparc64/ieee1275/grub-mkimage.c: New file.
4424 * util/sparc64/ieee1275/grub-install.in: New file.
4425 * util/ieee1275/ofpath.c: New file.
4426 * util/ieee1275/devicemap.c: New file.
4427 * util/devicemap.c: New file.
4428 * util/deviceiter.c: New file.
4429 * kern/sparc64/ieee1275/init.c: New file.
4430 * include/grub/util/ofpath.h: New file.
4431 * include/grub/util/deviceiter.h: New file.
4432 * util/grub-mkdevicemap.c: Include deviceiter.h.
4433 Implement using grub_util_emit_devicemap_entry and
4434 grub_util_iterate_devices.
4435 * conf/i386-corebook.rmk: Build util/deviceiter.c and
4436 util/devicemap.c into grub-mkdevicemap
4437 * conf/i386-efi.rmk: Likewise.
4438 * conf/i386-ieee1275.rmk: Likewise.
4439 * conf/i386-pc.rmk: Likewise.
4440 * conf/powerpc-ieee1275.rmk: Likewise.
4441 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
4442 images and installation utilities. Build kernel as image
4443 instead of as elf binary. Use common rules as much as possible.
4445 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4447 Correct GPT definition
4449 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4452 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
4454 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
4456 2009-04-19 David S. Miller <davem@davemloft.net>
4458 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
4459 (grub_rescue_cmd_linux): Rename to...
4460 (grub_cmd_linux): and fix prototype.
4461 (grub_rescue_cmd_initrd): Rename to...
4462 (grub_cmd_initrd): and fix prototype.
4463 (cmd_linux, cmd_initrd): New.
4464 (GRUB_MOD_INIT(linux)): Use grub_register_command().
4465 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
4467 2009-04-17 Pavel Roskin <proski@gnu.org>
4469 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
4471 (grub_ohci_transfer): Likewise.
4473 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
4475 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
4476 return without a value. Fix inconsistent indentation.
4478 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
4479 match struct grub_fs.
4481 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
4482 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
4483 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
4484 * commands/lspci.c (grub_lspci_iter): Likewise.
4486 2009-04-16 Bean <bean123ch@gmail.com>
4488 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
4491 2009-04-15 Pavel Roskin <proski@gnu.org>
4493 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
4494 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
4495 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
4498 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4500 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
4501 that no multiple data or metadata areas are supported and `Unknown
4504 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4506 Move loader out of the kernel
4508 * kern/loader.c: moved to ...
4509 * commands/boot.c: ... moved here
4510 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
4511 * commands/boot.c (grub_cmd_boot): moved here. All users updated
4512 * include/grub/kernel.h (grub_machine_fini): export
4513 * include/grub/loader.h (grub_loader_is_loaded): update declaration
4514 (grub_loader_set): likewise
4515 (grub_loader_unset): likewise
4516 (grub_loader_boot): likewise
4517 * conf/common.rmk: new module boot.mod
4518 (pkglib_MODULES): add boot.mod
4519 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
4520 (grub_emu_SOURCES): likewise
4521 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
4522 (grub_emu_SOURCES): likewise
4523 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
4524 (grub_emu_SOURCES): likewise
4525 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
4526 (grub_emu_SOURCES): likewise
4527 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
4528 (grub_emu_SOURCES): likewise
4529 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
4530 (grub_emu_SOURCES): likewise
4531 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
4532 (grub_emu_SOURCES): likewise
4534 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4536 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
4538 * kern/misc.c (grub_itoa): Removed function
4539 (grub_ltoa): likewise
4540 (grub_vsprintf): use grub_lltoa
4542 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4546 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
4547 * conf/i386-coreboot.rmk: likewise
4548 * conf/i386-ieee1275.rmk: likewise
4549 * conf/powerpc-ieee1275.rmk: likewise
4551 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4553 * INSTALL: Add that `./autogen.sh' needs to be run before
4556 2009-04-14 Bean <bean123ch@gmail.com>
4558 * Makefile.in (pkglib_DATA): Add handler.lst.
4559 (handler.lst): New rule.
4561 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
4562 * conf/i386-coreboot.rmk: Likewise.
4563 * conf/i386-ieee1275.rmk: Likewise.
4564 * conf/i386-efi.rmk: Likewise.
4565 * conf/x86_64-efi.rmk: Likewise.
4566 * conf/powerpc-ieee1275.rmk: Likewise.
4567 * conf/sparc64-ieee1275.rmk: Likewise.
4569 * genhandlerlist.sh: New file.
4571 * genmk.rb: Add rules to generate handler.lst.
4573 * include/grub/normal.h (grub_file_getline): New function definition.
4574 (read_handler_list): Likewise.
4575 (free_handler_list): Likewise.
4577 * include/grub/term.h (grub_term_register_input): Add name parameter
4578 for auto generation of handler.lst.
4579 (grub_term_register_output): Likewise.
4581 * normal/handler.c: New file.
4583 * normal/main.c (get_line): Renamed to grub_file_getline.
4584 (read_config_file): Use the newly renamed grub_file_getline.
4585 (read_command_list): Likewise.
4586 (read_fs_list): Likewise.
4587 (grub_normal_execute): Call read_handler_list to parse handler.lst.
4588 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
4590 * term/efi/console.c (grub_console_init): Add name parameter for auto
4591 generation of handler.lst.
4592 * term/gfxterm.c: Likewise.
4593 * term/i386/pc/at_keyboard.c: Likewise.
4594 * term/i386/pc/console.c: Likewise.
4595 * term/i386/pc/serial.c: Likewise.
4596 * term/i386/pc/vesafb.c: Likewise.
4597 * term/i386/pc/vga.c: Likewise.
4598 * term/i386/pc/vga_text.c: Likewise.
4599 * term/ieee1275/ofconsole.c: Likewise.
4600 * term/usb_keyboard.c: Likewise.
4602 2009-04-14 Bean <bean123ch@gmail.com>
4604 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
4605 properly with null character.
4607 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4609 * configure: Remove.
4610 * config.h.in: Likewise.
4611 * stamp-h.in: Likewise.
4612 * DISTLIST: Likewise.
4613 * conf/common.mk: Likewise.
4614 * conf/i386-coreboot.mk: Likewise.
4615 * conf/i386-efi.mk: Likewise.
4616 * conf/i386-ieee1275.mk: Likewise.
4617 * conf/i386.mk: Likewise.
4618 * conf/i386-pc.mk: Likewise.
4619 * conf/powerpc-ieee1275.mk: Likewise.
4620 * conf/sparc64-ieee1275.mk: Likewise.
4621 * conf/x86_64-efi.mk: Likewise.
4623 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
4626 2009-04-14 John Stanley <jpsinthemix@verizon.net>
4627 David S. Miller <davem@davemloft.net>
4629 * util/hostdisk.c (make_device_name): Fix buffer length
4632 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4634 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
4635 <sys/param.h> and <sys/sysctl.h>.
4636 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
4637 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
4638 opening the device and reset them afterwards.
4640 2009-04-13 Pavel Roskin <proski@gnu.org>
4642 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
4643 Reported by John Stanley <jpsinthemix@verizon.net>
4645 2009-04-13 Robert Millan <rmh@aybabtu.com>
4647 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
4648 that name for menuentries when appropriate.
4650 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4652 * util/grub.d/10_freebsd.in: Add a missing `fi'.
4654 2009-04-13 Robert Millan <rmh@aybabtu.com>
4656 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
4657 to Linux, simply abort telling the user it's no longer supported.
4659 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4661 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
4662 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
4663 `freebsd_loadenv' only when devices.hints exist.
4665 2009-04-13 Pavel Roskin <proski@gnu.org>
4667 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
4669 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4671 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
4673 (grub_drive): Likewise.
4675 2009-04-13 David S. Miller <davem@davemloft.net>
4677 * kern/sparc64/ieee1275/ieee1275.c: New file.
4678 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
4679 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
4680 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
4681 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
4682 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
4683 grub_ieee1275_alloc_physmem): Declare new exported functions.
4685 * include/grub/sparc64/ieee1275/loader.h: New file.
4686 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4687 * include/grub/sparc64/kernel.h: Likewise.
4688 * loader/sparc64/ieee1275/linux.c: Likewise.
4690 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
4691 (grub_fstest_SOURCES): Likewise.
4693 * util/hostdisk.c (make_device_name): Do not make any assumptions
4694 about the length of drive names.
4696 * kern/dl.c (grub_dl_load_file): Close file immediately when
4697 we are done using it.
4699 2009-04-12 David S. Miller <davem@davemloft.net>
4701 * kern/misc.c (grub_ltoa): Fix cast when handling negative
4702 values. Noticed by Pavel Roskin.
4704 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
4707 * genmk.rb: Add more flexible image type specification, also
4708 pass --strip-unneeded to objcopy.
4709 * conf/i386-pc.rmk: Use *_FORMAT.
4710 * conf/i386-pc.mk: Rebuilt.
4712 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
4713 (OFDISK_HASH_SZ): Define.
4714 (ofdisk_hash): New hash table.
4715 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
4716 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
4717 instead of device phandle which is not unique.
4719 * kern/sparc64/ieee1275/init.c: Delete, replace with...
4720 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
4721 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
4722 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
4723 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
4724 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
4725 GRUB_KERNEL_MACHINE_DATA_END): Define.
4726 (grub_kernel_image_size, grub_total_module_size): Declare.
4728 2009-04-12 Pavel Roskin <proski@gnu.org>
4730 * configure.ac: Change the logic when we check for target tools.
4731 Do it when the target is specified and it's different from the
4732 specified value of the host.
4734 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
4736 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
4737 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
4738 GNU/kFreeBSD. Check if a device is a character device. Use
4739 DIOCGMEDIASIZE to get the size.
4740 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
4741 support for GNU/kFreeBSD.
4742 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
4743 is a character device instead of a block device. Add support for
4744 FreeBSD device names.
4746 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
4747 is a character device instead of a block device.
4749 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
4750 is a character device instead of a block device.
4752 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
4754 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
4755 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
4756 FreeBSD. Check if a device is a character device. Use
4757 DIOCGMEDIASIZE to get the size.
4758 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
4759 support for FreeBSD.
4760 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
4761 is a character device instead of a block device. Add support for
4762 FreeBSD device names.
4764 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
4765 a character device instead of a block device.
4766 (grub_util_check_char_device): New function.
4768 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
4769 a character device instead of a block device.
4771 * include/grub/util/getroot.h (grub_util_check_char_device): New
4774 2009-04-11 David S. Miller <davem@davemloft.net>
4776 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
4778 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
4779 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
4780 function, if present.
4781 (__bswapdi2): Likewise.
4783 * include/grub/sparc64/ieee1275/boot.h: New file.
4784 * boot/sparc64/ieee1275/boot.S: Likewise.
4785 * boot/sparc64/ieee1275/diskboot.S: Likewise.
4787 * kern/misc.c (grub_ltoa): New function.
4788 (grub_vsprintf): Use it to format 'long' integers.
4790 2009-04-10 David S. Miller <davem@davemloft.net>
4792 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
4793 slots are of type grub_ieee1275_cell_t.
4794 (grub_nand_read): Likewise.
4795 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
4796 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
4797 macros are used to compare values in arg/ret block of the call.
4798 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
4799 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
4800 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
4801 grub_ieee1275_instance_to_path, grub_ieee1275_write,
4802 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
4803 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
4804 grub_ieee1275_close, grub_ieee1275_set_property,
4805 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
4806 grub_ieee1275_cell_t.
4807 * kern/ieee1275/openfw.c (grub_map): Likewise.
4808 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
4809 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
4811 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
4812 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
4813 (grub_devalias_iterate): Likewise.
4815 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4819 * fs/ufs.c (INODE_NBLOCKS): new definition
4820 (struct grub_ufs_dirent): added fields for non-BSD dirents
4821 (grub_ufs_get_file_block): fixed double indirect handling
4822 (grub_ufs_lookup_symlink): use more robust way to determine whether
4824 (grub_ufs_find_file): support for non-BSD dirents
4825 (grub_ufs_dir): support for non-BSD dirents
4827 2009-04-10 Bean <bean123ch@gnail.com>
4829 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
4830 attribute, otherwise the size would be wrong for i386 platform.
4832 * include/grub/pci.h (grub_pci_read_word): New inline function.
4833 (grub_pci_read_byte): Likewise.
4834 (grub_pci_write): Likewise.
4835 (grub_pci_write_word): Likewise.
4836 (grub_pci_write_byte): Likewise.
4838 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
4840 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
4841 (find_framebuf): Scan pci to locate the frame buffer address.
4843 * commands/efi/fixvideo.c: New file.
4845 * commands/efi/loadbios.c: Likewise.
4847 * commands/memrw.c: Likewise.
4849 * util/grub-dumpbios.in: Likewise.
4851 * conf/common.rmk (grub-dumpbios): New utility.
4852 (pkglib_MODULES): New module memrw.mod.
4853 (memrw_mod_SOURCE): New macro.
4854 (memrw_mod_CFLAGS): Likewise.
4855 (memrw_mod_LDFLAGS): Likewise.
4857 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
4859 (loadbios_mod_SOURCE): New macro.
4860 (loadbios_mod_CFLAGS): Likewise.
4861 (loadbios_mod_LDFLAGS): Likewise.
4862 (fixvideo_mod_SOURCE): Likewise.
4863 (fixvideo_mod_CFLAGS): Likewise.
4864 (fixvideo_mod_LDFLAGS): Likewise.
4866 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
4868 (loadbios_mod_SOURCE): New macro.
4869 (loadbios_mod_CFLAGS): Likewise.
4870 (loadbios_mod_LDFLAGS): Likewise.
4871 (fixvideo_mod_SOURCE): Likewise.
4872 (fixvideo_mod_CFLAGS): Likewise.
4873 (fixvideo_mod_LDFLAGS): Likewise.
4875 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
4877 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
4879 2009-04-07 David S. Miller <davem@davemloft.net>
4881 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
4882 support for R_SPARC_OLO10 relocations. Fix compile warning for
4883 R_SPARC_WDISP30 case.
4884 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
4886 2009-04-06 Pavel Roskin <proski@gnu.org>
4888 * include/grub/misc.h (ARRAY_SIZE): New macro.
4889 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
4891 * loader/i386/linux.c (allocate_pages): Use free_pages().
4892 (grub_linux_unload): Don't use free_pages().
4893 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
4894 wrong index. Treat all other modes as text modes.
4895 (grub_cmd_linux): Initialize vid_mode unconditionally to
4896 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
4898 * commands/help.c (print_command_help): Use cmd->prio, not
4899 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
4901 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4905 * parttool/pcpart.c: new file
4906 * commands/parttool.c: likewise
4907 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
4908 (parttool_mod_SOURCES): new variable
4909 (parttool_mod_CFLAGS): likewise
4910 (parttool_mod_LDFLAGS): likewise
4911 (pcpart_mod_SOURCES): likewise
4912 (pcpart_mod_CFLAGS): likewise
4913 (pcpart_mod_LDFLAGS): likewise
4914 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
4915 and parttool/pcpart.c
4916 * conf/i386-efi.rmk: likewise
4917 * conf/i386-ieee1275.rmk: likewise
4918 * conf/i386-pc.rmk: likewise
4919 * conf/powerpc-ieee1275.rmk: likewise
4920 * conf/sparc64-ieee1275.rmk: likewise
4921 * conf/x86_64-ieee1275.rmk: likewise
4923 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4925 Support for mtime and further expandability of dir command
4927 * include/grub/lib/datetime.h: moved to ...
4928 * include/grub/datetime.h: ... moved here and added
4929 declaration of grub_unixtime2datetime. All users updated
4930 * include/grub/fs.h: new syntax for dir and mtime functions in
4932 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
4933 and GRUB_FSHELP_FLAGS_MASK
4934 * commands/ls.c (grub_ls_list_files): Write mtime in long format
4935 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
4936 (grub_ext2_mtime): new function
4937 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
4938 (grub_hfsplus_mtime): new function
4939 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
4940 (GRUB_UFS_ATTR_FILE): likewise
4941 (GRUB_UFS_ATTR_LNK): likewise
4942 (struct grub_ufs_sblock): new fields mtime
4943 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
4945 (grub_ufs_dir): mtime support
4946 (grub_ufs_mtime): new function
4947 * fs/affs.c (grub_affs_dir): use new dir syntax
4948 * fs/afs.c (grub_afs_dir): likewise
4949 * fs/cpio.c (grub_cpio_dir): likewise
4950 * fs/fat.c (grub_fat_find_dir): likewise
4951 * fs/hfs.c (grub_hfs_dir): likewise
4952 * fs/iso9660.c (grub_iso9660_dir): likewise
4953 * fs/jfs.c (grub_jfs_dir): likewise
4954 * fs/minix.c (grub_minix_dir): likewise
4955 * fs/ntfs.c (grub_ntfs_dir): likewise
4956 * fs/reiserfs.c (grub_reiserfs_dir): likewise
4957 * fs/sfs.c (grub_sfs_dir): likewise
4958 * fs/xfs.c (grub_xfs_dir): likewise
4959 * util/hostfs.c (grub_hostfs_dir): likewise
4960 * lib/datetime.c: moved to ...
4961 * normal/datetime.c: ... moved here
4962 (grub_unixtime2datetime): new function
4963 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
4964 * normal/completion.c (iterate_dir): use new dir syntax
4965 * normal/misc.c (grub_normal_print_device_info): tell the
4966 last modification time of a volume
4967 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
4968 * conf/common.rmk: added lib/datetime.c to ls.mod
4969 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
4970 (normal_mod_SOURCES): likewise
4971 (datetime_mod_SOURCES): Removed lib/datetime.c
4972 * conf/i386-efi.rmk: likewise
4973 * conf/i386-ieee1275.rmk: likewise
4974 * conf/i386-pc.rmk: likewise
4975 * conf/powerpc-ieee1275.rmk: likewise
4976 * conf/sparc64-ieee1275.rmk: likewise
4977 * conf/x86_64-efi.rmk: likewise
4979 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4981 Trim trailing spaces in FAT label and support mtools-like labels
4983 * fs/fat.c (grub_fat_iterate_dir): New function based
4984 on grub_fat_find_dir
4985 (grub_fat_find_dir): use grub_fat_iterate_dir
4986 (grub_fat_label): likewise
4988 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4990 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
4992 remove extraneous kernel_elf_HEADERS
4994 2009-04-04 Bean <bean123ch@gnail.com>
4996 * include/grub/util/misc.h: Add dummy function fsync for mingw.
4998 * util/misc.c: Likewise.
5000 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
5002 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
5003 instead of grub_printf.
5005 2009-04-03 Robert Millan <rmh@aybabtu.com>
5007 * loader/i386/linux.c (grub_linux_setup_video): Fill
5008 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
5009 values from `mode info' structure instead of hardcoded
5012 2009-04-01 Pavel Roskin <proski@gnu.org>
5014 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
5016 * genmk.rb: Likewise.
5017 * configure.ac: Likewise.
5019 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
5021 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
5022 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
5024 2009-04-01 David S. Miller <davem@davemloft.net>
5026 * normal/sparc64/setjmp.S: Fix setjmp implementation.
5027 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5028 (grub_setjmp): Mark with 'returns_twice' attribute.
5029 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
5030 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
5031 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
5033 2009-04-01 Robert Millan <rmh@aybabtu.com>
5035 Reapply fix from 2008-07-28 which was accidentally reverted; also
5036 perform the same fix to a similar check in same function.
5038 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
5039 with the same number are found, just use issue a warning with
5040 grub_dprintf(), as this error has been reported to be non-fatal.
5042 2009-03-31 Pavel Roskin <proski@gnu.org>
5044 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
5045 for cross-compilation.
5047 2009-03-30 Robert Millan <rmh@aybabtu.com>
5049 Fix i386-ieee1275 build.
5051 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
5054 2009-03-30 Pavel Roskin <proski@gnu.org>
5056 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
5057 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
5058 zero-terminated, rely only on the strlen value. Fix comparison
5059 of strings differing in length.
5061 2009-03-30 Robert Millan <rmh@aybabtu.com>
5063 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
5064 checking for abi version. Improve error messages on BIOS to notify
5065 user about `linux16' command.
5067 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5071 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
5072 in case of collision
5073 * disk/scsi.c (grub_scsi_open): free scsi in case of error
5075 2009-03-29 Robert Millan <rmh@aybabtu.com>
5077 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
5078 set `vid_mode' accordingly.
5079 (grub_linux_boot): Process `vid_mode' and set video mode.
5081 2009-03-29 Robert Millan <rmh@aybabtu.com>
5083 * util/grub.d/10_linux.in (linux_entry): New function.
5084 Factorize generation of Linux boot entries.
5086 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
5088 Make the format of Environment Block plain text. The boot loader
5089 part is not tested well yet.
5091 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
5094 (usage): Remove "info" and "clear". Add "unset". Update the
5095 description of "set", as this does not delete variables any
5097 (create_envblk_file): Complete rewrite.
5098 (open_envblk_file): Likewise.
5099 (cmd_info): Removed.
5100 (cmd_list): Likewise.
5101 (cmd_set): Likewise.
5102 (cmd_clear): Likewise.
5103 (list_variables): New function.
5104 (write_envblk): Likewise.
5105 (set_variables): Likewise.
5106 (unset_variables): Likewise.
5107 (main): Complete rewrite.
5109 * commands/loadenv.c (buffer): Removed.
5111 (open_envblk_file): New function.
5112 (read_envblk_file): Complete rewrite.
5113 (grub_cmd_load_env): Likewise.
5114 (grub_cmd_list_env): Likewise.
5115 (struct blocklist): New struct.
5116 (free_blocklists): New function.
5117 (check_blocklists): Likewise.
5118 (write_blocklists): Likewise.
5119 (grub_cmd_save_env): Complete rewrite.
5121 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
5122 a plain text signature.
5123 (GRUB_ENVBLK_MAXLEN): Removed.
5124 (struct grub_envblk): Complete rewrite.
5125 (grub_envblk_find): Removed.
5126 (grub_envblk_insert): Likewise.
5127 (grub_envblk_open): New prototype.
5128 (grub_envblk_set): Likewise.
5129 (grub_envblk_delete): Put const to VALUE.
5130 (grub_envblk_iterate): Put const to NAME and VALUE.
5131 (grub_envblk_close): New prototype.
5132 (grub_envblk_buffer): New inline function.
5133 (grub_envblk_size): Likewise.
5135 * lib/envblk.c: Include grub/mm.h.
5136 (grub_env_find): Removed.
5137 (grub_envblk_open): New function.
5138 (grub_envblk_close): Likewise.
5139 (escaped_value_len): Likewise.
5140 (find_next_line): Likewise.
5141 (grub_envblk_insert): Removed.
5142 (grub_envblk_set): New function.
5143 (grub_envblk_delete): Complete rewrite.
5144 (grub_envblk_iterate): Likewise.
5146 2009-03-28 Robert Millan <rmh@aybabtu.com>
5148 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
5149 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
5150 variables. Use 16-bit loader.
5151 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
5153 * kern/i386/loader.S (grub_linux_boot): Rename to ...
5154 (grub_linux16_boot): ... this. Update all users.
5155 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
5156 (grub_linux_boot): ... this. Update all users.
5158 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
5159 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
5160 commands to `linux16' and `initrd16'.
5161 (GRUB_MOD_FINI(linux)): Rename to ...
5162 (GRUB_MOD_FINI(linux16)): ... this.
5164 2009-03-24 Pavel Roskin <proski@gnu.org>
5166 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
5167 not just for compilation.
5169 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
5171 Move multiboot helper out of kernel
5173 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
5174 `loader/i386/multiboot_helper.S'.
5175 * conf/i386-coreboot.rmk: Likewise
5176 * conf/i386-ieee1275.rmk: Likewise
5178 * kern/i386/loader.S: Move multiboot helpers from here...
5179 * loader/i386/multiboot_helper.S: ...moved here
5180 * include/grub/i386/loader.h: Move declarations of multiboot
5181 helpers from here...
5182 * include/grub/i386/multiboot.h: ...moved here
5183 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
5185 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5187 * kern/env.c (grub_env_context_open): Added an argument to specify
5188 whether a new context inherits exported variables from current
5189 one. This is useful when making a sandbox to interpret a config
5191 All callers updated.
5193 * include/grub/env.h (grub_env_context_open): Updated the prototype.
5195 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5197 * kern/env.c (grub_env_context_close): Fix memory leaks.
5199 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5201 * normal/main.c (grub_normal_execute): Added an argument
5202 BATCH to specify if an interactive interface should be provided
5203 after reading a config file.
5204 All callers updated.
5205 (read_command_list): Prevent being executed twice.
5206 (read_fs_list): Likewise.
5208 * include/grub/normal.h (grub_normal_execute): Updated the
5211 2009-03-22 Pavel Roskin <proski@gno.org>
5213 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
5215 * kern/i386/pc/startup.S: Likewise.
5216 * kern/i386/efi/startup.S: Likewise.
5217 * kern/i386/ieee1275/startup.S: Likewise.
5218 * kern/i386/coreboot/startup.S: Likewise.
5219 * kern/x86_64/efi/startup.S: Likewise.
5221 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
5222 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
5223 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
5225 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
5227 Bugfixes in multiboot for bugs uncovered by solaris kernel.
5229 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
5231 Use vaddr of correct segment for entry_point.
5233 2009-03-21 Bean <bean123ch@gmail.com>
5235 * commands/blocklist.c: Add include file <grub/command.h>, remove
5236 <grub/normal.h> and <grub/arg.h>.
5237 (grub_cmd_blocklist): Use the new command interface.
5238 (GRUB_MOD_INIT): Likewise.
5239 (GRUB_MOD_FINI): Likewise.
5240 * commands/boot.c: Likewise.
5241 * commands/cat.c: Likewise.
5242 * commands/cmp.c: Likewise.
5243 * commands/configfile.c: Likewise.
5244 * commands/crc.c: Likewise.
5245 * commands/echo.c: Likewise.
5246 * commands/halt.c: Likewise.
5247 * commands/handler.c: Likewise.
5248 * commands/hdparm.c: Likewise.
5249 * commands/help.c: Likewise.
5250 * commands/hexdump.c: Likewise.
5251 * commands/loadenv.c: Likewise.
5252 * commands/ls.c: Likewise.
5253 * commands/lsmmap.c: Likewise.
5254 * commands/lspci.c: Likewise.
5255 * commands/loadenv.c: Likewise.
5256 * commands/read.c: Likewise.
5257 * commands/reboot.c: Likewise.
5258 * commands/search.c: Likewise.
5259 * commands/sleep.c: Likewise.
5260 * commands/test.c: Likewise.
5261 * commands/usbtest.c: Likewise.
5262 * commands/videotest.c: Likewise.
5263 * commands/i386/cpuid.c: Likewise.
5264 * commands/i386/pc/halt.c: Likewise.
5265 * commands/i386/pc/play.c: Likewise.
5266 * commands/i386/pc/pxecmd.c: Likewise.
5267 * commands/i386/pc/vbeinfo.c: Likewise.
5268 * commands/i386/pc/vbetest.c: Likewise.
5269 * commands/ieee1275/suspend.c: Likewise.
5270 * disk/loopback.c: Likewise.
5271 * font/font_cmd.c: Likewise.
5272 * hello/hello.c: Likewise.
5273 * loader/efi/appleloader.c: Likewise.
5274 * loader/efi/chainloader.c: Likewise.
5275 * loader/i386/bsd.c: Likewise.
5276 * loader/i386/efi/linux.c: Likewise.
5277 * loader/i386/ieee1275/linux.c: Likewise.
5278 * loader/i386/linux.c: Likewise.
5279 * loader/i386/pc/chainloader.c: Likewise.
5280 * loader/i386/pc/linux.c: Likewise.
5281 * loader/powerpc/ieee1275/linux.c: Likewise.
5282 * loader/multiboot_loader.c: Likewise.
5283 * term/gfxterm.c: Likewise.
5284 * term/i386/pc/serial.c: Likewise.
5285 * term/terminfo.c: Likewise.
5287 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
5288 * term/i386/pc/vga.c: Likewise.
5289 * video/readers/jpeg.c: Likewise.
5290 * video/readers/png.c: Likewise.
5291 * video/readers/tga.c: Likewise.
5293 * util/grub-fstest (cmd_loopback): Removed.
5294 (cmd_blocklist): Likewise.
5296 (grub_register_command): Likewise.
5297 (grub_unregister_command): Likewise.
5298 (execute_command): Use grub_command_find to locate command and execute
5301 * include/grub/efi/chainloader.h: Removed.
5302 * loader/efi/chainloader_normal.c: Likewise.
5303 * loader/i386/bsd_normal.c: Likewise.
5304 * loader/i386/pc/chainloader_normal.c: Likewise.
5305 * loader/i386/pc/multiboot_normal.c: Likewise.
5306 * loader/linux_normal.c: Likewise.
5307 * loader/multiboot_loader_normal.c: Likewise.
5308 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
5310 * gencmdlist.sh: Scan new registration command grub_register_extcmd
5311 and grub_register_command_p1.
5313 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
5314 kern/command.c, lib/arg.c and commands/extcmd.c.
5315 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
5316 (minicmd_mod_SOURCES): New variable.
5317 (minicmd_mod_CFLAGS): Likewise.
5318 (minicmd_mod_LDFLAGS): Likewise.
5319 (extcmd_mod_SOURCES): Likewise.
5320 (extcmd_mod_CFLAGS): Likewise.
5321 (extcmd_mod_LDFLAGS): Likewise.
5322 (boot_mod_SOURCES): Removed.
5323 (boot_mod_CFLAGS): Likewise.
5324 (boot_mod_LDFLAGS): Likewise.
5326 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
5328 (kernel_img_HEADERS): Add command.h.
5329 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
5330 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
5332 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
5333 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
5334 remove the corresponding normal mode command.
5335 (normal_mod_SOURCES): Remove normal/arg.c.
5336 * conf/i386-coreboot.rmk: Likewise.
5337 * conf/i386-efi.rmk: Likewise.
5338 * conf/i386-ieee1275.rmk: Likewise.
5339 * conf/powerpc-ieee1275.rmk: Likewise.
5340 * conf/x86_64-efi.rmk: Likewise.
5342 * include/grub/arg.h: Move from here ...
5343 * include/grub/lib/arg.h: ... to here.
5345 * normal/arg.c: Move from here ...
5346 * lib/arg.c: ... to here.
5348 * commands/extcmd.c: New file.
5349 * commands/minicmd.c: Likewise.
5350 * include/grub/command.h: Likewise.
5351 * include/grub/extcmd.h: Likewise.
5352 * kern/command.c: Likewise.
5353 * kern/corecmd.c: Likewise.
5355 * kern/list.c (grub_list_iterate): Return int instead of void.
5356 (grub_list_insert): New function.
5357 (grub_prio_list_insert): Likewise.
5359 * kern/rescue.c (grub_rescue_command): Removed.
5360 (grub_rescue_command_list): Likewise.
5361 (grub_rescue_register_command): Likewise.
5362 (grub_rescue_unregister_command): Likewise.
5363 (grub_rescue_cmd_boot): Move to minicmd.c
5364 (grub_rescue_cmd_help): Likewise.
5365 (grub_rescue_cmd_info): Likewise.
5366 (grub_rescue_cmd_boot): Likewise.
5367 (grub_rescue_cmd_testload): Likewise.
5368 (grub_rescue_cmd_dump): Likewise.
5369 (grub_rescue_cmd_rmmod): Likewise.
5370 (grub_rescue_cmd_lsmod): Likewise.
5371 (grub_rescue_cmd_exit): Likewise.
5372 (grub_rescue_print_devices): Moved to corecmd.c.
5373 (grub_rescue_print_files): Likewise.
5374 (grub_rescue_cmd_ls): Likewise.
5375 (grub_rescue_cmd_insmod): Likewise.
5376 (grub_rescue_cmd_set): Likewise.
5377 (grub_rescue_cmd_unset): Likewise.
5378 (attempt_normal_mode): Use grub_command_find to get normal module.
5379 (grub_enter_rescue_mode): Use grub_register_core_commands to register
5380 commands, remove grub_rescue_register_command calls.
5382 * normal/command.c (grub_register_command): Removed.
5383 (grub_unregister_command): Likewise.
5384 (grub_command_find): Likewise.
5385 (grub_iterate_commands): Likewise.
5386 (rescue_command): Likewise.
5387 (export_command): Moved to corecmd.c.
5388 (set_command): Removed.
5389 (unset_command): Likewise.
5390 (insmod_command): Likewise.
5391 (rmmod_command): Likewise.
5392 (lsmod_command): Likewise.
5393 (grub_command_init): Likewise.
5395 * normal/completion.c (iterate_command): Use cmd->prio to check for
5397 (complete_arguments): Use grub_extcmd_t structure to find options.
5398 (grub_normal_do_completion): Change function grub_iterate_commands to
5399 grub_command_iterate.
5401 * normal/execute.c (grub_script_execute_cmd): No need to parse
5404 * normal/main.c (grub_dyncmd_dispatcher): New function.
5405 (read_command_list): Register unload commands as dyncmd.
5406 (grub_cmd_normal): Use new command interface, register rescue,
5407 unregister normal at entry, register normal, unregister rescue at exit.
5409 * include/grub/list.h (grub_list_test_t): New type.
5410 (grub_list_iterate): Return int instead of void.
5411 (grub_list_insert): New function.
5412 (GRUB_AS_NAMED_LIST_P): New macro.
5413 (GRUB_AS_PRIO_LIST): Likewise.
5414 (GRUB_AS_PRIO_LIST_P): Likewise.
5415 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
5416 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
5417 (grub_prio_list): New structure.
5418 (grub_prio_list_insert): New function.
5419 (grub_prio_list_remove): New inline function.
5421 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
5422 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
5423 (GRUB_COMMAND_FLAG_MENU): Likewise.
5424 (GRUB_COMMAND_FLAG_BOTH): Likewise.
5425 (GRUB_COMMAND_FLAG_TITLE): Likewise.
5426 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
5427 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
5428 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
5429 (grub_command): Likewise.
5430 (grub_register_command): Likewise.
5431 (grub_command_find): Likewise.
5432 (grub_iterate_commands): Likewise.
5433 (grub_command_init): Likewise.
5434 (grub_arg_parse): Likewise.
5435 (grub_arg_show_help): Likewise.
5437 * include/grub/rescue.h (grub_rescue_register_command): Removed.
5438 (grub_rescue_unregister_command): Likewise.
5440 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
5441 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
5442 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
5444 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
5445 grub_rescue_cmd_initrd.
5446 * include/grub/i386/loader.h: Likewise.
5447 * include/grub/x86_64/loader.h: Likewise.
5449 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
5451 2009-03-21 Bean <bean123ch@gmail.com>
5453 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
5454 instead of stat in mingw environment.
5456 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
5458 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
5460 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
5463 2009-03-21 Bean <bean123ch@gmail.com>
5465 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
5468 2009-03-18 Michel Dänzer <michel@daenzer.net>
5470 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
5471 checking inode flags for EXT4_EXTENTS_FLAG.
5473 2009-03-18 Robert Millan <rmh@aybabtu.com>
5475 * loader/i386/linux.c: Include `<grub/video.h>' and
5476 `<grub/i386/pc/vbe.h>'..
5477 (grub_linux_setup_video): New function. Loosely based on the EFI one.
5478 (grub_linux32_boot): Attempt to configure video settings with
5479 grub_linux_setup_video().
5480 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
5481 to avoid grub_console_fini() which would step out of graphical mode
5484 2009-03-14 Robert Millan <rmh@aybabtu.com>
5486 Fix build on powerpc.
5487 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
5489 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
5491 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
5492 background image command.
5494 2009-03-12 Colin D Bennett <colin@gibibit.com>
5496 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
5497 (grub_gfxterm_putchar): Extract pairs of identical calls to
5498 draw_cursor out of conditional blocks.
5500 2009-03-11 Pavel Roskin <proski@gnu.org>
5502 * fs/hfs.c (grub_hfs_strncasecmp): New function.
5503 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
5505 2009-03-11 Robert Millan <rmh@aybabtu.com>
5507 * loader/i386/multiboot_elfxx.c
5508 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
5510 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
5512 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
5515 2009-03-11 Robert Millan <rmh@aybabtu.com>
5517 * loader/i386/multiboot.c (code_size): New variable.
5518 (grub_multiboot): Define offsets by adding to `code_size' rather
5519 than subtracting from `grub_multiboot_payload_size'. Provide
5520 4-byte alignment to MBI and others by increasing
5521 `boot_loader_name_length' appropriately.
5523 * loader/i386/multiboot_elfxx.c
5524 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
5526 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
5528 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
5531 2009-03-08 Robert Millan <rmh@aybabtu.com>
5533 Make loader/i386/linux.c usable on i386-pc again.
5535 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
5537 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
5540 2009-03-07 Bean <bean123ch@gmail.com>
5542 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
5545 2009-03-06 Robert Millan <rmh@aybabtu.com>
5547 Fix display issue on terminals with screen size other than 80x25
5548 (e.g. gfxterm with resolution higher than 640x480).
5550 * normal/main.c (grub_normal_init_page): Display title text in a
5551 position relative to the center of the terminal instead of relying
5552 on a hardcoded offset.
5554 2009-03-04 Robert Millan <rmh@aybabtu.com>
5556 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
5559 * Makefile.in (host_kernel): New variable.
5560 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
5561 scripts instead of just the windows one.
5562 * configure.ac: Initialize and AC_SUBST `host_kernel'.
5564 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5566 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
5568 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5569 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5570 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5571 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5572 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5573 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5575 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5577 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
5578 or if there's no space for the disk label and print the partition number on a
5581 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5583 * util/misc.c: Include <time.h>.
5584 (grub_millisleep): New function.
5586 2009-03-04 Bean <bean123ch@gmail.com>
5588 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
5589 another option -mno-red-zone.
5591 * commands/handler.c: Change module description.
5593 * kern/handler.c: Add missing space at the end of description line.
5595 * kern/list.c: Likewise.
5597 2009-03-03 Robert Millan <rmh@aybabtu.com>
5599 Move more components to the relocation area, and fix mbi pointer
5600 handling to use the destination rather than the origin (thanks to
5601 Vladimir Serbinenko for spotting).
5603 * loader/i386/multiboot.c (mbi_dest): New variable.
5604 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
5605 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
5608 2009-03-01 Bean <bean123ch@gmail.com>
5610 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
5611 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
5612 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
5613 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
5615 * loader/i386/efi/linux.c (acpi_guid): New variable.
5616 (acpi_guid): Likewise.
5617 (EBDA_SEG_ADDR): New constant.
5618 (LOW_MEM_ADDR): Likewise.
5619 (FAKE_EBDA_SEG): Likewise.
5620 (fake_bios_data): New function.
5621 (grub_linux_boot): Call fake_bios_data.
5623 2009-03-01 Bean <bean123ch@gmail.com>
5625 * commands/terminal.c: Removed.
5627 * commands/handler.c: New file.
5629 * include/grub/list.h: Likewise.
5631 * include/grub/handler.h: Likewise.
5633 * kern/list.c: Likewise.
5635 * kern/handler.c: Likewise.
5637 * kern/term.h: Include header file <grub/handler.h>.
5638 (grub_term_input): Move next field to the beginning.
5639 (grub_term_output): Likewise.
5640 (grub_term_input_class): New variable.
5641 (grub_term_output_class): Likewise.
5642 (grub_term_register_input): Changed to inline function.
5643 (grub_term_register_output): Likewise.
5644 (grub_term_unregister_input): Likewise.
5645 (grub_term_unregister_output): Likewise.
5646 (grub_term_set_current_input): Likewise.
5647 (grub_term_set_current_output): Likewise.
5648 (grub_term_get_current_input): Likewise.
5649 (grub_term_get_current_output): Likewise.
5650 (grub_term_iterate_input): Removed.
5651 (grub_term_iterate_output): Likewise.
5653 * kern/term.c (grub_term_list_input): Removed.
5654 (grub_term_list_output): Likewise.
5655 (grub_term_input_class): New variable.
5656 (grub_term_output_class): Likewise.
5657 (grub_cur_term_input): Change variable as macro.
5658 (grub_cur_term_output): Likewise.
5659 (grub_term_register_input): Removed.
5660 (grub_term_register_output): Likewise.
5661 (grub_term_unregister_input): Likewise.
5662 (grub_term_unregister_output): Likewise.
5663 (grub_term_set_current_input): Likewise.
5664 (grub_term_set_current_output): Likewise.
5665 (grub_term_iterate_input): Likewise.
5666 (grub_term_iterate_output): Likewise.
5667 (grub_term_get_current_input): Likewise.
5668 (grub_term_get_current_output): Likewise.
5670 * util/grub-editenv.c: Include header file <grub/handler.h>.
5671 (grub_term_get_current_input): Removed.
5672 (grub_term_get_current_output): Likewise.
5673 (grub_term_input_class): New variable.
5674 (grub_term_output_class): Likewise.
5676 * util/grub-fstest.c (grub_term_get_current_input): Removed.
5677 (grub_term_get_current_output): Likewise.
5678 (grub_term_input_class): New variable.
5679 (grub_term_output_class): Likewise.
5681 * util/grub-probe.c (grub_term_get_current_input): Removed.
5682 (grub_term_get_current_output): Likewise.
5683 (grub_term_input_class): New variable.
5684 (grub_term_output_class): Likewise.
5686 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
5687 (grub_term_get_current_output): Likewise.
5688 (grub_term_input_class): New variable.
5689 (grub_term_output_class): Likewise.
5691 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
5692 (terminal_mod_SOURCES): Likewise.
5693 (terminal_mod_CFLAGS): Likewise.
5694 (terminal_mod_LDFLAGS): Likewise.
5696 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
5698 (kernel_img_SOURCES): Add list.c and handler.c.
5699 (kernel_img_HEADERS): Add list.h and handler.h.
5701 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5703 (kernel_mod_SOURCES): Add list.c and handler.c.
5704 (kernel_mod_HEADERS): Add list.h and handler.h.
5706 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
5708 (kernel_elf_SOURCES): Add list.c and handler.c.
5709 (kernel_elf_HEADERS): Add list.h and handler.h.
5711 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5713 (kernel_elf_SOURCES): Add list.c and handler.c.
5714 (kernel_elf_HEADERS): Add list.h and handler.h.
5716 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5718 (kernel_mod_SOURCES): Add list.c and handler.c.
5719 (kernel_mod_HEADERS): Add list.h and handler.h.
5721 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5723 (kernel_elf_SOURCES): Add list.c and handler.c.
5724 (kernel_elf_HEADERS): Add list.h and handler.h.
5726 2009-02-27 Robert Millan <rmh@aybabtu.com>
5728 Factorize elf32 / elf64 code in Multiboot loader. This will
5729 prevent it from getting out of sync again.
5731 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
5732 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
5733 grub_multiboot_load_elf64): Move from here ...
5734 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
5735 grub_multiboot_load_elf): ... to here (new file).
5737 2009-02-27 Robert Millan <rmh@aybabtu.com>
5739 * util/grub.d/10_linux.in: Rename "single-user mode" to
5742 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5744 Don't leak in SCSI code.
5745 * disk/scsi.c (grub_scsi_close): free `scsi'.
5747 2009-02-27 Robert Millan <rmh@aybabtu.com>
5749 * loader/i386/pc/multiboot.c: Move from here ...
5750 * loader/i386/multiboot.c: ... to here. Update all users.
5752 2009-02-27 Robert Millan <rmh@aybabtu.com>
5754 Patch from Alexandre Bique <bique.alexandre@gmail.com>
5755 * util/i386/pc/grub-setup.c (setup): Fix directory path.
5757 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
5759 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
5762 2009-02-27 Robert Millan <rmh@aybabtu.com>
5764 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
5765 `0x' qualifier as 0 when base is specified as parameter).
5767 2009-02-24 Bean <bean123ch@gmail.com>
5769 * configure.ac: Check for -mcmodel=large in x86_64 target.
5771 * include/grub/efi/api.h (efi_call_10): New macro.
5772 (efi_wrap_10): New function.
5774 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
5775 (GRUB_PE32_REL_BASED_HIGH): Likewise.
5776 (GRUB_PE32_REL_BASED_LOW): Likewise.
5777 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
5778 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
5779 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
5780 (GRUB_PE32_REL_BASED_SECTION): Likewise.
5781 (GRUB_PE32_REL_BASED_REL): Likewise.
5782 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
5783 (GRUB_PE32_REL_BASED_DIR64): Likewise.
5784 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
5786 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
5789 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
5790 (efi_wrap_10): New function.
5792 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
5794 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
5795 MB/MBP model (NV chipset).
5796 (devdata_devs): Add devpath_5 to the list.
5798 * load/i386/efi/linux.c (video_base): Remove variable.
5799 (RGB_MASK): New macro.
5800 (RGB_MAGIC): Likewise.
5801 (LINE_MIN): Likewise.
5802 (LINE_MAX): Likewise.
5803 (FBTEST_STEP): Likewise.
5804 (FBTEST_COUNT): Likewise.
5805 (fb_list): New variable.
5806 (grub_find_video_card): Remove function.
5807 (find_framebuf): New function.
5808 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
5811 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
5814 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
5816 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
5818 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
5821 2009-02-22 Robert Millan <rmh@aybabtu.com>
5823 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
5824 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
5825 in our relocation, instead of using it directly from heap. Also
5826 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
5828 2009-02-21 Robert Millan <rmh@aybabtu.com>
5830 Implement USB keyboard support (based on patch by Marco Gerards)
5832 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
5833 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
5834 (usb_keyboard_mod_LDFLAGS): New variables.
5836 * term/usb_keyboard.c: New file.
5838 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
5840 Corrected wrong declaration
5842 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
5844 2009-02-14 Christian Franke <franke@computer.org>
5846 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
5847 (grub_lspci_iter): Print class code and programming interface byte.
5849 2009-02-14 Christian Franke <franke@computer.org>
5851 * gendistlist.sh: Ignore `.svn' directories.
5853 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
5855 * fs/fat.c: Add 2009 to Copyright line.
5857 2009-02-14 Christian Franke <franke@computer.org>
5859 * commands/hdparm.c: New file. Provides `hdparm' command
5860 which sends ATA commands via grub_disk_ata_pass_through ().
5862 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
5864 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
5865 and <grub/cpu/io.h> to include/grub/ata.h.
5866 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
5867 (GRUB_CDROM_SECTOR_SIZE): Remove.
5868 (GRUB_ATA_*): Move to include/grub/ata.h.
5869 (GRUB_ATAPI_*): Likewise.
5870 (enum grub_ata_commands): Likewise.
5871 (enum grub_ata_timeout_milliseconds): Likewise.
5872 (struct grub_ata_device): Likewise.
5873 (grub_ata_regset): Likewise.
5874 (grub_ata_regget): Likewise.
5875 (grub_ata_regset2): Likewise.
5876 (grub_ata_regget2): Likewise.
5877 (grub_ata_check_ready): Likewise.
5878 (grub_ata_wait_not_busy): Remove static, exported in
5880 (grub_ata_wait_drq): Likewise.
5881 (grub_ata_pio_read): Likewise.
5883 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
5884 function for hdparm.mod.
5886 * include/grub/ata.h: New file, contains declarations from
5888 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
5890 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
5891 (grub_disk_ata_pass_through): New exported variable.
5893 * kern/disk.c (grub_disk_ata_pass_through): New variable.
5895 2009-02-13 Colin D Bennett <colin@gibibit.com>
5897 Support multiple fallback entries, and provide an API to support
5898 executing default+fallback menu entries. Renamed the `terminal' menu
5901 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
5902 variable declaration.
5903 (grub_menu_execute_callback): New structure declaration.
5904 (grub_menu_execute_callback_t): New typedef.
5905 (grub_menu_execute_with_fallback): New function declaration.
5906 (grub_menu_get_entry): Likewise.
5907 (grub_menu_get_timeout): Likewise.
5908 (grub_menu_set_timeout): Likewise.
5910 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
5912 * normal/menu.c (grub_wait_after_message): Moved to
5913 `normal/menu_text.c'.
5914 (draw_border): Likewise.
5915 (print_message): Likewise.
5916 (print_entry): Likewise.
5917 (print_entries): Likewise.
5918 (grub_menu_init_page): Likewise.
5919 (get_entry_number): Likewise.
5920 (print_timeout): Likewise.
5921 (run_menu): Likewise.
5922 (grub_menu_execute_entry): Likewise.
5923 (show_text_menu): Likewise.
5924 (get_and_remove_first_entry_number): New function.
5925 (grub_menu_execute_with_fallback): Likewise.
5926 (get_entry): Renamed to ...
5927 (grub_menu_get_entry): .. this and made it global.
5928 (get_timeout): Renamed to ...
5929 (grub_menu_get_timeout): ... this and made it global.
5930 (set_timeout): Renamed to ...
5931 (grub_menu_set_timeout): ... this and made it global.
5932 (grub_normal_terminal_menu_viewer): Renamed to ...
5933 (grub_normal_text_menu_viewer): ... this.
5935 * normal/menu_text.c: New file. Extracted text-menu-specific code
5938 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
5939 (normal_mod_SOURCES): Likewise.
5941 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5942 (normal_mod_SOURCES): Likewise.
5944 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5945 (normal_mod_SOURCES): Likewise.
5947 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
5948 (normal_mod_SOURCES): Likewise.
5950 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5951 (normal_mod_SOURCES): Likewise.
5953 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5954 (normal_mod_SOURCES): Likewise.
5956 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5957 (normal_mod_SOURCES): Likewise.
5959 2009-02-11 Robert Millan <rmh@aybabtu.com>
5961 * util/grub.d/00_header.in: Update old reference to `font' command.
5963 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
5965 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
5967 Based on patch from Javier MartÃn.
5969 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
5971 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
5972 to avoid false positives with FAT.
5973 (grub_fstest_SOURCES): Likewise.
5974 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
5975 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5977 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5978 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5979 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5981 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
5983 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
5984 bpb.version_specific.fat12_or_fat16.fstype and
5985 bpb.version_specific.fat32.fstype.
5987 2009-02-08 Robert Millan <rmh@aybabtu.com>
5989 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
5991 2009-02-08 Robert Millan <rmh@aybabtu.com>
5993 * Makefile.in (host_os, host_cpu): New variables.
5994 (target_os): Remove. Update all users.
5996 2009-02-08 Marco Gerards <marco@gnu.org>
5998 * Makefile.in (enable_grub_emu_usb): New variable.
5999 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
6000 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
6001 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
6002 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
6003 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
6004 `usbtest.mod' and `usbms.mod'.
6005 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
6006 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
6007 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
6008 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
6009 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
6012 * disk/usbms.c: New file.
6014 * include/grub/usb.h: Likewise.
6016 * include/grub/usbtrans.h: Likewise.
6018 * include/grub/usbdesc.h: Likewise.
6020 * bus/usb/usbtrans.c: Likewise.
6022 * bus/usb/ohci.c: Likewise.
6024 * bus/usb/uhci.c: Likewise.
6026 * bus/usb/usbhub.c: Likewise.
6028 * bus/usb/usb.c: Likewise.
6030 * commands/usbtest.c: Likewise.
6032 * util/usb.c: Likewise.
6034 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
6036 * configure.ac: Test for libusb presence.
6038 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
6040 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
6042 * kern/mm.c: Add more comments.
6044 2009-02-08 Robert Millan <rmh@aybabtu.com>
6046 Patch from Javier MartÃn.
6047 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
6048 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
6050 2009-02-08 Robert Millan <rmh@aybabtu.com>
6052 * fs/cpio.c: Split tar functionality to ...
6053 * fs/tar.c: ... here (new file). Update all users.
6055 2009-02-07 Robert Millan <rmh@aybabtu.com>
6057 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
6058 backward-incompatible features.
6060 Based on patch from Javier MartÃn, with some adjustments.
6062 2009-02-07 Michael Scherer <misc@mandriva.org>
6064 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
6066 2009-02-07 Robert Millan <rmh@aybabtu.com>
6068 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
6069 position of `disk/lvm.c' to ensure grub_init_all() always picks it
6070 after the RAID stuff.
6072 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
6074 Fixes problem when running vbetest command as reported by
6075 Vladimir Serbinenko <phcoder@gmail.com>.
6077 * (grub_vbe_set_video_mode): Fixed problem with text modes.
6079 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
6081 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
6082 /dev/md/NpN style mdraid devices.
6084 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6086 * util/unifont2pff.rb: Remove.
6088 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6090 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
6093 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6095 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
6096 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6097 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6098 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6099 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6100 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6101 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6103 2009-02-02 Christian Franke <franke@computer.org>
6105 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
6107 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
6109 * INSTALL: Note that we now require at least autoconf 2.59 and
6110 that LZO is optional.
6112 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6114 Base on patch on bug #24154 created by Tomas Tintera
6117 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
6119 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6121 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
6122 <bero@arklinux.org>.
6124 * normal/parser.y (script_init): Add missing semicolon.
6126 2009-01-31 Colin D Bennett <colin@gibibit.com>
6128 * normal/main.c: Add include to grub/menu_viewer.h.
6129 (free_menu_entry_classes): Added.
6130 (grub_normal_menu_addentry): Added class property handling.
6131 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
6132 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
6134 * normal/menu_viewer.c: New file.
6136 * normal/menu.c (run_menu_entry): Renamed to ...
6137 (grub_menu_execute_entry): ... this and made it as global.
6138 (grub_menu_run): Renamed to ...
6139 (show_text_menu): ... this and made it local.
6140 (show_text_menu): Adapt to new function names.
6141 (grub_normal_terminal_menu_viewer): New global variable.
6143 * include/grub/menu.h: New file.
6145 * include/grub/menu_viewer.h: New file.
6147 * include/grub/normal.h: Added include to grub/menu.h.
6148 (grub_menu_entry): Moved to include/grub/menu.h.
6149 (grub_menu_entry_t): Likewise.
6150 (grub_menu): Likewise.
6151 (grub_menu_t): Likewise.
6152 (grub_normal_terminal_menu_viewer): Added.
6153 (grub_menu_execute_entry): Likewise.
6154 (grub_menu_run): Removed.
6156 * DISTLIST: Added include/grub/menu.h.
6157 Added include/grub/menu_viewer.h.
6158 Added normal/menu_viewer.c.
6160 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
6162 * normal/execute.c (grub_script_execute_menuentry): Changed to use
6163 arglist for menutitle arguments.
6165 * normal/main.c (grub_normal_menu_addentry): Likewise.
6167 * normal/parser.y (menuentry): Likewise.
6169 * normal/script.c (grub_script_create_cmdmenu): Likewise.
6171 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
6172 (grub_script_create_cmdmenu): Likewise.
6174 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
6176 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
6179 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
6181 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
6183 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
6185 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6187 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6189 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6191 2009-01-30 Christian Franke <franke@computer.org>
6193 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
6194 in option help text.
6196 2009-01-27 Pavel Roskin <proski@gnu.org>
6198 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
6200 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6202 * commands/lsmmap.c: Add include to grub/machine/memory.h.
6204 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
6206 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
6207 unregister function.
6209 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6211 * disk/scsi.c (grub_scsi_read): Fix sign problem.
6213 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
6215 * util/grub-mkfont.c (usage): Fix typo.
6217 * util/elf/grub-mkimage.c (load_modules): Fix warning.
6219 2009-01-26 Daniel Mierswa <impulze@impulze.org>
6221 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
6223 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
6225 * kern/misc.c (grub_strcasecmp): New function.
6226 (grub_strcasecmp): Use grub_size_t instead of int for length.
6228 * include/grub/misc.h: Update function prototypes.
6230 2009-01-26 Robert Millan <rmh@aybabtu.com>
6232 * configure.ac: Fix cross-compilation check.
6234 2009-01-22 Christian Franke <franke@computer.org>
6236 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
6237 (precision) digit string. Allow `.format2' without `format1' (width).
6238 Limit input chars for `%s' output to `format2' if specified. This is
6239 compatible with standard printf ().
6241 2009-01-22 Christian Franke <franke@computer.org>
6243 * disk/ata.c (grub_ata_wait_status): Replace by ...
6244 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
6245 other status bits may be invalid while BSY is asserted.
6246 (grub_ata_check_ready): New function.
6247 (grub_ata_cmd): Removed.
6248 (grub_ata_wait_drq): New function.
6249 (grub_ata_strncpy): Remove inline.
6250 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
6251 and error check now done by grub_ata_wait_drq ().
6252 (grub_ata_pio_write): Likewise.
6253 (grub_atapi_identify): Set DEV before check for !BSY. Use
6254 grub_ata_wait_drq () to wait for data.
6255 (grub_ata_device_initialize): Add status register check to
6256 detect missing SATA slave devices. Add debug messages.
6257 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
6258 (grub_atapi_packet): Set DEV before check for !BSY. Replace
6259 transfer loop by grub_ata_pio_write ().
6260 (grub_ata_identify): Set DEV before check for !BSY. Use
6261 grub_ata_wait_drq () to wait for data.
6262 (grub_ata_setaddress): Set DEV before check for !BSY.
6263 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
6264 read/write in one loop. Fix invalid command on write. Fix incomplete
6265 command on (size % batch) == 0. Add missing error check after write of
6266 last block. Add debug messages.
6267 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
6269 2009-01-19 Christian Franke <franke@computer.org>
6271 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
6272 (GRUB_ATAPI_IREASON_*): Likewise.
6273 (grub_ata_pio_write): Fix timeout error return.
6274 (grub_atapi_identify): Add grub_ata_wait () after cmd.
6275 (grub_atapi_wait_drq): New function.
6276 (grub_atapi_packet): New parameter `size'.
6277 Use grub_atapi_wait_drq () and direct write instead of
6278 grub_ata_pio_write ().
6279 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
6280 reads the number of bytes requested by the device for each DRQ
6282 (grub_atapi_write): Remove old implementation, return not
6283 implemented instead.
6285 2009-01-19 Christian Franke <franke@computer.org>
6287 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
6288 of 512 to calculate data size.
6289 (grub_scsi_read12): Likewise.
6290 (grub_scsi_write10): Likewise.
6291 (grub_scsi_write12): Likewise.
6292 (grub_scsi_read): Adjust size according to blocksize.
6293 Add checks for invalid blocksize and unaligned transfer.
6295 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
6297 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
6299 * term/gfxterm.c (write_char): Fix background rendering for wide
6302 2009-01-19 Robert Millan <rmh@aybabtu.com>
6304 * config.guess: Update to latest version from config git.
6305 * config.sub: Likewise.
6307 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
6309 * Makefile.in: Change font compilation to use new grub-mkfont instead
6312 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
6313 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6314 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6315 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6316 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6317 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6318 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6319 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6320 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6322 2009-01-16 Christian Franke <franke@computer.org>
6324 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
6325 (enum grub_ata_timeout_milliseconds): New enum.
6326 (grub_ata_wait_status): Add parameter milliseconds.
6327 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
6328 recovery from timed-out commands.
6329 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
6330 return grub_errno instead of REG_ERROR.
6331 (grub_ata_pio_write): Add parameter milliseconds.
6332 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
6333 Pass milliseconds to grub_ata_wait_status () and
6334 grub_ata_pio_read ().
6335 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
6336 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
6337 grub_ata_wait_status (). Fix IDENTIFY timeout check.
6338 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
6339 It is not suitable for device detection, because DEV bit is ignored,
6340 the command may run too long, and not all devices set the signature
6342 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
6343 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
6344 Fix device selection, DEV bit must be set first to address the registers
6345 of the correct device.
6346 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
6347 grub_ata_pio_read/write ().
6348 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
6349 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
6351 2009-01-13 Carles Pina i Estany <carles@pina.cat>
6353 * util/grub-editenv.c (main): Use fseeko(), not fseek().
6355 2009-01-13 Bean <bean123ch@gmail.com>
6357 * util/grub-mkfont.c (write_font): forget to remove some debug code.
6359 2009-01-13 Bean <bean123ch@gmail.com>
6361 * Makefile.in: (enable_grub_mkfont): New variable.
6362 (freetype_cflags): Likewise.
6363 (freetype_libs): Likewise.
6365 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
6366 (grub_mkfont_SOURCES): New variable.
6367 (grub_mkfont_CFLAGS): Likewise.
6368 (grub_mkfont_LDFLAGS): Likewise.
6370 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
6371 library if `--enable-grub-mkfont' is requested.
6372 (enable_grub_mkfont): New variable.
6373 (freetype_cflags): Likewise.
6374 (freetype_libs): Likewise.
6376 * util/grub-mkfont.c: New file.
6378 2009-01-12 Christian Franke <franke@computer.org>
6380 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
6381 mode check. Fix setting of compat_use[].
6383 2009-01-10 Robert Millan <rmh@aybabtu.com>
6385 Update a few copyright years which we forgot to do in 2008 (only for
6386 files whose changes made in 2008 were copyright-significant)
6388 * Makefile.in: Add 2008 to Copyright line.
6389 * disk/ieee1275/ofdisk.c: Likewise.
6390 * disk/efi/efidisk.c: Likewise.
6391 * kern/dl.c: Likewise.
6392 * kern/sparc64/ieee1275/init.c: Likewise.
6393 * kern/mm.c: Likewise.
6394 * kern/efi/mm.c: Likewise.
6395 * boot/i386/pc/boot.S: Likewise.
6396 * genfslist.sh: Likewise.
6397 * fs/iso9660.c: Likewise.
6398 * fs/hfs.c: Likewise.
6399 * fs/jfs.c: Likewise.
6400 * fs/minix.c: Likewise.
6401 * fs/ufs.c: Likewise.
6402 * gensymlist.sh.in: Likewise.
6403 * genkernsyms.sh.in: Likewise.
6404 * include/grub/misc.h: Likewise.
6405 * include/grub/types.h: Likewise.
6406 * include/grub/symbol.h: Likewise.
6407 * include/grub/elf.h: Likewise.
6408 * include/grub/kernel.h: Likewise.
6409 * include/grub/disk.h: Likewise.
6410 * include/grub/dl.h: Likewise.
6411 * include/grub/i386/linux.h: Likewise.
6412 * include/grub/i386/pc/biosdisk.h: Likewise.
6413 * include/grub/efi/api.h: Likewise.
6414 * include/grub/efi/pe32.h: Likewise.
6415 * include/grub/util/misc.h: Likewise.
6416 * normal/execute.c: Likewise.
6417 * normal/arg.c: Likewise.
6418 * normal/completion.c: Likewise.
6419 * normal/lexer.c: Likewise.
6420 * normal/parser.y: Likewise.
6421 * normal/misc.c: Likewise.
6422 * commands/i386/pc/vbeinfo.c: Likewise.
6423 * commands/hexdump.c: Likewise.
6424 * commands/terminal.c: Likewise.
6425 * commands/ls.c: Likewise.
6426 * commands/help.c: Likewise.
6427 * partmap/pc.c: Likewise.
6428 * loader/efi/chainloader.c: Likewise.
6429 * loader/multiboot_loader.c: Likewise.
6430 * loader/i386/pc/multiboot2.c: Likewise.
6431 * term/efi/console.c: Likewise.
6432 * term/i386/pc/serial.c: Likewise.
6433 * util/lvm.c: Likewise.
6434 * util/console.c: Likewise.
6435 * util/i386/efi/grub-mkimage.c: Likewise.
6436 * util/raid.c: Likewise.
6438 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
6440 * commands/videotest.c: Removed include to grub/machine/memory.h.
6442 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
6443 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
6444 (video_mod_SOURCES): Removed.
6445 (video_mod_CFLAGS): Likewise.
6446 (video_mod_LDFLAGS): Likewise.
6447 (gfxterm_mod_SOURCES): Likewise.
6448 (gfxterm_mod_CFLAGS): Likewise.
6449 (gfxterm_mod_LDFLAGS): Likewise.
6450 (videotest_mod_SOURCES): Likewise.
6451 (videotest_mod_CFLAGS): Likewise.
6452 (videotest_mod_LDFLAGS): Likewise.
6453 (bitmap_mod_SOURCES): Likewise.
6454 (bitmap_mod_CFLAGS): Likewise.
6455 (bitmap_mod_LDFLAGS): Likewise.
6456 (tga_mod_SOURCES): Likewise.
6457 (tga_mod_CFLAGS): Likewise.
6458 (tga_mod_LDFLAGS): Likewise.
6459 (jpeg_mod_SOURCES): Likewise.
6460 (jpeg_mod_CFLAGS): Likewise.
6461 (jpeg_mod_LDFLAGS): Likewise.
6462 (png_mod_SOURCES): Likewise.
6463 (png_mod_CFLAGS): Likewise.
6464 (png_mod_LDFLAGS): Likewise.
6466 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
6467 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
6468 (video_mod_SOURCES): Added.
6469 (video_mod_CFLAGS): Likewise.
6470 (video_mod_LDFLAGS): Likewise.
6471 (videotest_mod_SOURCES): Likewise.
6472 (videotest_mod_CFLAGS): Likewise.
6473 (videotest_mod_LDFLAGS): Likewise.
6474 (bitmap_mod_SOURCES): Likewise.
6475 (bitmap_mod_CFLAGS): Likewise.
6476 (bitmap_mod_LDFLAGS): Likewise.
6477 (tga_mod_SOURCES): Likewise.
6478 (tga_mod_CFLAGS): Likewise.
6479 (tga_mod_LDFLAGS): Likewise.
6480 (jpeg_mod_SOURCES): Likewise.
6481 (jpeg_mod_CFLAGS): Likewise.
6482 (jpeg_mod_LDFLAGS): Likewise.
6483 (png_mod_SOURCES): Likewise.
6484 (png_mod_CFLAGS): Likewise.
6485 (png_mod_LDFLAGS): Likewise.
6486 (gfxterm_mod_SOURCES): Likewise.
6487 (gfxterm_mod_CFLAGS): Likewise.
6488 (gfxterm_mod_LDFLAGS): Likewise.
6490 * term/gfxterm.c: Removed include to grub/machine/memory.h,
6491 grub/machine/console.h.
6493 2009-01-04 Jerone Young <jerone@gmail.com>
6495 Make on screen instructions clearer
6497 Based on patch created by Jidanni <jidanni@jidanni.org>
6499 * normal/menu.c: print clearer instructions on the screen
6501 2009-01-02 Colin D Bennett <colin@gibibit.com>
6505 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
6506 build system and fixed gfxterm.c to work with different sized fonts.
6508 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
6510 * configure: Re-generated.
6512 * DISTLIST: Removed font/manager.c.
6514 Added font/font_cmd.c.
6516 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
6519 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
6521 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
6523 * kern/term.c: Changed users of grub_utf8_to_ucs4.
6525 * normal/menu.c: Likewise.
6527 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
6528 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
6530 * include/grub/font.h: Replaced with new file.
6532 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
6533 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
6534 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
6535 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
6536 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
6537 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
6538 fg_red, fg_green, fg_blue, fg_alpha.
6539 (grub_video_adapter): Removed blit_glyph.
6540 (grub_video_blit_glyph): Removed.
6542 * font/manager.c: Removed file.
6544 * font/font.c: New file.
6546 * font/font_cmd.c: Likewise.
6548 * video/video.c (grub_video_blit_glyph): Removed.
6550 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
6551 (grub_video_vbe_map_rgba): Likewise.
6552 (grub_video_vbe_unmap_color_int): Likewise.
6553 (grub_video_vbe_blit_glyph): Removed.
6554 (grub_video_vbe_adapter): Removed blit_glyph.
6556 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
6557 (get_pixel): Likewise.
6558 (set_pixel): Likewise.
6560 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
6562 * term/gfxterm.c: Adapted to new font engine.
6564 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
6566 * term/i386/pc/vga.c: Likewise.
6568 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
6570 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6572 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6574 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6576 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6578 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6580 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6582 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6584 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6586 * util/grub.d/00_header.in: Changed to use new loadfont command.
6588 * util/grub-mkconfig_lib.in: Changed font extension.
6590 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
6592 * util/getroot.c (grub_util_get_grub_dev): Add support for
6593 /dev/md/dNNpNN style partitionable mdraid devices.
6595 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
6597 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
6598 at a time limit of the PXE TFTP API correctly.
6599 (grub_pxefs_close): Likewise.
6601 2008-11-29 Robert Millan <rmh@aybabtu.com>
6603 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
6604 grub_ata_device_initialize() calls.
6606 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
6608 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
6610 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
6612 2008-11-28 Robert Millan <rmh@aybabtu.com>
6614 Fix build on powerpc-ieee1275. Based on patch created by
6615 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
6616 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
6617 `kern/ieee1275/mmap.c'.
6618 * include/grub/powerpc/ieee1275/memory.h: New file.
6620 Provide grub-install on coreboot.
6621 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
6622 (grub_install_SOURCES): New variable.
6623 * util/i386/pc/grub-install.in: Add a few condition checks to make it
6626 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
6628 * util/grub-fstest.c (grub_term_get_current_input): Change return type
6629 to `grub_term_input_t'.
6630 (grub_term_get_current_output): Change return type to
6631 `grub_term_output_t'.
6633 2008-11-22 Robert Millan <rmh@aybabtu.com>
6635 Fix breakage on coreboot due to declaration mismatch.
6636 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
6637 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
6638 grub_vga_text_cls().
6640 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
6641 comments. Avoid copying one more byte than necessary (just in case).
6643 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
6644 to 0x200000 (avoids trouble with some OFW implementations, and matches
6645 with the one in Yaboot).
6646 Reported by Manoel Abranches
6648 2008-11-20 Robert Millan <rmh@aybabtu.com>
6650 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
6651 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
6653 * util/grub-mkconfig_lib.in (grub_warn): New function.
6654 (convert_system_path_to_grub_path): Use grub_warn() when issuing
6655 warnings, to obtain consistent formatting.
6656 * util/grub.d/00_header.in: Likewise.
6657 * util/update-grub_lib.in: Likewise.
6659 * loader/i386/linux.c (allocate_pages): Fix a warning.
6660 Move comment text to `#error' stanza.
6662 Harmonize ieee1275's grub_available_iterate() with the generic
6663 grub_machine_mmap_iterate() interface (fixes a recently-introduced
6664 build problem on i386-ieee1275):
6665 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
6666 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
6667 parameter `type'. Update all users of this function.
6668 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
6669 `kern/ieee1275/mmap.c'.
6670 * kern/ieee1275/init.c
6671 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
6673 (grub_machine_mmap_iterate): ... this.
6674 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
6675 return type to `grub_err_t'. Update all implementations of this
6677 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
6680 Add `lsmmap' command (lists firmware-provided memory map):
6681 * commands/lsmmap.c: New file.
6682 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
6683 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
6685 * conf/powerpc-ieee1275.rmk: Likewise.
6686 * conf/i386-coreboot.rmk: Likewise.
6687 * conf/i386-ieee1275.rmk: Likewise.
6689 2008-11-19 Robert Millan <rmh@aybabtu.com>
6691 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
6692 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
6693 constraints to initrd allocation (based on code from
6694 loader/i386/pc/linux.c). Without them, initrd was allocated too high
6695 for Linux to find it.
6697 2008-11-14 Robert Millan <rmh@aybabtu.com>
6699 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
6700 order to cope with duplicate slashes.
6702 2008-11-14 Robert Millan <rmh@aybabtu.com>
6704 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
6705 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
6706 don't want to mess with lower memory, because it is used in the Linux
6709 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
6710 an appropriate place in lower memory, between 0x10000 and 0x90000,
6711 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
6712 is in our heap (probably as a result of it being corrupted during
6713 decompression). Add #error instance with comment to explain why this
6714 loader isn't currently usable on PC/BIOS.
6716 2008-11-14 Robert Millan <rmh@aybabtu.com>
6718 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
6719 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
6721 2008-11-12 Robert Millan <rmh@aybabtu.com>
6723 Make loader/i386/linux.c buildable on i386-pc (although disabled).
6725 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
6726 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
6728 * include/grub/i386/pc/memory.h: ... to here.
6730 2008-11-12 Robert Millan <rmh@aybabtu.com>
6732 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
6735 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
6736 (grub_console_cur_color, grub_console_real_putchar)
6737 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6738 (grub_console_setcolorstate, grub_console_setcolor)
6739 (grub_console_getcolor): Move from here ...
6740 * include/grub/i386/vga_common.h: ... to here (new file).
6742 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
6743 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
6745 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
6746 `<grub/i386/vga_common.h>'.
6748 2008-11-12 Robert Millan <rmh@aybabtu.com>
6750 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
6751 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
6752 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
6754 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6755 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
6757 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
6758 grub_console_init() with call to grub_vga_text_init().
6759 (grub_machine_fini): Replace call to
6760 grub_console_fini() with call to grub_vga_text_fini() and
6761 grub_at_keyboard_fini().
6763 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
6764 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6765 (grub_console_setcolorstate, grub_console_setcolor)
6766 (grub_console_getcolor): New function prototypes.
6768 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
6769 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
6770 (grub_vga_text_setcursor): Static-ize.
6771 (grub_vga_text_term): New structure.
6772 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
6774 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
6775 (grub_console_cur_color, grub_console_standard_color)
6776 (grub_console_normal_color, grub_console_highlight_color)
6777 (map_char, grub_console_putchar, grub_console_getcharwidth)
6778 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
6779 (grub_console_getcolor): Move from here ...
6780 * term/i386/vga_common.c: ... to here (same function names).
6782 2008-11-12 Robert Millan <rmh@aybabtu.com>
6784 Use newly-added Multiboot support in coreboot.
6786 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6787 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
6789 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
6790 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
6791 (codestart): Store the MBI in `startup_multiboot_info' when we're
6792 being loaded using Multiboot.
6794 * kern/i386/coreboot/init.c (grub_machine_init): Move
6795 grub_at_keyboard_init() call to beginning of function (useful for
6796 debugging). Call grub_machine_mmap_init() before attempting to use
6797 grub_machine_mmap_iterate().
6798 (grub_lower_mem, grub_upper_mem): Move from here ...
6799 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
6802 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
6805 2008-11-12 Robert Millan <rmh@aybabtu.com>
6807 Fix a regression introduced by the at_keyboard.mod split. Because
6808 some terminals are default on some platforms and non-default on
6809 others, the first terminal being registered determines which is
6810 going to be default.
6812 * kern/term.c (grub_term_register_input): If this is the first
6813 terminal being registered, set it as the current one.
6814 (grub_term_register_output): Likewise.
6816 * term/efi/console.c (grub_console_init): Do not call
6817 grub_term_set_current_output() or grub_term_set_current_input().
6818 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
6819 * term/i386/pc/console.c (grub_console_init): Likewise.
6820 (grub_console_fini): Do not call grub_term_set_current_input()
6821 (but leave grub_term_set_current_output() to restore text mode).
6823 2008-11-10 Robert Millan <rmh@aybabtu.com>
6825 * util/grub.d/00_header.in: Add backward compatibility check for
6826 versions of terminal.mod that don't understand `terminal_input' or
6829 2008-11-09 Robert Millan <rmh@aybabtu.com>
6831 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
6832 `terminal_input' / `terminal_output', not `terminal'.
6834 2008-11-08 Robert Millan <rmh@aybabtu.com>
6836 * Makefile.in (include_DATA): Fix srcdir=. assumption.
6837 (DISTCLEANFILES): Add `build_env.mk'.
6839 2008-11-08 Robert Millan <rmh@aybabtu.com>
6841 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
6842 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
6843 members. Update all users.
6844 * util/console.c (grub_ncurses_term): Split in ...
6845 (grub_ncurses_term_input): ... this, and ...
6846 (grub_ncurses_term_output): ... this. Update all users.
6847 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
6849 2008-11-08 Robert Millan <rmh@aybabtu.com>
6851 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
6852 (PKGDATA): Add $(pkgdata_SRCDIR).
6853 (pkglib_BUILDDIR): New variable.
6854 (pkgdata_SRCDIR): New variable.
6855 (build_env.mk): New target.
6856 (include_DATA): New variable.
6857 (install-local): Install $(include_DATA) files in $(includedir).
6859 2008-11-07 Pavel Roskin <proski@gnu.org>
6861 * gendistlist.sh: Use C locale for sorting to ensure consistent
6862 output on all systems.
6864 * util/grub.d/00_header.in: Remove incorrect space before
6867 2008-11-07 Robert Millan <rmh@aybabtu.com>
6869 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
6871 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
6872 * loader/multiboot_loader.c (find_multi_boot2_header): New function
6873 (based on find_multi_boot1_header).
6874 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
6875 using find_multi_boot2_header(), and abort if neither Multiboot or
6876 Multiboot headers were found.
6878 2008-11-07 Robert Millan <rmh@aybabtu.com>
6880 Modularize at_keyboard.mod:
6882 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
6883 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
6884 (at_keyboard_mod_LDFLAGS): New variables.
6886 Actual terminal split:
6888 * include/grub/term.h (struct grub_term): Split in ...
6889 (struct grub_term_input): ... this, and ...
6890 (struct grub_term_output): ... this. Update all users.
6891 (grub_term_set_current): Split in ...
6892 (grub_term_set_current_input): ... this, and ...
6893 (grub_term_set_current_output): ... this.
6894 (grub_term_get_current): Split in ...
6895 (grub_term_get_current_input): ... this, and ...
6896 (grub_term_get_current_output): ... this.
6897 (grub_term_register): Split in ...
6898 (grub_term_register_input): ... this, and ...
6899 (grub_term_register_output): ... this.
6900 (grub_term_unregister): Split in ...
6901 (grub_term_unregister_input): ... this, and ...
6902 (grub_term_unregister_output): ... this.
6903 (grub_term_iterate): Split in ...
6904 (grub_term_iterate_input): ... this, and ...
6905 (grub_term_iterate_output): ... this.
6907 * kern/term.c (grub_term_list): Split in ...
6908 (grub_term_list_input): ... this, and ...
6909 (grub_term_list_output): ... this. Update all users.
6910 (grub_cur_term): Split in ...
6911 (grub_cur_term_input): ... this, and ...
6912 (grub_cur_term_output): ... this. Update all users.
6913 (grub_term_set_current): Split in ...
6914 (grub_term_set_current_input): ... this, and ...
6915 (grub_term_set_current_output): ... this.
6916 (grub_term_get_current): Split in ...
6917 (grub_term_get_current_input): ... this, and ...
6918 (grub_term_get_current_output): ... this.
6919 (grub_term_register): Split in ...
6920 (grub_term_register_input): ... this, and ...
6921 (grub_term_register_output): ... this.
6922 (grub_term_unregister): Split in ...
6923 (grub_term_unregister_input): ... this, and ...
6924 (grub_term_unregister_output): ... this.
6925 (grub_term_iterate): Split in ...
6926 (grub_term_iterate_input): ... this, and ...
6927 (grub_term_iterate_output): ... this.
6929 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
6930 a check for input and one for output (and only attempt to get keys
6931 from user when input works).
6933 * util/grub-probe.c (grub_term_get_current): Split in ...
6934 (grub_term_get_current_input): ... this, and ...
6935 (grub_term_get_current_output): ... this.
6936 * util/grub-fstest.c: Likewise.
6937 * util/i386/pc/grub-setup.c: Likewise.
6938 * util/grub-editenv.c: Likewise.
6940 Portability adjustments:
6942 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
6943 `term/i386/pc/at_keyboard.c'.
6944 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
6945 grub_keyboard_controller_init() (now handled by terminal .init).
6946 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
6947 grub_at_keyboard_init().
6948 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
6949 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
6950 at_keyboard.mod via input terminal interface).
6951 * include/grub/i386/coreboot/console.h: Convert into a stub for
6952 `<grub/i386/pc/console.h>'.
6954 Migrate full terminals to new API:
6956 * term/efi/console.c (grub_console_term): Split into ...
6957 (grub_console_term_input): ... this, and ...
6958 (grub_console_term_output): ... this. Update all users.
6959 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
6960 (grub_ofconsole_init): Split into ...
6961 (grub_ofconsole_init_input): ... this, and ...
6962 (grub_ofconsole_init_output): ... this.
6963 (grub_ofconsole_term): Split into ...
6964 (grub_ofconsole_term_input): ... this, and ...
6965 (grub_ofconsole_term_output): ... this. Update all users.
6966 * term/i386/pc/serial.c (grub_serial_term): Split into ...
6967 (grub_serial_term_input): ... this, and ...
6968 (grub_serial_term_output): ... this. Update all users.
6969 * term/i386/pc/console.c (grub_console_term): Split into ...
6970 (grub_console_term_input): ... this, and ...
6971 (grub_console_term_output): ... this. Update all users.
6972 (grub_console_term_input): Only enable it on PC/BIOS platform.
6973 (grub_console_init): Remove grub_keyboard_controller_init() call.
6975 Migrate input terminals to new API:
6977 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
6978 `i386' and `i386/pc' to enable build on x86_64 (this driver is
6979 i386-specific anyway).
6980 (grub_console_checkkey): Rename to ...
6981 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
6983 (grub_keyboard_controller_orig): New variable.
6984 (grub_console_getkey): Rename to ...
6985 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
6987 (grub_keyboard_controller_init): Static-ize. Save original
6988 controller value so that it can be restored ...
6989 (grub_keyboard_controller_fini): ... here (new function).
6990 (grub_at_keyboard_term): New structure.
6991 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
6994 Migrate output terminals to new API:
6996 * term/i386/pc/vga.c (grub_vga_term): Change type to
6997 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
6998 members. Update all users.
6999 * term/gfxterm.c (grub_video_term): Change type to
7000 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7001 members. Update all users.
7002 * include/grub/i386/pc/console.h (grub_console_checkkey)
7003 (grub_console_getkey): Do not export (no longer needed by gfxterm,
7006 Migrate `terminal' command and userland tools to new API:
7008 * commands/terminal.c (grub_cmd_terminal): Split into ...
7009 (grub_cmd_terminal_input): ... this, and ...
7010 (grub_cmd_terminal_output): ... this.
7011 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
7012 `terminal_input' and `terminal_output'.
7013 * util/grub.d/00_header.in: Adjust `terminal' calls to new
7014 `terminal_input' / `terminal_output' API.
7015 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
7016 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
7017 provided ${GRUB_TERMINAL}, convert it).
7019 2008-11-04 Robert Millan <rmh@aybabtu.com>
7021 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
7023 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
7025 2008-11-03 Bean <bean123ch@gmail.com>
7027 * kern/elf.c (grub_elf32_load): Revert to previous code.
7028 (grub_elf64_load): Likewise.
7030 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
7032 2008-11-01 Robert Millan <rmh@aybabtu.com>
7034 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
7035 (TARGET_CPPFLAGS): Likewise.
7036 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
7038 2008-11-01 Carles Pina i Estany <carles@pina.cat>
7040 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
7042 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7044 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
7045 addition of objects until the code is not going to be able to fail.
7047 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7049 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
7050 (add a missing NULL check, and correct them by moving the pointer
7051 operations after the actual check).
7053 2008-10-29 Robert Millan <rmh@aybabtu.com>
7055 * util/i386/pc/grub-install.in: Handle empty string as output from
7056 make_system_path_relative_to_its_root().
7058 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
7060 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
7061 circular metadata worst case scenario. If the metadata is circular
7062 then copy the wrap in place.
7063 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
7064 project lib/format_text/layout.h
7065 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
7067 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7069 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
7071 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7073 * util/update-grub_lib.in: Mention filename in warning message.
7075 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7077 * NEWS: Update for rename of update-grub to grub-mkconfig.
7079 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7081 * util/update-grub_lib.in: Copy to ...
7082 * util/grub-mkconfig_lib.in: ... this. Update all users.
7083 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
7084 * util/update-grub.in: Rename to ...
7085 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
7086 option. Add `--output' option to allow users to specify the generated
7087 configuration file. Default to stdout.
7088 (update_grub_dir): Rename to ...
7089 (grub_mkconfig_dir): ... this.
7090 (grub_cfg): Default to an empty string.
7091 * conf/common.rmk (update-grub): Rename to ...
7092 (grub-mkconfig): ... this.
7093 (update-grub_lib): Copy to ...
7094 (grub-mkconfig_lib): ... this.
7095 (update-grub_SCRIPTS): Copy to ...
7096 (grub-mkconfig_SCRIPTS): ... this. Update all users.
7097 (update-grub_DATA): Rename to ...
7098 (grub-mkconfig_DATA): ... this.
7100 2008-09-28 Robert Millan <rmh@aybabtu.com>
7102 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
7103 to `modified'. Add the real `created' field.
7104 (grub_iso9660_uuid): Use `modified' rather than `created' for
7105 constructing the UUID.
7107 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
7109 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
7110 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
7112 2008-09-28 Bean <bean123ch@gmail.com>
7114 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
7115 Thanks to Christian Franke for finding this bug.
7117 2008-09-25 Robert Millan <rmh@aybabtu.com>
7119 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
7120 instances of grub_util_get_disk_name() (see previous commit).
7122 2008-09-25 Robert Millan <rmh@aybabtu.com>
7124 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
7125 `util/i386/get_disk_name.c'.
7126 * conf/i386-efi.rmk: Likewise.
7127 * conf/x86_64-efi.rmk: Likewise.
7128 * conf/i386-coreboot.rmk: Likewise.
7129 * conf/i386-ieee1275.rmk: Likewise.
7130 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
7131 `util/ieee1275/get_disk_name.c'.
7132 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
7133 * util/ieee1275/get_disk_name.c: Remove file.
7134 * util/i386/get_disk_name.c: Remove file.
7135 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
7136 "hd%d" for device.map entries, rather than using
7137 grub_util_get_disk_name().
7139 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7141 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
7143 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
7145 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7147 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
7149 (GRUB_TERM_PPAGE): Changed to 0x4900.
7151 2008-09-24 Robert Millan <rmh@aybabtu.com>
7153 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
7154 macros (they were i386-pc specific).
7155 * include/grub/sparc64/ieee1275/console.h: Likewise.
7156 * include/grub/efi/console.h: Likewise.
7158 2008-09-22 Bean <bean123ch@gmail.com>
7160 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
7161 resident and in attribute list.
7163 * include/grub/ntfs.h (BMP_LEN): Removed.
7165 2008-09-22 Bean <bean123ch@gmail.com>
7167 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
7168 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
7170 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
7171 error occurs, as grub_disk_open will call grub_disk_close, which will
7172 call p->close (scsi).
7174 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7176 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
7177 (AC_PREREQ): Bumped to 2.59.
7178 (AC_TRY_COMPILE): Replace obsolete macro with ...
7179 (AC_COMPILE_IFELSE): ... this.
7180 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
7181 (AC_LINK_IFELSE): ... this.
7183 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7185 * autogen.sh: Add a call to `gendistlist.sh'.
7187 2008-09-19 Christian Franke <franke@computer.org>
7189 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
7190 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
7191 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
7192 Export __enable_execute_stack() to modules.
7193 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
7196 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7198 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
7201 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7203 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7204 #include <grub/util/hostdisk.h>.
7206 2008-09-08 Robert Millan <rmh@aybabtu.com>
7208 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
7209 segments when their filesz is zero (grub_file_read() interprets
7210 zero-size as "read until EOF", which results in memory corruption).
7211 Use `lowest_segment' rather than 0 for calculating the current
7212 segment load address.
7214 2008-09-08 Robert Millan <rmh@aybabtu.com>
7216 * util/hostdisk.c (open_device): Replace a grub_util_info() call
7217 with grub_dprintf("hostdisk", ...), as it was so verbose that it
7218 clobbered useful information.
7220 2008-09-08 Robert Millan <rmh@aybabtu.com>
7222 * include/grub/util/biosdisk.h: Move to ...
7223 * include/grub/util/hostdisk.h: ... here. Update all users.
7224 * util/biosdisk.c: Move to ...
7225 * util/hostdisk.c: ... here. Update all users.
7227 2008-09-07 Robert Millan <rmh@aybabtu.com>
7229 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
7231 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
7232 and length can be stored directly in the `mbi->mmap_addr' and
7233 `mbi->mmap_length' struct fields.
7235 2008-09-07 Robert Millan <rmh@aybabtu.com>
7237 * conf/i386.rmk: New file. Provides declaration for building
7239 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
7240 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
7242 Include `conf/i386.mk'.
7243 * conf/i386-efi.rmk: Likewise.
7244 * conf/x86_64-efi.rmk: Likewise.
7245 * conf/i386-coreboot.rmk: Likewise.
7246 * conf/i386-ieee1275.rmk: Likewise.
7248 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
7250 Based on patch created by Colin D Bennett <colin@gibibit.com>.
7251 Adds optimization support for BGR based modes.
7253 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
7254 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7255 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7256 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7257 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7258 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7259 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7260 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7261 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7262 (grub_video_i386_vbeblit_index_index): Likewise.
7263 (grub_video_i386_vbeblit_replace_directN): Added.
7264 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7265 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7266 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7267 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7268 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7269 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7270 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7271 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7272 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7273 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7274 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7275 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7276 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7278 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
7279 (grub_video_i386_vbefill_R8G8B8): Likewise.
7280 (grub_video_i386_vbefill_index): Likewise.
7281 (grub_video_i386_vbefill_direct32): Added.
7282 (grub_video_i386_vbefill_direct24): Likewise.
7283 (grub_video_i386_vbefill_direct16): Likewise.
7284 (grub_video_i386_vbefill_direct8): Likewise.
7286 * include/grub/video.h (grub_video_blit_format): Removed
7287 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
7288 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
7289 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
7290 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
7291 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
7293 * video/video.c (grub_video_get_blit_format): Updated to use new
7294 blit formats. Added handling for 16 bit color modes.
7296 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
7298 (common_blitter): Updated to use new blitters.
7300 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
7302 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7303 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7304 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7305 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7306 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7307 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7308 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7309 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7310 (grub_video_i386_vbeblit_index_index): Likewise.
7311 (grub_video_i386_vbeblit_replace_directN): Added.
7312 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7313 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7314 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7315 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7316 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7317 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7318 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7319 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7320 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7321 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7322 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7323 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7324 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7326 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
7327 (grub_video_i386_vbefill_R8G8B8): Likewise.
7328 (grub_video_i386_vbefill_index): Likewise.
7329 (grub_video_i386_vbefill_direct32): Added.
7330 (grub_video_i386_vbefill_direct24): Likewise.
7331 (grub_video_i386_vbefill_direct16): Likewise.
7332 (grub_video_i386_vbefill_direct8): Likewise.
7334 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
7337 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
7340 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
7343 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
7346 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7348 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
7351 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7353 * fs/iso9660.c (grub_iso9660_date): New structure.
7354 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
7355 (grub_iso9660_uuid): New function.
7357 2008-09-05 Bean <bean123ch@gmail.com>
7359 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
7361 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
7362 insensitive bit for names in Win32 and Win32 & DOS namespace.
7364 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
7366 * include/grub/types.h (LONG_MAX): Likewise.
7368 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7370 * util/getroot.c: Include <config.h>.
7371 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
7372 add support for /dev/md/N devices and handle LVM double dash escaping.
7374 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7376 * config.guess: Update to latest version from config git.
7377 * config.sub: Likewise.
7379 2008-09-03 Robert Millan <rmh@aybabtu.com>
7381 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
7382 `disk->total_sectors'.
7384 2008-09-01 Colin D Bennett <colin@gibibit.com>
7386 * include/grub/normal.h: Fixed incorrect comment for
7387 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
7389 2008-09-01 Colin D Bennett <colin@gibibit.com>
7391 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
7392 values with defines.
7394 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
7395 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
7396 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
7397 (GRUB_VBE_MODEATTR_COLOR): Likewise.
7398 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
7399 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
7400 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
7401 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
7402 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
7403 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
7404 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
7405 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
7406 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
7407 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
7408 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
7409 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
7410 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
7411 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
7412 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
7414 2008-08-31 Robert Millan <rmh@aybabtu.com>
7416 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
7418 (grub_multiboot): Fix a few warnings.
7420 2008-08-31 Robert Millan <rmh@aybabtu.com>
7422 * loader/i386/pc/multiboot.c: Update comment not to say that
7423 boot_device support is unimplemented.
7425 2008-08-31 Robert Millan <rmh@aybabtu.com>
7427 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
7428 or memory map support are unimplemented.
7430 2008-08-31 Colin D Bennett <colin@gibibit.com>
7432 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
7434 2008-08-31 Colin D Bennett <colin@gibibit.com>
7436 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
7437 total video memory in 'vbeinfo' output; show color format details for
7440 2008-08-30 Pavel Roskin <proski@gnu.org>
7442 * util/genmoddep.c: Remove for real this time.
7443 * DISTLIST: Remove util/genmoddep.c.
7445 2008-08-30 Robert Millan <rmh@aybabtu.com>
7447 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
7448 as required by Multiboot spec (it was already 4-byte aligned, but
7451 2008-08-29 Pavel Roskin <proski@gnu.org>
7453 * kern/powerpc/ieee1275/crt0.S: Rename to ...
7454 * kern/powerpc/ieee1275/startup.S: ... this.
7455 * conf/powerpc-ieee1275.rmk: Adjust for the above.
7456 * DISTLIST: Likewise.
7458 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
7459 grub/cpu/kernel.h. Add start label for consistency with other
7460 platforms. Add grub_prefix immediately after start. Add jump
7461 to the code after grub_prefix.
7462 * include/grub/powerpc/kernel.h: Provide valid values for
7463 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
7465 2008-08-29 Bean <bean123ch@gmail.com>
7467 * configure.ac: Change host_os to cygwin for mingw.
7468 (asprintf): New check for function.
7470 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
7471 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
7473 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
7474 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
7475 sync, sleep and grub_util_get_disk_size for mingw.
7477 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
7478 to get size in mingw.
7479 (open_device): Use flag O_BINARY if it's defined.
7480 (find_root_device): Add dummy code for mingw.
7482 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
7483 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
7484 (get_scsi_disk_name): Return 0 for mingw.
7486 * util/hostfs.c: #include <grub/util/misc.h>.
7487 (grub_hostfs_open): Use "rb" flag to open file, use
7488 grub_util_get_disk_size to get disk size for mingw.
7490 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
7491 (asprintf): New function if HAVE_ASPRINTF is not set.
7492 (sync): New function for mingw.
7494 (grub_util_get_disk_size): Likewise.
7496 2008-08-28 Pavel Roskin <proski@gnu.org>
7498 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7501 2008-08-28 Robert Millan <rmh@aybabtu.com>
7503 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
7505 2008-08-28 Robert Millan <rmh@aybabtu.com>
7507 Change find_grub_drive() syntax so it doesn't prevent it from
7508 detecting NULL names as errors.
7510 * util/biosdisk.c (find_grub_drive): Move free slot search code
7512 (find_free_slot): ... to here.
7513 (read_device_map): Use find_free_slot() to search for free slots.
7515 2008-08-27 Marco Gerards <marco@gnu.org>
7517 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
7518 (scsi_mod_SOURCES): New variable.
7519 (scsi_mod_CFLAGS): Likewise
7520 (scsi_mod_LDFLAGS): Likewise.
7522 * disk/scsi.c: New file.
7524 * include/grub/scsi.h: Likewise.
7526 * include/grub/scsicmd.h: Likewise.
7528 * disk/ata.c: Include <grub/scsi.h>.
7529 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
7531 (grub_ata_iterate): Skip ATAPI devices.
7532 (grub_ata_open): Only handle ATAPI devices.
7533 (struct grub_atapi_read): Removed.
7534 (grub_atapi_readsector): Likewise.
7535 (grub_ata_read): No longer handle ATAPI devices.
7536 (grub_ata_write): Likewise.
7537 (grub_atapi_iterate): New function.
7538 (grub_atapi_read): Likewise.
7539 (grub_atapi_write): Likewise.
7540 (grub_atapi_open): Likewise.
7541 (grub_atapi_close): Likewise.
7542 (grub_atapi_dev): New variable.
7543 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
7544 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
7546 * include/grub/disk.h (enum grub_disk_dev_id): Add
7547 `GRUB_DISK_DEVICE_SCSI_ID'.
7549 2008-08-26 Robert Millan <rmh@aybabtu.com>
7551 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
7552 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
7555 2008-08-23 Bean <bean123ch@gmail.com>
7557 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
7558 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7559 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
7560 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
7562 (raid5rec_mod_SOURCES): New macro.
7563 (raid5rec_mod_CFLAGS): Likewise.
7564 (raid5rec_mod_LDFLAGS): Likewise.
7565 (raid6rec_mod_SOURCES): Likewise.
7566 (raid6rec_mod_CFLAGS): Likewise.
7567 (raid6rec_mod_LDFLAGS): Likewise.
7568 (mdraid_mod_SOURCES): Likewise.
7569 (mdraid_mod_CFLAGS): Likewise.
7570 (mdraid_mod_LDFLAGS): Likewise.
7571 (dm_nv_mod_SOURCES): Likewise.
7572 (dm_nv_mod_CFLAGS): Likewise.
7573 (dm_nv_mod_LDFLAGS): Likewise.
7575 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
7576 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7577 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7579 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
7580 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7582 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7584 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7586 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7588 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7590 * disk/raid5_recover.c: New file.
7592 * disk/raid6_recover.c: Likewise.
7594 * disk/mdraid_linux.c: Likewise.
7596 * disk/dmraid_nvidia.c: Likewise.
7598 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
7601 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
7602 calculate the size of raid device.
7603 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
7604 different layout of raid5.
7605 (grub_raid_scan_device): Remove code specific to mdraid.
7606 (grub_raid_list): New variable.
7607 (free_array): New function.
7608 (grub_raid_register): Likewise.
7609 (grub_raid_unregister): Likewise.
7610 (grub_raid_rescan): Likewise.
7611 (GRUB_MOD_INIT): Don't iterate device here.
7612 (GRUB_MOD_FINI): Use free_array to release resource.
7614 * include/grub/raid.h: Remove macro and structure specific to mdraid.
7615 (grub_raid5_recover_func_t): New function variable type.
7616 (grub_raid6_recover_func_t): Likewise.
7617 (grub_raid5_recover_func): New variable.
7618 (grub_raid6_recover_func): Likewise.
7619 (grub_raid_register): New function.
7620 (grub_raid_unregister): Likewise.
7621 (grub_raid_rescan): Likewise.
7622 (grub_raid_block_xor): Likewise.
7624 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
7625 (CMD_CRC): New macro.
7627 (read_file): Handle device as well as file.
7628 (cmd_crc): New function.
7629 (fstest): Handle multiple disks.
7630 (options): Remove part, raw and long, add root and diskcount.
7631 (usage): Add crc, remove -p, -r, -l, add -r and -c.
7632 (main): Find the first non option entry and ignore subsequent options,
7633 add handling for the new options, support multiple disks.
7635 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
7637 2008-08-23 Bean <bean123ch@gmail.com>
7639 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
7641 * genfslist.sh: Ignore kernel.mod.
7643 * genpartmaplist.sh: Likewise.
7645 2008-08-23 Robert Millan <rmh@aybabtu.com>
7647 * util/getroot.c (find_root_device): Skip anything that starts with
7648 a dot, not just directories. This avoids things like /dev/.tmp.md0.
7650 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
7652 * util/update-grub.in (GRUB_GFXMODE): Export variable.
7653 * util/grub.d/00_header.in: Allow the administrator to change default
7654 gfxmode via ${GRUB_GFXMODE}.
7656 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
7658 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
7660 2008-08-21 Robert Millan <rmh@aybabtu.com>
7662 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
7664 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
7665 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
7667 2008-08-20 Carles Pina i Estany <carles@pina.cat>
7669 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
7670 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
7672 2008-08-19 Robert Millan <rmh@aybabtu.com>
7674 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
7675 (struct grub_virtual_screen): Remove `cursor_color'.
7676 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
7678 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
7680 2008-08-18 Robert Millan <rmh@aybabtu.com>
7682 Unify (identical) linux_normal.c files.
7683 * loader/i386/efi/linux_normal.c: Move from here ...
7684 * loader/linux_normal.c: ... to here. Update all users.
7685 * loader/i386/pc/linux_normal.c: Delete. Update all users.
7686 * loader/i386/ieee1275/linux_normal.c: Likewise.
7688 2008-08-18 Robert Millan <rmh@aybabtu.com>
7690 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
7691 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
7692 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
7693 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
7694 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
7696 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
7697 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
7698 (GRUB_LINUX_CL_END_OFFSET): ... to here.
7699 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
7700 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
7701 (GRUB_EFI_CL_END_OFFSET): Rename to ...
7702 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
7703 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
7704 Initialize `params->video_cursor_x' and `params->video_cursor_y'
7705 portably using grub_getxy().
7706 Replace `-EFI' with `-bzImage' in boot message.
7708 2008-08-17 Robert Millan <rmh@aybabtu.com>
7710 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
7712 2008-08-17 Robert Millan <rmh@aybabtu.com>
7714 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
7716 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
7717 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
7718 (grub_machine_mmap_iterate): New function declaration.
7719 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
7721 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
7724 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
7725 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
7726 Move e820 parsing from here ...
7727 * kern/i386/pc/mmap.c: New file.
7728 (grub_machine_mmap_iterate): ... to here.
7730 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
7731 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
7732 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
7733 (grub_available_iterate): Redeclare to return `void', and redeclare
7734 its hook to use grub_uint64_t as addr and size parameters, and rename
7736 (grub_machine_mmap_iterate): ... this. Update all users.
7738 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
7739 to make it more readable. Rename to ...
7740 (grub_machine_mmap_iterate): ... this.
7742 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
7743 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
7744 (grub_multiboot): Allocate an extra region after the payload, and fill
7745 it with a Multiboot memory map. Adjust a.out loader to calculate size
7746 with the extra space.
7747 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
7748 with the extra space.
7750 2008-08-17 Carles Pina i Estany <carles@pina.cat>
7752 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
7754 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
7756 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
7757 mdate-sh to the list `find' searches for.
7758 * DISTLIST: Regenerated.
7760 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
7762 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
7763 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
7764 genmoddep.awk, gensymlist.sh.in.
7765 (DISTDIRS): Add bus, docs, hook, lib.
7766 * DISTLIST: Regenerated.
7767 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
7769 2008-08-16 Robert Millan <rmh@aybabtu.com>
7771 * disk/raid.c (grub_raid_init): Handle/report errors set by
7772 grub_device_iterate().
7773 * disk/lvm.c (grub_lvm_init): Likewise.
7775 2008-08-15 Bean <bean123ch@gmail.com>
7777 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7779 (datetime_mod_SOURCES): New macro.
7780 (datetime_mod_CFLAGS): Likewise.
7781 (datetime_mod_LDFLAGS): Likewise.
7782 (date_mod_SOURCES): Likewise.
7783 (date_mod_CFLAGS): Likewise.
7784 (date_mod_LDFLAGS): Likewise.
7785 (datehook_mod_SOURCES): Likewise.
7786 (datehook_mod_CFLAGS): Likewise.
7787 (datehook_mod_LDFLAGS): Likewise.
7789 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7791 (datetime_mod_SOURCES): New macro.
7792 (datetime_mod_CFLAGS): Likewise.
7793 (datetime_mod_LDFLAGS): Likewise.
7794 (date_mod_SOURCES): Likewise.
7795 (date_mod_CFLAGS): Likewise.
7796 (date_mod_LDFLAGS): Likewise.
7797 (datehook_mod_SOURCES): Likewise.
7798 (datehook_mod_CFLAGS): Likewise.
7799 (datehook_mod_LDFLAGS): Likewise.
7801 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7803 (datetime_mod_SOURCES): New macro.
7804 (datetime_mod_CFLAGS): Likewise.
7805 (datetime_mod_LDFLAGS): Likewise.
7806 (date_mod_SOURCES): Likewise.
7807 (date_mod_CFLAGS): Likewise.
7808 (date_mod_LDFLAGS): Likewise.
7809 (datehook_mod_SOURCES): Likewise.
7810 (datehook_mod_CFLAGS): Likewise.
7811 (datehook_mod_LDFLAGS): Likewise.
7813 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7815 (datetime_mod_SOURCES): New macro.
7816 (datetime_mod_CFLAGS): Likewise.
7817 (datetime_mod_LDFLAGS): Likewise.
7818 (date_mod_SOURCES): Likewise.
7819 (date_mod_CFLAGS): Likewise.
7820 (date_mod_LDFLAGS): Likewise.
7821 (datehook_mod_SOURCES): Likewise.
7822 (datehook_mod_CFLAGS): Likewise.
7823 (datehook_mod_LDFLAGS): Likewise.
7825 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7827 (datetime_mod_SOURCES): New macro.
7828 (datetime_mod_CFLAGS): Likewise.
7829 (datetime_mod_LDFLAGS): Likewise.
7830 (date_mod_SOURCES): Likewise.
7831 (date_mod_CFLAGS): Likewise.
7832 (date_mod_LDFLAGS): Likewise.
7833 (datehook_mod_SOURCES): Likewise.
7834 (datehook_mod_CFLAGS): Likewise.
7835 (datehook_mod_LDFLAGS): Likewise.
7837 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
7839 * commands/date.c: New file.
7841 * hook/datehook.c: Likewise.
7843 * include/grub/lib/datetime.h: Likewise.
7845 * include/grub/i386/cmos.h: Likewise.
7847 * lib/datetime.c: Likewise.
7849 * lib/i386/datetime.c: Likewise.
7851 * lib/efi/datetime.c: Likewise.
7853 2008-08-14 Robert Millan <rmh@aybabtu.com>
7855 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
7856 (grub_mkelfimage_SOURCES): New variable.
7857 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
7859 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
7860 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
7861 * conf/powerpc-ieee1275.rmk: Likewise.
7862 * conf/i386-ieee1275.rmk: Likewise.
7864 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
7865 * kern/i386/coreboot/init.c: Likewise.
7867 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
7868 with `<grub/cpu/kernel.h>'.
7869 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
7871 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
7872 * kern/i386/coreboot/startup.S: Likewise.
7874 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
7875 (GRUB_MOD_GAP): Remove.
7876 * include/grub/powerpc/kernel.h: New file.
7877 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
7878 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
7879 * include/grub/i386/kernel.h: New file.
7880 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
7881 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
7882 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
7884 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
7886 Use --directory when invoking grub_mkimage.
7888 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
7889 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
7890 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
7891 and GRUB_KERNEL_CPU_PREFIX.
7893 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
7895 * include/grub/err.h (grub_err_printf): New function prototype.
7896 * util/misc.c (grub_err_printf): New function.
7897 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
7899 * kern/err.c (grub_print_error): Use grub_err_printf.
7901 2008-08-13 Robert Millan <rmh@aybabtu.com>
7903 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
7905 2008-08-13 Robert Millan <rmh@aybabtu.com>
7907 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
7910 2008-08-12 Robert Millan <rmh@aybabtu.com>
7912 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
7913 of the relocation code from here ...
7914 (grub_multiboot): ... to here.
7915 (forward_relocator, backward_relocator): Move from here ...
7916 * kern/i386/loader.S (grub_multiboot_forward_relocator)
7917 (grub_multiboot_backward_relocator): ... to here.
7918 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
7919 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
7920 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
7921 (grub_multiboot_forward_relocator_end)
7922 (grub_multiboot_backward_relocator)
7923 (grub_multiboot_backward_relocator_end): New variables.
7925 2008-08-12 Bean <bean123ch@gmail.com>
7927 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
7929 2008-08-11 Robert Millan <rmh@aybabtu.com>
7931 * kern/i386/linuxbios/startup.S: Move from here ...
7932 * kern/i386/coreboot/startup.S: ... to here.
7934 * kern/i386/linuxbios/init.c: Move from here ...
7935 * kern/i386/coreboot/init.c: ... to here.
7937 * kern/i386/linuxbios/table.c: Move from here ...
7938 * kern/i386/coreboot/mmap.c: ... to here.
7940 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
7942 2008-08-11 Robert Millan <rmh@aybabtu.com>
7944 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
7945 errors. Leave it to the upper layer to handle them.
7947 2008-08-09 Christian Franke <franke@computer.org>
7949 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
7950 * conf/common.rmk: Install `grub-pe2elf' only if requested.
7951 Install `grub.d/10_windows' only on Cygwin.
7952 * configure.ac: Add subst of `target_os'.
7953 Check `target_os' also before setting TARGET_OBJ2ELF.
7954 Add `--enable-grub-pe2elf'.
7956 2008-08-08 Robert Millan <rmh@aybabtu.com>
7958 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
7959 (grub_last_time): Change type to grub_uint64_t.
7960 (grub_disk_open): Migrate code from to using grub_get_time_ms().
7961 (grub_disk_close): Likewise.
7963 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
7964 (run_menu): Migrate code from to using grub_get_time_ms().
7966 * util/misc.c (grub_get_time_ms): New function.
7968 2008-08-08 Marco Gerards <marco@gnu.org>
7970 * disk/ata.c (grub_ata_regget): Change return type to
7972 (grub_ata_regget2): Likewise.
7973 (grub_ata_wait_status): New function.
7974 (grub_ata_wait_busy): Removed function, updated all users to use
7975 `grub_ata_wait_status'.
7976 (grub_ata_wait_drq): Likewise.
7977 (grub_ata_cmd): New function.
7978 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
7980 (grub_ata_pio_write): Add error handling.
7981 (grub_atapi_identify): Likewise.
7982 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
7984 (grub_ata_identify): Use `grub_ata_cmd' and improve error
7985 handling. Actually use the detected registers. Reorder the
7986 detection logic such that it is easier to read.
7987 (grub_ata_pciinit): Do not assign the same ID to each controller.
7988 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
7990 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
7992 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
7994 2008-08-08 Marco Gerards <marco@gnu.org>
7998 2008-08-07 Bean <bean123ch@gmail.com>
8000 * include/grub/x86_64/pci.h: New file.
8002 2008-08-07 Christian Franke <franke@computer.org>
8004 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
8005 (TIMER2_GATE): Likewise.
8006 (grub_pit_wait): Add enable/disable of the timer2 gate
8007 bit of port 0x61. This fixes a possible infinite loop.
8009 2008-08-07 Bean <bean123ch@gmail.com>
8011 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
8012 kern/i386/tsc.c and kern/i386/pit.c.
8014 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
8017 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
8020 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
8022 2008-08-07 Bean <bean123ch@gmail.com>
8024 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
8026 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
8028 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
8029 multiple inclusion. Add #include <grub/types.h>.
8031 2008-08-06 Christian Franke <franke@computer.org>
8033 * conf/common.rmk: Build and install `10_windows'.
8034 * util/grub.d/10_windows.in: New script.
8036 2008-08-06 Pavel Roskin <proski@gnu.org>
8038 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
8040 2008-08-06 Robert Millan <rmh@aybabtu.com>
8042 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
8043 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
8045 2008-08-06 Bean <bean123ch@gmail.com>
8047 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
8048 (grub_pxefs_fs_int): Remove dummy definition.
8049 (grub_pxefs_open): Use data->block_size to store the current block
8051 (grub_pxefs_read): Use block size stored in data->block_size. As the
8052 value of grub_pxe_blksize can be changed after the file is opened.
8054 2008-08-06 Bean <bean123ch@gmail.com>
8056 * fs/i386/pc/pxe.c (curr_file): new variable.
8057 (grub_pxefs_open): Simply the handling of pxe file system. Don't
8058 require the dummy internal file system anymore.
8059 (grub_pxefs_read): Removed.
8060 (grub_pxefs_close): Likewise.
8061 (grub_pxefs_fs_int): Likewise.
8062 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
8063 connection when we switch file.
8064 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
8066 2008-08-06 Robert Millan <rmh@aybabtu.com>
8068 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
8070 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
8071 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
8073 * kern/i386/halt.c: New file.
8074 * kern/i386/reboot.c: Likewise.
8075 * include/grub/i386/reboot.h: Likewise.
8076 * include/grub/i386/halt.h: Likewise.
8078 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
8079 Include `<grub/cpu/halt.h>'.
8080 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
8081 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
8083 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
8084 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
8085 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
8086 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
8087 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
8088 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
8090 * include/grub/i386/at_keyboard.h: ... to here.
8092 2008-08-05 Robert Millan <rmh@aybabtu.com>
8094 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
8095 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
8096 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
8097 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8098 `kern/generic/millisleep.c'.
8100 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
8101 instead of grub_get_rtc().
8102 (grub_tsc_init): Initialize `tsc_boot_time'.
8104 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
8105 (grub_machine_init): Use grub_tsc_init() rather than
8106 installing an RTC-based handler via grub_install_get_time_ms().
8108 * kern/i386/pit.c: New file.
8109 * include/grub/i386/pit.h: Likewise.
8111 2008-08-05 Bean <bean123ch@gmail.com>
8113 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
8115 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
8116 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
8117 (pxe_mod_SOURCES): New macro.
8118 (pxe_mod_CFLAGS): Likewise.
8119 (pxe_mod_LDFLAGS): Likewise.
8120 (pxecmd_mod_SOURCES): Likewise.
8121 (pxecmd_mod_CFLAGS): Likewise.
8122 (pxecmd_mod_LDFLAGS): Likewise.
8124 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
8125 (grub_pxe_call): Likewise.
8127 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
8129 * commands/i386/pc/pxecmd.c: New file.
8131 * fs/i386/pc/pxe.c: Likewise.
8133 * include/grub/i386/pc/pxe.h: Likewise.
8135 2008-08-05 Bean <bean123ch@gmail.com>
8137 * util/console.c (grub_console_cur_color): New variable.
8138 (grub_console_standard_color): Likewise.
8139 (grub_console_normal_color): Likewise.
8140 (grub_console_highlight_color): Likewise.
8141 (color_map): Likewise.
8142 (use_color): Likewise.
8143 (NUM_COLORS): New macro.
8144 (grub_ncurses_setcolorstate): Handle color properly.
8145 (grub_ncurses_setcolor): Don't change color here, just remember the
8146 settings, color will be set in grub_ncurses_setcolorstate.
8147 (grub_ncurses_getcolor): New function.
8148 (grub_ncurses_init): Initialize color pairs.
8149 (grub_ncurses_term): New member grub_ncurses_getcolor.
8151 2008-08-05 Colin D Bennett <colin@gibibit.com>
8153 High resolution timer support. Implemented for x86 CPUs using TSC.
8154 Extracted generic grub_millisleep() so it's linked in only as needed.
8155 This requires a Pentium compatible CPU; if the RDTSC instruction is
8156 not supported, then it falls back on the generic grub_get_time_ms()
8157 implementation that uses the machine's RTC.
8159 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
8160 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8161 `kern/generic/millisleep.c'.
8163 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
8164 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
8166 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
8167 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
8169 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8171 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
8172 `kern/generic/millisleep.c'.
8174 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8176 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
8178 * kern/generic/rtc_get_time_ms.c: New file.
8180 * kern/generic/millisleep.c: New file.
8182 * kern/misc.c: Don't include
8183 <kern/time.h> anymore.
8184 (grub_millisleep_generic): Removed.
8186 * commands/sleep.c (grub_interruptible_millisleep): Uses
8187 grub_get_time_ms() instead of grub_get_rtc().
8189 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
8191 (grub_cpu_is_cpuid_supported): New inline function.
8192 (grub_cpu_is_tsc_supported): New inline function.
8193 (grub_tsc_init): New function prototype.
8194 (grub_tsc_get_time_ms): New function prototype.
8196 * kern/i386/tsc.c (grub_get_time_ms): New file.
8198 * include/grub/time.h: Include <grub/types.h.
8199 (grub_millisleep_generic): Removed.
8200 (grub_get_time_ms): New prototype.
8201 (grub_install_get_time_ms): New prototype.
8202 (grub_rtc_get_time_ms): New prototype.
8204 * kern/time.c (grub_get_time_ms): New function.
8205 (grub_install_get_time_ms): New function.
8207 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
8208 <grub/time.h> anymore.
8209 (grub_millisleep): Removed.
8210 (grub_machine_init): Call grub_tsc_init.
8212 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
8213 get_time_ms() implementation.
8215 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
8216 (ieee1275_get_time_ms): New function.
8217 (grub_machine_init): Install get_time_ms() implementation.
8219 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
8220 (grub_machine_init): Call grub_tsc_init().
8221 (grub_millisleep): Removed.
8223 * kern/ieee1275/init.c (grub_millisleep): Removed.
8224 (grub_machine_init): Install ieee1275_get_time_ms()
8226 (ieee1275_get_time_ms): New function.
8227 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
8230 2008-08-05 Marco Gerards <marco@gnu.org>
8232 * disk/ata.c: Include <grub/pci.h>.
8233 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
8234 (grub_ata_initialize): Rewritten.
8235 (grub_ata_device_initialize): New function.
8237 2008-08-04 Pavel Roskin <proski@gnu.org>
8239 * kern/main.c: Include grub/mm.h.
8241 2008-08-04 Robert Millan <rmh@aybabtu.com>
8243 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
8244 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
8245 corruption problem).
8247 2008-08-04 Robert Millan <rmh@aybabtu.com>
8249 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
8250 warnings introduced in my last commit.
8252 2008-08-03 Robert Millan <rmh@aybabtu.com>
8254 Make PCI available on all i386 architectures.
8256 * include/grub/i386/pc/pci.h: Move from here ...
8257 * include/grub/i386/pci.h: ... to here.
8259 * include/grub/i386/pc/pci.h: Remove.
8260 * include/grub/i386/efi/pci.h: Remove.
8261 * include/grub/x86_64/efi/pci.h: Remove.
8263 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
8266 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
8267 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
8268 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
8270 * conf/i386-ieee1275.rmk: Likewise.
8272 2008-08-03 Robert Millan <rmh@aybabtu.com>
8274 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
8275 (grub_console_setcursor): Make it possible to set cursor off.
8277 2008-08-03 Robert Millan <rmh@aybabtu.com>
8279 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
8280 of modules instead of assuming which platform provides what.
8281 * util/update-grub.in: Likewise.
8283 2008-08-03 Robert Millan <rmh@aybabtu.com>
8285 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
8286 instead of `grub_install_dos_part' to determine whether a drive needs
8287 to be prepended to prefix (`grub_install_dos_part' is not reliable,
8288 because it can be overridden when loading GRUB via Multiboot).
8290 2008-08-02 Robert Millan <rmh@aybabtu.com>
8292 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
8294 2008-08-02 Robert Millan <rmh@aybabtu.com>
8296 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
8297 of informational grub_dprintf() calls.
8299 2008-08-02 Robert Millan <rmh@aybabtu.com>
8301 * disk/memdisk.c (memdisk_size): Don't initialize.
8302 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
8304 * include/grub/i386/pc/kernel.h
8305 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
8306 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
8307 (grub_memdisk_image_size, grub_arch_memdisk_addr)
8308 (grub_arch_memdisk_size): Remove.
8310 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
8311 field (was only used to transfer a constant). Add `type' field to
8312 support multiple module types.
8313 (grub_module_iterate): New function.
8315 * kern/device.c (grub_device_open): Do not hide error messages
8316 when grub_disk_open() fails. Use grub_print_error() instead.
8318 * kern/i386/pc/init.c (grub_arch_modules_addr)
8319 (grub_arch_memdisk_size): Remove functions.
8320 (grub_arch_modules_addr): Return the module address in high memory
8321 (now that it isn't copied anymore).
8323 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
8324 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
8325 decompression routine (grub_total_module_size already includes that
8326 now). Don't copy modules back to low memory.
8328 * kern/main.c: Include `<grub/mm.h>'.
8329 (grub_load_modules): Split out (and use) ...
8330 (grub_module_iterate): ... this function, which iterates through
8331 module objects and runs a hook.
8332 Comment out grub_mm_init_region() call, as it would cause non-ELF
8333 modules to be overwritten.
8335 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
8336 the memdisk image in its own region, make it part of the module list.
8337 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
8338 (main): Parse --memdisk|-m option, and pass user-provided path as
8339 parameter to generate_image().
8340 (add_segments): Pass `memdisk_path' down to load_modules().
8341 (load_modules): Embed memdisk image in module section when requested.
8342 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
8343 `header.type' instead of `header.offset'.
8345 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
8346 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
8347 (memdisk_mod_LDFLAGS): New variables.
8348 * conf/i386-coreboot.rmk: Likewise.
8349 * conf/i386-ieee1275.rmk: Likewise.
8351 2008-08-02 Robert Millan <rmh@aybabtu.com>
8353 * loader/i386/pc/multiboot.c (playground, forward_relocator)
8354 (backward_relocator): New variables. Used to allocate and relocate
8355 the payload, respectively.
8356 (grub_multiboot_load_elf32): Load into heap instead of requested
8357 address, install the appropriate relocator code in each bound of
8358 the payload, and set the entry point such that
8359 grub_multiboot_real_boot() will jump to one of them.
8361 * kern/i386/loader.S (grub_multiboot_payload_size)
8362 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8363 (grub_multiboot_payload_entry_offset): New variables.
8364 (grub_multiboot_real_boot): Set cpu context to what the relocator
8365 expects, and jump to the relocator instead of the payload.
8367 * include/grub/i386/loader.h (grub_multiboot_payload_size)
8368 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8369 (grub_multiboot_payload_entry_offset): Export.
8371 2008-08-01 Bean <bean123ch@gmail.com>
8373 * normal/menu_entry.c (editor_getline): Don't return the original
8374 string as result, as it will be released by lexer once it has done
8377 2008-08-01 Robert Millan <rmh@aybabtu.com>
8379 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
8380 within menuentries, not before them.
8381 util/grub.d/10_hurd.in: Likewise.
8383 2008-08-01 Bean <bean123ch@gmail.com>
8385 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
8386 (bufio_mod_SOURCES): New macro.
8387 (bufio_mod_CFLAGS): Likewise.
8388 (bufio_mod_LDFLAGS): Likewise.
8390 * include/grub/bufio.h: New file.
8392 * io/bufio.c: Likewise.
8394 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
8395 (grub_video_reader_png): Use grub_buffile_open to open file.
8397 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
8398 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
8400 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
8401 (grub_video_reader_tga): Use grub_buffile_open to open file.
8403 * font/manager.c: Include <grub/bufio.h>.
8404 (add_font): Use grub_buffile_open to open file.
8406 2008-07-31 Robert Millan <rmh@aybabtu.com>
8408 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
8409 ELF segments, use a macro for arbitrarily accessing any of them instead
8410 of preparing a pointer that allows access to one at a time.
8411 (grub_multiboot_load_elf64): Likewise.
8413 2008-07-31 Bean <bean123ch@gmail.com>
8415 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
8416 GRUB_KERNEL_MACHINE_DATA_END.
8418 2008-07-30 Robert Millan <rmh@aybabtu.com>
8420 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
8421 Increase from 0x50 to 0x60.
8422 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
8423 use UUIDs to identify the root drive for them. If that's not
8425 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
8426 check, for cross-disk installs.
8428 2008-07-30 Robert Millan <rmh@aybabtu.com>
8430 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
8431 is non-empty, use it to set the `prefix' environment variable instead
8432 of the usual approach.
8433 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
8434 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
8435 environment variable instead of dummy make_install_device().
8437 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
8438 (start): Insert a data section, with `grub_prefix' variable.
8439 * kern/i386/linuxbios/startup.S: Likewise.
8441 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
8442 New variable reference.
8443 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
8444 New macro. Defines offset of `grub_prefix' within startup.S (relative
8446 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
8447 section within startup.S (relative to `start').
8448 * include/grub/i386/coreboot/kernel.h: Likewise.
8450 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
8451 Overwrite grub_prefix with its contents, at the beginning of the
8453 (main): Understand -p|--prefix.
8455 2008-07-30 Robert Millan <rmh@aybabtu.com>
8457 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
8459 2008-07-30 Robert Millan <rmh@aybabtu.com>
8461 * term/i386/pc/vga_text.c (grub_console_cls): Use
8462 grub_console_gotoxy() to go back to beginning of the screen.
8463 Found by Patrick Georgi <patrick.georgi@coresystems.de>
8465 2008-07-29 Christian Franke <franke@computer.org>
8467 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
8468 Add conversion of emulated mount points on Cygwin.
8470 2008-07-29 Christian Franke <franke@computer.org>
8472 * util/update-grub.in: Add a check for admin
8474 Remove old `grub.cfg.new' before creation.
8475 Add `-f' to `mv' to handle the different filesystem
8476 semantics of Windows.
8478 2008-07-29 Bean <bean123ch@gmail.com>
8480 * normal/main.c (get_line): Fix buffer overflow bug.
8482 2008-07-28 Robert Millan <rmh@aybabtu.com>
8484 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
8485 (struct grub_apple_header): New struct. Describes the layout of
8487 (apple_partition_map_iterate): Check the header magic as well as the
8488 partition magic (which was already being checked).
8490 2008-07-28 Pavel Roskin <proski@gnu.org>
8492 * genmk.rb: Add a warning to the beginning of the output that
8493 it's a generated file and should not be edited.
8495 2008-07-28 Robert Millan <rmh@aybabtu.com>
8497 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
8498 with the same number are found, just use issue a warning with
8499 grub_dprintf(), as this error has been reported to be non-fatal.
8501 2008-07-27 Robert Millan <rmh@aybabtu.com>
8503 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
8506 2008-07-27 Bean <bean123ch@gmail.com>
8508 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
8509 (grub_fat_find_dir): Ignore case when comparing filename.
8511 2008-07-27 Bean <bean123ch@gmail.com>
8513 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
8514 smallino, as it's more descriptive, and i8count can be confused with
8515 the other field count.
8516 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
8519 2008-07-27 Bean <bean123ch@gmail.com>
8521 * commands/crc.c: New file.
8523 * lib/crc.c: Likewise.
8525 * include/grub/lib/crc.h: Likewise.
8527 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
8529 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
8530 (hexdump): Move this function to ...
8532 * lib/hexdump.c: ... here.
8534 * include/grub/hexdump.h: Renamed to ...
8536 * include/grub/lib/hexdump.h: ... this.
8538 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
8540 * util/grub-editenv.c: Likewise.
8542 * include/envblk.h: Renamed to ...
8544 * include/lib/envblk.h: ... this.
8546 * util/envblk.c: Renamed to ...
8548 * lib/envblk.c: ... this.
8550 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
8552 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
8553 (pkglib_MODULES): Add crc.mod.
8554 (hexdump_mod_SOURCES): Add lib/hexdump.c.
8555 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
8556 (crc_mod_SOURCES): New macro.
8557 (crc_mod_CFLAGS): Likewise.
8558 (crc_mod_LDFLAGS): Likewise.
8560 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
8562 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8564 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8566 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8568 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8570 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
8572 * commands/help.c: Include <grub/term.h>.
8573 (TERM_WIDTH): Removed. Updated all users.
8575 2008-07-27 Pavel Roskin <proski@gnu.org>
8577 * util/getroot.c (find_root_device): Rephrase a comment to avoid
8578 spurious warnings about a comment within a comment.
8580 2008-07-25 Robert Millan <rmh@aybabtu.com>
8582 * util/getroot.c (find_root_device): Skip devices that match
8583 /dev/dm-[0-9]. This lets the real device be found for any type of
8584 abstraction (LVM, EVMS, RAID..).
8585 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
8586 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
8587 device is found first, find_root_device() will now skip it.
8589 2008-07-24 Pavel Roskin <proski@gnu.org>
8591 * include/grub/types.h: Use __builtin_bswap32() and
8592 __builtin_bswap64() with gcc 4.3 and newer.
8594 2008-07-24 Christian Franke <franke@computer.org>
8596 * util/i386/pc/grub-install.in: If `--debug' is specified,
8597 pass `--verbose' to grub-setup.
8598 Abort script if make_system_path_relative_to_its_root() fails.
8600 2008-07-24 Bean <bean123ch@gmail.com>
8602 * configure.ac: Fixed a bug caused by the previous cygwin patch,
8603 variable `target_platform' should be `platform'.
8605 2008-07-24 Bean <bean123ch@gmail.com>
8607 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
8608 (grub_png_init_fixed_block): New function.
8609 (grub_png_decode_image_data): Handle fixed huffman code compression.
8611 2008-07-24 Bean <bean123ch@gmail.com>
8613 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
8614 (grub_pe2elf_SOURCES): New macro.
8615 (CLEANFILES): Add grub-pe2elf.
8617 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
8618 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
8619 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
8620 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
8621 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
8622 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
8623 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
8624 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
8625 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
8626 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
8627 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
8628 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
8629 (GRUB_PE32_DT_FUNCTION): Likewise.
8630 (GRUB_PE32_REL_I386_DIR32): Likewise.
8631 (GRUB_PE32_REL_I386_REL32): Likewise.
8632 (grub_pe32_symbol): New structure.
8633 (grub_pe32_reloc): Likewise.
8635 * util/grub-pe2elf.c: New file.
8637 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
8638 start symbol in non pc platform.
8640 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
8642 The following patches are from Christian Franke.
8644 * include/grub/dl.h: Remove .previous, gas supports this only
8647 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
8648 Remove .type, gas supports this only for ELF format.
8650 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
8651 nullbytes in symbol table. This fixes an infinite loop if table is
8654 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
8655 TARGET_IMG_LDFLAGS and EXEEXT.
8657 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
8658 TARGET_IMG_LDFLAGS_AC.
8659 (grub_CHECK_STACK_ARG_PROBE): New function.
8661 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
8663 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
8665 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
8666 to set TARGET_IMG_LD* accordingly.
8667 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
8668 Add call to grub_CHECK_STACK_ARG_PROBE.
8669 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
8671 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
8673 * genmk.rb: Add EXEEXT to CLEANFILES.
8675 2008-07-23 Robert Millan <rmh@aybabtu.com>
8677 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
8678 define the codes for arrows and lines used for the menu).
8679 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
8682 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
8683 fonts, because the latter are too slow.
8685 2008-07-21 Bean <bean123ch@gmail.com>
8687 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
8688 a20. Run keyboard test last, as it will cause macbook to halt.
8690 2008-07-18 Pavel Roskin <proski@gnu.org>
8692 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
8693 load foreign architecture modules correctly anyway. Keep
8694 support for loading host architecture modules, whether we
8695 compile them or not.
8697 2008-07-17 Pavel Roskin <proski@gnu.org>
8699 * configure.ac: Use -m32 or -m64 regardless of whether we had to
8700 change target_cpu. The compiler default can mismatch target_cpu
8703 * disk/efi/efidisk.c: Fix format warnings on x86_64.
8704 * kern/efi/efi.c: Likewise.
8706 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
8707 target compiler is functional.
8708 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
8711 * configure.ac: Default to efi platform for x86_64-apple. Allow
8712 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
8713 adjustments from the rest, only do them if target is not
8714 explicitly given. Merge other adjustments with the final sanity
8715 check. Remove an extraneous check for supported CPU. Be
8716 specific which CPU and which platform is not supported.
8718 * configure.ac: Default to pc platform for x86_64.
8720 2008-07-17 Robert Millan <rmh@aybabtu.com>
8722 Partial LinuxBIOS -> Coreboot rename.
8724 * conf/i386-linuxbios.rmk: Renamed to ...
8725 * conf/i386-coreboot.rmk: ... this.
8726 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
8727 * configure.ac: Accept "coreboot" as input platform (but maintain
8728 compatibility with "linuxbios").
8729 * include/grub/i386/linuxbios: Renamed to ...
8730 * include/grub/i386/coreboot: ... this.
8732 2008-07-17 Bean <bean123ch@gmail.com>
8734 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
8735 (appleldr_mod_SOURCE): New variable.
8736 (appleldr_mod_CFLAGS): Likewise.
8737 (appleldr_mod_LDFLAGS): Likewise.
8738 (pci_mod_SOURCES): Likewise.
8739 (pci_mod_CFLAGS): Likewise.
8740 (pci_mod_LDFLAGS): Likewise.
8741 (lspci_mod_SOURCES): Likewise.
8742 (lspci_mod_CFLAGS): Likewise.
8743 (lspci_mod_LDFLAGS): Likewise.
8745 * conf/x86_64-efi.rmk: New file.
8747 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
8749 (grub_efidisk_write): Likewise.
8751 * include/efi/api.h (efi_call_0): New macro.
8752 (efi_call_1): Likewise.
8753 (efi_call_2): Likewise.
8754 (efi_call_3): Likewise.
8755 (efi_call_4): Likewise.
8756 (efi_call_5): Likewise.
8757 (efi_call_6): Likewise.
8759 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
8760 grub_rescue_cmd_chainloader.
8762 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
8763 (grub_pe32_optional_header): Change some fields based on i386 or
8765 (GRUB_PE32_PE32_MAGIC): Likewise.
8767 * include/grub/efi/uga_draw.h: New file.
8769 * include/grub/elf.h (STN_ABS): New constant.
8770 (R_X86_64_NONE): Relocation constant for x86_64.
8771 (R_X86_64_64): Likewise.
8772 (R_X86_64_PC32): Likewise.
8773 (R_X86_64_GOT32): Likewise.
8774 (R_X86_64_PLT32): Likewise.
8775 (R_X86_64_COPY): Likewise.
8776 (R_X86_64_GLOB_DAT): Likewise.
8777 (R_X86_64_JUMP_SLOT): Likewise.
8778 (R_X86_64_RELATIVE): Likewise.
8779 (R_X86_64_GOTPCREL): Likewise.
8780 (R_X86_64_32): Likewise.
8781 (R_X86_64_32S): Likewise.
8782 (R_X86_64_16): Likewise.
8783 (R_X86_64_PC16): Likewise.
8784 (R_X86_64_8): Likewise.
8785 (R_X86_64_PC8): Likewise.
8787 * include/grub/i386/efi/pci.h: New file.
8789 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
8790 Change it value based on platform.
8791 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
8792 (GRUB_E820_RAM): Likewise.
8793 (GRUB_E820_RESERVED): Likewise.
8794 (GRUB_E820_ACPI): Likewise.
8795 (GRUB_E820_NVS): Likewise.
8796 (GRUB_E820_EXEC_CODE): Likewise.
8797 (GRUB_E820_MAX_ENTRY): Likewise.
8798 (grub_e820_mmap): New structure.
8799 (linux_kernel_header): Change the efi field according to different
8800 kernel version, also field from linux_kernel_header.
8802 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
8804 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
8805 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
8806 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
8807 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
8808 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
8809 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
8810 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
8811 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
8812 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
8813 (GRUB_PCI_ADDR_IO_MASK): Likewise.
8815 * include/grub/x86_64/efi/kernel.h: New file.
8817 * include/grub/x86_64/efi/loader.h: Likewise.
8819 * include/grub/x86_64/efi/machine.h: Likewise.
8821 * include/grub/x86_64/efi/pci.h: Likewise.
8823 * include/grub/x86_64/efi/time.h: Likewise.
8825 * include/grub/x86_64/linux.h: Likewise.
8827 * include/grub/x86_64/setjmp.h: Likewise.
8829 * include/grub/x86_64/time.h: Likewise.
8831 * include/grub/x86_64/types.h: Likewise.
8833 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
8834 GRUB_TARGET_SIZEOF_VOID_P.
8836 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
8837 (grub_efi_locate_handle): Likewise.
8838 (grub_efi_open_protocol): Likewise.
8839 (grub_efi_set_text_mode): Likewise.
8840 (grub_efi_stall): Likewise.
8841 (grub_exit): Likewise.
8842 (grub_reboot): Likewise.
8843 (grub_halt): Likewise.
8844 (grub_efi_exit_boot_services): Likewise.
8845 (grub_get_rtc): Likewise.
8847 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
8848 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
8849 (grub_efi_allocate_pages): Wrap efi calls.
8850 (grub_efi_free_pages): Wrap efi calls.
8851 (grub_efi_get_memory_map): Wrap efi calls.
8853 * kern/x86_64/dl.c: New file.
8855 * kern/x86_64/efi/callwrap.S: Likewise.
8857 * kern/x86_64/efi/startup.S: Likewise.
8859 * loader/efi/appleloader.c: Likewise.
8861 * loader/efi/chainloader.c (cmdline): New variable.
8862 (grub_chainloader_unload): Wrap efi calls.
8863 (grub_chainloader_boot): Likewise.
8864 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
8867 * loader/efi/chainloader_normal.c (chainloader_command):
8868 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
8871 * loader/i386/efi/linux.c (allocate_pages): Change allocation
8873 (grub_e820_add_region): New function.
8874 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
8876 (grub_find_video_card): New function.
8877 (grub_linux_setup_video): New function.
8878 (grub_rescue_cmd_linux): Probe for video information.
8880 * normal/x86_64/setjmp.S: New file.
8882 * term/efi/console.c (map_char): New function.
8883 (grub_console_putchar): Map unicode char.
8884 (grub_console_checkkey): Wrap efi calls.
8885 (grub_console_getkey): Likewise.
8886 (grub_console_getwh): Likewise.
8887 (grub_console_gotoxy): Likewise.
8888 (grub_console_cls): Likewise.
8889 (grub_console_setcolorstate): Likewise.
8890 (grub_console_setcursor): Likewise.
8892 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
8894 2008-07-16 Pavel Roskin <proski@gnu.org>
8896 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
8899 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
8900 pointer, not an integer. This fixes a warning and prevents
8901 precision loss on 64-bit systems.
8902 (relocate_addresses): Remove unneeded cast.
8904 2008-07-15 Pavel Roskin <proski@gnu.org>
8906 * kern/i386/ieee1275/init.c: Include grub/cache.h.
8908 * term/ieee1275/ofconsole.c: Disable code unused on i386.
8910 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
8911 Fix comparison between signed and unsigned.
8913 * include/grub/i386/ieee1275/console.h: Declare
8914 grub_console_init() and grub_console_fini().
8916 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
8917 It's empty and unused.
8919 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
8920 beginning to avoid warnings with some compilers.
8922 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
8923 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
8925 2008-07-14 Pavel Roskin <proski@gnu.org>
8927 * kern/env.c (grub_register_variable_hook): Don't copy empty
8928 string, it leaks memory. Pass "" to grub_env_set(), it should
8929 handle constant strings.
8931 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
8932 * commands/cmp.c (grub_cmd_cmp): Likewise.
8933 * kern/dl.c (grub_dl_flush_cache): Likewise.
8934 (grub_dl_load_core): Likewise.
8935 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
8936 (grub_elf64_load_phdrs): Likewise.
8938 2008-07-13 Pavel Roskin <proski@gnu.org>
8940 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
8941 between signed and unsigned.
8942 (LzmaEnc_Finish): Fix warning about an unused parameter.
8944 2008-07-13 Bean <bean123ch@gmail.com>
8946 * Makefile.in (enable_lzo): New rule.
8948 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
8950 * configure.ac (ENABLE_LZO): New option --enable-lzo.
8952 * boot/i386/pc/lnxboot.S: #include <config.h>.
8954 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
8955 its value according to the compression algorithm used, lzo or lzma.
8957 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
8958 compression algorithm according to configure macro.
8960 * kern/i386/pc/startup.S (codestart): Likewise.
8962 * kern/i386/pc/lzma_decode.S: New file.
8964 * include/grub/lib/LzFind.h: Likewise.
8966 * include/grub/lib/LzHash.h: Likewise.
8968 * include/grub/lib/LzmaDec.h: Likewise.
8970 * include/grub/lib/LzmaEnc.h: Likewise.
8972 * include/grub/lib/LzmaTypes.h: Likewise.
8974 * lib/LzFind.c: Likewise.
8976 * lib/LzmaDec.c: Likewise.
8978 * lib/LzmaEnc.c: Likewise.
8980 2008-07-13 Bean <bean123ch@gmail.com>
8982 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
8983 (grub_ext4_extent_header): New structure.
8984 (grub_ext4_extent): Likewise.
8985 (grub_ext4_extent_idx): Likewise.
8986 (grub_ext4_find_leaf): New function.
8987 (grub_ext2_read_block): Handle extents.
8989 2008-07-12 Robert Millan <rmh@aybabtu.com>
8991 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
8993 2008-07-11 Robert Millan <rmh@aybabtu.com>
8995 * util/grub.d/40_custom.in: New file. Example on how to add custom
8996 entries to /etc/grub.d.
8997 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
8998 40_custom (implicitly, by merging all the grub.d rules).
9000 2008-07-11 Pavel Roskin <proski@gnu.org>
9002 * commands/read.c (grub_getline): Fix invalid memory access.
9003 Don't add newline to the variable value.
9005 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
9006 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
9007 (serial_hw_get_port): Check validity of the port number.
9008 (grub_cmd_serial): Check return value of serial_hw_get_port().
9010 2008-07-07 Pavel Roskin <proski@gnu.org>
9012 * boot/i386/pc/diskboot.S (notification_string): Replace
9013 "Loading kernel" with just "loading". This is shorter, less
9014 confusing and saves a few bytes for possible future changes.
9016 2008-07-05 Pavel Roskin <proski@gnu.org>
9018 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
9019 size for ATAPI devices, they are undefined. Output sector
9020 number in decimal form.
9022 * disk/ata.c: Use named constants for status bits.
9024 2008-07-04 Pavel Roskin <proski@gnu.org>
9026 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
9027 grub_addr_t before casting it to the void pointer to fix a
9028 warning. Non-addressable regions are discarded earlier.
9029 (grub_arch_modules_addr): Cast _end to grub_addr_t.
9030 * kern/i386/linuxbios/table.c: Include grub/misc.h.
9031 (check_signature): Don't shadow table_header.
9032 (grub_linuxbios_table_iterate): Cast numeric constants to
9033 grub_linuxbios_table_header_t.
9034 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
9037 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
9040 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
9041 pointer, which can cause warnings. Support 64-bit addresses.
9043 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
9044 of sizeof(long). This fixes PowerPC image generation on x86_64.
9046 2008-07-04 Robert Millan <rmh@aybabtu.com>
9048 This fixes a performance issue when pc & gpt partmap iterators
9049 didn't abort iteration even after our hook found what it was
9050 looking for (often causing expensive probes of non-existent drives).
9052 Some callers relied on previous buggy behaviour, since they would
9053 raise an error when their own hooks caused early abortion of its
9056 * kern/device.c (grub_device_open): Improve error message.
9057 * disk/lvm.c (grub_lvm_open): Likewise.
9058 * disk/raid.c (grub_raid_open): Likewise.
9060 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
9061 when hook requests it, independently of grub_errno.
9062 (pc_partition_map_probe): Do not fail when find_func() caused
9063 early abortion of pc_partition_map_iterate().
9065 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
9066 when hook requests it, independently of grub_errno.
9067 (gpt_partition_map_probe): Do not fail when find_func() caused
9068 early abortion of gpt_partition_map_iterate().
9070 * kern/partition.c (grub_partition_iterate): Abort parent iteration
9071 when hook requests it, independently of grub_errno. Do not fail when
9072 part_map_iterate_hook() caused early abortion of p->iterate().
9074 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
9075 when grub_partition_iterate() returned with non-zero.
9077 2008-07-03 Pavel Roskin <proski@gnu.org>
9079 * disk/ata.c (grub_ata_pio_write): Check status before writing,
9080 like we do in grub_ata_pio_read().
9081 (grub_ata_readwrite): Always write individual sectors. Fix the
9082 sector count for the remainder.
9083 (grub_ata_write): Enable writing to ATA devices. Correctly
9084 report error for ATAPI devices.
9086 2008-07-02 Pavel Roskin <proski@gnu.org>
9088 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
9091 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
9092 for every read sector, we already increment it for the whole
9093 batch. This fixes reading more than 256 sectors at once.
9095 * util/grub-editenv.c (cmd_info): Cast argument to long
9096 explicitly. ptrdiff_t reduces to int on i386.
9098 * util/grub-editenv.c (main): Be specific which parameter is
9101 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
9102 (memdisk): Make memdisk_orig_addr a pointer.
9104 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
9105 for file offsets, use grub_off_t instead. Fix printf format
9108 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
9109 there. Real unexpected warnings should not drown in the noise
9110 about known problems.
9112 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
9113 grub_disk_addr_t for memory addresses.
9115 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
9116 explicitly to fix a warning.
9118 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
9120 * Makefile.in (MODULE_LDFLAGS): New variable.
9121 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
9122 the linker accepts --build-id=none.
9123 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
9125 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
9127 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
9128 those in Linux XFS code. Provide a way to access 64-bit parent
9130 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
9131 the end of struct grub_xfs_dir_header.
9133 2008-07-02 Bean <bean123ch@gmail.com>
9135 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
9136 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9137 and GRUB_IEEE1275_FLAG_NO_ANSI.
9139 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
9140 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9141 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
9143 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
9144 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
9146 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
9147 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
9149 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
9150 esc sequence on non ANSI terminal.
9151 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
9153 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
9156 2008-07-02 Bean <bean123ch@gmail.com>
9158 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
9159 (grub_editenv_SOURCES): New variable.
9160 (pkglib_MODULES): Add loadenv.mod.
9161 (loadenv_mod_SOURCES): New variable.
9162 (loadenv_mod_CFLAGS): Likewise.
9163 (loadenv_mod_LDFLAGS): Likewise.
9165 * include/grub/envblk.h: New file.
9167 * util/envblk.c: New file.
9169 * util/grub-editenv.c: New file.
9171 * commands/loadenv.c: New file.
9173 2008-07-01 Pavel Roskin <proski@gnu.org>
9175 * include/multiboot2.h (struct multiboot_tag_module): Use char,
9176 not unsigned char. This fixes warnings and is consistent with
9179 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
9181 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
9183 * term/tparm.c (analyze): Always set *popcount.
9185 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
9186 cast to fix a warning.
9188 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
9189 cast to suppress a warning.
9191 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
9192 grub_fshelp_read_file() expects.
9194 * fs/fat.c: Fix UUID calculation on big-endian systems. We
9195 write uuid as a 32-bit value in CPU byte order, so declare and
9198 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
9199 long if the format specifier expects it.
9200 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
9201 * partmap/pc.c (pc_partition_map_iterate): Likewise.
9202 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
9203 long to fix a warning.
9204 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
9205 grub_dprintf() arguments to fix warnings.
9207 2008-06-30 Pavel Roskin <proski@gnu.org>
9209 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
9210 install_bsd_part immediately before core.img is embedded or
9211 modified on disk. This fixes core.img verification if core.img
9214 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
9215 core_path to calculate the blocklist.
9216 Patch from Javier MartÃn <lordhabbit@gmail.com>
9218 2008-06-29 Robert Millan <rmh@aybabtu.com>
9220 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
9221 block to disk block.
9222 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
9223 Patch from Niels Böhm <bitbucket@arcor.de>
9225 2008-06-29 Robert Millan <rmh@aybabtu.com>
9227 * util/update-grub_lib.in (font_path): Search for fonts in
9228 /boot/grub first, which is more likely to be readable (we aren't
9229 deciding where fonts live, just looking for them).
9231 2008-06-26 Pavel Roskin <proski@gnu.org>
9233 * util/biosdisk.c (read_device_map): Don't leave dead map
9234 entries for devices failing stat() check.
9236 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
9237 core_path_dev for the core.img path on the target device.
9239 2008-06-26 Robert Millan <rmh@aybabtu.com>
9241 * disk/fs_uuid.c: New file.
9242 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
9243 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
9244 (fs_uuid_mod_LDFLAGS): New variables.
9245 * include/grub/disk.h (grub_disk_dev_id): Add
9246 `GRUB_DISK_DEVICE_UUID_ID'.
9247 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
9248 implement iterate().
9250 2008-06-26 Robert Millan <rmh@aybabtu.com>
9252 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
9253 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
9254 Linux image includes no initrd.
9256 2008-06-21 Javier MartÃn <lordhabbit@gmail.com>
9258 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
9259 call to resolve the core image location that effectively appended the
9262 2008-06-21 Robert Millan <rmh@aybabtu.com>
9264 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
9267 * util/grub.d/10_hurd.in: ... to here ...
9268 * util/grub.d/10_linux.in: ... and here.
9270 2008-06-19 Robert Millan <rmh@aybabtu.com>
9272 * kern/main.c (grub_main): Export `prefix' variable immediately
9273 after it has been set by grub_machine_set_prefix().
9275 2008-06-19 Robert Millan <rmh@aybabtu.com>
9277 * commands/search.c (search_label, search_fs_uuid, search_file): Print
9278 search result when not saving to variable, not the other way around.
9279 When saving to variable, abort iteration as soon as a match is found.
9281 2008-06-19 Robert Millan <rmh@aybabtu.com>
9283 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
9284 check for partition that provides /boot/grub. Its logic is flawed,
9285 as it prevents prepare_grub_to_access_device() from being called
9288 2008-06-19 Robert Millan <rmh@aybabtu.com>
9290 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
9291 "insmod" command directly when abstraction modules are needed,
9292 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
9293 since it had already been processed).
9295 2008-06-19 Pavel Roskin <proski@gnu.org>
9297 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
9298 changed. This is needed in case GRUB_LIBDIR changes.
9299 * conf/i386-ieee1275.rmk: Likewise.
9300 * conf/i386-linuxbios.rmk: Likewise.
9301 * conf/i386-pc.rmk: Likewise.
9302 * conf/powerpc-ieee1275.rmk: Likewise.
9304 2008-06-18 Pavel Roskin <proski@gnu.org>
9306 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
9307 kernel_elf_symlist.c to symlist.c for consistency with other
9308 architectures. Update all users.
9309 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9311 2008-06-18 Robert Millan <rmh@aybabtu.com>
9313 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
9316 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
9317 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
9318 a RAID device, run setup() for all members independently on whether
9319 LVM abstraction is being used.
9320 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
9321 If grub-mkimage has set `*install_dos_part == -2', don't override this
9323 Perform *install_dos_part adjustments independently on whether
9324 we're embedding or not.
9325 Clarify error message when image is too big for embedding.
9326 Remove duplicate *install_dos_part stanza.
9328 2008-06-17 Robert Millan <rmh@aybabtu.com>
9330 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
9331 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
9333 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
9334 values in grub_ofconsole_normal_color and
9335 grub_ofconsole_highlight_color (they're not directly related to
9336 background and foreground).
9337 (grub_ofconsole_setcolorstate): Extract background and foreground
9338 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
9340 2008-06-17 Robert Millan <rmh@aybabtu.com>
9342 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
9343 /boot/grub for the check in last commit, not /boot (they could be
9344 different partitions).
9346 2008-06-16 Robert Millan <rmh@aybabtu.com>
9348 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
9349 asked to setup access for the same partition that provides /boot,
9350 don't bother using UUIDs since our root already has the value we
9353 2008-06-16 Robert Millan <rmh@aybabtu.com>
9355 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
9357 Patch from Sven Mueller <sven@debian.org>.
9359 2008-06-16 Robert Millan <rmh@aybabtu.com>
9361 * util/update-grub.in: Check for $EUID instead of $UID.
9362 Reported by Vincent Zweije.
9364 2008-06-16 Bean <bean123ch@gmail.com>
9366 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
9367 (grub_ext2_read_block): Likewise.
9368 (grub_ext2_read_inode): Likewise.
9369 (grub_ext2_mount): Likewise.
9370 (grub_ext2_close): Likewise.
9371 (grub_ext3_get_journal): Removed.
9373 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
9374 (grub_reiserfs_read_symlink): Likewise.
9375 (grub_reiserfs_mount): Likewise.
9376 (grub_reiserfs_open): Likewise.
9377 (grub_reiserfs_read): Likewise.
9378 (grub_reiserfs_close): Likewise.
9379 (grub_reiserfs_get_journal): Removed.
9381 * fs/fshelp.c (grub_fshelp_read): Removed.
9382 (grub_fshelp_map_block): Likewise.
9384 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
9385 (grub_fshelp_journal): Likewise.
9386 (grub_fshelp_read): Likewise.
9387 (grub_fshelp_map_block): Likewise.
9389 2008-06-16 Pavel Roskin <proski@gnu.org>
9391 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
9392 floating point anymore.
9393 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
9395 2008-06-15 Pavel Roskin <proski@gnu.org>
9397 * commands/ls.c (grub_ls_list_files): Use integer calculations
9398 for human readable format, avoid floating point use.
9399 * kern/misc.c (grub_ftoa): Remove.
9400 (grub_vsprintf): Remove floating point support.
9402 2008-06-15 Robert Millan <rmh@aybabtu.com>
9404 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
9406 Reported by Max Vozeler.
9408 2008-06-15 Robert Millan <rmh@aybabtu.com>
9410 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
9411 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
9413 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
9414 the beginning of the prefix.
9416 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
9417 It is assumed that if we have a memdisk, grub-mkimage has set
9418 grub_prefix to include the "(memdisk)" drive in it.
9420 2008-06-15 Robert Millan <rmh@aybabtu.com>
9422 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
9423 Initialize keyboard controller after registering the terminal, so that
9424 grub_printf() can be called from grub_keyboard_controller_init().
9426 2008-06-15 Robert Millan <rmh@aybabtu.com>
9428 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
9429 extent-btree which is written as big endian on disk.
9430 Reported by Alain Greppin <al@chilibi.org>.
9432 2008-06-14 Robert Millan <rmh@aybabtu.com>
9434 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
9435 * util/i386/pc/grub-install.in (modules): Likewise.
9437 2008-06-13 Pavel Roskin <proski@gnu.org>
9439 * commands/ls.c (grub_ls_list_files): Fix format warnings.
9441 2008-06-13 Bean <bean123ch@gmail.com>
9443 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
9445 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
9447 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
9448 to indicate sparse block.
9450 2008-06-12 Pavel Roskin <proski@gnu.org>
9452 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
9453 number, grub_fshelp_read() does it for us.
9455 * fs/fshelp.c (grub_fshelp_read): New function. Implement
9456 linear disk read with journal translation.
9457 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
9458 * include/grub/fshelp.h: Declare grub_fshelp_read().
9460 2008-06-09 Pavel Roskin <proski@gnu.org>
9462 * fs/minix.c (grub_minix_mount): Handle error reading
9465 2008-06-08 Robert Millan <rmh@aybabtu.com>
9467 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
9468 don't append the RAID prefix afterwards.
9469 Reported by Clint Adams.
9471 2008-06-08 Robert Millan <rmh@aybabtu.com>
9473 Based on description from Pavel:
9474 * kern/disk.c (grub_disk_check_range): Rename to ...
9475 (grub_disk_adjust_range): ... this. Add a comment explaining the
9476 tasks performed by this function.
9478 2008-06-08 Robert Millan <rmh@aybabtu.com>
9480 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
9481 `num_serial' (for consistency with other variables).
9482 (struct grub_ntfs_data): Add `uuid' member.
9483 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
9484 (grub_ntfs_uuid): New function.
9485 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
9487 2008-06-07 Pavel Roskin <proski@gnu.org>
9489 * util/biosdisk.c (open_device): Revert last change to the
9490 function, it broke installation. The sector needs to be
9491 different dependent on which device is opened.
9493 2008-06-06 Robert Millan <rmh@aybabtu.com>
9495 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
9496 rest of GRUB, and breakage doesn't happen if its value were modified.
9498 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
9499 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
9500 a constant (same value).
9501 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
9502 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
9504 2008-06-06 Robert Millan <rmh@aybabtu.com>
9506 * util/biosdisk.c (open_device): Do not modify sector offset when
9507 accessing a partition. kern/disk.c already handles this for us.
9509 2008-06-06 Robert Millan <rmh@aybabtu.com>
9511 * util/grub-emu.c (grub_machine_init): Move code in this function from
9513 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
9514 segfault in case grub_printf() is called).
9516 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
9517 grub_probe. Update all users not to explicitly add it again.
9518 (grub_device): New variable; contains corresponding device for grubdir.
9519 (fs_module, partmap_module, devabstraction_module): Pass
9520 `--device ${grub_device}' to grub_probe to avoid traversing /dev
9523 2008-06-05 Robert Millan <rmh@aybabtu.com>
9525 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
9526 is found, print it (same layout as with labels).
9528 2008-06-04 Robert Millan <rmh@aybabtu.com>
9530 * util/biosdisk.c (get_drive): Rename to ...
9531 (find_grub_drive): ... this. Update all users.
9533 (get_os_disk): Rename to ...
9534 (convert_system_partition_to_system_disk): ... this. Update all users.
9536 (find_drive): Rename to ...
9537 (find_system_device): ... this. Update all users.
9539 2008-06-04 Robert Millan <rmh@aybabtu.com>
9541 * util/biosdisk.c (get_os_disk): Handle IDA devices.
9542 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9543 (make_device_map): Likewise.
9545 2008-06-01 Robert Millan <rmh@aybabtu.com>
9547 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
9548 before dereferencing it.
9550 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
9551 union with fat12/fat16-specific ones. Add some new fields, including
9552 `num_serial' for both versions.
9553 (struct grub_fat_data): Add `uuid' member.
9554 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
9555 names. Initialize `data->uuid' using `num_serial'.
9556 (grub_fat_uuid): New function.
9557 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
9559 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
9560 (grub_reiserfs_uuid): New function.
9561 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
9564 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
9565 (grub_xfs_uuid): New function.
9566 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
9568 2008-06-01 Robert Millan <rmh@aybabtu.com>
9570 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
9571 code that is backward compatible with pre-uuid search command.
9573 2008-05-31 Robert Millan <rmh@aybabtu.com>
9575 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
9576 floppies after everything else, to ensure floppy drive isn't accessed
9577 unnecessarily (patch from Bean).
9579 2008-05-31 Robert Millan <rmh@aybabtu.com>
9581 * commands/search.c (search_label, search_fs_uuid, search_file): Do
9582 not print device names when we were asked to set a variable.
9584 2008-05-31 Robert Millan <rmh@aybabtu.com>
9586 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
9587 using "cursor-on" and "cursor-off" commands (understood at least by
9588 the Open Firmware flavour on OLPC).
9590 2008-05-31 Michael Gorven <michael@gorven.za.net>
9592 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
9593 on and off sequences.
9595 2008-05-31 Robert Millan <rmh@aybabtu.com>
9597 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
9598 * util/update-grub.in: Likewise.
9600 2008-05-30 Pavel Roskin <proski@gnu.org>
9602 * util/biosdisk.c (linux_find_partition): Simplify logic and
9603 make the code more universal. Keep special processing for
9604 devfs, but use a simple rule for all other devices. If the
9605 device ends with a number, append 'p' and the partition number.
9606 Otherwise, append only the partition number.
9608 2008-05-30 Robert Millan <rmh@aybabtu.com>
9610 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
9611 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
9612 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
9613 the `root' parameter to Linux.
9615 2008-05-30 Robert Millan <rmh@aybabtu.com>
9617 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
9618 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
9619 --fs_uuid with --fs-uuid.
9620 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
9621 all filesystems support them).
9623 2008-05-30 Robert Millan <rmh@aybabtu.com>
9625 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
9626 grub_printf() flags, since we're printing in units of 2 bytes.
9628 2008-05-30 Robert Millan <rmh@aybabtu.com>
9630 * util/grub.d/00_header.in: Remove obsolete comment referencing
9631 convert_system_path_to_grub_path().
9632 * util/update-grub.in: Likewise.
9633 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
9634 (convert_system_path_to_grub_path): Add a warning message explaining
9635 that this function is deprecated. Rely on is_path_readable_by_grub()
9636 for the readability checks.
9637 (font_path): Use is_path_readable_by_grub() for the readability
9638 check rather than convert_system_path_to_grub_path().
9640 2008-05-30 Robert Millan <rmh@aybabtu.com>
9642 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
9643 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
9644 converting it first.
9645 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
9646 grub.cfg for access to font file, and afterwards call it again to set
9649 2008-05-30 Robert Millan <rmh@aybabtu.com>
9651 * commands/search.c (options): Add --fs_uuid option.
9652 (search_fs_uuid): New function.
9653 (grub_cmd_search): Fix --set argument passing.
9654 Use search_fs_uuid() when requested via --fs_uuid.
9655 (grub_search_init): Update help message.
9656 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
9657 and redeclare it as an array of 16-bit words.
9658 (grub_ext2_uuid): New function.
9659 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
9660 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
9661 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
9662 (GRUB_DEVICE_BOOT_UUID): New variables.
9663 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
9664 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
9666 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
9667 just assume `root' variable has the right value.
9668 * util/grub.d/10_linux.in: Likewise.
9669 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
9671 (main): Recognise `-t fs_uuid' argument.
9673 2008-05-30 Robert Millan <rmh@aybabtu.com>
9675 * util/biosdisk.c (map): Redefine structure to hold information
9676 about GRUB drive name.
9677 (get_drive): Reimplement without assuming (and verifying) BIOS-like
9679 (call_hook): Remove.
9680 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
9681 member. Assume drive has partitions.
9682 (grub_util_biosdisk_open): Access device names via `.device' struct
9684 (open_device): Likewise.
9685 (find_drive): Likewise.
9686 (read_device_map): Adjust map[] usage to match the new struct
9687 definition. Don't check for duplicates (still possible, but not cheap
9689 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
9690 (make_device_name): Remove assumption of BIOS-like drive names.
9692 2008-05-30 Pavel Roskin <proski@gnu.org>
9694 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
9695 compiling execute.c doesn't need grub_script.tab.h anymore.
9696 (normal/command.c_DEPENDENCIES): Likewise.
9697 (normal/function.c_DEPENDENCIES): Likewise.
9698 * conf/i386-ieee1275.rmk: Likewise.
9699 * conf/i386-linuxbios.rmk: Likewise.
9700 * conf/i386-pc.rmk: Likewise.
9701 * conf/powerpc-ieee1275.rmk: Likewise.
9702 * conf/sparc64-ieee1275.rmk: Likewise.
9704 2008-05-29 Pavel Roskin <proski@gnu.org>
9706 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
9707 when scanning metadata for volume group name.
9709 * include/grub/script.h: Don't include grub_script.tab.h. It's
9710 a generated file, which may only be included from the files with
9711 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
9712 use union YYSTYPE, as the later allows forward declaration.
9713 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
9715 2008-05-29 Robert Millan <rmh@aybabtu.com>
9717 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
9718 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
9719 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
9720 (grub_console_checkkey): Add grub_dprintf() call to report unknown
9723 2008-05-29 Robert Millan <rmh@aybabtu.com>
9725 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
9726 control key combinations.
9728 2008-05-29 Robert Millan <rmh@aybabtu.com>
9730 * util/powerpc/ieee1275/grub-install.in: Move from here ...
9731 * util/ieee1275/grub-install.in: ... to here.
9732 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
9733 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
9734 (grub_install_SOURCES): Likewise.
9736 2008-05-29 Robert Millan <rmh@aybabtu.com>
9738 * fs/affs.c: Update copyright year.
9739 * fs/ext2.c: Likewise.
9740 * fs/fshelp.c: Likewise.
9741 * fs/hfsplus.c: Likewise.
9742 * fs/ntfs.c: Likewise.
9743 * fs/xfs.c: Likewise.
9744 * include/grub/fshelp.h: Likewise.
9745 * util/grub-mkdevicemap.c: Likewise.
9747 2008-05-28 Robert Millan <rmh@aybabtu.com>
9749 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
9750 might need to be fatfs to support some firmware implementations
9753 2008-05-28 Robert Millan <rmh@aybabtu.com>
9755 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
9757 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9758 (make_device_map): Likewise.
9760 2008-05-20 Bean <bean123ch@gmail.com>
9762 * fs/fshelp.c (grub_fshelp_map_block): New function.
9763 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
9764 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
9766 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
9767 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
9768 (grub_fshelp_journal): New structure.
9769 (grub_fshelp_map_block): New function prototype.
9770 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
9771 (grub_fshelp_map_block): Likewise.
9773 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
9774 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
9775 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
9776 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
9777 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
9778 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
9779 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
9780 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
9781 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
9782 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
9783 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
9784 (grub_ext2_sblock): New members for journal support.
9785 (grub_ext3_journal_header): New structure.
9786 (grub_ext3_journal_revoke_header): Likewise.
9787 (grub_ext3_journal_block_tag): Likewise.
9788 (grub_ext3_journal_sblock): Likewise.
9789 (grub_fshelp_node): New members logfile and journal.
9790 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
9791 grub_fshelp_map_block to get real block number.
9792 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
9794 (grub_ext2_read_inode): Likewise.
9795 (grub_ext3_get_journal): New function.
9796 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
9797 (grub_ext2_close): Release memory used by journal.
9799 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
9800 (REISERFS_MAGIC_DESC_BLOCK): New macro.
9801 (grub_reiserfs_transaction_header): Renamed to
9802 grub_reiserfs_description_block, replace field data with real_blocks.
9803 (grub_reiserfs_commit_block): New structure.
9804 (grub_reiserfs_data): New member journal.
9805 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
9807 (grub_reiserfs_read_symlink): Likewise.
9808 (grub_reiserfs_iterate_dir): Likewise.
9809 (grub_reiserfs_open): Likewise.
9810 (grub_reiserfs_read): Likewise.
9811 (grub_reiserfs_get_journal): New function.
9812 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
9813 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
9814 using grub_reiserfs_get_journal.
9815 (grub_reiserfs_close): Release memory used by journal.
9817 * fs/affs.c (grub_affs_read_block): Change block type to
9818 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
9820 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
9822 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
9824 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
9826 * fs/udf.c (grub_udf_read_block): Change block type to
9827 grub_disk_addr_t. Use type cast to avoid warning.
9829 * fs/xfs.c (grub_xfs_read_block): Likewise.
9831 2008-05-16 Christian Franke <franke@computer.org>
9833 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
9834 to ensure that break with ESC will always work.
9835 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
9836 Remove ESC from keyboard queue.
9838 2008-05-16 Christian Franke <franke@computer.org>
9840 * util/biosdisk.c: [__CYGWIN__] Add includes.
9841 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
9842 (get_os_disk): Move variable declarations to OS specific
9843 parts to avoid warning.
9844 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
9845 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
9846 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
9848 * util/getroot.c: [__CYGWIN__] Add includes.
9849 (strip_extra_slashes): Fix "/" case.
9850 [__CYGWIN__] (get_win32_path): New function.
9851 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
9852 [__CYGWIN__] (find_root_device): Disable.
9853 [__CYGWIN__] (get_bootsec_serial): New function.
9854 [__CYGWIN__] (find_cygwin_root_device): Likewise.
9855 [__linux__] (grub_guess_root_device): Add early returns to simplify
9857 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
9858 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
9859 check for Linux only.
9861 2008-05-15 Bean <bean123ch@gmail.com>
9863 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
9864 keyboard hang problem in apple's intel mac.
9866 2008-05-09 Robert Millan <rmh@aybabtu.com>
9868 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
9870 * util/grub-mkdevicemap.c (get_virtio_disk_name)
9871 (make_device_map): Likewise.
9872 Reported by Aurelien Jarno <aurel32@debian.org>
9874 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
9876 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
9877 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
9878 (make_device_map): Output entries for xvd type disks.
9880 2008-05-07 Robert Millan <rmh@aybabtu.com>
9882 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
9884 * util/grub-mkdevicemap.c (get_cciss_disk_name)
9885 (make_device_map): Likewise.
9886 Reported by Roland Dreier <rdreier@cisco.com>
9888 2008-05-07 Robert Millan <rmh@aybabtu.com>
9890 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
9891 grub_strstr() call. Correct a few mistakes in failure path handling.
9893 2008-05-06 Robert Millan <rmh@aybabtu.com>
9895 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
9896 Do not print a trailing slash (therefore, the root directory is an
9898 (convert_system_path_to_grub_path): Do not remove trailing slash
9899 from make_system_path_relative_to_its_root() output.
9901 * util/i386/pc/grub-install.in: Add trailing slash to output from
9902 make_system_path_relative_to_its_root().
9904 2008-05-06 Robert Millan <rmh@aybabtu.com>
9906 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
9907 ensures that output lines aren't intermangled with those sent to
9908 stderr (via grub_util_info()).
9909 * util/grub-probe.c (grub_refresh): Likewise.
9910 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
9912 2008-05-05 Christian Franke <franke@computer.org>
9914 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
9915 Add Cygwin device names.
9916 (get_ide_disk_name) [__CYGWIN__]: Likewise.
9917 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
9918 (check_device): Return error instead of success on empty name.
9919 (make_device_map): Move label inside linux specific code to
9920 prevent compiler warning.
9922 2008-04-30 Robert Millan <rmh@aybabtu.com>
9924 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
9925 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
9927 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
9929 2008-04-29 Robert Millan <rmh@aybabtu.com>
9931 * docs/grub.cfg: New file (example GRUB configuration).
9933 2008-04-26 Robert Millan <rmh@aybabtu.com>
9935 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
9936 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
9937 and `disk/ieee1275/nand.c'.
9939 2008-04-25 Bean <bean123ch@gmail.com>
9941 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
9944 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
9945 change the buffer size to 4096 for cdrom device.
9947 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
9949 (_linux_mod_SOURCES): New variable.
9950 (_linux_mod_CFLAGS): Likewise.
9951 (_linux_mod_LDFLAGS): Likewise.
9952 (linux_mod_SOURCES): Likewise.
9953 (linux_mod_CFLAGS): Likewise.
9954 (linux_mod_LDFLAGS): Likewise.
9955 (nand_mod_SOURCES): Likewise.
9956 (nand_mod_CFLAGS): Likewise.
9957 (nand_mod_LDFLAGS): Likewise.
9959 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
9960 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
9961 type property. (nand device in olpc don't have this property)
9963 * include/grub/disk.h (grub_disk_dev_id): New macro
9964 GRUB_DISK_DEVICE_NAND_ID.
9966 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
9968 (grub_rescue_cmd_initrd): Likewise.
9970 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
9971 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
9972 ofw_cif_handler and ofw_idt, adjust padding number.
9974 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
9975 GRUB_MACHINE_IEEE1275 is defined.
9977 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
9978 Use NESTED_FUNC_ATTR attribute on the hook parameter.
9980 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
9981 on nested function heap_init.
9982 (grub_upper_mem): New variable for i386-ieee1275.
9983 (grub_get_extended_memory): New function for i386-ieee1275.
9984 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
9986 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
9987 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
9990 * loader/i386/ieee1275/linux.c: New file.
9992 * loader/i386/ieee1275/linux_normal.c: New file.
9994 * disk/ieee1275/nand.c: New file.
9996 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
9998 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
10000 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
10002 2008-04-18 Robert Millan <rmh@aybabtu.com>
10004 Restructures early code path on ieee1275 to unify grub_main() as
10005 the first C function that is executed in every platform.
10007 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
10008 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
10010 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
10011 * kern/ieee1275/cmain.c (cmain): Rename to ...
10012 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
10013 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
10016 2008-04-18 Robert Millan <rmh@aybabtu.com>
10018 * util/update-grub.in: Fix syntax error when setting
10019 `GRUB_PRELOAD_MODULES'.
10020 Reported by Stephane Chazelas <stephane@artesyncp.com>
10022 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
10024 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
10025 section into account, newer toolchains generate unique build ids
10026 * configure.ac: remove the test for --build-id=none acceptance,
10027 we want build ids to be preserved
10028 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
10029 far from other sections don't cause the raw binary images grow
10032 2008-04-15 Robert Millan <rmh@aybabtu.com>
10034 * disk/lvm.c: Update copyright year.
10035 * kern/misc.c: Likewise.
10037 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10039 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
10040 there is no memory left for physical volume name.
10042 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10044 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
10045 volume name mapping to support bigger than 9 character names properly.
10047 2008-04-13 Robert Millan <rmh@aybabtu.com>
10049 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
10050 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
10052 2008-04-13 Christian Franke <franke@computer.org>
10054 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
10055 to create a floppy emulation boot CD when non emulation mode
10057 Enable Joliet CD filesystem extension.
10059 2008-04-13 Robert Millan <rmh@aybabtu.com>
10061 * kern/misc.c (grub_strncat): Fix off-by-one error.
10062 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
10064 * kern/env.c (grub_env_context_close): Clear current context, not
10066 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
10068 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
10070 2008-04-13 Robert Millan <rmh@aybabtu.com>
10072 Improve robustness when handling LVM.
10074 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
10075 (and leave `*p' unmodified).
10076 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
10078 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
10079 iterating through it.
10080 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
10082 (grub_lvm_scan_device): Check the return value (and fail gracefully
10083 when due) on each grub_lvm_getvalue() or grub_strstr() call.
10084 Don't assume `vg->pvs != NULL' when iterating through it.
10086 2008-04-13 Robert Millan <rmh@aybabtu.com>
10088 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
10089 * genmk.rb (partmap): New variable.
10090 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
10091 (#{partmap}): New target rule.
10092 * genpartmaplist.sh: New file.
10093 * Makefile.in (pkglib_DATA): Add partmap.lst.
10094 (partmap.lst): New target rule.
10095 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
10096 modules (including all partition maps), instead of preloading them.
10098 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
10100 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
10101 `linux-boot-prober' (if installed) to detect other operating
10102 systems which are installed on the computer and add them to
10104 * conf/common.rmk: Build and install 30_os-prober.
10106 2008-04-12 Robert Millan <rmh@aybabtu.com>
10108 * kern/powerpc/ieee1275/init.c: Move from here ...
10109 * kern/ieee1275/init.c: ... to here. Update all users.
10111 * kern/powerpc/ieee1275/cmain.c: Move from here ...
10112 * kern/ieee1275/cmain.c: ... to here. Update all users.
10114 * kern/powerpc/ieee1275/openfw.c: Move from here ...
10115 * kern/ieee1275/openfw.c: ... to here. Update all users.
10117 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
10118 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
10120 2008-04-10 Pavel Roskin <proski@gnu.org>
10122 * configure.ac: Always use "_cv_" in cache variables for
10123 compatibility with Autoconf 2.62.
10125 2008-04-07 Robert Millan <rmh@aybabtu.com>
10127 Revert grub/machine/init.h addition by Pavel (since it breaks on
10128 i386-ieee1275 and others):
10129 * util/i386/pc/misc.c: Remove grub/machine/init.h.
10130 * util/powerpc/ieee1275/misc.c: Likewise.
10132 2008-04-07 Robert Millan <rmh@aybabtu.com>
10134 * util/grub-probe.c (probe): Improve error message.
10136 2008-04-07 Robert Millan <rmh@aybabtu.com>
10138 * util/biosdisk.c (read_device_map): Skip devices that don't exist
10139 (this prevents the presence of a bogus entry from ruining the whole
10142 2008-04-06 Pavel Roskin <proski@gnu.org>
10144 * util/biosdisk.c: Include grub/util/biosdisk.h.
10145 * util/grub-fstest.c (execute_command): Make static.
10146 * util/grub-mkdevicemap.c (check_device): Likewise.
10147 * util/i386/pc/misc.c: Include grub/machine/init.h.
10148 * util/powerpc/ieee1275/misc.c: Likewise.
10149 * util/lvm.c: Include grub/util/lvm.h.
10150 * util/misc.c: Include grub/kernel.h, grub/misc.h and
10152 * util/raid.c: Include grub/util/raid.h.
10153 (grub_util_getdiskname): Make static.
10155 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
10156 grub_hostfs_fini(), as they are called from grub_init_all() and
10157 grub_fini_all() respectively. This fixes an infinite loop in
10158 grub-fstest due to double registration of hostfs.
10159 Reported by Christian Franke <Christian.Franke@t-online.de>
10161 2008-04-05 Pavel Roskin <proski@gnu.org>
10163 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
10164 all 8 functions. Otherwise, probe function 0 only.
10166 2008-04-04 Pavel Roskin <proski@gnu.org>
10168 * commands/lspci.c (grub_lspci_iter): Print the bus number
10171 * commands/lspci.c (grub_pci_classes): Fix typos.
10172 (grub_lspci_iter): Don't print func twice. Print vendor ID
10173 before device ID, as it's normally done.
10175 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
10176 Fix signedness warnings.
10177 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
10179 * util/ieee1275/get_disk_name.c: Include config.h so that
10180 _GNU_SOURCE is defined and getline() is declared. Mark an
10181 unused argument as such. Fix a signedness warning.
10183 2008-04-02 Pavel Roskin <proski@gnu.org>
10185 * genkernsyms.sh.in: Use more robust assignments for CC and
10186 srcdir. Quote srcdir.
10187 * gensymlist.sh.in: Likewise. Assert at the compile time that
10188 the symbol table is not empty.
10190 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
10191 * fs/cpio.c (grub_cpio_read): Likewise.
10193 2008-04-01 Pavel Roskin <proski@gnu.org>
10195 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
10196 * disk/host.c (grub_host_open): Likewise.
10197 * disk/loopback.c (grub_loopback_open): Likewise.
10198 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
10199 disk->id as in disk/host.c, not a multi-character constant.
10201 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
10202 later is obsolete, potentially dangerous and sets a bad example.
10203 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
10204 * util/misc.c (grub_util_get_image_size): Likewise.
10206 * disk/loopback.c (options): Improve help for "--partitions".
10208 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
10209 options to align them with the short options, e.g. "echo -e".
10211 2008-03-31 Bean <bean123ch@gmail.com>
10213 * video/reader/png.c (grub_png_data): New member is_16bit and
10215 (grub_png_decode_image_header): Detect 16 bit png image.
10216 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
10217 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
10218 (grub_video_reader_png): Release memory occupied by image_data.
10220 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
10222 (grub_nfs_mount): Skip the test for sector per cluster.
10224 * include/grub/ntfs.h (MAX_SPC): Removed.
10226 2008-03-31 Bean <bean123ch@gmail.com>
10228 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
10229 (grub_probe_SOURCES): Add fs/afs.c.
10230 (grub_fstest_SOURCES): Likewise.
10231 (afs_mod_SOURCES): New variable.
10232 (afs_mod_CFLAGS): Likewise.
10233 (afs_mod_LDFLAGS): Likewise.
10235 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
10236 (grub_emu_SOURCES): Likewise.
10238 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10240 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10242 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10244 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10246 * fs/afs.c: New file.
10248 2008-03-30 Pavel Roskin <proski@gnu.org>
10250 * disk/host.c: Include grub/misc.h to fix a warning.
10251 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
10252 warnings about implicit declarations.
10254 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
10256 * include/grub/i386/loader.h: Change declaration of
10257 grub_linux_boot() to match what grub_loader_set() expects.
10258 * util/getroot.c (grub_guess_root_device): Return const char* to
10260 * util/grub-probe.c (probe): Fix a warning about uninitialized
10261 abstraction_name variable.
10262 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
10263 second argument as unused to fix a warning.
10265 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
10266 missing grub_error() call.
10268 * util/update-grub_lib.in: Define datarootdir, since Autoconf
10269 2.60 and newer uses it to define datadir.
10271 * commands/sleep.c: Fix warning about implicit declaration.
10272 * disk/memdisk.c: Likewise.
10273 * loader/aout.c: Likewise.
10274 * loader/i386/bsd_normal.c: Likewise.
10275 * util/grub-probe.c: Likewise.
10277 * commands/i386/cpuid.c (has_longmode): Make static.
10278 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
10279 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
10281 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
10282 GDT. This is more robust, as %ds can change.
10283 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
10284 calling real_to_prot().
10285 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
10287 2008-03-28 Pavel Roskin <proski@gnu.org>
10289 * kern/i386/pc/startup.S: Assert that uncompressed functions
10290 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
10291 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
10292 code, as they push parts of the code (error handlers) beyond
10293 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
10294 code as correctness and size.
10296 2008-03-28 Pavel Roskin <proski@gnu.org>
10298 * kern/i386/pc/startup.S
10299 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
10300 data block address to the real mode, keep offset minimal. This
10301 works around a bug in AWARD BIOS on old Athlon systems, which
10302 makes CD detection hang.
10304 2008-03-26 Pavel Roskin <proski@gnu.org>
10306 * normal/color.c (grub_parse_color_name_pair): Make `name' a
10308 * include/grub/normal.h: Add grub_parse_color_name_pair()
10311 2008-03-24 Bean <bean123ch@gmail.com>
10313 * disk/i386/pc/biosdisk.c (cd_start): Removed.
10314 (cd_count): Removed.
10315 (cd_drive): New variable.
10316 (grub_biosdisk_get_drive): Don't check for (cdN) device.
10317 (grub_biosdisk_call_hook): Likewise.
10318 (grub_biosdisk_iterate): Change cdrom detection method.
10319 (grub_biosdisk_open): Replace cd_start with cd_drive.
10320 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
10321 detect cdrom device.
10323 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
10325 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
10326 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
10327 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
10328 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
10329 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
10330 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
10331 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
10332 (grub_biosdisk_cdrp): New structure.
10333 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
10335 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
10337 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
10340 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
10343 2008-03-20 Robert Millan <rmh@aybabtu.com>
10345 Remove 2 TiB limit in ata.mod.
10346 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
10347 (grub_ata_dumpinfo): Print sector count with 0x%llx.
10348 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
10349 grub_uint64_t instead of grub_uint32_t.
10351 2008-03-05 Bean <bean123ch@gmail.com>
10353 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
10354 (grub_multiboot): Set boot device.
10356 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
10358 2008-03-02 Bean <bean123ch@gmail.com>
10360 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
10363 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
10365 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
10368 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
10371 * docs/fdl.texi: New file.
10373 * docs/mdate-sh: New file. Copied from gnulib.
10374 * docs/texinfo.tex: Likewise.
10376 * config.guess: Updated from gnulib.
10377 * install-sh: Likewise.
10379 2008-02-28 Robert Millan <rmh@aybabtu.com>
10381 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
10382 (aout_mod_SOURCES): New variable.
10383 (aout_mod_CFLAGS): Likewise.
10384 (aout_mod_LDFLAGS): Likewise.
10386 * conf/i386-ieee1275.rmk: Likewise.
10388 2008-02-28 Robert Millan <rmh@aybabtu.com>
10390 * util/update-grub.in: Reorganise terminal validity check. Accept
10391 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
10392 Based on suggestion by Franklin PIAT.
10394 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
10396 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
10398 * util/getroot.c (grub_util_check_block_device): New function that
10399 returns the given argument if it is a block device and returns NULL else.
10400 * util/grub-probe.c (argument_is_device): New variable.
10401 (probe): Promote device_name from a variable to an argument. Receive
10402 device_name from grub_util_check_block_device() if path is NULL and from
10403 grub_guess_root_device() else. Do not free() device_name anymore.
10404 (options): Introduce new parameter '-d, --device'.
10405 (main): Add description of the new parameter to the help screen.
10406 Rename path variable to argument. Set argument_is_device if the '-d'
10407 option is given. Pass argument to probe() depending on
10408 argument_is_device.
10410 2008-02-24 Bean <bean123ch@gmail.com>
10412 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
10413 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
10414 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
10415 (GRUB_ISO9660_VOLDESC_PART): Likewise.
10416 (GRUB_ISO9660_VOLDESC_END): Likewise.
10417 (grub_iso9660_primary_voldesc): New member escape.
10418 (grub_iso9660_data): New member joliet.
10419 (grub_iso9660_convert_string): New function.
10420 (grub_iso9660_mount): Detect joliet extension.
10421 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
10422 (grub_iso9660_iso9660_label): Likewise.
10424 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
10425 (grub_setup_SOURCES): Add fs/udf.c.
10426 (grub_fstest_SOURCES): Likewise.
10427 (udf_mod_SOURCES): New variable.
10428 (udf_mod_CFLAGS): Likewise.
10429 (udf_mod_LDFLAGS): Likewise.
10431 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
10432 (grub_emu_SOURCES): Likewise.
10434 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10436 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10438 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10440 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10442 * fs/udf.c: New file.
10444 2008-02-24 Robert Millan <rmh@aybabtu.com>
10446 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
10447 (normal/lexer.c_DEPENDENCIES): New variables.
10448 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10449 (normal/lexer.c_DEPENDENCIES): Likewise.
10450 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
10451 (normal/lexer.c_DEPENDENCIES): Likewise.
10452 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
10453 (normal/lexer.c_DEPENDENCIES): Likewise.
10454 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10455 (normal/lexer.c_DEPENDENCIES): Likewise.
10456 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10457 (normal/lexer.c_DEPENDENCIES): Likewise.
10459 2008-02-23 Robert Millan <rmh@aybabtu.com>
10461 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
10462 since they were intended to be in hex. This didn't break previously
10463 because of a bug in gpt_partition_map_iterate() (see below).
10465 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
10466 when checking the validity of GPT header.
10467 Remove `partno', since it always provides the same information as `i'.
10469 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
10471 * include/grub/efi/time.h: Fix a wrong comment.
10473 2008-02-19 Pavel Roskin <proski@gnu.org>
10475 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
10478 2008-02-19 Bean <bean123ch@gmail.com>
10480 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
10481 (aout_mod_SOURCES): New variable.
10482 (aout_mod_CFLAGS): Likewise.
10483 (aout_mod_LDFLAGS): Likewise.
10484 (_bsd_mod_SOURCES): New variable.
10485 (_bsd_mod_CFLAGS): Likewise.
10486 (_bsd_mod_LDFLAGS): Likewise.
10487 (bsd_mod_SOURCES): New variable.
10488 (bsd_mod_CFLAGS): Likewise.
10489 (bsd_mod_LDFLAGS): Likewise.
10491 * include/grub/aout.h: New file.
10493 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
10495 * include/grub/i386/bsd.h: New file.
10497 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
10500 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
10501 function is called, so that it's possible to change it inside the hook.
10502 (grub_elf64_load): Likewise.
10503 (grub_elf_file): Don't close the file if elf header is not found.
10504 (grub_elf_close): Close the file if grub_elf_file fails (The new
10505 grub_elf_file won't close it).
10506 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
10507 (grub_elf64_size): Likewise.
10509 * kern/i386/loader.S (grub_unix_real_boot): New function.
10511 * loader/aout.c: New file.
10513 * loader/i386/bsd.c: New file.
10515 * loader/i386/bsd_normal.c: New file.
10517 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
10519 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
10520 can test other formats.
10522 2008-02-19 Robert Millan <rmh@aybabtu.com>
10524 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
10525 (grub_gpt_partition_type_empty): Redefine with macro from
10526 `<grub/gpt_partition.h>'.
10527 (gpt_partition_map_iterate): Adjust partition type comparison.
10529 Export `entry' as partmap-specific `part.data' struct.
10530 (grub_gpt_header, grub_gpt_partentry): Move from here ...
10532 * include/grub/gpt_partition.h (grub_gpt_header)
10533 (grub_gpt_partentry): ... to here (new file).
10535 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
10537 (grub_gpt_partition_type_bios_boot): New const variable, defined
10538 with macro from `<grub/gpt_partition.h>'.
10540 (setup): Replace `first_start' with `embed_region', which keeps
10541 track of the embed region (and is partmap-agnostic).
10543 Replace find_first_partition_start() with find_usable_region(),
10544 which finds a usable region for embedding using partmap-specific
10545 knowledge (supports PC/MSDOS and GPT).
10547 Fix all assumptions that the embed region start at sector 1, using
10548 `embed_region.start' from now on. Similarly, use `embed_region.end'
10549 rather than `first_start' to calculate available size.
10551 In grub_util_info() message, replace "into after the MBR" with an
10552 indication of the specific sector our embed region starts at.
10554 2008-02-19 Robert Millan <rmh@aybabtu.com>
10556 * DISTLIST: Replace `commands/ieee1275/halt.c' and
10557 `commands/ieee1275/reboot.c' with `commands/halt.c' and
10558 `commands/reboot.c'.
10559 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10560 (halt_mod_SOURCES): Likewise.
10561 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10562 (halt_mod_SOURCES): Likewise.
10564 2008-02-17 Christian Franke <franke@computer.org>
10566 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
10568 2008-02-17 Robert Millan <rmh@aybabtu.com>
10570 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10571 set `first_start' to 0 for non-PC/MSDOS partition maps.
10573 2008-02-16 Robert Millan <rmh@aybabtu.com>
10575 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10576 do not assume partition map is PC/MSDOS before performing checks that
10577 are specific to that layout.
10579 2008-02-13 Robert Millan <rmh@aybabtu.com>
10581 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
10582 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
10583 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
10585 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
10587 * configure.ac: Only a cosmetic change on the handling of
10588 -fno-stack-protector.
10590 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
10592 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
10593 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
10595 (grub_install_SOURCES): Add halt.mod and reboot.mod.
10596 (halt_mod_SOURCES): New variable.
10597 (halt_mod_CFLAGS): Likewise.
10598 (halt_mod_LDFLAGS): Likewise.
10599 (reboot_mod_SOURCES): Likewise.
10600 (reboot_mod_CFLAGS): Likewise.
10601 (reboot_mod_LDFLAGS): Likewise.
10603 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
10604 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
10606 (halt_mod_SOURCES): Likewise.
10607 (reboot_mod_SOURCES): Likewise.
10609 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
10610 commands/i386/pc/reboot.c by commands/reboot.c.
10611 (reboot_mod_SOURCES): Likewise.
10613 * commands/i386/pc/reboot.c: merge this file ...
10615 * commands/ieee1275/reboot.c: ... and this file ...
10617 * commands/reboot.c: ... to this file.
10618 Add some precompiler directive to include the correct header for
10621 * commands/ieee1275/halt.c: move this file ...
10623 * commands/halt.c: ... to here.
10624 Add some precompiler directive to include the correct header for
10627 * include/grub/efi/efi.h (grub_reboot): New function declaration.
10628 (grub_halt): Likewise.
10630 * kern/efi/efi.c (grub_reboot): New function.
10631 (grub_halt): Likewise.
10633 2008-02-12 Robert Millan <rmh@aybabtu.com>
10635 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
10636 /dev (like it is done for /dev/mapper). This doesn't provide support
10637 for EVMS, but at least it is now easy to identify the problem when it
10640 2008-02-11 Robert Millan <rmh@aybabtu.com>
10642 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
10643 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
10644 comparing it with -1, not 0.
10646 2008-02-10 Robert Millan <rmh@aybabtu.com>
10648 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
10650 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10651 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10653 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
10654 `disk/lvm.c' to the end of the list.
10655 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10656 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10658 2008-02-10 Robert Millan <rmh@aybabtu.com>
10660 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
10661 grub_print_error() instead. This will let user know why we're entering
10663 Based on suggestions from Sam Morris.
10665 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
10667 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
10668 on remaining N args, instead of "--" arg N times.
10670 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
10672 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
10673 (fill_with_default_glyph): Changed to use unknown_glyph for fill
10674 pattern for unknown glyphs.
10676 2008-02-09 Robert Millan <rmh@aybabtu.com>
10678 * configure.ac: Probe for `help2man'.
10679 * Makefile.in (builddir): New variable.
10680 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
10681 or otherwise add a few flags/options to it.
10682 (install-local): For every executable utility or script that is
10683 installed, invoke $(HELP2MAN) to install a manpage based on --help
10686 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
10687 that it doesn't prevent --help from working in build tree.
10689 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
10690 with `bug-grub@gnu.org'.
10691 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
10692 * util/update-grub.in (usage): New function.
10693 Implement proper argument check, with support for --help and --version
10694 (as well as existing -y).
10696 2008-02-09 Christian Franke <franke@computer.org>
10698 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
10699 avoid overwriting previous output.
10700 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
10702 2008-02-09 Robert Millan <rmh@aybabtu.com>
10704 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
10707 2008-02-09 Robert Millan <rmh@aybabtu.com>
10709 * commands/sleep.c: New file.
10710 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
10711 (sleep_mod_SOURCES): New variable.
10712 (sleep_mod_CFLAGS): Likewise.
10713 (sleep_mod_LDFLAGS): Likewise.
10715 2008-02-09 Robert Millan <rmh@aybabtu.com>
10717 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
10718 situations in which we can deduce the RAID size and the superblock
10721 2008-02-09 Robert Millan <rmh@aybabtu.com>
10723 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
10724 and return a grub_diskmemberlist_t composed of LVM physical volumes.
10725 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
10727 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
10728 and return a grub_diskmemberlist_t composed of physical array members.
10729 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
10731 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
10733 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
10734 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
10735 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
10737 * util/grub-probe.c (probe): Move partmap probing code from here ...
10738 (probe_partmap): ... to here.
10739 (probe): Use probe_partmap() once for the disk we're probing, and
10740 additionally, when such disk contains a memberlist() struct member,
10741 once for each disk that is contained in the structure returned by
10744 2008-02-09 Robert Millan <rmh@aybabtu.com>
10746 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
10747 environment variable to 'all' in order to obtain debug output from
10749 * util/i386/pc/grub-setup.c (main): Likewise.
10751 2008-02-08 Robert Millan <rmh@aybabtu.com>
10753 * disk/raid.c (grub_raid_scan_device): Check for
10754 `array->device[sb.this_disk.number]' rather than for
10755 `array->device[sb.this_disk.number]->name', since the latter is not
10756 guaranteed to be accessible.
10758 2008-02-08 Robert Millan <rmh@aybabtu.com>
10760 * disk/raid.c: Update copyright.
10761 * fs/cpio.c: Likewise.
10762 * include/grub/raid.h: Likewise.
10763 * loader/i386/pc/multiboot.c: Likewise.
10764 * util/hostfs.c: Likewise.
10766 2008-02-08 Robert Millan <rmh@aybabtu.com>
10768 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
10769 to a grub_disk_t array.
10770 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
10772 (grub_raid_scan_device): Replace `device[x].name' accesses with
10773 `device[x]->name'. Simplify initialization of `array->device[x]'.
10775 2008-02-08 Robert Millan <rmh@aybabtu.com>
10777 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
10778 grub_dprintf() calls.
10779 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
10782 2008-02-07 Christian Franke <franke@computer.org>
10784 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
10785 instead of fseek and ftell to support large files.
10786 (grub_hostfs_read): Likewise.
10788 2008-02-07 Robert Millan <rmh@aybabtu.com>
10790 Patch from Jeroen Dekkers.
10791 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
10792 failure, since successfully reading all array members might not be
10795 2008-02-06 Robert Millan <rmh@aybabtu.com>
10797 * util/grub-probe.c (probe): Simplify partmap probing (with the
10798 assumption that the first word up to the underscore equals to
10801 2008-02-06 Christian Franke <franke@computer.org>
10803 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
10804 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
10805 last block of a cpio or tar stream.
10806 Check for "TRAILER!!!" instead of any empty data
10807 block to detect last block of a cpio stream.
10808 (grub_cpio_dir): Fix constness of variable np.
10809 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
10810 cpio or tar trailer is detected. This fixes a crash
10811 on open of a non existing file.
10813 2008-02-05 Bean <bean123ch@gmail.com>
10815 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
10817 (grub_multiboot_load_elf64): Likewise.
10818 (grub_multiboot): Initialize mbi structure.
10820 * util/grub-fstest.c: Don't include unused header file script.h.
10822 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
10824 (grub_fstest_SOURCES): Likewise.
10826 2008-02-05 Robert Millan <rmh@aybabtu.com>
10828 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
10829 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
10830 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
10831 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
10833 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
10834 (translation_table): Replace hardcoded values with macros
10835 provided by `<grub/term.h>'.
10837 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
10838 (keyboard_map): Correct/add a few values, with macros provided
10839 by `<grub/term.h>'.
10840 (keyboard_map_shift): Zero values that don't differ from their
10841 `keyboard_map' equivalents.
10842 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
10843 Discard the second scan code that is always sent by Caps lock.
10844 Only use `keyboard_map_shift' when it provides a non-zero value,
10845 otherwise fallback to `keyboard_map'.
10847 2008-02-04 Bean <bean123ch@gmail.com>
10849 * Makefile.in (enable_grub_fstest): New variable.
10851 * conf/common.rmk (grub_fstest_init.lst): New rule.
10852 (grub_fstest_init.h): Likewise.
10853 (grub_fstest_init.c): Likewise.
10854 (util/grub-fstest.c_DEPENDENCIES): New variable.
10855 (grub_fstest_SOURCES): Likewise.
10857 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
10859 * util/grub-fstest.c: New file.
10861 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10863 Make grub-setup handle a separate root device.
10865 * util/i386/pc/grub-setup.c (setup): Always open the root device,
10866 so that the root device can be compared with the destination
10868 When embedding the core image, if the root and destination devices
10869 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
10871 When not embedding, set ROOT_DRIVE to 0xFF.
10873 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10875 Add support for having a grub directory in a different drive. This
10876 is still only the data handling part.
10878 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
10879 (codestart): Save %dh in GRUB_ROOT_DRIVE.
10880 (grub_root_drive): New variable.
10882 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
10883 instead of GRUB_BOOT_DRIVE to construct a device name. Set
10884 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
10887 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
10889 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
10891 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
10893 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
10894 is bogus, because PXE booting does not specify any drive
10897 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
10898 am not sure if this is really correct.
10900 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
10901 is always identical to the boot drive when booting from a CD.
10903 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
10905 (root_drive): New variable.
10906 (real_start): Unconditionally set %dh to ROOT_DRIVE.
10907 (setup_sectors): Push %dx right after popping it, because %dh will
10909 (copy_buffer): Restore %dx.
10911 2008-02-03 Robert Millan <rmh@aybabtu.com>
10913 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
10914 use `cdboot.img' for cdrom images.
10916 2008-02-03 Robert Millan <rmh@aybabtu.com>
10918 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
10919 only setup gfxterm when `font' command has succeeded.
10921 2008-02-03 Robert Millan <rmh@aybabtu.com>
10923 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
10924 (grub_rescue_cmd_multiboot_loader)
10925 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
10927 2008-02-03 Pavel Roskin <proski@gnu.org>
10929 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
10930 %edx and %esi from stack only after grub_gate_a20() is called.
10931 grub_gate_a20() clobbers %edx.
10933 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10935 * configure.ac (AC_INIT): Bumped to 1.96.
10937 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
10938 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
10939 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
10940 video/readers/png.c.
10942 2008-02-03 Bean <bean123ch@gmail.com>
10944 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
10945 (cdboot_img_SOURCES): New variable.
10946 (cdboot_img_ASFLAGS): New variable.
10947 (cdboot_img_LDFLAGS): New variable.
10949 * boot/i386/pc/cdboot.S: New file.
10951 * disk/i386/pc/biosdisk.c (cd_start): New variable.
10952 (cd_count): Likewise.
10953 (grub_biosdisk_get_drive): Add support for cd device.
10954 (grub_biosdisk_call_hook): Likewise.
10955 (grub_biosdisk_iterate): Likewise.
10956 (grub_biosdisk_open): Likewise.
10957 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
10958 (grub_biosdisk_rw): Support reading from cd device.
10959 (GRUB_MOD_INIT): Iterate cd devices.
10961 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
10962 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
10963 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
10965 * kern/i386/pc/init.c (make_install_device): Check for cd device.
10967 2008-02-02 Robert Millan <rmh@aybabtu.com>
10969 * commands/read.c: New file.
10970 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
10971 (read_mod_SOURCES): New variable.
10972 (read_mod_CFLAGS): Likewise.
10973 (read_mod_LDFLAGS): Likewise.
10975 2008-02-02 Robert Millan <rmh@aybabtu.com>
10977 * normal/main.c (grub_normal_execute): Check for `menu->size' when
10978 determining whether menu has to be displayed.
10980 2008-02-02 Marco Gerards <marco@gnu.org>
10982 * bus/pci.c: New file.
10984 * include/grub/pci.h: Likewise.
10986 * include/grub/i386/pc/pci.h: Likewise.
10988 * commands/lspci.c: Likewise.
10990 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
10992 (pci_mod_SOURCES): New variable.
10993 (pci_mod_CFLAGS): Likewise.
10994 (pci_mod_LDFLAGS): Likewise.
10995 (lspci_mod_SOURCES): Likewise.
10996 (lspci_mod_CFLAGS): Likewise.
10997 (lspci_mod_LDFLAGS): Likewise.
10999 2008-02-02 Bean <bean123ch@gmail.com>
11001 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
11002 (grub_ufs_get_file_block): Fix indirect block calculation problem.
11004 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
11005 (grub_xfs_btree_node): New structure.
11006 (grub_xfs_btree_root): New structure.
11007 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
11008 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
11009 (GRUB_XFS_EXTENT_BLOCK): Likewise.
11010 (GRUB_XFS_EXTENT_SIZE): Likewise.
11011 (grub_xfs_read_block): Support btree format type.
11012 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
11013 Use directory block as basic unit.
11015 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
11017 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
11018 __attribute__ ((__regparm__ (1))).
11020 2008-02-01 Robert Millan <rmh@aybabtu.com>
11022 Correct a mistake in previous commit.
11024 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
11026 (normal/command.c_DEPENDENCIES): New variable.
11028 2008-02-01 Robert Millan <rmh@aybabtu.com>
11030 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
11032 (normal/command.c_DEPENDENCIES): New variable.
11033 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
11034 * conf/i386-ieee1275.rmk: Likewise.
11035 * conf/i386-linuxbios.rmk: Likewise.
11036 * conf/i386-pc.rmk: Likewise.
11037 * conf/sparc64-ieee1275.rmk: Likewise.
11038 * conf/powerpc-ieee1275.rmk: Likewise.
11039 (grub_emu_SOURCES): Add `fs/fshelp.c'.
11041 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
11043 2008-02-01 Robert Millan <rmh@aybabtu.com>
11045 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
11046 call at beginning of function.
11048 2008-01-31 Pavel Roskin <proski@gnu.org>
11050 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
11051 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
11052 (grub_mkrescue_SOURCES): Likewise.
11053 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
11055 2008-01-30 Robert Millan <rmh@aybabtu.com>
11057 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
11058 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
11059 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
11060 (grub_probe_SOURCES): ... to here.
11062 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
11063 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
11064 * conf/i386-ieee1275.rmk: Likewise.
11065 * conf/i386-linuxbios.rmk: Likewise.
11066 * conf/powerpc-ieee1275.rmk: Likewise.
11068 2008-01-30 Tristan Gingold <gingold@free.fr>
11070 * kern/rescue.c: Silently accept empty lines.
11072 2008-01-29 Bean <bean123ch@gmail.com>
11074 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
11075 (real_code_2): Code cleanup and change comment style.
11076 (move_memory): Avoid using 32-bit address mode.
11078 2008-01-29 Bean <bean123ch@gmail.com>
11080 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
11081 (png_mod_SOURCES): New variable.
11082 (png_mod_CFLAGS): Likewise.
11083 (png_mod_LDFLAGS): Likewise.
11085 * video/readers/png.c: New file.
11087 2008-01-28 Robert Millan <rmh@aybabtu.com>
11089 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
11090 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
11091 `ifndef GRUB_MOD_GAP' hack.
11092 * util/elf/grub-mkimage.c (add_segments): Likewise.
11094 2008-01-27 Robert Millan <rmh@aybabtu.com>
11096 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
11097 `GRUB_MOD_GAP' for platforms in which it's not defined.
11098 * util/elf/grub-mkimage.c (add_segments): Likewise.
11100 2008-01-27 Robert Millan <rmh@aybabtu.com>
11102 Get grub-emu to build again (including parallel builds).
11104 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
11106 (util/grub-emu.c_DEPENDENCIES): ... this, ...
11107 (normal/execute.c_DEPENDENCIES): ... this, ...
11108 (grub-emu_DEPENDENCIES): ... and this.
11110 * conf/i386-efi.rmk: Likewise.
11111 * conf/i386-linuxbios.rmk: Likewise.
11112 * conf/i386-ieee1275.rmk: Likewise.
11113 * conf/powerpc-ieee1275.rmk: Likewise.
11114 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
11116 2008-01-27 Robert Millan <rmh@aybabtu.com>
11118 * NEWS: Add a few items.
11120 2008-01-27 Robert Millan <rmh@aybabtu.com>
11122 Fix parallel builds with grub-emu. Based on earlier commit for
11123 grub-probe and grub-setup.
11125 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11126 (util/grub-emu.c_DEPENDENCIES): ... this.
11127 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11128 (util/grub-emu.c_DEPENDENCIES): ... this.
11129 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11130 (util/grub-emu.c_DEPENDENCIES): ... this.
11131 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11132 (util/grub-emu.c_DEPENDENCIES): ... this.
11133 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11134 (util/grub-emu.c_DEPENDENCIES): ... this.
11136 2008-01-27 Pavel Roskin <proski@gnu.org>
11138 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
11139 to create a gap between _end and the modules added to the image
11140 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
11141 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
11142 * util/elf/grub-mkimage.c (add_segments): Likewise.
11144 2008-01-26 Pavel Roskin <proski@gnu.org>
11146 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
11147 just return an error.
11149 2008-01-26 Bean <bean123ch@gmail.com>
11151 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
11152 (grub_reiserfs_get_item): Save offset of the next item.
11153 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
11155 2008-01-25 Robert Millan <rmh@aybabtu.com>
11157 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
11158 make all filesystem sources appear together (possibly fixing omissions
11160 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11161 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11162 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11163 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11165 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
11167 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
11168 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11169 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
11170 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11172 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
11173 (probe): Add a sanity check to make sure of our ability to read
11174 requested files when probing for filesystem type.
11176 * genmk.rb: Update copyright year (2007).
11178 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
11179 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
11180 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
11181 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
11182 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
11183 : Remove function prototypes.
11185 2008-01-25 Robert Millan <rmh@aybabtu.com>
11187 Revert my previous commits (based on wrong assumption of how grub_errno
11190 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
11191 * kern/file.c (grub_file_open): Likewise.
11193 2008-01-24 Pavel Roskin <proski@gnu.org>
11195 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
11196 that hang if GRUB tries to setup colors.
11197 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
11198 colors for firmwares that don't support it.
11199 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
11200 Recognize Open Hack'Ware, set flags to work around its
11203 2008-01-24 Robert Millan <rmh@aybabtu.com>
11205 * kern/file.c (grub_file_open): Do not account previous failures of
11206 unrelated functions when grub_errno is checked for.
11207 Reported by Oleg Strikov.
11209 2008-01-24 Bean <bean123ch@gmail.com>
11211 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
11212 (grub_ufs_sblock): New member volume name.
11213 (grub_ufs_find_file): Fix string copy bug.
11214 (grub_ufs_label): Implement this function properly.
11216 * fs/hfs.c (grub_hfs_cnid_type): New enum.
11217 (grub_hfs_iterate_records): Use the correct file number for extents
11218 and catalog file. Fix problem in next index calculation.
11219 (grub_hfs_find_node): Replace recursive function call with loop.
11220 (grub_hfs_iterate_dir): Replace recursive function call with loop.
11222 2008-01-23 Robert Millan <rmh@aybabtu.com>
11224 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
11225 `<grub/symbol.h>' and `<grub/multiboot.h>'.
11226 (grub_multiboot2_real_boot): New function prototype.
11228 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
11229 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
11231 * kern/i386/ieee1275/init.c (grub_os_area_addr)
11232 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
11234 2008-01-23 Robert Millan <rmh@aybabtu.com>
11236 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
11237 #ifdef'ed out grub_printf().
11239 2008-01-23 Robert Millan <rmh@aybabtu.com>
11241 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
11242 grub_dprintf calls, since they make "debug=all" mode unusable.
11243 (grub_console_checkkey): Likewise.
11245 2008-01-23 Robert Millan <rmh@aybabtu.com>
11247 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
11248 `term/i386/pc/at_keyboard.c'.
11249 (pkglib_MODULES): Add `serial.mod'.
11250 (serial_mod_SOURCES): New variable.
11251 (serial_mod_CFLAGS): Likewise.
11252 (serial_mod_LDFLAGS): Likewise.
11254 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
11255 `<grub/powerpc/ieee1275/console.h>'.
11256 (grub_keyboard_controller_init): New function prototype.
11257 (grub_console_checkkey): Likewise.
11258 (grub_console_getkey): Likewise.
11260 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
11263 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
11264 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
11266 2008-01-23 Robert Millan <rmh@aybabtu.com>
11268 * kern/i386/pc/init.c (make_install_device): When memdisk image is
11269 present, "(memdisk)/boot/grub" becomes the default prefix.
11271 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
11272 a memdisk tarball with all the modules. Add --overlay=DIR option that
11273 allows users to overlay additional files into the image.
11275 2008-01-23 Robert Millan <rmh@aybabtu.com>
11277 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
11278 and `machine/memory.h'.
11279 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
11280 (_multiboot_mod_SOURCES): New variable.
11281 (_multiboot_mod_CFLAGS): Likewise.
11282 (_multiboot_mod_LDFLAGS): Likewise.
11283 (multiboot_mod_SOURCES): Likewise.
11284 (multiboot_mod_CFLAGS): Likewise.
11285 (multiboot_mod_LDFLAGS): Likewise.
11287 * include/grub/i386/ieee1275/loader.h: New file.
11289 * include/grub/i386/ieee1275/machine.h: Likewise.
11291 * include/grub/i386/ieee1275/memory.h: Likewise.
11293 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
11294 variable declaration.
11295 (grub_os_area_size): Likewise.
11297 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
11298 (grub_lower_mem, grub_upper_mem): New variables.
11299 (grub_stop_floppy): New function (just to make
11300 grub_multiboot2_real_boot() happy).
11302 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
11303 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
11304 (grub_stop): New function.
11305 Include `"../realmode.S"' and `"../loader.S"'.
11307 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
11308 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
11310 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
11311 rely on grub_multiboot2_real_boot() for final boot.
11313 2008-01-22 Robert Millan <rmh@aybabtu.com>
11315 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
11316 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
11317 device that doesn't look like an SD card.
11318 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
11319 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
11320 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
11321 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
11324 2008-01-22 Robert Millan <rmh@aybabtu.com>
11326 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
11327 avoid claiming over our own code.
11329 2008-01-22 Bean <bean123ch@gmail.com>
11331 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
11332 (jpeg_mod_SOURCES): New variable.
11333 (jpeg_mod_CFLAGS): Likewise.
11334 (jpeg_mod_LDFLAGS): Likewise.
11336 * video/readers/jpeg.c : New file.
11338 2008-01-22 Bean <bean123ch@gmail.com>
11340 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
11341 there are no more items.
11343 2008-01-21 Robert Millan <rmh@aybabtu.com>
11345 * kern/mm.c (grub_mm_init_region): Improve debug message.
11347 2008-01-21 Robert Millan <rmh@aybabtu.com>
11349 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
11350 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
11352 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
11354 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
11355 Indicates start of upper memory.
11356 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
11357 (generate_image): Abort when image size is big enough to corrupt
11360 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
11361 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
11362 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11363 instead of hardcoding 0xA0000.
11364 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
11365 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11366 instead of hardcoding 0xA0000.
11368 2008-01-21 Robert Millan <rmh@aybabtu.com>
11370 * disk/memdisk.c (memdisk_size): New variable.
11371 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
11373 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
11374 image to dynamic memory.
11375 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
11376 `memdisk_size'. Free memdisk block.
11378 2008-01-21 Robert Millan <rmh@aybabtu.com>
11380 Fix detection of very small filesystems (like tar).
11382 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
11383 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
11384 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
11385 a problem with this disk).
11387 2008-01-21 Robert Millan <rmh@aybabtu.com>
11389 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
11390 on grub_biosdisk_rw_standard() error.
11392 2008-01-21 Robert Millan <rmh@aybabtu.com>
11394 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
11396 * kern/elf.c: Likewise.
11397 * kern/ieee1275/ieee1275.c: Likewise.
11398 * kern/powerpc/ieee1275/openfw.c: Likewise.
11399 * term/ieee1275/ofconsole.c: Likewise.
11401 2008-01-21 Robert Millan <rmh@aybabtu.com>
11403 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
11405 * include/grub/kernel.h (grub_arch_memdisk_addr)
11406 (grub_arch_memdisk_size): Moved from here ...
11408 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
11409 (grub_arch_memdisk_size): ... to here.
11411 2008-01-21 Robert Millan <rmh@aybabtu.com>
11413 Mostly based on bugfix from Bean.
11415 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
11416 attribute with hook() parameter.
11417 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
11419 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
11420 attribute with hook() parameter.
11421 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
11424 2008-01-21 Robert Millan <rmh@aybabtu.com>
11426 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
11427 (pkglib_MODULES): Add `memdisk.mod'.
11428 (memdisk_mod_SOURCES): New variable.
11429 (memdisk_mod_CFLAGS): Likewise.
11430 (memdisk_mod_LDFLAGS): Likewise.
11432 * disk/memdisk.c: New file.
11434 * include/grub/disk.h (grub_disk_dev_id): Add
11435 `GRUB_DISK_DEVICE_MEMDISK_ID'.
11437 * include/grub/i386/pc/kernel.h
11438 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
11439 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
11440 (grub_kernel_image_size): New variable declaration.
11441 (grub_total_module_size): Likewise.
11442 (grub_memdisk_image_size): Likewise.
11444 * include/grub/i386/pc/memory.h
11445 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
11447 * include/grub/kernel.h: Include `<grub/symbol.h>'.
11448 (grub_arch_memdisk_addr): New variable declaration.
11449 (grub_arch_memdisk_size): Likewise.
11451 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
11452 (grub_arch_memdisk_size): Likewise.
11454 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
11455 (codestart): Replace hardcoded `0x100000' with
11456 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
11458 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
11459 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
11460 not NULL, append the contents of the file it refers to, at the end of
11461 the compressed kernel image. Initialize `grub_memdisk_image_size'
11462 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
11463 (options): Add "memdisk"|'m' option.
11464 (main): Parse --memdisk|-m option, and pass user-provided path as
11465 parameter to generate_image().
11467 2008-01-20 Robert Millan <rmh@aybabtu.com>
11469 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
11470 grub_dprintf() calls from here ...
11471 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
11473 2008-01-20 Robert Millan <rmh@aybabtu.com>
11475 Fix detection of "real mode" when /options/real-mode? doesn't exist.
11477 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
11479 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
11480 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
11481 `GRUB_IEEE1275_FLAG_REAL_MODE'.
11482 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
11484 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
11485 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
11487 2008-01-19 Robert Millan <rmh@aybabtu.com>
11489 Get rid of confusing function (superseded by
11490 `grub_ieee1275_get_integer_property')
11491 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
11493 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
11495 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
11496 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
11497 in native endianness from grub_ieee1275_get_integer_property().
11499 2008-01-19 Robert Millan <rmh@aybabtu.com>
11501 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
11502 command after "shut-down", since implementations differ on which
11503 the command for halt is.
11505 2008-01-19 Robert Millan <rmh@aybabtu.com>
11507 * include/grub/i386/linuxbios/console.h: Add header protection.
11508 (grub_keyboard_controller_init): New function prototype.
11509 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
11510 (KEYBOARD_COMMAND_READ): Likewise.
11511 (KEYBOARD_COMMAND_WRITE): Likewise.
11512 (KEYBOARD_SCANCODE_SET1): Likewise.
11513 (grub_keyboard_controller_write): New function.
11514 (grub_keyboard_controller_read): Likewise.
11515 (grub_keyboard_controller_init): Likewise.
11517 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
11518 (grub_console_init): On coreboot/LinuxBIOS, call
11519 grub_keyboard_controller_init().
11521 2008-01-19 Robert Millan <rmh@aybabtu.com>
11523 PowerPC changes provided by Pavel Roskin.
11525 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
11526 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
11527 don't rely on cmain() doing it.
11528 * kern/i386/ieee1275/startup.S (_start): Store %eax in
11529 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
11531 2008-01-16 Robert Millan <rmh@aybabtu.com>
11533 * include/grub/i386/linuxbios/memory.h
11534 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
11535 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
11536 receive `table_header' as argument. Instead, probe for it in the
11537 known memory ranges where it can be present.
11538 (grub_available_iterate): Do not pass a fixed `table_header' address
11539 to grub_linuxbios_table_iterate().
11541 2008-01-15 Robert Millan <rmh@aybabtu.com>
11543 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
11544 * conf/i386-ieee1275.rmk: New file.
11545 * include/grub/i386/ieee1275/console.h: Likewise.
11546 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
11547 * include/grub/i386/ieee1275/kernel.h: Likewise.
11548 * include/grub/i386/ieee1275/time.h: Likewise.
11549 * kern/i386/ieee1275/init.c: Likewise.
11550 * kern/i386/ieee1275/startup.S: Likewise.
11552 2008-01-15 Robert Millan <rmh@aybabtu.com>
11554 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
11555 when pointers are 32-bit (but still do set it to one when they are
11558 2008-01-15 Robert Millan <rmh@aybabtu.com>
11560 * include/grub/ieee1275/ieee1275.h
11561 (grub_ieee1275_get_integer_property): New function prototype.
11563 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
11564 (grub_ieee1275_get_integer_property): New function. Wraps around
11565 grub_ieee1275_get_property() to handle endianness.
11567 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
11568 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
11570 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
11571 (grub_map): Likewise.
11572 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
11574 2008-01-15 Bean <bean123ch@gmail.com>
11576 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
11577 (grub_script_execute_cmdline): Reset grub_errno.
11579 * normal/main.c (read_config_file): Reset grub_errno.
11581 * normal/parse.y (script_init): New.
11582 (script): Move function and menuentry here.
11584 (command): Add delimiter at the end of command.
11585 (commands): Adjust to match the new command.
11586 (commandblock): Remove grub_script_lexer_record_start.
11587 (menuentry): Add grub_script_lexer_record_start, use the new commands.
11588 (if): Use the new commands.
11590 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
11592 2008-01-15 Robert Millan <rmh@aybabtu.com>
11594 * normal/menu.c (run_menu): Move timeout message from here ...
11595 (print_timeout): ... to here.
11596 (run_menu): Use print_timeout() once during initial draw to print
11597 the whole message, and again in every clock tick to update only
11598 the number of seconds.
11600 2008-01-15 Robert Millan <rmh@aybabtu.com>
11602 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
11603 actual size of `available' from grub_ieee1275_get_property(), and
11604 restrict parsing to that bound.
11606 2008-01-15 Christian Franke <franke@computer.org>
11608 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
11609 (argp_program_version): Remove variable.
11610 (argp_program_bug_address): Likewise.
11611 (options): Convert from struct argp_option to struct option.
11612 (struct arguments): Remove.
11613 (parse_opt): Remove.
11614 (usage): New function.
11615 (main): Replace struct args members by simple variables.
11616 Replace argp_parse() by getopt_long().
11617 Add switch to evaluate options.
11618 Add missing "(...)" around root_dev in prefix string.
11620 2008-01-14 Robert Millan <rmh@aybabtu.com>
11622 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
11623 for grub_ieee1275_exit(), in order to improve portability.
11625 2008-01-14 Robert Millan <rmh@aybabtu.com>
11627 * util/grub.d/10_linux.in (prefix): Define.
11628 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
11630 2008-01-13 Pavel Roskin <proski@gnu.org>
11632 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
11633 grub_errno if no errors have been detected.
11635 2008-01-12 Robert Millan <rmh@aybabtu.com>
11637 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
11638 (grub_util_get_dev_abstraction): New function prototype.
11640 * util/getroot.c: Include `<grub/util/getroot.h>'
11641 (grub_util_get_grub_dev): Move detection of abstraction type to ...
11642 (grub_util_get_dev_abstraction): ... here (new function).
11644 * util/grub-probe.c: Convert PRINT_* to an enum. Add
11645 `PRINT_ABSTRACTION'.
11646 (probe): Probe for abstraction type when requested.
11647 (main): Understand `--target=abstraction'.
11649 * util/i386/efi/grub-install.in: Add abstraction module to core
11650 image when it is found to be necessary.
11651 * util/i386/pc/grub-install.in: Likewise.
11652 * util/powerpc/ieee1275/grub-install.in: Likewise.
11654 * util/update-grub_lib.in (font_path): Return system path without
11655 converting to GRUB path.
11656 * util/update-grub.in: Convert system path returned by font_path()
11657 to a GRUB path. Use `grub-probe -t abstraction' to determine what
11658 abstraction module is needed for loading fonts (if any). Export
11659 that as `GRUB_PRELOAD_MODULES'.
11660 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
11663 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
11665 Remove some unused code from reiserfs.
11667 * fs/reiserfs.c (struct grub_reiserfs_key)
11668 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
11669 (struct grub_reiserfs_node_body): Removed.
11670 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11672 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11674 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11676 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11678 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11680 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
11682 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11683 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11684 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11686 2008-01-10 Robert Millan <rmh@aybabtu.com>
11688 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
11689 Determines if a file is garbage left by packaging systems, etc.
11690 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
11691 for processing /etc/grub.d scripts.
11692 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
11693 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
11694 as a condition for processing Linux images.
11696 2008-01-10 Pavel Roskin <proski@gnu.org>
11698 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
11699 to compile reiserfs.c on PowerPC.
11701 2008-01-10 Robert Millan <rmh@aybabtu.com>
11703 * kern/device.c (grub_device_iterate): Do not abort device iteration
11704 when one of the devices cannot be opened.
11705 * kern/disk.c (grub_disk_open): Do not account previous failures of
11706 unrelated functions when grub_errno is checked for.
11708 2008-01-08 Robert Millan <rmh@aybabtu.com>
11710 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
11711 `! grub_linux_is_bzimage', change order of address comparison to make
11712 it more intuitive, and improve "too big zImage" error message.
11714 2008-01-08 Robert Millan <rmh@aybabtu.com>
11716 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
11717 `$(update-grub_DATA)'.
11718 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
11721 2008-01-07 Robert Millan <rmh@aybabtu.com>
11723 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
11724 which instruction is modified by grub-setup during installation
11725 (since it wasn't obvious by only looking at this file).
11727 2008-01-07 Robert Millan <rmh@aybabtu.com>
11729 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
11730 listing actual TODO items.
11732 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11734 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
11736 (grub_reiserfs_get_key_offset): Likewise.
11737 (grub_reiserfs_set_key_offset): Likewise.
11738 (grub_reiserfs_set_key_type): Likewise.
11739 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
11741 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
11742 better to remove the bitfield version completely.
11744 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11746 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
11747 allocated from the heap, due to the fshelp implementation.
11748 (grub_reiserfs_dir): Free NODE, due to the same reason.
11750 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11752 Mostly from Vincent Pelletier:
11754 * fs/reiserfs.c: New file.
11756 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
11757 (reiserfs_mod_SOURCES): New variable.
11758 (reiserfs_mod_CFLAGS): Likewise.
11759 (reiserfs_mod_LDFLAGS): Likewise.
11761 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
11762 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
11763 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
11766 2008-01-06 Robert Millan <rmh@aybabtu.com>
11768 * normal/color.c: Remove `<grub/env.h>'.
11770 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
11772 * include/grub/normal.h: Include <grub/env.h>.
11774 2008-01-05 Robert Millan <rmh@aybabtu.com>
11776 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
11777 usage example with `(hd0,1)'.
11778 Reported by Samuel Thibault.
11780 2008-01-05 Robert Millan <rmh@aybabtu.com>
11782 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
11783 (grub_linux_boot_zimage): Rename to ...
11784 (grub_linux_boot): ... this.
11785 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
11786 (grub_linux_boot_zimage): Conditionalize zImage copy.
11788 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
11789 (grub_linux_boot_bzimage): Remove prototype.
11790 (grub_linux_boot_zimage): Rename to ...
11791 (grub_linux_boot): ... this.
11793 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
11794 (grub_linux_boot): Remove function.
11796 2008-01-05 Robert Millan <rmh@aybabtu.com>
11798 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
11799 (grub_env_write_color_highlight): Likewise.
11800 (grub_wait_after_message): Likewise.
11802 * normal/color.c: New file.
11804 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11805 (normal_mod_DEPENDENCIES): Likewise.
11807 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11808 (normal_mod_DEPENDENCIES): Likewise.
11810 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11811 (normal_mod_DEPENDENCIES): Likewise.
11813 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11814 (normal_mod_DEPENDENCIES): Likewise.
11816 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
11817 for waiting after a message is printed.
11818 * normal/main.c (read_config_file): Likewise.
11819 (grub_normal_init): Register grub_env_write_color_normal() and
11820 grub_env_write_color_highlight() hooks. Mark `color_normal' and
11821 `color_highlight' variables as global.
11823 * normal/menu.c (grub_wait_after_message): New function.
11824 (grub_color_menu_normal): New variable. Replaces ...
11825 (GRUB_COLOR_MENU_NORMAL): ... this macro.
11826 (grub_color_menu_highlight): New variable. Replaces ...
11827 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
11828 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
11829 `GRUB_TERM_COLOR_STANDARD'.
11830 (print_message): Use `grub_setcolorstate' to reload colors. Rename
11831 `normal_code' and `highlight_code' to `old_color_normal' and
11832 `old_color_highlight', respectively.
11833 (grub_menu_init_page): Update colors when drawing the menu, based on
11834 `menu_color_normal' and `menu_color_highlight' variables.
11835 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
11836 a message is printed.
11838 2008-01-05 Robert Millan <rmh@aybabtu.com>
11840 * kern/env.c (grub_env_context_open): Propagate hooks for global
11841 variables to new context.
11843 * kern/main.c (grub_set_root_dev): Export `root' variable.
11845 2008-01-05 Robert Millan <rmh@aybabtu.com>
11847 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
11848 discs unconditionally, since udev and others have options to provide
11851 2008-01-05 Robert Millan <rmh@aybabtu.com>
11853 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
11855 2008-01-04 Christian Franke <franke@computer.org>
11857 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
11860 2008-01-03 Pavel Roskin <proski@gnu.org>
11862 * kern/i386/linuxbios/init.c: Put "void" to all function
11863 declarations with no arguments.
11864 * kern/powerpc/ieee1275/init.c: Likewise.
11865 * term/i386/pc/at_keyboard.c: Likewise.
11866 * term/i386/pc/vga_text.c: Likewise.
11867 * util/grub-mkdevicemap.c: Likewise.
11869 2008-01-02 Robert Millan <rmh@aybabtu.com>
11871 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
11872 message when loaded image is out of bounds.
11873 (grub_multiboot_load_elf64): Likewise.
11875 2008-01-02 Pavel Roskin <proski@gnu.org>
11877 * util/grub.d/10_linux.in: Try version without ".old" when
11878 looking for initrd. It's better to use initrd from the newer
11879 kernel of the same version than no initrd at all.
11881 2008-01-01 Robert Millan <rmh@aybabtu.com>
11883 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
11885 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
11887 * include/grub/video.h: Added grub_video_unmap_color and
11888 grub_video_get_active_render_target.
11889 (grub_video_adapter): Added unmap_color and get_active_render_target.
11891 * video/video.c: Added grub_video_unmap_color and
11892 grub_video_get_active_render_target.
11893 (grub_video_get_info): Changed method to accept NULL pointer as an
11894 argument to allow detection of active video adapter.
11896 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
11897 grub_video_vbe_unmap_color_int.
11898 Added grub_video_vbe_unmap_color and
11899 grub_video_vbe_get_active_render_target.
11900 (grub_video_vbe_adapter): Added unmap_color and
11901 get_active_render_target.
11903 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
11904 with grub_video_vbe_unmap_color_int.
11906 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
11907 (DEFAULT_NORMAL_COLOR): Likewise.
11908 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
11909 (DEFAULT_FG_COLOR): Removed.
11910 (DEFAULT_BG_COLOR): Likewise.
11911 (DEFAULT_CURSOR_COLOR): Changed value.
11912 (grub_virtual_screen): Added standard_color_setting,
11913 normal_color_setting, highlight_color_setting and term_color.
11914 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
11915 (bitmap_width): Added.
11916 (bitmap_height): Likewise.
11917 (bitmap): Likewise.
11918 (set_term_color): Likewise.
11919 (grub_virtual_screen_setup): Changed to use new terminal coloring
11921 (grub_gfxterm_init): Added init for bitmap.
11922 (grub_gfxterm_fini): Added destroy for bitmap.
11923 (redraw_screen_rect): Updated to use background bitmap and new
11925 (scroll_up): Added optimization for case when there is no bitmap.
11926 (grub_gfxterm_cls): Fixed to use correct background color.
11927 (grub_virtual_screen_setcolorstate): Changed to use new terminal
11929 (grub_virtual_screen_setcolor): Likewise.
11930 (grub_virtual_screen_getcolor): Added.
11931 (grub_gfxterm_background_image_cmd): Likewise.
11932 (grub_video_term): Added setcolor and getcolor.
11933 (MOD_INIT): Added registration of background_image command.
11934 (MOD_TERM): Added unregistration for background_image command.
11936 2007-12-30 Pavel Roskin <proski@gnu.org>
11938 * loader/multiboot_loader.c: Fix multiboot command
11939 unregistration. Fix all typos in the word "multiboot".
11941 2007-12-29 Pavel Roskin <proski@gnu.org>
11943 * util/grub.d/10_linux.in: Refactor search for initrd. Add
11944 support for initrd names used in Fedora.
11946 2007-12-26 Bean <bean123ch@gmail.com>
11948 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
11949 (cpio_mod_SOURCES): New variable.
11950 (cpio_mod_CFLAGS): Likewise.
11951 (cpio_mod_LDFLAGS): Likewise.
11953 * fs/cpio.c: New file.
11955 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
11957 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11959 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11961 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11963 2007-12-25 Robert Millan <rmh@aybabtu.com>
11965 * include/grub/term.h (struct grub_term): Add `getcolor' function.
11966 (grub_getcolor): New function.
11968 * kern/term.c (grub_getcolor): New function.
11969 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
11970 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
11971 (print_entry): Set normal and highlight colors to
11972 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
11973 respectively, before printing and restore them to old
11975 (grub_menu_init_page): Likewise. Fill an additional colored space
11976 that would otherwise be left blank.
11978 * term/efi/console.c (grub_console_getcolor): New function.
11979 (struct grub_console_term.getcolor): New variable.
11980 * term/i386/pc/console.c (grub_console_getcolor): New function.
11981 (struct grub_console_term.getcolor): New variable.
11982 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
11983 (struct grub_console_term.getcolor): New variable.
11985 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
11986 (struct grub_console_term.setcolor): Remove variable.
11987 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
11988 (struct grub_console_term.setcolor): Remove variable.
11989 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
11990 (struct grub_console_term.setcolor): Remove variable.
11991 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
11992 (struct grub_console_term.setcolor): Remove variable.
11994 2007-12-25 Robert Millan <rmh@aybabtu.com>
11996 * configure.ac: Search for possible unifont.hex locations, and
11997 define UNIFONT_HEX if found.
11999 * Makefile.in (UNIFONT_HEX): Define variable.
12000 (DATA): Rename to ...
12001 (PKGLIB): ... this. Update all users.
12002 (PKGDATA): New variable.
12003 (pkgdata_IMAGES): Rename to ...
12004 (pkglib_IMAGES): ... this. Update all users.
12005 (pkgdata_MODULES): Rename to ...
12006 (pkglib_MODULES): ... this. Update all users.
12007 (pkgdata_PROGRAMS): Rename to ...
12008 (pkglib_PROGRAMS): ... this. Update all users.
12009 (pkgdata_DATA): Rename to ...
12010 (pkglib_DATA): ... this. Update all users.
12011 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
12012 (unicode.pff, ascii.pff): New rules.
12013 (all-local): Add `$(PKGDATA)' dependency.
12014 (install-local): Process `$(PKGDATA)'.
12016 * util/update-grub_lib.in (font_path): Search for *.pff files in
12017 a few more locations, including `${pkgdata}'.
12019 2007-12-23 Robert Millan <rmh@aybabtu.com>
12021 Patch from Bean <bean123ch@gmail.com>:
12022 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
12025 2007-12-21 Bean <bean123ch@gmail.com>
12027 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
12028 (ntfscomp_mod_SOURCES): New variable.
12029 (ntfscomp_mod_CFLAGS): Likewise.
12030 (ntfscomp_mod_LDFLAGS): Likewise.
12032 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
12033 (grub_probe_SOURCES): Likewise.
12034 (grub_emu_SOURCES): Likewise.
12036 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12037 (grub_emu_SOURCES): Likewise.
12039 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12040 (grub_emu_SOURCES): Likewise.
12042 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12043 (grub_emu_SOURCES): Likewise.
12045 * fs/ntfs.c (grub_ntfscomp_func): New variable.
12046 (read_run_list): Renamed to grub_ntfs_read_run_list.
12047 (decomp_nextvcn): Moved to ntfscomp.c.
12048 (decomp_getch): Likewise.
12049 (decomp_get16): Likewise.
12050 (decomp_block): Likewise.
12051 (read_block): Likewise.
12052 (read_data): Partially moved to ntfscomp.c.
12053 (fixup): Change unsigned to grub_uint16_t.
12054 (read_mft): Change unsigned long to grub_uint32_t.
12055 (read_attr): Likewise.
12056 (read_data): Likewise.
12057 (read_run_data): Likewise.
12058 (read_run_list): Likewise.
12059 (read_mft): Likewise.
12061 * fs/ntfscomp.c: New file.
12063 * include/grub/ntfs.h: New file.
12065 2007-12-16 Robert Millan <rmh@aybabtu.com>
12067 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
12068 IDE disk check, since Linux is known to support 20 IDE disks.
12069 Reported by Colin Watson.
12071 2007-12-15 Bean <bean123ch@gmail.com>
12073 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
12074 (lnxboot_img_SOURCES): New variable.
12075 (lnxboot_img_ASFLAGS): Likewise.
12076 (lnxboot_img_LDFLAGS): Likewise.
12078 * boot/i386/pc/lnxboot.S: New file.
12080 2007-11-24 Pavel Roskin <proski@gnu.org>
12082 * configure.ac: Test if '--build-id=none' is supported by the
12083 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
12084 objcopy to generate incorrect binary files (binutils
12085 2.17.50.0.18-1 as shipped by Fedora 8).
12086 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
12087 linking, so that build ID doesn't break the test.
12089 2007-11-24 Pavel Roskin <proski@gnu.org>
12091 * include/grub/i386/time.h: use "void" in the argument list
12092 of grub_cpu_idle().
12093 * include/grub/powerpc/time.h: Likewise.
12094 * include/grub/sparc64/time.h: Likewise.
12096 2007-11-18 Christian Franke <franke@computer.org>
12098 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
12099 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
12100 This fixes the problem that function keys did not work in grub-emu.
12102 2007-11-18 Christian Franke <franke@computer.org>
12104 * disk/host.c (grub_host_open): Remove attribute unused from
12105 name parameter. Add check for "host". This fixes the problem
12106 that grub-emu does not find partitions.
12108 2007-11-18 Christian Franke <franke@computer.org>
12110 * util/hostfs.c (is_dir): New function.
12111 (grub_hostfs_dir): Handle missing dirent.d_type case.
12112 (grub_hostfs_read): Add missing fseek().
12113 (grub_hostfs_label): Clear label pointer. This fixes a crash
12114 of grub-emu on "ls (host)".
12116 2007-11-18 Christian Franke <franke@computer.org>
12118 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
12119 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
12120 to 64 bit boundary by default.
12122 2007-11-18 Bean <bean123ch@gmail.com>
12124 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
12125 (hexdump_mod_SOURCES): New variable.
12126 (hexdump_mod_CFLAGS): Likewise.
12127 (hexdump_mod_LDFLAGS): Likewise.
12129 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12131 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12133 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12135 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12137 * include/grub/hexdump.h: New file.
12139 * commands/hexdump.c: New file.
12141 2007-11-10 Robert Millan <rmh@aybabtu.com>
12143 * commands/i386/pc/play.c (beep_off): Switch order of arguments
12144 in grub_outb() calls.
12145 (beep_on): Likewise.
12147 2007-11-10 Christian Franke <franke@computer.org>
12149 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
12150 (grub_menu_run): Likewise.
12152 2007-11-10 Robert Millan <rmh@aybabtu.com>
12154 * include/grub/i386/efi/machine.h: New file.
12155 * include/grub/i386/linuxbios/machine.h: Likewise.
12156 * include/grub/i386/pc/machine.h: Likewise.
12157 * include/grub/powerpc/ieee1275/machine.h: Likewise.
12158 * include/grub/sparc64/ieee1275/machine.h: Likewise.
12160 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
12161 (serial_hw_io_addr): New variable.
12162 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
12163 instead of `(unsigned short *) 0x400'.
12165 2007-11-10 Bean <bean123ch@gmail.com>
12167 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
12169 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12171 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
12172 (vga_mod_SOURCES): Added.
12173 (vga_mod_CFLAGS): Likewise.
12174 (vga_mod_LDFLAGS): Likewise.
12176 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
12178 (set_map_mask): Likewise.
12179 (set_read_map): Likewise.
12180 (set_read_address): Likewise.
12181 (vga_font): Removed variable.
12182 (get_vga_glyph): Removed function.
12183 (invalidate_char): Likewise.
12184 (write_char): Changed to use grub_font_get_glyph() for font
12186 (grub_vga_putchar): Likewise.
12187 (grub_vga_getcharwidth): Likewise.
12189 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12191 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
12193 (pxeboot_img_LDFLAGS): Likewise.
12194 (diskboot_img_LDFLAGS): Likewise.
12195 (kernel_img_LDFLAGS): Likewise.
12197 2007-11-06 Robert Millan <rmh@aybabtu.com>
12199 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
12200 in grub_outb() calls.
12201 (serial_hw_init): Likewise.
12203 2007-11-05 Robert Millan <rmh@aybabtu.com>
12205 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
12206 spaces. Skip non-regular files.
12208 2007-11-05 Robert Millan <rmh@aybabtu.com>
12210 * kern/disk.c (grub_disk_firmware_fini)
12211 (grub_disk_firmware_is_tainted): New variables.
12213 * include/grub/disk.h (grub_disk_firmware_fini)
12214 (grub_disk_firmware_is_tainted): Likewise.
12216 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
12217 (grub_disk_biosdisk_fini): ... to here.
12218 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
12219 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
12220 is set. Register grub_disk_biosdisk_fini() in
12221 `grub_disk_firmware_fini'.
12223 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
12224 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
12225 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
12226 to finish existing firmware disk interface.
12228 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
12229 (ata_mod_SOURCES): New variable.
12230 (ata_mod_CFLAGS): Likewise.
12231 (ata_mod_LDFLAGS): Likewise.
12233 2007-11-05 Robert Millan <rmh@aybabtu.com>
12235 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
12236 (grub_ata_wait): Reimplement using grub_millisleep().
12238 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
12239 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
12241 2007-11-03 Marco Gerards <marco@gnu.org>
12243 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
12244 (CRTC_ADDR_PORT): New macro.
12245 (CRTC_DATA_PORT): Likewise.
12246 (CRTC_CURSOR): Likewise.
12247 (CRTC_CURSOR_ADDR_HIGH): Likewise.
12248 (CRTC_CURSOR_ADDR_LOW): Likewise.
12249 (update_cursor): New function.
12250 (grub_console_real_putchar): Call `update_cursor'.
12251 (grub_console_gotoxy): Likewise.
12252 (grub_console_cls): Set the default color when clearing the
12254 (grub_console_setcursor): Implemented.
12256 2007-11-03 Marco Gerards <marco@gnu.org>
12258 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
12260 (grub_ata_pio_write): Likewise.
12262 (grub_atapi_identify): Wait after issuing an ATA command.
12263 (grub_atapi_packet): Likewise.
12264 (grub_ata_identify): Likewise.
12265 (grub_ata_readwrite): Likewise.
12267 2007-11-03 Marco Gerards <marco@gnu.org>
12269 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
12270 (grub_ata_pio_write): Likewise.
12271 (grub_ata_readwrite): Use `grub_error', instead of
12272 returning `grub_errno'.
12274 2007-11-03 Marco Gerards <marco@gnu.org>
12276 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
12277 grub_ata_pio_write once for every single sector, instead of for
12280 2007-10-31 Robert Millan <rmh@aybabtu.com>
12282 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
12284 * conf/i386-linuxbios.rmk: New file.
12286 * kern/i386/pc/hardware.c: Likewise.
12287 * term/i386/pc/at_keyboard.c: Likewise.
12288 * term/i386/pc/vga_text.c: Likewise.
12290 * include/grub/i386/linuxbios/boot.h: Likewise.
12291 * include/grub/i386/linuxbios/console.h: Likewise.
12292 * include/grub/i386/linuxbios/init.h: Likewise.
12293 * include/grub/i386/linuxbios/kernel.h: Likewise.
12294 * include/grub/i386/linuxbios/loader.h: Likewise.
12295 * include/grub/i386/linuxbios/memory.h: Likewise.
12296 * include/grub/i386/linuxbios/serial.h: Likewise.
12297 * include/grub/i386/linuxbios/time.h: Likewise.
12299 * kern/i386/linuxbios/init.c: Likewise.
12300 * kern/i386/linuxbios/startup.S: Likewise.
12301 * kern/i386/linuxbios/table.c: Likewise.
12303 2007-10-31 Marco Gerards <marco@gnu.org>
12305 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
12306 (ata_mod_SOURCES): New variable.
12307 (ata_mod_CFLAGS): Likewise.
12308 (ata_mod_LDFLAGS): Likewise.
12310 * disk/ata.c: New file.
12312 * include/grub/disk.h (grub_disk_dev_id): Add
12313 `GRUB_DISK_DEV_ATA_ID'.
12315 2007-10-31 Robert Millan <rmh@aybabtu.com>
12317 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
12318 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
12320 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
12321 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
12323 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
12326 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
12328 2007-10-27 Robert Millan <rmh@aybabtu.com>
12330 * include/grub/types.h (ULONG_MAX): Define macro.
12332 2007-10-22 Robert Millan <rmh@aybabtu.com>
12334 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
12336 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
12338 2007-10-22 Robert Millan <rmh@aybabtu.com>
12340 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
12341 (pkgdata_MODULES): Add `biosdisk.mod'.
12342 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
12345 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
12346 (grub_biosdisk_init): Replace with ...
12347 (GRUB_MOD_INIT(biosdisk)): ... this.
12348 (grub_biosdisk_fini): Replace with ...
12349 (GRUB_MOD_FINI(biosdisk)): ... this.
12351 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
12352 (grub_machine_init): Remove call to grub_biosdisk_init().
12353 (grub_machine_fini): Remove call to grub_machine_fini().
12355 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
12357 2007-10-22 Robert Millan <rmh@aybabtu.com>
12359 * include/grub/time.h: New file.
12360 * include/grub/i386/time.h: Likewise.
12361 * include/grub/powerpc/time.h: Likewise.
12362 * include/grub/sparc64/time.h: Likewise.
12364 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
12366 (KERNEL_MACHINE_TIME_HEADER): ... this.
12367 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12369 (KERNEL_MACHINE_TIME_HEADER): ... this.
12370 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12372 (KERNEL_MACHINE_TIME_HEADER): ... this.
12374 * kern/i386/efi/init.c: Include `<grub/time.h>'.
12375 (grub_millisleep): New function.
12376 * kern/i386/pc/init.c: Include `<grub/time.h>'.
12377 (grub_millisleep): New function.
12378 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
12379 Remove `grub/machine/time.h' include.
12380 (grub_millisleep): New function.
12381 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
12382 Remove `grub/machine/time.h' include.
12383 (grub_millisleep): New function.
12385 * include/grub/misc.h (grub_div_roundup): New function.
12387 * kern/misc.c: Include `<grub/time.h>'.
12388 (grub_millisleep_generic): New function.
12390 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
12392 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
12394 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
12395 `machine/time.h'. Add `time.h'.
12396 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
12398 2007-10-21 Robert Millan <rmh@aybabtu.com>
12400 * include/grub/misc.h (grub_max): New function.
12402 2007-10-21 Robert Millan <rmh@aybabtu.com>
12404 * util/misc.c (grub_util_info): Call fflush() before returning.
12406 2007-10-20 Robert Millan <rmh@aybabtu.com>
12408 * genmk.rb (Image): Copy `extra_flags' from here ...
12409 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
12411 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
12412 to `argc' and `args' arguments.
12414 2007-10-17 Robert Millan <rmh@aybabtu.com>
12416 * kern/i386/loader.S: New file.
12418 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
12419 * kern/i386/loader.S (grub_linux_prot_size)... to here.
12420 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
12421 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
12422 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
12423 * kern/i386/loader.S (grub_linux_real_addr)... to here.
12424 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
12425 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
12426 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
12427 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
12428 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
12429 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
12430 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
12431 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
12433 * kern/i386/realmode.S: New file.
12435 * kern/i386/pc/startup.S (protstack): Moved from here ...
12436 * kern/i386/realmode.S (protstack)... to here.
12437 * kern/i386/pc/startup.S (gdt): Moved from here ...
12438 * kern/i386/realmode.S (gdt)... to here.
12439 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
12440 * kern/i386/realmode.S (prot_to_real)... to here.
12442 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
12443 `kern/i386/realmode.S'.
12445 2007-10-17 Robert Millan <rmh@aybabtu.com>
12447 * include/grub/i386/loader.h: New file.
12449 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
12450 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12451 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12452 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12453 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
12454 * include/grub/i386/loader.h (grub_linux_prot_size)
12455 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12456 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12457 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12458 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
12460 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
12462 2007-10-15 Robert Millan <rmh@aybabtu.com>
12464 * normal/misc.c (grub_normal_print_device_info): Do not probe for
12465 filesystem when dev->disk is unset.
12466 Do probe for filesystem even when dev->disk->has_partitions is set.
12467 In case a filesystem is found, always report it.
12468 In case it isn't, if dev->disk->has_partitions is set, report that
12469 a partition table was found instead of reporting that no filesystem
12470 could be identified.
12472 2007-10-12 Robert Millan <rmh@aybabtu.com>
12474 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
12475 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
12477 * include/grub/types.h (grub_host_to_target16): New macro.
12478 (grub_host_to_target32): Likewise.
12479 (grub_host_to_target64): Likewise.
12480 (grub_target_to_host16): Likewise.
12481 (grub_target_to_host32): Likewise.
12482 (grub_target_to_host64): Likewise.
12484 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
12485 Renamed from to ...
12486 (GRUB_MOD_ALIGN): ...this. Update all users.
12488 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
12489 grub_host_to_target32.
12490 Replace grub_be_to_cpu32 with grub_target_to_host32.
12491 (load_modules): Likewise.
12492 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
12493 Replace grub_be_to_cpu32 with grub_target_to_host32.
12494 Replace grub_cpu_to_be16 with grub_host_to_target16.
12495 Replace grub_cpu_to_be32 grub_host_to_target32.
12497 2007-10-12 Robert Millan <rmh@aybabtu.com>
12499 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
12500 * util/elf/grub-mkimage.c: ... here.
12502 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
12503 `util/powerpc/ieee1275/grub-mkimage.c'.
12505 2007-10-07 Robert Millan <rmh@aybabtu.com>
12507 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
12508 and make it easier to figure out.
12509 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
12510 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
12511 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
12512 leave us with less than HEAP_MIN_SIZE total heap.
12513 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
12515 2007-10-03 Robert Millan <rmh@aybabtu.com>
12517 * include/grub/i386/io.h: New file.
12518 * commands/i386/pc/play.c (inb): Removed.
12520 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12522 * term/i386/pc/serial.c (inb): Removed.
12524 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12526 * term/i386/pc/vga.c (inb): Removed.
12528 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12531 2007-10-02 Robert Millan <rmh@aybabtu.com>
12533 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
12534 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12535 Reported by Marcin Kurek.
12537 2007-09-07 Robert Millan <rmh@aybabtu.com>
12539 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
12540 SmartFirmware version updates (as released by Sven Luther), and avoid
12541 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
12542 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
12545 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12547 From Hitoshi Ozeki:
12548 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
12549 when merging two regions.
12551 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12553 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
12554 * normal/completion.c (grub_normal_do_completion): Likewise.
12555 Reported by Hitoshi Ozeki.
12557 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12559 Do not use devices at boot in chainloading.
12561 * loader/i386/pc/chainloader.c (boot_drive): New variable.
12562 (boot_part_addr): Likewise.
12563 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
12564 with BOOT_DRIVE and BOOT_PART_ADDR.
12565 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
12566 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
12568 2007-08-29 Robert Millan <rmh@aybabtu.com>
12570 Patch from Simon Peter <dn.tlp@gmx.net>:
12571 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
12572 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
12573 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
12574 util/i386/pc/grub-setup.c_DEPENDENCIES.
12575 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
12576 util/grub-probe.c_DEPENDENCIES.
12577 * conf/powerpc-ieee1275.rmk: Likewise.
12579 2007-08-28 Robert Millan <rmh@aybabtu.com>
12581 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
12582 to tell grub-mkdevicemap how to name devices.
12583 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
12586 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
12587 util/i386/get_disk_name.c.
12588 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
12589 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
12590 util/ieee1275/get_disk_name.c.
12592 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
12594 * DISTLIST: Add util/i386/get_disk_name.c and
12595 util/ieee1275/get_disk_name.c.
12597 * util/grub-mkdevicemap.c: Replace device naming logic with
12598 grub_util_get_disk_name() calls.
12600 2007-08-20 Robert Millan <rmh@aybabtu.com>
12602 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
12603 (so that it works for both plural and singular quantities).
12605 2007-08-05 Robert Millan <rmh@aybabtu.com>
12607 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
12608 so that [xz] isn't taken into account when determining order.
12610 2007-08-02 Marco Gerards <marco@gnu.org>
12612 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
12613 `include/multiboot2.h', `include/grub/elfload.h',
12614 `include/multiboot.h', `include/grub/multiboot.h',
12615 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
12616 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
12617 `kern/elf.c', `loader/multiboot_loader.c',
12618 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
12619 `loader/i386/pc/multiboot2.c',
12620 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
12621 `util/i386/pc/grub-mkrescue.in'. Remove
12622 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
12623 `include/grub/i386/pc/util/biosdisk.h' and
12624 `include/grub/powerpc/ieee1275/multiboot.h'.
12626 2007-08-02 Bean <bean123ch@gmail.com>
12628 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
12629 (ntfs_mod_SOURCES): New variable.
12630 (ntfs_mod_CFLAGS): Likewise.
12631 (ntfs_mod_LDFLAGS): Likewise.
12633 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
12634 (grub_probe_SOURCES): Likewise.
12635 (grub_emu_SOURCES): Likewise.
12637 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12638 (grub_emu_SOURCES): Likewise.
12640 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12641 (grub_emu_SOURCES): Likewise.
12643 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
12645 * fs/ntfs.c: New file.
12647 2007-08-02 Bean <bean123ch@gmail.com>
12649 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
12651 * file.h (grub_file): Likewise.
12653 * fshelp.h (grub_fshelp_read_file): Likewise.
12655 * util/i386/pc/grub-setup.c (setup): Likewise.
12656 (save_first_sector): Likewise.
12657 (save_blocklists): Likewise.
12659 * fs/affs.c (grub_affs_read_file): Likewise.
12661 * fs/ext2.c (grub_ext2_read_file): Likewise.
12663 * fs/fat.c (grub_fat_read_data): Likewise.
12665 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
12667 * fs/hfs.c (grub_hfs_read_file): Likewise.
12669 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
12671 * fs/jfs.c (grub_jfs_read_file): Likewise.
12673 * fs/minix.c (grub_minix_read_file): Likewise.
12675 * fs/sfs.c (grub_sfs_read_file): Likewise.
12677 * fs/ufs.c (grub_ufs_read_file): Likewise.
12679 * fs/xfs.c (grub_xfs_read_file): Likewise.
12681 * command/blocklist.c (read_blocklist): Likewise.
12682 (print_blocklist): Likewise.
12684 2007-08-02 Marco Gerards <marco@gnu.org>
12686 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
12689 * disk/host.c: New file.
12691 * util/hostfs.c: Likewise.
12693 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
12694 return `GRUB_ERR_BAD_FS'.
12695 * fs/sfs.c (grub_sfs_mount): Likewise.
12696 * fs/xfs.c (grub_xfs_mount): Likewise.
12698 * include/grub/disk.h (enum grub_disk_dev_id): Add
12699 `GRUB_DISK_DEVICE_HOST_ID'.
12701 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
12703 2007-07-24 Jerone Young <jerone@gmail.com>
12705 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
12706 modules for compilation.
12707 * conf/powerpc-ieee1275.rmk: Likewise.
12709 * include/multiboot.h: Move multiboot definitions to one file. Rename
12710 many definitions to not get grub specific.
12711 * include/multiboot2.h: Create header with multiboot 2 definitions.
12712 * include/grub/multiboot.h: Header for grub specific function
12713 prototypes and definitions.
12714 * include/grub/multiboot2.h: Likewise.
12715 * include/grub/multiboot_loader.h: Likewise.
12716 * include/grub/i386/pc/multiboot.h: Removed.
12717 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
12719 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
12720 and 2 to allow for one multiboot and module commands.
12721 * loader/multiboot2.c: Add multiboot2 functionality.
12722 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
12723 and definition names.
12724 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
12726 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
12727 ieee1275 specific multiboot2 code.
12729 * kern/i386/pc/startup.S: Change headers and definition names for
12730 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
12732 2007-07-22 Robert Millan <rmh@aybabtu.com>
12734 * geninitheader.sh: Process file specified in first parameter rather
12735 than hardcoding grub_modules_init.lst.
12736 * geninit.sh: Likewise. Also, construct header name dynamically rather
12737 than hardcoding grub_modules_init.h.
12739 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
12740 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
12741 grub_probe_init.[ch] and grub_setup_init.[ch].
12743 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
12744 grub_modules_init.h with grub_emu_init.h.
12745 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
12746 grub_probe_init.[ch] files.
12747 * conf/i386-efi.rmk: Likewise.
12748 * conf/i386-pc.rmk: Likewise.
12749 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
12750 grub_setup_init.[ch] files.
12752 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
12753 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
12754 to initialize modules rather than a list of hardcoded functions.
12755 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
12756 grub_init_all() to initialize modules rather than a list of hardcoded
12759 2007-07-22 Robert Millan <rmh@aybabtu.com>
12761 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12762 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
12764 2007-07-22 Robert Millan <rmh@aybabtu.com>
12766 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
12767 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
12768 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
12769 flag when running on SmartFirmware.
12770 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
12771 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
12774 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12775 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
12776 rather than decreasing it.
12778 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
12779 there's not enough space to do it, fail in the same way as when it
12780 can't be done because there are no partitions.
12782 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
12783 when nvsetenv failed.
12785 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12787 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
12788 because this rule is automatically generated.
12789 (grub-mkrescue): Removed for the same reason as above.
12791 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12793 Migrate to GNU General Public License Version 3.
12795 * COPYING: Replaced with the plain text version of GPLv3.
12797 * config.guess: Updated from gnulib.
12798 * config.sub: Likewise.
12800 * geninit.sh: Output a GPLv3 copyright notice.
12801 * geninitheader.sh: Likewise.
12802 * genmodsrc.sh: Likewise.
12803 * gensymlist.sh.in: Likewise.
12805 * boot/i386/pc/boot.S: Upgraded to GPLv3.
12806 * boot/i386/pc/diskboot.S: Likewise.
12807 * boot/i386/pc/pxeboot.S: Likewise.
12808 * commands/blocklist.c: Likewise.
12809 * commands/boot.c: Likewise.
12810 * commands/cat.c: Likewise.
12811 * commands/cmp.c: Likewise.
12812 * commands/configfile.c: Likewise.
12813 * commands/echo.c: Likewise.
12814 * commands/help.c: Likewise.
12815 * commands/ls.c: Likewise.
12816 * commands/search.c: Likewise.
12817 * commands/terminal.c: Likewise.
12818 * commands/test.c: Likewise.
12819 * commands/videotest.c: Likewise.
12820 * commands/i386/cpuid.c: Likewise.
12821 * commands/i386/pc/halt.c: Likewise.
12822 * commands/i386/pc/play.c: Likewise.
12823 * commands/i386/pc/reboot.c: Likewise.
12824 * commands/i386/pc/vbeinfo.c: Likewise.
12825 * commands/i386/pc/vbetest.c: Likewise.
12826 * commands/ieee1275/halt.c: Likewise.
12827 * commands/ieee1275/reboot.c: Likewise.
12828 * commands/ieee1275/suspend.c: Likewise.
12829 * disk/loopback.c: Likewise.
12830 * disk/lvm.c: Likewise.
12831 * disk/raid.c: Likewise.
12832 * disk/efi/efidisk.c: Likewise.
12833 * disk/i386/pc/biosdisk.c: Likewise.
12834 * disk/ieee1275/ofdisk.c: Likewise.
12835 * font/manager.c: Likewise.
12836 * fs/affs.c: Likewise.
12837 * fs/ext2.c: Likewise.
12838 * fs/fat.c: Likewise.
12839 * fs/fshelp.c: Likewise.
12840 * fs/hfs.c: Likewise.
12841 * fs/hfsplus.c: Likewise.
12842 * fs/iso9660.c: Likewise.
12843 * fs/jfs.c: Likewise.
12844 * fs/minix.c: Likewise.
12845 * fs/sfs.c: Likewise.
12846 * fs/ufs.c: Likewise.
12847 * fs/xfs.c: Likewise.
12848 * hello/hello.c: Likewise.
12849 * include/grub/acorn_filecore.h: Likewise.
12850 * include/grub/arg.h: Likewise.
12851 * include/grub/bitmap.h: Likewise.
12852 * include/grub/boot.h: Likewise.
12853 * include/grub/cache.h: Likewise.
12854 * include/grub/device.h: Likewise.
12855 * include/grub/disk.h: Likewise.
12856 * include/grub/dl.h: Likewise.
12857 * include/grub/elfload.h: Likewise.
12858 * include/grub/env.h: Likewise.
12859 * include/grub/err.h: Likewise.
12860 * include/grub/file.h: Likewise.
12861 * include/grub/font.h: Likewise.
12862 * include/grub/fs.h: Likewise.
12863 * include/grub/fshelp.h: Likewise.
12864 * include/grub/gzio.h: Likewise.
12865 * include/grub/hfs.h: Likewise.
12866 * include/grub/kernel.h: Likewise.
12867 * include/grub/loader.h: Likewise.
12868 * include/grub/lvm.h: Likewise.
12869 * include/grub/misc.h: Likewise.
12870 * include/grub/mm.h: Likewise.
12871 * include/grub/net.h: Likewise.
12872 * include/grub/normal.h: Likewise.
12873 * include/grub/parser.h: Likewise.
12874 * include/grub/partition.h: Likewise.
12875 * include/grub/pc_partition.h: Likewise.
12876 * include/grub/raid.h: Likewise.
12877 * include/grub/rescue.h: Likewise.
12878 * include/grub/script.h: Likewise.
12879 * include/grub/setjmp.h: Likewise.
12880 * include/grub/symbol.h: Likewise.
12881 * include/grub/term.h: Likewise.
12882 * include/grub/terminfo.h: Likewise.
12883 * include/grub/tparm.h: Likewise.
12884 * include/grub/types.h: Likewise.
12885 * include/grub/video.h: Likewise.
12886 * include/grub/efi/api.h: Likewise.
12887 * include/grub/efi/chainloader.h: Likewise.
12888 * include/grub/efi/console.h: Likewise.
12889 * include/grub/efi/console_control.h: Likewise.
12890 * include/grub/efi/disk.h: Likewise.
12891 * include/grub/efi/efi.h: Likewise.
12892 * include/grub/efi/pe32.h: Likewise.
12893 * include/grub/efi/time.h: Likewise.
12894 * include/grub/i386/linux.h: Likewise.
12895 * include/grub/i386/setjmp.h: Likewise.
12896 * include/grub/i386/types.h: Likewise.
12897 * include/grub/i386/efi/kernel.h: Likewise.
12898 * include/grub/i386/efi/loader.h: Likewise.
12899 * include/grub/i386/efi/time.h: Likewise.
12900 * include/grub/i386/pc/biosdisk.h: Likewise.
12901 * include/grub/i386/pc/boot.h: Likewise.
12902 * include/grub/i386/pc/chainloader.h: Likewise.
12903 * include/grub/i386/pc/console.h: Likewise.
12904 * include/grub/i386/pc/init.h: Likewise.
12905 * include/grub/i386/pc/kernel.h: Likewise.
12906 * include/grub/i386/pc/loader.h: Likewise.
12907 * include/grub/i386/pc/memory.h: Likewise.
12908 * include/grub/i386/pc/multiboot.h: Likewise.
12909 * include/grub/i386/pc/serial.h: Likewise.
12910 * include/grub/i386/pc/time.h: Likewise.
12911 * include/grub/i386/pc/vbe.h: Likewise.
12912 * include/grub/i386/pc/vbeblit.h: Likewise.
12913 * include/grub/i386/pc/vbefill.h: Likewise.
12914 * include/grub/i386/pc/vbeutil.h: Likewise.
12915 * include/grub/i386/pc/vga.h: Likewise.
12916 * include/grub/ieee1275/ieee1275.h: Likewise.
12917 * include/grub/ieee1275/ofdisk.h: Likewise.
12918 * include/grub/powerpc/libgcc.h: Likewise.
12919 * include/grub/powerpc/setjmp.h: Likewise.
12920 * include/grub/powerpc/types.h: Likewise.
12921 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
12922 * include/grub/powerpc/ieee1275/console.h: Likewise.
12923 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
12924 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
12925 * include/grub/powerpc/ieee1275/loader.h: Likewise.
12926 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
12927 * include/grub/powerpc/ieee1275/time.h: Likewise.
12928 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
12929 * include/grub/sparc64/libgcc.h: Likewise.
12930 * include/grub/sparc64/setjmp.h: Likewise.
12931 * include/grub/sparc64/types.h: Likewise.
12932 * include/grub/sparc64/ieee1275/console.h: Likewise.
12933 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
12934 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
12935 * include/grub/sparc64/ieee1275/time.h: Likewise.
12936 * include/grub/util/biosdisk.h: Likewise.
12937 * include/grub/util/getroot.h: Likewise.
12938 * include/grub/util/lvm.h: Likewise.
12939 * include/grub/util/misc.h: Likewise.
12940 * include/grub/util/raid.h: Likewise.
12941 * include/grub/util/resolve.h: Likewise.
12942 * io/gzio.c: Likewise.
12943 * kern/device.c: Likewise.
12944 * kern/disk.c: Likewise.
12945 * kern/dl.c: Likewise.
12946 * kern/elf.c: Likewise.
12947 * kern/env.c: Likewise.
12948 * kern/err.c: Likewise.
12949 * kern/file.c: Likewise.
12950 * kern/fs.c: Likewise.
12951 * kern/loader.c: Likewise.
12952 * kern/main.c: Likewise.
12953 * kern/misc.c: Likewise.
12954 * kern/mm.c: Likewise.
12955 * kern/parser.c: Likewise.
12956 * kern/partition.c: Likewise.
12957 * kern/rescue.c: Likewise.
12958 * kern/term.c: Likewise.
12959 * kern/efi/efi.c: Likewise.
12960 * kern/efi/init.c: Likewise.
12961 * kern/efi/mm.c: Likewise.
12962 * kern/i386/dl.c: Likewise.
12963 * kern/i386/efi/init.c: Likewise.
12964 * kern/i386/efi/startup.S: Likewise.
12965 * kern/i386/pc/init.c: Likewise.
12966 * kern/i386/pc/lzo1x.S: Likewise.
12967 * kern/i386/pc/startup.S: Likewise.
12968 * kern/ieee1275/ieee1275.c: Likewise.
12969 * kern/powerpc/cache.S: Likewise.
12970 * kern/powerpc/dl.c: Likewise.
12971 * kern/powerpc/ieee1275/cmain.c: Likewise.
12972 * kern/powerpc/ieee1275/crt0.S: Likewise.
12973 * kern/powerpc/ieee1275/init.c: Likewise.
12974 * kern/powerpc/ieee1275/openfw.c: Likewise.
12975 * kern/sparc64/cache.S: Likewise.
12976 * kern/sparc64/dl.c: Likewise.
12977 * kern/sparc64/ieee1275/init.c: Likewise.
12978 * kern/sparc64/ieee1275/openfw.c: Likewise.
12979 * loader/efi/chainloader.c: Likewise.
12980 * loader/efi/chainloader_normal.c: Likewise.
12981 * loader/i386/efi/linux.c: Likewise.
12982 * loader/i386/efi/linux_normal.c: Likewise.
12983 * loader/i386/pc/chainloader.c: Likewise.
12984 * loader/i386/pc/chainloader_normal.c: Likewise.
12985 * loader/i386/pc/linux.c: Likewise.
12986 * loader/i386/pc/linux_normal.c: Likewise.
12987 * loader/i386/pc/multiboot.c: Likewise.
12988 * loader/i386/pc/multiboot_normal.c: Likewise.
12989 * loader/powerpc/ieee1275/linux.c: Likewise.
12990 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
12991 * normal/arg.c: Likewise.
12992 * normal/cmdline.c: Likewise.
12993 * normal/command.c: Likewise.
12994 * normal/completion.c: Likewise.
12995 * normal/execute.c: Likewise.
12996 * normal/function.c: Likewise.
12997 * normal/lexer.c: Likewise.
12998 * normal/main.c: Likewise.
12999 * normal/menu.c: Likewise.
13000 * normal/menu_entry.c: Likewise.
13001 * normal/misc.c: Likewise.
13002 * normal/parser.y: Likewise.
13003 * normal/script.c: Likewise.
13004 * normal/i386/setjmp.S: Likewise.
13005 * normal/powerpc/setjmp.S: Likewise.
13006 * normal/sparc64/setjmp.S: Likewise.
13007 * partmap/acorn.c: Likewise.
13008 * partmap/amiga.c: Likewise.
13009 * partmap/apple.c: Likewise.
13010 * partmap/gpt.c: Likewise.
13011 * partmap/pc.c: Likewise.
13012 * partmap/sun.c: Likewise.
13013 * term/gfxterm.c: Likewise.
13014 * term/terminfo.c: Likewise.
13015 * term/efi/console.c: Likewise.
13016 * term/i386/pc/console.c: Likewise.
13017 * term/i386/pc/serial.c: Likewise.
13018 * term/i386/pc/vesafb.c: Likewise.
13019 * term/i386/pc/vga.c: Likewise.
13020 * term/ieee1275/ofconsole.c: Likewise.
13021 * util/biosdisk.c: Likewise.
13022 * util/console.c: Likewise.
13023 * util/genmoddep.c: Likewise.
13024 * util/getroot.c: Likewise.
13025 * util/grub-emu.c: Likewise.
13026 * util/grub-mkdevicemap.c: Likewise.
13027 * util/grub-probe.c: Likewise.
13028 * util/lvm.c: Likewise.
13029 * util/misc.c: Likewise.
13030 * util/raid.c: Likewise.
13031 * util/resolve.c: Likewise.
13032 * util/update-grub.in: Likewise.
13033 * util/update-grub_lib.in: Likewise.
13034 * util/grub.d/00_header.in: Likewise.
13035 * util/grub.d/10_hurd.in: Likewise.
13036 * util/grub.d/10_linux.in: Likewise.
13037 * util/i386/efi/grub-install.in: Likewise.
13038 * util/i386/efi/grub-mkimage.c: Likewise.
13039 * util/i386/pc/grub-install.in: Likewise.
13040 * util/i386/pc/grub-mkimage.c: Likewise.
13041 * util/i386/pc/grub-mkrescue.in: Likewise.
13042 * util/i386/pc/grub-setup.c: Likewise.
13043 * util/i386/pc/misc.c: Likewise.
13044 * util/powerpc/ieee1275/grub-install.in: Likewise.
13045 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
13046 * util/powerpc/ieee1275/misc.c: Likewise.
13047 * video/bitmap.c: Likewise.
13048 * video/video.c: Likewise.
13049 * video/i386/pc/vbe.c: Likewise.
13050 * video/i386/pc/vbeblit.c: Likewise.
13051 * video/i386/pc/vbefill.c: Likewise.
13052 * video/i386/pc/vbeutil.c: Likewise.
13053 * video/readers/tga.c: Likewise.
13055 2007-07-02 Robert Millan <rmh@aybabtu.com>
13057 * conf/i386-efi.rmk: Replace obsolete reference to
13058 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
13059 with util/getroot.c.
13060 * conf/powerpc-ieee1275.rmk: Likewise.
13061 * conf/sparc64-ieee1275.rmk: Likewise.
13063 * util/grub-emu.c (main): Fix unchecked pointer handling.
13065 2007-07-02 Robert Millan <rmh@aybabtu.com>
13067 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
13068 invocation to fail, in order to support partition-less media.
13070 * util/i386/pc/grub-install.in: Likewise.
13072 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
13073 which fs or partmap modules are needed (akin to its sister scripts).
13075 Also use grub-probe to get rid of unportable /proc/mounts check.
13077 Print the same informational message that the other scripts do, before
13080 2007-06-23 Robert Millan <rmh@aybabtu.com>
13082 * util/update-grub_lib.in (font_path): New function. Determine whether
13083 a font file can be found and, if so, echo the GRUB path to it.
13085 * util/update-grub.in: Handle multiple terminals depending on user
13086 input, platform availability and font file presence. Propagate
13087 variables of our findings to /etc/grub.d/ children.
13089 * util/grub.d/00_header.in: Handle multiple terminals, based on
13090 environment setup by update-grub.
13092 2007-06-23 Robert Millan <rmh@aybabtu.com>
13094 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
13096 2007-06-21 Robert Millan <rmh@aybabtu.com>
13098 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
13099 indicate end of data section in kernel image.
13100 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
13101 GRUB_KERNEL_MACHINE_DATA_END.
13103 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
13105 * kern/i386/efi/startup.S: Likewise.
13107 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
13108 during image generation. Implement --prefix option to override this
13110 * util/i386/efi/grub-mkimage.c: Likewise.
13112 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
13113 code to make path relative to its root into a separate function.
13115 * util/i386/pc/grub-install.in: Use newly provided
13116 make_system_path_relative_to_its_root() to convert ${grubdir}, then
13117 pass the result to grub-install --prefix.
13119 2007-06-13 Robert Millan <rmh@aybabtu.com>
13121 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
13122 DEFAULT_DEVICE_MAP.
13123 * util/grub-emu.c: Use above definitions from misc.h instead of
13125 * util/grub-mkdevicemap.c: Likewise.
13126 * util/i386/pc/grub-setup.c: Likewise.
13127 * util/grub-probe.c: Likewise.
13128 (probe): Abort with grub_util_error() when either
13129 grub_guess_root_device or grub_util_get_grub_dev fails.
13131 2007-06-12 Robert Millan <rmh@aybabtu.com>
13133 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
13134 "pager" assignment.
13135 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
13137 * util/grub-probe.c (probe): Likewise for "drive_name".
13139 2007-06-11 Robert Millan <rmh@aybabtu.com>
13141 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
13142 not just the cdrom one.
13144 2007-06-11 Robert Millan <rmh@aybabtu.com>
13146 * util/i386/pc/grub-mkrescue.in: Add "set -e".
13147 Add --pkglibdir=DIR option to override pkglibdir.
13148 Mention --image-type=TYPE in help output.
13149 Fix --grub-mkimage (it was a no-op).
13150 Abort gracefully when no parameter is given.
13152 2007-06-11 Robert Millan <rmh@aybabtu.com>
13154 * util/i386/pc/grub-mkrescue.in: New file.
13155 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
13156 * Makefile.in: Handle bin_SCRIPTS.
13158 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
13160 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
13161 list of video modes.
13163 2007-06-06 Robert Millan <rmh@aybabtu.com>
13165 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
13166 file doesn't exist, or if it is in a filesystem grub can't read.
13168 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
13169 not abort if GRUB_DRIVE could not be defined. Rearrange generated
13170 header comment to fit in 80 columns when the variables are resolved.
13172 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
13173 could be identified by update-grub. Remove redundant check for
13174 unifont.pff existence (since convert_system_path_to_grub_path now
13177 2007-06-04 Robert Millan <rmh@aybabtu.com>
13179 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
13181 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
13183 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
13185 2007-06-04 Robert Millan <rmh@aybabtu.com>
13187 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
13189 * include/grub/partition.h: Declare grub_apple_partition_map_init and
13190 grub_apple_partition_map_fini.
13193 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
13194 to access >2 TiB disks).
13196 Print disk->total_sectors with %llu instead of %lu, since this
13197 variable is always 64-bit (prevents wrong disk size from being displayed
13198 on either >2 TiB disk or big-endian CPU).
13200 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
13201 into a generic case that supports all (sane) partition maps.
13203 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
13206 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
13207 and grub_apple_partition_map_fini() after that.
13209 2007-06-01 Robert Millan <rmh@aybabtu.com>
13211 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
13213 * util/grub.d/00_header.in: Only enable gfxterm when
13214 convert_system_path_to_grub_path() succeeds.
13216 2007-05-20 Robert Millan <rmh@aybabtu.com>
13218 * util/update-grub_lib.in: New file.
13219 * DISTLIST: Add update-grub_lib.in.
13220 * conf/common.rmk: Generate update-grub_lib and install it in
13222 * Makefile.in: Add install routine for $(lib_DATA).
13224 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
13225 function provided by update-grub_lib to support arbitrary paths of
13227 * util/update-grub.in: Use convert_system_path_to_grub_path() to
13228 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
13230 2007-05-19 Robert Millan <rmh@aybabtu.com>
13232 * commands/i386/cpuid.c: New module.
13233 * DISTLIST: Add it.
13234 * conf/i386-efi.rmk: Enable cpuid.mod.
13235 * conf/i386-pc.rmk: Likewise.
13237 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13239 * kern/disk.c (grub_disk_read): Check return value of
13242 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13244 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
13246 * disk/raid.c (grub_raid_open): Likewise.
13248 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13250 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
13251 stack instead of on the heap.
13253 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
13254 before doing a read on it.
13256 * configure.ac: Only use -fno-stack-protector for the target
13259 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13261 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
13262 __attribute_ ((unused)) to mode_type argument.
13264 * util/getroot.c (grub_guess_root_device): Fix #endif.
13266 * kern/misc.c (memcmp): Fix prototype.
13268 * include/grub/partition.h [GRUB_UTIL]
13269 (grub_gpt_partition_map_init): Add prototype.
13270 (grub_gpt_partition_map_fini): Likewise.
13272 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
13273 at the right place.
13275 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
13276 (grub_fat_read_data): Likewise.
13277 (grub_fat_find_dir): Likewise.
13279 * font/manager.c (find_glyph): Make table a const.
13280 (grub_font_get_glyph): Remove bitmap from if statement.
13282 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
13284 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
13285 code, first search for device in /dev/mapper, then in /dev.
13286 (grub_util_get_grub_dev): New function.
13287 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
13289 * util/grub-probe.c (probe): Remove check for RAID, call
13290 grub_util_get_grub_dev() instead of
13291 grub_util_biosdisk_get_grub_dev().
13292 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
13293 grub_util_biosdisk_get_grub_dev().
13294 * util/i386/pc/grub-setup.c (main): Likewise.
13296 2007-05-16 Robert Millan <rmh@aybabtu.com>
13298 * DISTLIST: Update for the latest changes.
13299 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
13300 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
13301 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
13302 grub/util/biosdisk.h.
13303 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
13304 grub/util/biosdisk.h.
13306 2007-05-16 Robert Millan <rmh@aybabtu.com>
13308 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
13310 2007-05-16 Robert Millan <rmh@aybabtu.com>
13312 * util/i386/efi/grub-install.in: New.
13313 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
13314 newly added grub-install.
13315 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
13317 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
13318 grub/util/biosdisk.h.
13319 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
13320 grub/util/biosdisk.h.
13322 2007-05-16 Robert Millan <rmh@aybabtu.com>
13324 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
13325 * include/grub/util/biosdisk.h: ... here.
13326 * util/i386/pc/biosdisk.c: Moved to ...
13327 * util/biosdisk.c: ... here.
13328 * util/i386/pc/getroot.c: Moved to ...
13329 * util/getroot.c: ... here.
13330 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
13331 * util/grub-mkdevicemap.c: ... here.
13332 * util/i386/pc/grub-probe.c: Moved to ...
13333 * util/grub-probe.c: ... here.
13335 2007-05-15 Robert Millan <rmh@aybabtu.com>
13337 * util/update-grub.in: Remove duplicated line in grub.cfg header
13340 2007-05-13 Robert Millan <rmh@aybabtu.com>
13342 * util/update-grub.in: Fix a few assumptions about the devices holding
13343 /, /boot and /boot/grub being the same.
13344 * util/grub.d/00_header.in: Likewise.
13345 * util/grub.d/10_hurd.in: Likewise.
13346 * util/grub.d/10_linux.in: Likewise.
13348 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
13349 patterns. Use that to define the `.old' suffix as older than `'.
13351 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
13353 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
13354 the grub.cfg header message.
13356 2007-05-11 Robert Millan <rmh@aybabtu.com>
13358 * util/update-grub.in: Create device.map if it doesn't already exist,
13359 before attempting to run grub-probe.
13360 Check for grub-probe and grub-mkdevicemap with the same code
13361 grub-install is using.
13364 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
13366 * Makefile.in: Add the datarootdir autoconf variable.
13368 2007-05-09 Robert Millan <rmh@aybabtu.com>
13370 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
13371 fail gracefully if dev->disk->partition == NULL.
13373 2007-05-07 Robert Millan <rmh@aybabtu.com>
13375 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
13376 determine partition map module.
13377 * util/i386/pc/grub-install.in: Use this feature to decide which
13378 partition module to load, instead of hardcoding pc and gpt.
13380 2007-05-07 Robert Millan <rmh@aybabtu.com>
13382 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
13383 source directory differs from build directory.
13385 2007-05-05 Robert Millan <rmh@aybabtu.com>
13387 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
13390 2007-05-05 Robert Millan <rmh@aybabtu.com>
13392 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
13394 2007-05-05 Robert Millan <rmh@aybabtu.com>
13396 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
13397 command-line arguments via ${GRUB_CMDLINE_LINUX}.
13399 2007-05-05 Robert Millan <rmh@aybabtu.com>
13401 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
13402 (grub_probe_SOURCES): Likewise.
13403 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
13404 GPT and initialize dos_part and bsd_part accordingly.
13405 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
13407 (main): Activate gpt module for use during partition identification,
13408 and deactivate it afterwards.
13409 * util/i386/pc/grub-install.in: Add gpt module to core.img.
13410 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
13411 partition identification, and deactivate it afterwards.
13413 2007-05-05 Robert Millan <rmh@aybabtu.com>
13415 * term/i386/pc/console.c (grub_console_fini): Call
13416 grub_term_set_current() before grub_term_unregister().
13418 2007-05-04 Robert Millan <rmh@aybabtu.com>
13420 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
13421 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
13422 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
13423 and update-grub_DATA.
13424 * conf/common.rmk: Build and install update-grub components.
13425 * conf/common.mk: Regenerate.
13426 * util/update-grub.in: New. Core of update-grub.
13427 * util/grub.d/00_header.in: New. Generates grub.cfg header.
13428 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
13429 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
13430 * util/grub.d/README: New. Document grub.d directory layout.
13432 2007-05-01 Robert Millan <rmh@aybabtu.com>
13434 * util/grub-emu.c: Move initialization functions
13435 grub_util_biosdisk_init() and grub_init_all() before
13436 grub_util_biosdisk_get_grub_dev(), which relies on them.
13438 2007-04-19 Robert Millan <rmh@aybabtu.com>
13440 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
13443 2007-04-18 Jerone Young <jerone@gmail.com>
13445 * kernel/elf.c: Add missing parenthesis for conditional statement
13448 2007-04-10 Jerone Young <jerone@gmail.com>
13450 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
13451 continue on and look for device node with real device name.
13453 2007-04-10 Jerone Young <jerone@gmail.com>
13455 * configure.ac: Add argument for autoconf to use transformation
13457 * Makefile.in: Add autoconf package transformation code.
13458 * util/i386/pc/grub-install.in: Likewise.
13459 * util/powerpc/ieee1275/grub-install.in: Likewise.
13461 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
13463 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
13464 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
13465 (EXT2_REVISION): Likewise.
13466 (EXT2_INODE_SIZE): Likewise.
13467 (struct grub_ext2_block_group): Added a missing member
13469 (grub_ext2_read_inode): Divide by the inode size in a superblock
13470 instead of 128 to obtain INODES_PER_BLOCK.
13471 Use the macro EXT2_INODE_SIZE instead of directly using
13472 SBLOCK->INODE_SIZE.
13474 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
13476 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
13477 superblock instead of the structure size to compute an
13478 offset. This fixes the problem that GRUB could not read a
13479 filesystem when inode size is different from 128-byte.
13481 2007-03-05 Marco Gerards <marco@gnu.org>
13483 * normal/main.c (read_config_file): When "menu" is not set, create
13484 an initial context.
13486 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13488 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
13489 (HEAP_LIMIT): New macro.
13490 (grub_claim_heap): Claim memory up to `heaplimit'.
13492 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13494 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
13495 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
13496 (_start): Likewise.
13497 (grub_arch_modules_addr): Return address after `_end'.
13498 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
13499 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
13500 (add_segments): Calculate `_end' from phdr size and location.
13501 (ALIGN_UP): Moved to ...
13502 * include/grub/misc.h: here.
13503 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
13505 (GRUB_IEEE1275_MODULE_BASE): Removed.
13507 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13509 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
13512 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13514 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
13516 (grub_elf64_load_hook_t): Likewise.
13517 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
13520 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13522 * kern/mm.c: Update copyright.
13523 (grub_mm_debug): Correct syntax error.
13524 (grub_mm_dump_free): New function.
13525 (grub_debug_free): Call `grub_free'.
13526 * include/grub/mm.h: Update copyright.
13527 (grub_mm_dump_free): Add declaration.
13529 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13531 * include/grub/ieee1275/ieee1275.h: Update copyright.
13532 * kern/powerpc/ieee1275/init.c: Likewise.
13533 * kern/powerpc/ieee1275/openfw.c: Likewise.
13535 * loader/powerpc/ieee1275/linux.c: Likewise.
13536 * include/grub/elfload.h: Likewise.
13537 * kern/elf.c: Likewise.
13538 (grub_elf32_load): Pass `base' and `size' parameters. Update all
13540 (grub_elf64_load): Likewise.
13541 (grub_elf32_load_segment): Move to a nested function.
13542 (grub_elf64_load_segment): Likewise.
13544 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13546 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
13548 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
13549 (grub_heap_len): Likewise.
13550 (HEAP_SIZE): New macro.
13551 (grub_claim_heap): New function.
13552 (grub_machine_init): Don't claim heap directly. Call
13554 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
13555 (grub_available_iterate): New function.
13557 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
13559 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
13560 * configure.ac: Use it for testing the HOST and TARGET compilers.
13562 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
13564 * Makefile.in (enable_grub_emu): New variable.
13565 * configure.ac (--enable-grub-emu): New option.
13566 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
13567 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
13568 * conf/i386-pc.rmk: Likewise.
13569 * conf/powerpc-ieee1275.rmk: Likewise.
13570 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
13572 2006-12-12 Marco Gerards <marco@gnu.org>
13574 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
13576 * kern/env.c (grub_env_unset): Don't free the member `value' when
13577 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
13580 * normal/main.c (current_menu): Removed.
13581 (free_menu): Unset the `menu' environment variable.
13582 (grub_normal_menu_addentry): Make use of the environment variable
13583 `menu', instead of using the global `current_menu'. Allocate
13584 memory for the sourcecode of this entry.
13585 (read_config_file): New argument `nested', changed all callers.
13586 Only in the case of a new context, initialize a new menu. Set the
13587 `menu' environment variable.
13588 (grub_normal_execute): Don't set and unset the environment
13589 variable `menu' here anymore. Only free the menu when leaving the
13592 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
13595 2006-12-11 Marco Gerards <marco@gnu.org>
13597 * normal/menu_entry.c (run): Fix off by one bug so the last line
13598 is executed. Move the loader check to outside the loop.
13600 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
13602 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
13604 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
13606 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
13607 the number of sectors. Reported by Andrey Shuvikov
13608 <mr_hyro@yahoo.com>.
13610 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
13612 * kern/disk.c (grub_disk_read): When there is a read error, always
13613 try to read only the necessary data.
13615 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
13617 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
13619 [GRUB_UTIL] (grub_raid_fini): Likewise.
13620 [GRUB_UTIL] (grub_lvm_init): Likewise.
13621 [GRUB_UTIL] (grub_lvm_fini): Likewise.
13622 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
13623 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
13624 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
13625 and grub_raid_fini().
13627 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
13629 * include/grub/types.h (__unused): Rename to UNUSED.
13630 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
13631 (grub_elf64_size): Likewise.
13633 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13635 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
13636 grub_error_push and grub_error_pop in the error-handling path.
13637 (grub_elf32_load_segment): Only call grub_file_read with non-zero
13640 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13642 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
13643 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13644 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13645 (kernel_elf_SOURCES): Likewise.
13646 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
13647 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
13648 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13649 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13650 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
13651 (elf_mod_SOURCES): New variable.
13652 (elf_mod_CFLAGS): Likewise.
13653 (elf_mod_LDFLAGS): Likewise.
13654 * include/grub/types.h (__unused): New macro.
13655 * include/grub/elfload.h: New file.
13656 * kern/elf.c: Likewise.
13657 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
13658 (ELF32_LOADMASK): New macro.
13659 (ELF64_LOADMASK): Likewise.
13660 (vmlinux): Removed.
13661 (grub_linux_load32): New function.
13662 (grub_linux_load64): Likewise.
13663 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
13664 Use grub_elf_t instead of grub_file_t.
13666 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
13668 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
13669 `catch_result' to struct set_color_args.
13671 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
13673 * normal/menu.c: Include grub/script.h.
13674 * normal/menu_entry.c: Likewise.
13675 * include/grub/normal.h: Do not include grub/script.h.
13677 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13679 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
13681 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13683 * kern/disk.c (grub_disk_open): Print debug messages when opening a
13685 (grub_disk_close): Print debug messages when closing a disk.
13686 (grub_disk_read): Print debug messages when disk read fails.
13687 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
13689 * kern/partition.c: Include misc.h.
13690 (grub_partition_iterate): Print debug messages when detecting
13693 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13695 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
13697 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
13699 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
13701 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13702 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
13704 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
13706 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
13707 instead of sizeof(lv). Patch by Michael Guntsche.
13709 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
13711 * disk/lvm.c: Rename VGS to VG_LIST.
13712 (grub_lvm_iterate): Change VGS->LV to VG-LV.
13713 (grub_lvm_open): Likewise.
13714 Thanks to Michael Guntsche for finding this bug.
13716 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
13718 * configure.ac (AC_INIT): Bumped to 1.95.
13720 2006-10-14 Robert Millan <rmh@aybabtu.com>
13722 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
13723 with "/dev/.static/dev/md".
13725 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13727 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
13728 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
13729 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
13730 DRIVE_NAME are always freed.
13732 * util/i386/pc/biosdisk.c (make_device_name): Add one into
13733 DOS_PART, as a DOS partition is counted from one instead of zero
13734 now. Reported by Robert Millan.
13736 2006-10-14 Robert Millan <rmh@aybabtu.com>
13738 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
13739 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
13740 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
13741 string returned by grub_guess_root_device.
13742 * util/i386/pc/grub-setup.c: Likewise.
13743 * util/i386/pc/grub-probefs.c: Likewise.
13745 * util/i386/pc/grub-probefs.c: Rename to ...
13746 * util/i386/pc/grub-probe.c: ... this.
13747 * DISTLIST: Remove grub-probefs, add grub-probe.
13748 * conf/i386-efi.rmk: Likewise.
13749 * conf/i386-pc.rmk: Likewise.
13750 * util/i386/pc/grub-install.in: Likewise.
13752 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
13753 choose which information we want to print.
13755 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13757 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
13758 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
13759 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
13760 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
13761 video/readers/tga.c and video/i386/pc/vbeutil.c.
13763 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
13765 Added support for RAID and LVM.
13767 * disk/lvm.c: New file.
13768 * disk/raid.c: Likewise.
13769 * include/grub/lvm.h: Likewise.
13770 * include/grub/raid.h: Likewise.
13771 * include/grub/util/lvm.h: Likewise.
13772 * include/grub/util/raid.h: Likewise.
13773 * util/lvm.c: Likewise.
13774 * util/raid.c: Likewise.
13776 * include/grub/disk.h (grub_disk_dev_id): Add
13777 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
13778 (grub_disk_get_size): New prototype.
13779 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
13780 returns a partition.
13781 (grub_disk_get_size): New function.
13783 * kern/i386/pc/init.c (make_install_device): Copy the prefix
13784 verbatim if grub_install_dos_part is -2.
13786 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
13789 * util/i386/pc/grub-setup.c (setup): New argument
13790 MUST_EMBED. Force embedding of GRUB when the argument is
13791 true. Close FILE before returning.
13792 (main): Add support for RAID and LVM.
13794 * conf/common.rmk: Add RAID and LVM modules.
13795 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
13797 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
13799 * kern/misc.c (grub_strstr): New function.
13800 * include/grub/misc.h (grub_strstr): New prototype.
13802 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
13804 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
13806 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
13808 * kern/misc.c (grub_strtoull): Guess the base only if not
13811 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13813 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
13816 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13818 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
13820 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
13821 Remove `flags' argument. All callers changed.
13822 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
13823 (IEEE1275_IHANDLE_INVALID): New variable.
13824 (IEEE1275_CELL_INVALID): New variable.
13825 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
13826 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
13827 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
13828 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
13829 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
13830 codes from Open Firmware. All callers updated.
13831 (grub_ieee1275_next_property): Directly return Open Firmware return
13833 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
13834 Standardize error checking from `grub_ieee1275_get_property'.
13835 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
13836 `devalias' to `aliases'. Correct comments. Consolidate error paths.
13838 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13840 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
13841 `instance_to_package_args' to `instance_to_path_args'.
13843 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
13844 `grub_ieee1275_chosen'.
13846 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
13847 `grub_ieee1275_interpret'.
13849 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13851 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
13853 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13855 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
13856 (__cmpdi): Likewise.
13858 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
13859 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
13862 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
13864 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
13865 to type `grub_ssize_t'.
13866 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
13868 2006-09-22 Marco Gerards <marco@gnu.org>
13870 * normal/script.c (grub_script_create_cmdmenu): Skip leading
13873 2006-09-22 Marco Gerards <marco@gnu.org>
13875 * commands/echo.c: New file.
13877 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
13879 * conf/common.rmk (echo_mod_SOURCES): New variable.
13880 (echo_mod_CFLAGS): Likewise.
13881 (echo_mod_LDFLAGS): Likewise.
13883 2006-09-22 Marco Gerards <marco@gnu.org>
13885 * normal/main.c (get_line): Malloc memory instead of using
13886 preallocated memory. Removed the arguments `cmdline' and
13887 `max_len'. Updated all callers.
13889 2006-09-22 Marco Gerards <marco@gnu.org>
13891 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
13892 (normal_mod_DEPENDENCIES): Likewise.
13894 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
13895 (normal_mod_DEPENDENCIES): Likewise.
13897 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
13899 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
13901 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
13903 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
13904 (normal_mod_DEPENDENCIES): Likewise.
13905 * conf/i386-pc.mk: Regenerate.
13906 * conf/i386-efi.mk: Likewise
13907 * conf/common.mk: Likewise.
13908 * conf/powerpc-ieee1275.mk: Likewise.
13909 * conf/sparc64-ieee1275.mk: Likewise.
13911 2006-09-22 Robert Millan <rmh@aybabtu.com>
13913 Sync with i386 version.
13914 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
13915 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
13917 2006-09-21 Robert Millan <rmh@aybabtu.com>
13919 Import from GRUB Legacy (lib/device.c):
13920 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
13921 (init_device_map) [__linux__]: Add support for I2O devices.
13923 2006-09-14 Marco Gerards <marco@gnu.org>
13925 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
13928 2006-09-14 Robert Millan <rmh@aybabtu.com>
13930 * util/i386/pc/grub-install.in: Skip menu.lst when removing
13933 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
13935 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
13936 before adding it to device.map.
13938 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
13940 * genmk.rb: Let GCC generate dependencies the first time it
13941 compiles a file; using the -MD option.
13942 * conf/common.mk: Regenerate.
13943 * conf/i386-pc.mk: Likewise.
13944 * conf/i386-efi.mk: Likewise.
13945 * conf/powerpc-ieee1275.mk: Likewise.
13946 * conf/sparc64-ieee1275.mk: Likewise.
13948 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
13950 Move the prototypes of grub_setjmp and grub_longjmp to
13951 cpu/setjmp.h, so that each architecture may specify different
13954 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
13955 (grub_longjmp): Likewise.
13956 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
13957 (grub_longjmp): Likewise.
13958 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
13959 (grub_longjmp): Likewise.
13961 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
13962 [!GRUB_UTIL] (grub_longjmp): Removed.
13964 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
13966 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
13967 "color!" method does not return any value.
13969 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
13971 * include/grub/bitmap.h: New file.
13973 * include/grub/i386/pc/vbeutil.h: Likewise.
13975 * video/bitmap.c: Likewise.
13977 * video/readers/tga.c: Likewise.
13979 * video/i386/pc/vbeutil.c: Likewise.
13981 * commands/videotest.c: Code cleanup and updated to reflect to new
13984 * term/gfxterm.c: Likewise.
13986 * video/video.c: Likewise.
13988 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
13989 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
13990 (bitmap_mod_SOURCES): New entry.
13991 (bitmap_mod_CFLAGS): Likewise.
13992 (bitmap_mod_LDFLAGS): Likewise.
13993 (tga_mod_SOURCES): Likewise.
13994 (tga_mod_CFLAGS): Likewise.
13995 (tga_mod_LDFLAGS): Likewise.
13997 * include/grub/video.h (grub_video_blit_operators): New enum type.
13998 (grub_video_render_target): Changed as forward declaration and moved
13999 actual definition to be video driver specific.
14000 (grub_video_adapter.blit_bitmap): Added blitting operator.
14001 (grub_video_adapter.blit_render_target): Likewise.
14002 (grub_video_blit_bitmap): Likewise.
14003 (grub_video_blit_render_target): Likewise.
14005 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
14006 driver specific render target definition.
14007 (grub_video_vbe_map_rgba): Added driver internal helper.
14008 (grub_video_vbe_unmap_color): Updated to use
14009 grub_video_i386_vbeblit_info.
14010 (grub_video_vbe_get_video_ptr): Likewise.
14012 * include/grub/i386/pc/vbeblit.h
14013 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
14014 grub_video_i386_vbeblit_info.
14015 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14016 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14017 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14018 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14019 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14020 (grub_video_i386_vbeblit_index_index): Likewise.
14021 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
14022 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14023 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14024 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
14026 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
14029 * video/i386/pc/vbeblit.c: Updated to reflect changes on
14030 include/grub/i386/pc/vbeblit.h.
14032 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
14033 Updated to use grub_video_i386_vbeblit_info.
14034 (grub_video_i386_vbefill_R8G8B8): Likewise.
14035 (grub_video_i386_vbefill_index): Likewise.
14036 (grub_video_i386_vbefill): Added generic filler.
14038 * video/i386/pc/vbefill.c: Updated to reflect changes on
14039 include/grub/i386/pc/vbefill.h.
14041 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
14042 grub_video_i386_vbeblit_info.
14043 (grub_video_vbe_unmap_color): Likewise.
14044 (grub_video_vbe_blit_glyph): Likewise.
14045 (grub_video_vbe_scroll): Likewise.
14046 (grub_video_vbe_draw_pixel): Removed function.
14047 (grub_video_vbe_get_pixel): Likewise.
14048 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
14049 updated code to use it.
14050 (common_blitter): Added common blitter for render target and bitmap.
14051 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
14052 (grub_video_vbe_blit_render_target): Likewise.
14054 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
14056 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
14057 is in text mode if there is no console control protocol instance
14060 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14062 * include/grub/video.h: Code cleanup.
14064 * include/grub/i386/pc/vbe.h: Likewise.
14066 * video/i386/pc/vbe.c: Likewise.
14068 * video/i386/pc/vbeblit.c: Likewise.
14070 * video/i386/pc/vbefill.c: Likewise.
14072 * video/video.c: Likewise. Also added more comments.
14074 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14076 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
14077 (struct grub_biosdisk_dap): Likewise.
14079 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
14080 linkage settings for all functions.
14082 2006-07-12 Marco Gerards <marco@gnu.org>
14084 * configure.ac (--enable-mm-debug): Fix typo.
14086 * genkernsyms.sh.in: Use proper quoting for `CC'.
14088 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
14090 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
14091 (normal_mod_ASFLAGS): Remove "-m32".
14093 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
14095 * util/misc.c: Include config.h.
14096 [!HAVE_MEMALIGN]: Do not include malloc.h.
14097 (grub_memalign): Use posix_memalign, if present. Then, use
14098 memalign, if present. Otherwise, emit an error.
14100 * util/grub-emu.c: Do not include malloc.h.
14102 * include/grub/util/misc.h: Include unistd.h. This is required for
14103 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
14104 D. Eades III <hde@foobar-qux.org>.
14106 * configure.ac (AC_GNU_SOURCE): Added.
14107 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
14110 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
14112 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
14113 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
14115 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
14117 * include/grub/types.h (grub_host_addr_t): Rename to
14118 grub_target_addr_t.
14119 (grub_host_off_t): Rename to grub_target_off_t.
14120 (grub_host_size_t): Rename to grub_target_size_t.
14121 (grub_host_ssize_t): Rename to grub_target_ssize_t.
14122 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
14124 * include/grub/kernel.h (struct grub_module_header): Change type
14125 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
14126 (grub_module_info): Likewise.
14128 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14130 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
14131 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
14132 Velazquez <jesus.velazquez@gmail.com>.
14134 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14136 Count partitions from 1 instead of 0 in the string representation
14137 of partitions. Still use 0-based internally.
14139 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
14140 (sun_partition_map_iterate): Use grub_partition_t instead of
14141 struct grub_partition *. Cast DESC->START_CYLINDER to
14142 grub_uint64_t after converting the endian.
14143 (sun_partition_map_probe): Subtract 1 for PARTNUM.
14144 (sun_partition_map_get_name): Add 1 to P->INDEX.
14146 * partmap/pc.c (grub_partition_parse): Subtract 1 for
14148 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
14150 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
14151 zero instead of one.
14152 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
14153 (gpt_partition_map_get_name): Add 1 into P->INDEX.
14155 * partmap/apple.c (apple_partition_map_iterate): Change the type
14156 of POS to unsigned.
14157 (apple_partition_map_probe): Subtract 1 for PARTNUM.
14158 (apple_partition_map_get_name): Add 1 into P->INDEX.
14160 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
14161 of POS to unsigned.
14162 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
14163 calculate the offset of a partition.
14164 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
14165 (amiga_partition_map_get_name): Add 1 into P->INDEX.
14167 * partmap/acorn.c (acorn_partition_map_find): Change the type of
14168 SECTOR to grub_disk_addr_t.
14169 (acorn_partition_map_iterate): Likewise.
14170 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
14171 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
14173 (acorn_partition_map_get_name): Add 1 into P->INDEX.
14175 * kern/i386/pc/init.c (make_install_device): Add 1 into
14176 GRUB_INSTALL_DOS_PART.
14178 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
14181 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14183 Clean up the code to support 64-bit addressing in disks and
14184 files. This change is not enough for filesystems yet.
14186 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
14187 type of "start" to grub_uint64_t.
14188 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
14189 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
14190 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
14193 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
14194 to grub_disk_addr_t.
14196 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
14199 * partmap/pc.c (pc_partition_map_iterate): Likewise.
14201 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
14204 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
14206 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
14208 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
14210 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
14211 to grub_off_t, to detect an error from grub_file_seek.
14212 (grub_multiboot_load_elf32): Likewise.
14214 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
14215 maximum unsigned long value when an overflow is detected.
14216 (grub_strtoull): New function.
14217 (grub_divmod64): Likewise.
14218 (grub_lltoa): use grub_divmod64.
14220 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
14222 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
14223 the pointer to next character. Use grub_strtoull instead of
14225 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
14226 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
14229 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
14230 return value is signed.
14231 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
14232 test if OFFSET is less than zero, as OFFSET is unsigned now.
14234 * kern/disk.c (struct grub_disk_cache): Change the type of
14235 "sector" to grub_disk_addr_t.
14236 (grub_disk_cache_get_index): Change the type of SECTOR to
14237 grub_disk_addr_t. Calculate the hash with SECTOR casted to
14238 unsigned after shifting.
14239 (grub_disk_cache_invalidate): Change the type of SECTOR to
14241 (grub_disk_cache_unlock): Likewise.
14242 (grub_disk_cache_store): Likewise.
14243 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
14244 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
14245 grub_disk_addr_t and grub_uint64_t, respectively.
14246 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
14247 body, as the value of OFFSET is tweaked by
14248 grub_disk_check_range. Change the types of START_SECTOR, LEN and
14249 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
14251 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
14252 body, as the value of OFFSET is tweaked by
14253 grub_disk_check_range. Change the types of LEN and N to
14256 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
14257 and "saved_offset" to grub_off_t.
14258 (test_header): Cast BUF to char *.
14259 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
14261 (grub_gzio_read): Change the types of OFFSET and SIZE to
14262 grub_off_t and grub_size_t, respectively.
14264 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
14266 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
14267 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
14268 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
14269 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
14270 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
14272 * include/grub/types.h (grub_off_t): Unconditionally set to
14274 (grub_disk_addr_t): Changed to grub_uint64_t.
14276 * include/grub/partition.h (struct grub_partition): Change the
14277 types of "start", "len" and "offset" to grub_disk_addr_t,
14278 grub_uint64_t and grub_disk_addr_t, respectively.
14279 (grub_partition_get_start): Return grub_disk_addr_t.
14280 (grub_partition_get_len): Return grub_uint64_t.
14282 * include/grub/misc.h (grub_strtoull): New prototype.
14283 (grub_divmod64): Likewise.
14285 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
14286 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
14287 grub_off_t, respectively.
14288 All callers and references changed.
14290 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
14291 grub_size_t in "read".
14292 All callers and references changed.
14294 * include/grub/file.h (struct grub_file): Change the types of
14295 "offset" and "size" to grub_off_t and grub_off_t,
14296 respectively. Change the type of SECTOR to grub_disk_addr_t in
14298 (grub_file_read): Change the type of LEN to grub_size_t.
14299 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
14301 (grub_file_size): Return grub_off_t.
14302 (grub_file_tell): Likewise.
14303 All callers and references changed.
14305 * include/grub/disk.h (struct grub_disk_dev): Change the types of
14306 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
14308 (struct grub_disk): Change the type of "total_sectors" to
14309 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
14311 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
14312 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
14313 (grub_disk_write): Likewise.
14314 All callers and references changed.
14316 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
14317 char * for grub_strncmp to silence gcc.
14318 (grub_iso9660_mount): Likewise.
14319 (grub_iso9660_mount): Likewise.
14320 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
14322 (grub_iso9660_iterate_dir): Likewise.
14323 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
14325 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
14326 LEN to grub_disk_addr_t and grub_size_t, respectively.
14328 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
14330 * fs/jfs.c (grub_jfs_read_file): Likewise.
14332 * fs/minix.c (grub_jfs_read_file): Likewise.
14334 * fs/sfs.c (grub_jfs_read_file): Likewise.
14336 * fs/ufs.c (grub_jfs_read_file): Likewise.
14338 * fs/xfs.c (grub_jfs_read_file): Likewise.
14340 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
14341 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
14344 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
14345 BLKNR to -1 instead of returning GRUB_ERRNO.
14346 (grub_ext2_read_file): Change the types of SECTOR and
14347 LEN to grub_disk_addr_t and grub_size_t, respectively.
14349 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
14350 LEN to grub_disk_addr_t and grub_size_t, respectively.
14352 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
14355 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
14356 string. Do not cast SECTOR explicitly.
14358 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
14359 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
14360 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
14361 grub_disk_addr_t and grub_size_t, respectively. If the sector is
14362 over 2TB and LBA mode is not supported, raise an error.
14363 (get_safe_sectors): New function.
14364 (grub_biosdisk_read): Use get_safe_sectors.
14365 (grub_biosdisk_write): Likewise.
14367 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
14368 (grub_efidisk_write): Likewise.
14370 * disk/loopback.c (delete_loopback): Cosmetic changes.
14371 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
14373 (grub_loopback_open): Likewise.
14374 (grub_loopback_read): Likewise. Also, change the type of POS to
14375 grub_off_t, and fix the usage of grub_memset.
14377 * commands/i386/pc/play.c: Include grub/machine/time.h.
14379 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
14382 * commands/configfile.c: Include grub/env.h.
14384 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
14385 GRUB_ERRNO directly instead. Change the type of POS to
14386 grub_off_t. Follow the coding standard.
14388 * commands/blocklist.c: Include grub/partition.h.
14389 (grub_cmd_blocklist): Return an error if the underlying device is
14390 not a disk. Take the starting sector of a partition into account,
14391 if a partition is used.
14393 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
14395 (lba_mode): Support 64-bit addresses.
14396 (chs_mode): Likewise.
14397 (copy_buffer): Adapted to the new offsets of a length field and a
14399 (blocklist_default_start): Allocate 64-bit space.
14401 * boot/i386/pc/boot.S (force_lba): Removed.
14402 (boot_drive): Moved to under KERNEL_SECTOR.
14403 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
14405 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
14407 (lba_mode): Refactored to support a 64-bit address. More size
14409 (setup_sectors): Likewise.
14411 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14413 * DISTLIST: Added include/grub/i386/linux.h. Removed
14414 include/grub/i386/pc/linux.h
14416 * configure.ac (AC_INIT): Bumped to 1.94.
14418 * config.guess: Updated from gnulib.
14419 * config.sub: Likewise.
14420 * install-sh: Likewise.
14421 * mkinstalldirs: Likewise.
14423 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14425 * conf/common.rmk (grub_modules_init.lst): Depended on
14426 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
14429 * genmk.rb (PModule::rule): Reverted the previous change.
14431 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14433 * conf/common.rmk (grub_modules_init.lst): Depends on
14434 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
14435 that the target does not exist before producing.
14436 (grub_modules_init.h): Remove the target before generating.
14437 (grub_emu_init.c): Likewise.
14439 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
14441 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
14443 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
14444 for the target-specific tests. Make sure that we also have the
14445 up-to-date target variables for those tests.
14447 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14449 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
14450 (PModule::rule): Likewise.
14452 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14454 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
14455 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
14456 target-specific flags should be prefixed.
14457 (PModule::rule): Likewise.
14459 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
14461 * configure.ac (CMP): Check if cmp is available explicitly.
14463 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
14465 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
14466 (target_cpu): New variable.
14467 (pkglibdir): Use target_cpu instead of host_cpu.
14469 * util/i386/pc/grub-install.in (host_cpu): Removed.
14470 (target_cpu): New variable.
14471 (pkglibdir): Use target_cpu instead of host_cpu.
14473 * util/genmoddep.c: Removed.
14475 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
14476 instead of GRUB_HOST_SIZEOF_VOID_P.
14477 * kern/dl.c: Likewise.
14479 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
14481 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14482 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14483 (GRUB_TARGET_SIZEOF_LONG): ... this.
14484 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14485 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14486 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14488 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14489 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14490 (GRUB_TARGET_SIZEOF_LONG): ... this.
14491 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14492 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14493 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14495 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14496 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14497 (GRUB_TARGET_SIZEOF_LONG): ... this.
14498 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14499 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14501 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
14502 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
14503 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
14504 instead of GRUB_HOST_SIZEOF_LONG.
14505 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
14506 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
14507 GRUB_CPU_WORDS_BIGENDIAN.
14508 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
14509 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
14512 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
14513 (genmoddep_SOURCES): Likewise.
14514 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
14515 (genmoddep_SOURCES): Likewise.
14516 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
14517 (genmoddep_SOURCES): Likewise.
14518 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
14520 (genmoddep_SOURCES): Likewise.
14522 * genmoddep.awk: New file.
14524 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
14525 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
14526 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
14527 (PModule::rule): Likewise.
14528 (Program::rule): Likewise.
14529 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
14530 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
14533 * configure.ac: Rewritten intensively to use host and target
14534 instead of build and host, respectively.
14536 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
14537 (host_cpu): Removed.
14538 (target_cpu): New variable.
14539 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
14540 (BUILD_CC): Removed.
14541 (BUILD_CFLAGS): Likewise.
14542 (BUILD_CPPFLAGS): Likewise.
14543 (TARGET_CC): New variable.
14544 (TARGET_CFLAGS): Likewise.
14545 (TARGET_CPPFLAGS): Likewise.
14546 (TARGET_LDFLAGS): Likewise.
14548 (include): Use target_cpu instead of host_cpu.
14549 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
14551 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
14553 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
14555 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
14556 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
14557 field 'false' to 'exec_on_false'.
14558 (grub_script_create_cmdif): Renamed argument names to reflect above
14561 * normal/execute.c (grub_script_execute_cmdif): Likewise.
14563 * normal/script.c (grub_script_create_cmdif): Likewise.
14565 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
14567 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
14569 (grub_hfsplus_btree_recptr): Likewise.
14570 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
14571 FILEBLOCK both to pass a block number and store next block
14573 (grub_hfsplus_read_block): Rewritten heavily to support an extent
14574 overflow file correctly. Specify errors appropriately, because
14575 fshelp expects that GRUB_ERRNO is set when fails. Reuse
14576 grub_hfsplus_btree_recptr to get the pointer to a found key.
14577 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
14580 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
14582 (_linux_mod_SOURCES): New variable.
14583 (_linux_mod_CFLAGS): Likewise.
14584 (_linux_mod_LDFLAGS): Likewise.
14585 (linux_mod_SOURCES): Likewise.
14586 (linux_mod_CFLAGS): Likewise.
14587 (linux_mod_LDFLAGS): Likewise.
14589 * DISTLIST: Added loader/i386/efi/linux.c,
14590 loader/i386/efi/linux_normal.c and
14591 include/grub/i386/efi/loader.h.
14593 * loader/i386/efi/linux.c: New file.
14594 * loader/i386/efi/linux_normal.c: Likewise.
14595 * include/grub/i386/efi/loader.h: Likewise.
14597 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
14599 * commands/blocklist.c: New file.
14601 * DISTLIST: Added commands/blocklist.c.
14603 * term/efi/console.c (grub_console_highlight_color): Use a lighter
14604 color for the background, and a darker color for the foreground.
14605 (grub_console_checkkey): Return READ_KEY.
14606 (grub_console_cls): Set the background to
14607 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
14609 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
14611 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
14612 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
14614 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
14617 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
14618 BG. The spec is wrong again.
14620 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
14622 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
14624 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
14625 commands/blocklist.c.
14626 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14628 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
14629 (blocklist_mod_SOURCES): New variable.
14630 (blocklist_mod_CFLAGS): Likewise.
14631 (blocklist_mod_LDFLAGS): Likewise.
14633 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
14635 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
14637 (lba_mode): Use %eax more intensively to reduce the code size.
14639 2006-05-20 Marco Gerards <marco@gnu.org>
14641 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
14643 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
14645 (script): Accept leading newlines.
14646 (newlines): New rule to describe 0 or more newlines.
14647 (commands): Accept `command' with trailing newline. Fixed the
14648 order in which arguments were passed to `grub_script_add_cmd'.
14649 Accept commands separated by newlines.
14650 (function): Changed to accept newlines.
14651 (menuentry) Rewritten.
14653 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
14654 front of the list, instead of to the end.
14656 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
14658 * util/i386/pc/grub-install.in (bindir): New variable.
14659 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
14660 Shaver <lbgwjl@gmail.com>.
14662 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
14664 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
14665 grub/machine/linux.h
14666 * loader/i386/pc/linux.c: Likewise.
14668 * include/grub/i386/pc/linux.h: Moved to ...
14669 * include/grub/i386/linux.h: ... here.
14671 * include/grub/i386/linux.h (struct linux_kernel_params): New
14674 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
14676 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
14678 (grub_video_vbe_blit_glyph): Likewise.
14679 (grub_video_vbe_blit_bitmap): Likewise.
14680 (grub_video_vbe_blit_render_target): Likewise.
14682 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
14684 * configure.ac (--with-platform): Properly quote the square
14687 2006-05-08 Marco Gerards <marco@gnu.org>
14689 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
14691 (kernel_elf_HEADERS): ...to this. Updated all users.
14692 (grubof_symlist.c): Renamed from this...
14693 (kernel_elf_symlist.c): ...to this. Updated all users.
14694 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14695 (grubof_SOURCES): Renamed from this...
14696 (kernel_elf_SOURCES): ...to this.
14697 (grubof_HEADERS): Renamed from this...
14698 (kernel_elf_HEADERS): ...to this.
14699 (grubof_CFLAGS): Renamed from this...
14700 (kernel_elf_CFLAGS): ...to this.
14701 (grubof_ASFLAGS): Renamed from this...
14702 (kernel_elf_ASFLAGS): ...to this.
14703 (grubof_LDFLAGS): Renamed from this...
14704 (kernel_elf_LDFLAGS): ...to this.
14706 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
14708 (kernel_elf_HEADERS): ...to this. Updated all users.
14709 (grubof_symlist.c): Renamed from this...
14710 (kernel_elf_symlist.c): ...to this. Updated all users.
14711 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14712 (grubof_SOURCES): Renamed from this...
14713 (kernel_elf_SOURCES): ...to this.
14714 (grubof_HEADERS): Renamed from this...
14715 (kernel_elf_HEADERS): ...to this.
14716 (grubof_CFLAGS): Renamed from this...
14717 (kernel_elf_CFLAGS): ...to this.
14718 (grubof_ASFLAGS): Renamed from this...
14719 (kernel_elf_ASFLAGS): ...to this.
14720 (grubof_LDFLAGS): Renamed from this...
14721 (kernel_elf_LDFLAGS): ...to this.
14723 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
14724 `kernel.elf' instead of `grubof'.
14726 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
14728 Add --with-platform to configure. Use pkglibdir instead of
14729 pkgdatadir. This is reported by Roger Leigh.
14731 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
14732 (host_vendor): Likewise.
14733 (host_os): Likewise.
14734 (pkgdatadir): Likewise.
14735 (platform): New variable.
14736 (pkglibdir): Likewise.
14737 Use PKGLIBDIR instead of PKGDATADIR.
14739 * util/i386/pc/grub-install.in (datadir): Removed.
14740 (host_vendor): Likewise.
14741 (host_os): Likewise.
14742 (pkgdatadir): Likewise.
14743 (platform): New variable.
14744 (pkglibdir): Likewise.
14745 Use PKGLIBDIR instead of PKGDATADIR.
14747 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
14748 instead of GRUB_DATADIR.
14750 * util/i386/pc/grub-mkimage.c (usage): Likewise.
14752 * util/i386/efi/grub-mkimage.c (usage): Likewise.
14755 * configure.ac (--with-platform): New option.
14756 Use PLATFORM instead of HOST_VENDOR to specify a platform.
14758 * Makefile.in: Include a makefile based on PLATFORM instead of
14760 (pkgdatadir): Not appended by the machine type.
14761 (pkglibdir): Appended by the machine type.
14762 (host_vendor): Removed.
14763 (platform): New variable.
14764 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
14765 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
14766 (uninstall): Likewise.
14768 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
14770 Use the environment context in the menu. Remove the commands
14771 "default" and "timeout", and use variables instead.
14773 * normal/menu.c: Include grub/env.h.
14774 (print_entry): Cast TITLE to silence gcc.
14775 (get_timeout): New function.
14776 (set_timeout): Likewise.
14777 (get_entry_number): Likewise.
14778 (run_menu): Use a default entry, a fallback entry and a timeout
14779 in the environment variables "default", "fallback" and
14780 "timeout". Also, tweak the default entry if it is not within the
14781 current menu entries.
14782 (grub_menu_run): Use a fallback entry in the environment variable
14785 * normal/main.c (read_config_file): Do not initialize
14786 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
14788 (grub_normal_execute): Use a data slot to store the menu.
14790 * include/grub/normal.h (struct grub_menu): Removed default_entry,
14791 fallback_entry and timeout.
14792 (struct grub_menu_list): Removed.
14793 (grub_menu_list_t): Likewise.
14794 (struct grub_context): Likewise.
14795 (grub_context_t): Likewise.
14796 (grub_context_get): Likewise.
14797 (grub_context_get_current_menu): Likewise.
14798 (grub_context_push_menu): Likewise.
14799 (grub_context_pop_menu): Likewise.
14800 (grub_default_init): Likewise.
14801 (grub_default_fini): Likewise.
14802 (grub_timeout_init): Likewise.
14803 (grub_timeout_fini): Likewise.
14805 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
14807 (normal_mod_SOURCES): Removed normal/context.c.
14809 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
14810 commands/default.c, commands/timeout.c and normal/context.c.
14811 (normal_mod_SOURCES): Removed normal/context.c.
14813 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
14814 commands/timeout.c and normal/context.c.
14815 (normal_mod_SOURCES): Removed normal/context.c.
14817 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
14818 commands/default.c, commands/timeout.c and normal/context.c.
14819 (normal_mod_SOURCES): Removed normal/context.c.
14821 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
14823 (default_mod_SOURCES): Removed.
14824 (default_mod_CFLAGS): Likewise.
14825 (default_mod_LDFLAGS): Likewise.
14826 (timeout_mod_SOURCES): Removed.
14827 (timeout_mod_CFLAGS): Likewise.
14828 (timeout_mod_LDFLAGS): Likewise.
14830 * DISTLIST: Removed commands/default.c, commands/timeout.c and
14833 * commands/default.c: Removed.
14834 * commands/timeout.c: Likewise.
14835 * normal/context.c: Likewise.
14837 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
14839 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
14841 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
14843 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
14844 "next" to "prev" for readability.
14845 (struct grub_env_sorted_var): New struct.
14846 (grub_env_context): Renamed to ...
14847 (initial_context): ... this.
14848 (grub_env_var_context): Renamed to ...
14849 (current_context): ... this.
14850 (grub_env_find): Look only at CURRENT_CONTEXT.
14851 (grub_env_context_open): Rewritten to copy exported variables from
14853 (grub_env_context_close): Rewritten according to the new
14854 scheme. Also, add an assertion to prevent the initial context from
14856 (grub_env_insert): Removed the code for the sorted list.
14857 (grub_env_remove): Likewise.
14858 (grub_env_export): Simply mark the variable with
14859 GRUB_ENV_VAR_GLOBAL.
14860 (grub_env_set): A cosmetic change for naming consistency.
14861 (grub_env_get): Likewise.
14862 (grub_env_unset): Likewise.
14863 (grub_env_iterate): Rewritten to sort variables within this
14865 (grub_register_variable_hook): Fixed for naming consistency. Call
14866 grub_env_find again, only if NAME is not found at the first time.
14867 (mangle_data_slot_name): New function.
14868 (grub_env_set_data_slot): Likewise.
14869 (grub_env_get_data_slot): Likewise.
14870 (grub_env_unset_data_slot): Likewise.
14872 * include/grub/env.h (grub_env_var_type): New enum.
14873 (GRUB_ENV_VAR_LOCAL): New constant.
14874 (GRUB_ENV_VAR_GLOBAL): Likewise.
14875 (GRUB_ENV_VAR_DATA): Likewise.
14876 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
14878 (grub_env_set): Replace VAR with NAME for consistency.
14879 (grub_register_variable_hook): Likewise.
14880 (grub_env_export): Specify the name of the argument.
14881 (grub_env_set_data_slot): New prototype.
14882 (grub_env_get_data_slot): Likewise.
14883 (grub_env_unset_data_slot): Likewise.
14885 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
14887 Extend the loader so that GRUB can accept a loader which comes
14888 back to GRUB when a loaded image exits. Also, this change adds
14889 support for a chainloader on EFI.
14891 * term/efi/console.c: Include grub/misc.h.
14892 (grub_console_checkkey): Display a scan code on the top for
14893 debugging. This will be removed once the EFI port gets stable.
14894 Correct the scan code mapping.
14896 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
14897 allocate memory from larger regions, in order to reduce the number
14898 of allocated regions. Otherwise, the MacOSX loader panics.
14899 (filter_memory_map): Avoid less than 1MB for compatibility with
14901 (add_memory_regions): Allocate from the tail of a region, if
14902 possible, to avoid allocating a region near to 1MB, for the MacOSX
14905 * kern/efi/init.c (grub_efi_set_prefix): Specify
14906 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
14908 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
14909 argument IMAGE_HANDLE and specify it to get a loaded image.
14910 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
14911 grub_efi_get_loaded_image.
14912 (grub_efi_get_filename): Divide the length by the size of
14914 (grub_efi_get_device_path): New function.
14915 (grub_efi_print_device_path): Print End Device Path nodes. Divide
14916 the length by the size of grub_efi_char16_t for a file path device
14919 * kern/loader.c (grub_loader_noreturn): New variable.
14920 (grub_loader_set): Accept a new argument NORETURN. Set
14921 GRUB_LOADER_NORETURN to NORETURN.
14922 All callers changed.
14923 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
14926 * include/grub/efi/efi.h (grub_efi_get_device_path): New
14928 (grub_efi_get_loaded_image): Take an argument to specify an image
14931 * include/grub/loader.h (grub_loader_set): Added one more argument
14934 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
14935 instead of grub_efi_open_protocol.
14936 (grub_efidisk_get_device_name): Likewise.
14937 (grub_efidisk_close): Print a newline.
14938 (grub_efidisk_get_device_handle): Fixed to use
14939 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
14940 GRUB_EFI_DEVICE_PATH_TYPE.
14942 * disk/efi/efidisk.c (device_path_guid): Moved to ...
14943 * kern/efi/efi.c (device_path_guid): ... here.
14945 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
14947 (kernel_mod_HEADERS): Added efi/disk.h.
14948 (_chain_mod_SOURCES): New variable.
14949 (_chain_mod_CFLAGS): Likewise.
14950 (_chain_mod_LDFLAGS): Likewise.
14951 (chain_mod_SOURCES): Likewise.
14952 (chain_mod_CFLAGS): Likewise.
14953 (chain_mod_LDFLAGS): Likewise.
14955 * DISTLIST: Added include/grub/efi/chainloader.h,
14956 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
14958 * include/grub/efi/chainloader.h: New file.
14959 * loader/efi/chainloader.c: Likewise.
14960 * loader/efi/chainloader_normal.c: Likewise.
14962 2006-04-30 Marco Gerards <marco@gnu.org>
14964 * commands/configfile.c (grub_cmd_source): New function.
14965 (GRUB_MOD_INIT): Register the commands `source' and `.'.
14966 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
14968 2006-04-30 Marco Gerards <marco@gnu.org>
14970 * normal/execute.c (grub_script_execute_cmd): Change the return
14971 type to `grub_err_t'. Correctly return the error.
14972 (grub_script_execute_cmdline): In case a command line is not a
14973 command or a function, try to interpret it as an assignment.
14975 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
14977 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
14978 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
14979 skip a node whose name is obviously invalid as UTF-16,
14980 i.e. contains a NUL character. Stop the iteration when the last
14981 directory entry is found. Instead of using the return value of
14982 grub_hfsplus_btree_iterate_node, store the value in RET and use
14983 it, because the iterator can be stopped by the last directory
14986 2006-04-30 Marco Gerards <marco@gnu.org>
14988 * include/grub/env.h (grub_env_export): New prototype. Reported
14989 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
14991 2006-04-30 Marco Gerards <marco@gnu.org>
14993 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
14994 size of the extents in a catalog file record.
14996 2006-04-29 Marco Gerards <marco@gnu.org>
14998 * commands/configfile.c (grub_cmd_configfile): Execute the
14999 configfile within its own context.
15001 * include/grub/env.h (grub_env_context_open): New prototype.
15002 (grub_env_context_close): Likewise.
15004 * kern/env.c (grub_env): Removed.
15005 (grub_env_sorted): Likewise.
15006 (grub_env_context): New variable.
15007 (grub_env_var_context): Likewise.
15008 (grub_env_find): Search both the active context and the global
15010 (grub_env_context_open): New function.
15011 (grub_env_context_close): Likewise.
15012 (grub_env_insert): Likewise.
15013 (grub_env_remove): Likewise.
15014 (grub_env_export): Likewise.
15015 (grub_env_set): Changed to use helper functions to avoid code
15017 (grub_env_iterate): Rewritten so both the current context and the
15018 global context are being used.
15020 * normal/command.c (export_command): New function.
15021 (grub_command_init): Register the `export' function.
15023 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
15025 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
15026 explicitly to suppress gcc's warnings.
15027 * fs/fat.c (grub_fat_find_dir): Likewise.
15028 (grub_fat_label): Likewise.
15029 * fs/xfs.c (grub_xfs_read_inode): Likewise.
15030 (grub_xfs_mount): Likewise.
15031 (grub_xfs_label): Likewise.
15032 * fs/affs.c (grub_affs_mount): Likewise.
15033 (grub_affs_label): Likewise.
15034 (grub_affs_iterate_dir): Likewise.
15035 * fs/sfs.c (grub_sfs_mount): Likewise.
15036 (grub_sfs_iterate_dir): Likewise.
15037 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
15038 * fs/hfs.c (grub_hfs_mount): Likewise.
15039 (grub_hfs_cmp_catkeys): Likewise.
15040 (grub_hfs_find_dir): Likewise.
15041 (grub_hfs_dir): Likewise.
15042 (grub_hfs_label): Likewise.
15043 * fs/jfs.c (grub_jfs_mount): Likewise.
15044 (grub_jfs_opendir): Likewise.
15045 (grub_jfs_getent): Likewise.
15046 (grub_jfs_lookup_symlink): Likewise.
15047 (grub_jfs_label): Likewise.
15048 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
15049 (grub_hfsplus_iterate_dir): Likewise.
15050 (grub_hfsplus_btree_iterate_node): Made static.
15052 * util/grub-emu.c (prefix): New variable.
15053 (grub_machine_set_prefix): New function.
15054 (main): Do not set the environment variable "prefix" here. Only
15055 set PREFIX, which is used later by grub_machine_set_prefix.
15057 * include/grub/video.h: Do not include grub/symbol.h.
15058 (grub_video_register): Not exported. This symbol is not defined in
15060 (grub_video_unregister): Likewise.
15061 (grub_video_iterate): Likewise.
15062 (grub_video_setup): Likewise.
15063 (grub_video_restore): Likewise.
15064 (grub_video_get_info): Likewise.
15065 (grub_video_get_blit_format): Likewise.
15066 (grub_video_set_palette): Likewise.
15067 (grub_video_get_palette): Likewise.
15068 (grub_video_set_viewport): Likewise.
15069 (grub_video_get_viewport): Likewise.
15070 (grub_video_map_color): Likewise.
15071 (grub_video_map_rgb): Likewise.
15072 (grub_video_map_rgba): Likewise.
15073 (grub_video_fill_rect): Likewise.
15074 (grub_video_blit_glyph): Likewise.
15075 (grub_video_blit_bitmap): Likewise.
15076 (grub_video_blit_render_target): Likewise.
15077 (grub_video_scroll): Likewise.
15078 (grub_video_swap_buffers): Likewise.
15079 (grub_video_create_render_target): Likewise.
15080 (grub_video_delete_render_target): Likewise.
15081 (grub_video_set_active_render_target): Likewise.
15083 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
15085 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
15087 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
15088 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15089 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15090 instead of $(srcdir)/genkernsyms.sh.
15092 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
15093 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15094 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15095 instead of $(srcdir)/genkernsyms.sh.
15097 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
15098 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15099 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15100 instead of $(srcdir)/genkernsyms.sh.
15102 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
15103 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15104 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15105 instead of $(srcdir)/genkernsyms.sh.
15107 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
15110 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
15112 (gensymlist.sh): New target.
15113 (genkernsyms.sh): Likewise.
15115 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
15116 genkernsyms.sh.in and gensymlist.sh.in.
15118 * genkernsyms.sh: Removed.
15119 * gensymlist.sh: Likewise.
15121 * genkernsyms.sh.in: New file.
15122 * gensymlist.sh.in: Likewise.
15124 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15126 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
15127 clobber "prefix", since we may have already set it manually.
15129 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15131 * kern/misc.c (abort): New alias for grub_abort.
15133 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
15135 A new machine-specific function "grub_machine_set_prefix" is
15136 defined. This is called after loading modules, so that a prefix
15137 initialization can use modules. Also, this change adds an
15138 intensive debugging feature for the memory manager via the
15139 configure option "--enable-mm-debug".
15141 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
15144 * kern/sparc64/ieee1275/init.c (abort): Removed.
15145 (grub_stop): Likewise.
15146 (grub_exit): New function.
15147 (grub_set_prefix): Renamed to ...
15148 (grub_machine_set_prefix): ... this.
15149 (grub_machine_init): Do not call grub_set_prefix.
15151 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
15152 (grub_machine_set_prefix): ... this.
15153 (grub_machine_init): Do not call grub_set_prefix.
15155 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
15156 (grub_machine_init): Do not set the prefix here.
15158 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
15160 * kern/efi/init.c: Include grub/mm.h.
15161 (grub_efi_set_prefix): New function.
15163 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
15164 (grub_efi_get_filename): New function.
15165 (grub_print_device_path): Renamed to ...
15166 (grub_efi_print_device_path): ... this.
15168 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
15169 [MM_DEBUG] (grub_realloc): Likewise.
15170 [MM_DEBUG] (grub_free): Likewise.
15171 [MM_DEBUG] (grub_memalign): Likewise.
15172 [MM_DEBUG] (grub_mm_debug): New variable.
15173 [MM_DEBUG] (grub_debug_malloc): New function.
15174 [MM_DEBUG] (grub_debug_free): New function.
15175 [MM_DEBUG] (grub_debug_realloc): New function.
15176 [MM_DEBUG] (grub_debug_memalign): New function.
15178 * kern/misc.c (grub_abort): Print a newline to distinguish
15181 * kern/main.c (grub_main): Call grub_machine_set_prefix and
15182 grub_set_root_dev after loading modules. This is necessary when
15183 setting a prefix depends on modules.
15185 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
15186 (grub_efi_print_device_path): ... this.
15187 (grub_efi_get_filename): New prototype.
15188 (grub_efi_set_prefix): Likewise.
15190 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
15192 (grub_efidisk_get_device_handle): New prototype.
15193 (grub_efidisk_get_device_name): Likewise.
15195 * include/grub/mm.h: Include config.h.
15196 (MM_DEBUG): Removed.
15197 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
15198 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
15199 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
15200 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
15201 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
15202 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
15203 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
15204 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
15205 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
15207 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
15209 * disk/efi/efidisk.c: Include grub/partition.h.
15210 (iterate_child_devices): New function.
15211 (add_device): First, compare only last device path nodes, so that
15212 devices are sorted by the types.
15213 (grub_efidisk_get_device_handle): New function.
15214 (grub_efidisk_get_device_name): Likewise.
15216 * configure.ac (--enable-mm-debug): New option to enable the
15217 memory manager debugging feature. This makes the binary much
15218 bigger, so is disabled by default.
15220 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
15222 Use grub_abort instead of grub_stop, and grub_exit must be
15223 define in each architecture now. Also, this change adds support
15226 * util/i386/pc/grub-probefs.c: Include grub/term.h.
15227 (grub_getkey): New function.
15228 (grub_term_get_current): Likewise.
15230 * util/i386/pc/grub-setup.c: Include grub/term.h.
15231 (grub_getkey): New function.
15232 (grub_term_get_current): Likewise.
15234 * util/misc.c (grub_stop): Renamed to ...
15235 (grub_exit): ... this.
15237 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
15238 (grub_exit): ... this.
15239 (grub_machine_init): Use grub_abort instead of abort.
15240 (grub_stop): Removed.
15242 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
15245 * kern/i386/pc/startup.S (grub_exit): New function.
15246 (cold_reboot): New label.
15248 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
15249 (grub_efi_init): Call grub_efidisk_init.
15250 (grub_efi_fini): Call grub_efidisk_fini.
15252 * kern/efi/efi.c: Include grub/mm.h.
15253 (grub_efi_console_control_guid): Renamed to ...
15254 (console_control_guid): ... this.
15255 (grub_efi_loaded_image_guid): Renamed to ...
15256 (loaded_image_guid): ... this.
15257 (grub_efi_locate_handle): New function.
15258 (grub_efi_open_protocol): Likewise.
15259 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
15260 GRUB_EFI_CONSOLE_CONTROL_GUID.
15261 (grub_efi_exit): Removed.
15262 (grub_stop): Likewise.
15263 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
15264 (grub_exit): New function.
15265 (grub_print_device_path): Likewise.
15267 * kern/rescue.c (grub_rescue_cmd_exit): New function.
15268 (grub_enter_rescue_mode): Register "exit".
15270 * kern/misc.c (grub_real_dprintf): A cosmetic change.
15271 (grub_abort): New function.
15273 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
15275 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
15277 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
15279 * include/grub/efi/efi.h (grub_efi_exit): Removed.
15280 (grub_print_device_path): New prototype.
15281 (grub_efi_locate_handle): Likewise.
15282 (grub_efi_open_protocol): Likewise.
15284 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
15285 * disk/efi/efidisk.c: Likewise.
15287 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
15289 * include/grub/efi/console_control.h
15290 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
15292 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
15293 last 8 bytes as an array.
15294 (GRUB_EFI_DISK_IO_GUID): New macro.
15295 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
15296 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
15297 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
15299 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
15300 (struct grub_efi_device_path): Rename the member "sub_type" to
15302 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
15303 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
15304 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
15305 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
15306 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
15307 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
15308 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
15309 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
15310 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
15311 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
15312 (struct grub_efi_pci_device_path): New structure.
15313 (grub_efi_pci_device_path_t): New type.
15314 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
15315 (struct grub_efi_pccard_device_path): New structure.
15316 (grub_efi_pccard_device_path_t): New type.
15317 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
15318 (struct grub_efi_memory_mapped_device_path): New structure.
15319 (grub_efi_memory_mapped_device_path_t): New type.
15320 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
15321 (struct grub_efi_vendor_device_path): New structure.
15322 (grub_efi_vendor_device_path_t): New type.
15323 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
15324 (struct grub_efi_controller_device_path): New structure.
15325 (grub_efi_controller_device_path_t): New type.
15326 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
15327 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
15328 (struct grub_efi_acpi_device_path): New structure.
15329 (grub_efi_acpi_device_path_t): New type.
15330 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
15331 (struct grub_efi_expanded_acpi_device_path): New structure.
15332 (grub_efi_expanded_acpi_device_path_t): New type.
15333 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
15334 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
15335 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
15336 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
15337 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
15338 (struct grub_efi_atapi_device_path): New structure.
15339 (grub_efi_atapi_device_path_t): New type.
15340 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
15341 (struct grub_efi_fibre_channel_device_path): New structure.
15342 (grub_efi_fibre_channel_device_path_t): New type.
15343 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
15344 (struct grub_efi_1394_device_path): New structure.
15345 (grub_efi_1394_device_path_t): New type.
15346 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
15347 (struct grub_efi_usb_device_path): New structure.
15348 (grub_efi_usb_device_path_t): New type.
15349 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
15350 (struct grub_efi_usb_class_device_path): New structure.
15351 (grub_efi_usb_class_device_path_t): New type.
15352 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
15353 (struct grub_efi_i2o_device_path): New structure.
15354 (grub_efi_i2o_device_path_t): New type.
15355 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
15356 (struct grub_efi_mac_address_device_path): New structure.
15357 (grub_efi_mac_address_device_path_t): New type.
15358 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
15359 (struct grub_efi_ipv4_device_path): New structure.
15360 (grub_efi_ipv4_device_path_t): New type.
15361 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
15362 (struct grub_efi_ipv6_device_path): New structure.
15363 (grub_efi_ipv6_device_path_t): New type.
15364 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
15365 (struct grub_efi_infiniband_device_path): New structure.
15366 (grub_efi_infiniband_device_path_t): New type.
15367 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
15368 (struct grub_efi_uart_device_path): New structure.
15369 (grub_efi_uart_device_path_t): New type.
15370 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
15371 (struct grub_efi_vendor_messaging_device_path): New structure.
15372 (grub_efi_vendor_messaging_device_path_t): New type.
15373 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
15374 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
15375 (struct grub_efi_hard_drive_device_path): New structure.
15376 (grub_efi_hard_drive_device_path_t): New type.
15377 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
15378 (struct grub_efi_cdrom_device_path): New structure.
15379 (grub_efi_cdrom_device_path_t): New type.
15380 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
15381 (struct grub_efi_vendor_media_device_path): New structure.
15382 (grub_efi_vendor_media_device_path_t): New type.
15383 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
15384 (struct grub_efi_file_path_device_path): New structure.
15385 (grub_efi_file_path_device_path_t): New type.
15386 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
15387 (struct grub_efi_protocol_device_path): New structure.
15388 (grub_efi_protocol_device_path_t): New type.
15389 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
15390 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
15391 (struct grub_efi_bios_device_path): New structure.
15392 (grub_efi_bios_device_path_t): New type.
15393 (struct grub_efi_disk_io): New structure.
15394 (grub_efi_disk_io_t): New type.
15395 (struct grub_efi_block_io_media): New structure.
15396 (grub_efi_block_io_media_t): New type.
15397 (struct grub_efi_block_io): New structure.
15398 (grub_efi_block_io_t): New type.
15400 * include/grub/misc.h (grub_stop): Removed.
15401 (grub_exit): New prototype.
15402 (grub_abort): Likewise.
15404 * include/grub/disk.h (enum grub_disk_dev_id): Added
15405 GRUB_DISK_DEVICE_EFIDISK_ID.
15407 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
15408 disk/efi/efidisk.c.
15409 (kernel_syms.lst): Remove the target if an error occurs.
15411 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
15413 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
15414 as it was simply too buggy.
15416 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
15418 * kern/misc.c (grub_lltoa): New function.
15419 (grub_vsprintf): Added support for the long long suffix,
15422 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
15424 * Makefile.in (LDFLAGS): Add variable.
15425 (LD): Remove variable.
15426 * configure.ac: Add -m32 to LDFLAGS.
15427 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
15428 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
15429 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
15430 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
15431 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
15433 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
15434 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
15435 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
15437 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
15439 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
15440 length for unknown glyph.
15442 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15444 Add support for pre-loaded modules into the EFI port.
15446 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
15447 completely. Accept one more argument DIR. The caller has changed.
15449 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
15451 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
15452 (grub_efi_loaded_image_guid): New variable.
15453 (grub_efi_get_loaded_image): New function.
15454 (grub_arch_modules_addr): Likewise.
15456 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
15459 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
15460 (struct grub_efi_loaded_image): New structure.
15461 (grub_efi_loaded_image_t): New type.
15463 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15465 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
15466 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
15467 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
15469 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
15471 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
15473 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
15475 * DISTLIST: Added include/grub/efi/console.h,
15476 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
15477 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15479 * include/grub/efi/console.h: New file.
15480 * include/grub/efi/time.h: Likewise.
15481 * include/grub/i386/efi/kernel.h: Likewise.
15482 * kern/efi/init.c: Likewise.
15483 * kern/efi/mm.c: Likewise.
15484 * term/efi/console.c: Likewise.
15486 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
15487 (grub_stop): Removed.
15488 (grub_get_rtc): Likewise.
15489 (grub_machine_init): Simply call grub_efi_init.
15490 (grub_machine_fini): Call grub_efi_fini.
15492 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
15493 (grub_efi_output_string): Removed.
15494 (grub_efi_stall): New function.
15495 (grub_stop): Likewise.
15496 (grub_get_rtc): Likewise.
15498 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
15499 (grub_efi_stall): New prototype.
15500 (grub_efi_allocate_pages): Likewise.
15501 (grub_efi_free_pages): Likewise.
15502 (grub_efi_get_memory_map): Likewise.
15503 (grub_efi_mm_init): Likewise.
15504 (grub_efi_mm_fini): Likewise.
15505 (grub_efi_init): Likewise.
15506 (grub_efi_fini): Likewise.
15508 * include/grub/i386/efi/time.h: Do not include
15509 grub/symbol.h. Include grub/efi/time.h.
15510 (GRUB_TICKS_PER_SECOND): Removed.
15511 (grub_get_rtc): Likewise.
15513 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
15514 Added padding. The EFI spec is buggy.
15515 (GRUB_EFI_BLACK): New macro.
15516 (GRUB_EFI_BLUE): Likewise.
15517 (GRUB_EFI_GREEN): Likewise.
15518 (GRUB_EFI_CYAN): Likewise.
15519 (GRUB_EFI_RED): Likewise.
15520 (GRUB_EFI_MAGENTA): Likewise.
15521 (GRUB_EFI_BROWN): Likewise.
15522 (GRUB_EFI_LIGHTGRAY): Likewise.
15523 (GRUB_EFI_BRIGHT): Likewise.
15524 (GRUB_EFI_DARKGRAY): Likewise.
15525 (GRUB_EFI_LIGHTBLUE): Likewise.
15526 (GRUB_EFI_LIGHTGREEN): Likewise.
15527 (GRUB_EFI_LIGHTCYAN): Likewise.
15528 (GRUB_EFI_LIGHTRED): Likewise.
15529 (GRUB_EFI_LIGHTMAGENTA): Likewise.
15530 (GRUB_EFI_YELLOW): Likewise.
15531 (GRUB_EFI_WHITE): Likewise.
15532 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
15533 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
15534 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
15535 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
15536 (GRUB_EFI_BACKGROUND_RED): Likewise.
15537 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
15538 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
15539 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
15540 (GRUB_EFI_TEXT_ATTR): Likewise.
15542 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
15543 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15544 (kernel_mod_HEADERS): Added efi/time.h.
15546 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
15548 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
15549 include/grub/efi/api.h, include/grub/efi/console_control.h,
15550 include/grub/efi/efi.h, include/grub/efi/pe32.h,
15551 include/grub/i386/efi/time.h, kern/efi/efi.c,
15552 kern/i386/efi/init.c, kern/i386/efi/startup.S,
15553 and util/i386/efi/grub-mkimage.c.
15555 * Makefile.in (RMKFILES): Added i386-efi.rmk.
15557 * genmk.rb (PModule#rule): Do not export symbols if
15558 #{prefix}_EXPORTS is set to "no".
15560 * conf/i386-efi.mk: New file.
15561 * conf/i386-efi.rmk: Likewise.
15562 * include/grub/efi/api.h: Likewise.
15563 * include/grub/efi/console_control.h: Likewise.
15564 * include/grub/efi/efi.h: Likewise.
15565 * include/grub/efi/pe32.h: Likewise.
15566 * include/grub/i386/efi/time.h: Likewise.
15567 * kern/efi/efi.c: Likewise.
15568 * kern/i386/efi/init.c: Likewise.
15569 * kern/i386/efi/startup.S: Likewise.
15570 * util/i386/efi/grub-mkimage.c: Likewise.
15572 2006-04-17 Marco Gerards <marco@gnu.org>
15574 * include/grub/script.h: Include <grub/parser.h> and
15575 "grub_script.tab.h".
15576 (struct grub_lexer_param): New struct.
15577 (struct grub_parser_param): Likewise.
15578 (grub_script_create_arglist): Pass the state in an argument.
15579 (grub_script_add_arglist): Likewise.
15580 (grub_script_create_cmdline): Likewise.
15581 (grub_script_create_cmdblock): Likewise.
15582 (grub_script_create_cmdif): Likewise.
15583 (grub_script_create_cmdmenu): Likewise.
15584 (grub_script_add_cmd): Likewise.
15585 (grub_script_arg_add): Likewise.
15586 (grub_script_lexer_ref): Likewise.
15587 (grub_script_lexer_deref): Likewise.
15588 (grub_script_lexer_record_start): Likewise.
15589 (grub_script_lexer_record_stop): Likewise.
15590 (grub_script_mem_record): Likewise.
15591 (grub_script_mem_record_stop): Likewise.
15592 (grub_script_malloc): Likewise.
15593 (grub_script_yylex): Likewise.
15594 (grub_script_yyparse): Likewise.
15595 (grub_script_yyerror): Likewise.
15596 (grub_script_yylex): Likewise.
15597 (grub_script_lexer_init): Return the state.
15599 * normal/lexer.c (grub_script_lexer_state): Removed variable.
15600 (grub_script_lexer_done): Likewise.
15601 (grub_script_lexer_getline): Likewise.
15602 (grub_script_lexer_refs): Likewise.
15603 (script): Likewise.
15604 (newscript): Likewise.
15605 (record): Likewise.
15606 (recording): Likewise.
15607 (recordpos): Likewise.
15608 (recordlen): Likewise.
15609 (grub_script_lexer_init): Return the state instead of setting
15611 (grub_script_lexer_ref): Use the newly added argument for state
15612 instead of globals.
15613 (grub_script_lexer_deref): Likewise.
15614 (grub_script_lexer_record_start): Likewise.
15615 (grub_script_lexer_record_stop): Likewise.
15616 (recordchar): Likewise.
15617 (nextchar): Likewise.
15618 (grub_script_yylex2): Likewise.
15619 (grub_script_yylex): Likewise.
15620 (grub_script_yyerror): Likewise.
15622 * normal/parser.y (func_mem): Removed variable.
15623 (menu_entry): Likewise.
15625 (%lex-param): New parser option.
15626 (%parse-param): Likewise.
15627 (script): Always return the AST.
15628 (argument): Pass the state around.
15629 (arguments): Likewise.
15630 (grubcmd): Likewise.
15631 (commands): Likewise.
15632 (function): Likewise.
15633 (menuentry): Likewise.
15634 (if_statement): Likewise.
15637 * normal/script.c (grub_script_memused): Removed variable.
15638 (grub_script_parsed): Likewise.
15639 (grub_script_malloc): Added a state argument. Use that instead of
15641 (grub_script_mem_record): Likewise.
15642 (grub_script_mem_record_stop): Likewise.
15643 (grub_script_arg_add): Likewise.
15644 (grub_script_add_arglist): Likewise.
15645 (grub_script_create_cmdline): Likewise.
15646 (grub_script_create_cmdif): Likewise.
15647 (grub_script_create_cmdmenu): Likewise.
15648 (grub_script_add_cmd): Likewise.
15649 (grub_script_parse): Setup the state before calling the parser.
15651 2006-04-16 Marco Gerards <marco@gnu.org>
15653 * normal/command.c (grub_command_init): Remove the title command.
15655 * normal/lexer.c (grub_script_yylex): Renamed from this...
15656 (grub_script_yylex2): ... to this.
15657 (grub_script_yylex): New function. Temporary
15658 introduced to filter some tokens.
15659 (grub_script_yyerror): Print a newline.
15661 * normal/main.c (read_config_file): Output information about the
15662 lines that contain errors. Wait for a key after all lines have
15663 been processed. Don't return an empty menu.
15665 * normal/parser.y (func_mem): Don't initialize.
15666 (menu_entry): Likewise.
15667 (err): New variable.
15668 (script): Don't return anything when an error was encountered.
15669 (ws, returns): Removed rules.
15670 (argument): Disabled concatenated variable support.
15671 (arguments): Remove explicit separators.
15672 (grubcmd): Likewise.
15673 (function): Likewise.
15674 (menuentry): Likewise.
15676 (commands): Likewise. Add error handling.
15678 * normal/script.c (grub_script_create_cmdline): If
15679 `grub_script_parsed' is 0, assume the parser encountered an error.
15681 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
15683 * configure.ac: Add support for EFI. Fix the typo
15684 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
15686 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15688 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
15689 foreign multibyte characters should be shown correctly.
15691 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15693 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
15695 (read_config_file): Made it to close file before returning.
15697 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
15699 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
15700 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
15701 video/i386/pc/vbefill.c.
15703 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
15704 video/i386/pc/vbefill.c.
15706 * include/grub/video.h (grub_video_blit_format): New enum.
15707 (grub_video_mode_info): Added new member blit_format.
15708 (grub_video_get_blit_format): New function prototype.
15710 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
15711 function prototype.
15712 (grub_video_vbe_map_rgb): Likewise.
15713 (grub_video_vbe_unmap_color): Likewise.
15715 * include/grub/i386/pc/vbeblit.h: New file.
15717 * include/grub/i386/pc/vbefill.h: New file.
15719 * video/video.c (grub_video_get_blit_format): New function.
15720 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
15721 (grub_video_vbe_map_rgb): Likewise.
15722 (grub_video_vbe_unmap_color): Likewise.
15724 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
15726 (grub_video_vbe_blit_render_target): Changed to use more optimized
15728 (grub_video_vbe_setup): Added detection for optimized settings.
15729 (grub_video_vbe_create_render_target): Likewise.
15731 * video/i386/pc/vbeblit.c: New file.
15733 * video/i386/pc/vbefill.c: New file.
15735 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
15737 * font/manager.c (grub_font_get_glyph): Removed font fixup from
15740 * util/unifont2pff.rb: ... and moved it to here. Improved argument
15741 parsing to support both hex and dec ranges. If filename was missing
15742 show usage information.
15744 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
15746 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
15747 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
15749 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
15750 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
15751 (video_mod_SOURCES): Added.
15752 (video_mod_CFLAGS): Likewise.
15753 (video_mod_LDFLAGS): Likewise.
15754 (gfxterm_mod_SOURCES): Likewise.
15755 (gfxterm_mod_CFLAGS): Likewise.
15756 (gfxterm_mod_LDFLAGS): Likewise.
15757 (videotest_mod_SOURCES): Likewise.
15758 (videotest_mod_CFLAGS): Likewise.
15759 (videotest_mod_LDFLAGS): Likewise.
15760 (vesafb_mod_SOURCES): Removed.
15761 (vesafb_mod_CFLAGS): Likewise.
15762 (vesafb_mod_LDFLAGS): Likewise.
15763 (vga_mod_SOURCES): Likewise.
15764 (vga_mod_CFLAGS): Likewise.
15765 (vga_mod_LDFLAGS): Likewise.
15767 * commands/videotest.c: New file.
15769 * font/manager.c (fill_with_default_glyph): Modified to use
15771 (grub_font_get_glyph): Likewise.
15772 (fontmanager): Renamed from this...
15773 (font_manager): ... to this.
15775 * include/grub/font.h (grub_font_glyph): Added new structure.
15776 (grub_font_get_glyph): Modified to use grub_font_glyph.
15778 * include/grub/misc.h (grub_abs): Added as inline function.
15780 * include/grub/video.h: New file.
15782 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
15783 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
15784 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
15785 (grub_vbe_get_controller_info): Renamed from this...
15786 (grub_vbe_bios_get_controller_info): ... to this.
15787 (grub_vbe_get_mode_info): Renamed from this...
15788 (grub_vbe_bios_get_mode_info): ... to this.
15789 (grub_vbe_set_mode): Renamed from this...
15790 (grub_vbe_bios_set_mode): ... to this.
15791 (grub_vbe_get_mode): Renamed from this...
15792 (grub_vbe_bios_get_mode): ... to this.
15793 (grub_vbe_set_memory_window): Renamed from this...
15794 (grub_vbe_bios_set_memory_window): ... to this.
15795 (grub_vbe_get_memory_window): Renamed from this...
15796 (grub_vbe_bios_get_memory_window): ... to this.
15797 (grub_vbe_set_scanline_length): Renamed from this...
15798 (grub_vbe_set_scanline_length): ... to this.
15799 (grub_vbe_get_scanline_length): Renamed from this...
15800 (grub_vbe_bios_get_scanline_length): ... to this.
15801 (grub_vbe_set_display_start): Renamed from this...
15802 (grub_vbe_bios_set_display_start): ... to this.
15803 (grub_vbe_get_display_start): Renamed from this...
15804 (grub_vbe_bios_get_display_start): ... to this.
15805 (grub_vbe_set_palette_data): Renamed from this...
15806 (grub_vbe_bios_set_palette_data): ... to this.
15807 (grub_vbe_set_pixel_rgb): Removed.
15808 (grub_vbe_set_pixel_index): Likewise.
15810 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
15812 (grub_vbe_bios_get_controller_info): ... to this.
15813 (grub_vbe_get_mode_info): Renamed from this...
15814 (grub_vbe_bios_get_mode_info): ... to this.
15815 (grub_vbe_set_mode): Renamed from this...
15816 (grub_vbe_bios_set_mode): ... to this.
15817 (grub_vbe_get_mode): Renamed from this...
15818 (grub_vbe_bios_get_mode): ... to this.
15819 (grub_vbe_set_memory_window): Renamed from this...
15820 (grub_vbe_bios_set_memory_window): ... to this.
15821 (grub_vbe_get_memory_window): Renamed from this...
15822 (grub_vbe_bios_get_memory_window): ... to this.
15823 (grub_vbe_set_scanline_length): Renamed from this...
15824 (grub_vbe_set_scanline_length): ... to this.
15825 (grub_vbe_get_scanline_length): Renamed from this...
15826 (grub_vbe_bios_get_scanline_length): ... to this.
15827 (grub_vbe_set_display_start): Renamed from this...
15828 (grub_vbe_bios_set_display_start): ... to this.
15829 (grub_vbe_get_display_start): Renamed from this...
15830 (grub_vbe_bios_get_display_start): ... to this.
15831 (grub_vbe_set_palette_data): Renamed from this...
15832 (grub_vbe_bios_set_palette_data): ... to this.
15833 (grub_vbe_bios_get_controller_info): Fixed problem with registers
15834 getting corrupted after calling it. Added more pushes and pops.
15835 (grub_vbe_bios_set_mode): Likewise.
15836 (grub_vbe_bios_get_mode): Likewise.
15837 (grub_vbe_bios_get_memory_window): Likewise.
15838 (grub_vbe_bios_set_scanline_length): Likewise.
15839 (grub_vbe_bios_get_scanline_length): Likewise.
15840 (grub_vbe_bios_get_display_start): Likewise.
15841 (grub_vbe_bios_set_palette_data): Likewise.
15843 * normal/cmdline.c (cl_set_pos): Refresh the screen.
15844 (cl_insert): Likewise.
15845 (cl_delete): Likewise.
15847 * term/gfxterm.c: New file.
15849 * term/i386/pc/vesafb.c: Removed file.
15851 * video/video.c: New file.
15853 * video/i386/pc/vbe.c (real2pm): Added new function.
15854 (grub_video_vbe_draw_pixel): Likewise.
15855 (grub_video_vbe_get_video_ptr): Likewise.
15856 (grub_video_vbe_get_pixel): Likewise
15857 (grub_video_vbe_init): Likewise.
15858 (grub_video_vbe_fini): Likewise.
15859 (grub_video_vbe_setup): Likewise.
15860 (grub_video_vbe_get_info): Likewise.
15861 (grub_video_vbe_set_palette): Likewise.
15862 (grub_video_vbe_get_palette): Likewise.
15863 (grub_video_vbe_set_viewport): Likewise.
15864 (grub_video_vbe_get_viewport): Likewise.
15865 (grub_video_vbe_map_color): Likewise.
15866 (grub_video_vbe_map_rgb): Likewise.
15867 (grub_video_vbe_map_rgba): Likewise.
15868 (grub_video_vbe_unmap_color): Likewise.
15869 (grub_video_vbe_fill_rect): Likewise.
15870 (grub_video_vbe_blit_glyph): Likewise.
15871 (grub_video_vbe_blit_bitmap): Likewise.
15872 (grub_video_vbe_blit_render_target): Likewise.
15873 (grub_video_vbe_scroll): Likewise.
15874 (grub_video_vbe_swap_buffers): Likewise.
15875 (grub_video_vbe_create_render_target): Likewise.
15876 (grub_video_vbe_delete_render_target): Likewise.
15877 (grub_video_vbe_set_active_render_target): Likewise.
15878 (grub_vbe_set_pixel_rgb): Remove function.
15879 (grub_vbe_set_pixel_index): Likewise.
15880 (index_color_mode): Remove static variable.
15881 (active_mode): Likewise.
15882 (framebuffer): Likewise.
15883 (bytes_per_scan_line): Likewise.
15884 (grub_video_vbe_adapter): Added new static variable.
15885 (framebuffer): Likewise.
15886 (render_target): Likewise.
15887 (initial_mode): Likewise.
15888 (mode_in_use): Likewise.
15889 (mode_list): Likewise.
15891 2006-03-10 Marco Gerards <marco@gnu.org>
15893 * configure.ac (AC_INIT): Bumped to 1.93.
15895 * DISTLIST: Added `include/grub/hfs.h'.
15897 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
15899 * boot/i386/pc/boot.S (general_error): Before looping, try INT
15900 18H, which might help the BIOS falling back to next boot media.
15902 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
15904 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
15905 Poe Chen <poe.poechen@gmail.com>.
15907 2006-01-17 Marco Gerards <marco@gnu.org>
15909 * include/grub/normal.h: Include <grub/script.h>.
15910 (grub_command_list): Removed struct.
15911 (grub_command_list_t): Removed type.
15912 (grub_menu_entry): Remove members `num' and `command_list'. Add
15913 members `commands' and `sourcecode'.
15914 * include/grub/script.h: Add inclusion guards.
15915 (grub_script_cmd_menuentry): New struct.
15916 (grub_script_execute_menuentry): New prototype.
15917 (grub_script_lexer_record_start): Likewise.
15918 (grub_script_lexer_record_stop): Likewise.
15919 * normal/execute.c (grub_script_execute_menuentry): New function.
15920 * normal/lexer.c (record, recording, recordpos, recordlen): New
15922 (grub_script_lexer_record_start): New function.
15923 (grub_script_lexer_record_stop): Likewise.
15924 (recordchar): Likewise.
15925 (nextchar): Likewise.
15926 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
15927 2048 as the buffer size. Add the tokens `menuentry' and `@'.
15928 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
15929 (current_menu): New variable.
15930 (free_menu): Mainly rewritten.
15931 (grub_normal_menu_addentry): New function.
15932 (read_config_file): Rewritten.
15933 * normal/menu.c (run_menu_entry): Mainly rewritten.
15934 * normal/menu_entry.c (make_screen): Rewritten the code to insert
15936 (run): Mainly rewritten.
15937 * normal/parser.y (menu_entry): New variable.
15938 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
15939 (menuentry): New rule.
15940 (command): Add `menuentry'.
15941 (if_statement): Allow additional returns before `fi'.
15942 * normal/script.c (grub_script_create_cmdmenu): New function.
15944 2006-01-03 Marco Gerards <marco@gnu.org>
15946 * INSTALL: GNU Bison is required.
15947 * configure.ac: Rewritten the test to detect Bison.
15948 * Makefile.in (YACC): New variable. Reported by Xun Sun
15949 <xun.sun.cn@gmail.com>.
15951 2006-01-03 Marco Gerards <marco@gnu.org>
15953 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
15954 the HFS+ filesystem to filesystem blocks.
15955 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
15956 GCC warning is silenced.
15958 2006-01-03 Marco Gerards <marco@gnu.org>
15960 * partmap/apple.c (apple_partition_map_iterate): Convert the data
15961 read from disk from big endian to host byte order.
15963 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
15965 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
15967 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
15968 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
15969 embedded HFS+ filesystem.
15970 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
15971 (grub_hfs_sblock): Move from here...
15972 * include/grub/hfs.h: To here... New file.
15973 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
15975 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
15977 (grub_hfsplus_volheader): Change type of member `magic' to
15979 (grub_hfsplus_data): Add new member `embedded_offset'.
15980 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
15982 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
15983 Calculate the offset.
15985 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
15987 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
15989 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
15991 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
15993 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
15994 ENV->NAME is NULL after allocating ENV->VALUE.
15996 2005-12-25 Marco Gerards <marco@gnu.org>
15998 * kern/env.c (grub_env_set): Rewritten the error handling code.
16000 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16002 * geninit.sh: Made more robust, and more portable.
16004 2005-12-25 Marco Gerards <marco@gnu.org>
16006 Add support for Apple HFS+ filesystems.
16008 * fs/hfsplus.c: New file.
16010 * DISTLIST: Added `fs/hfsplus.c'.
16012 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
16013 (hfsplus_mod_SOURCES): New variable.
16014 (hfsplus_mod_CFLAGS): Likewise.
16015 (hfsplus_mod_LDFLAGS): Likewise.
16016 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
16017 (grub_setup_SOURCES): Likewise.
16018 (grub_mkdevicemap_SOURCES): Likewise.
16019 (grub_emu_SOURCES): Likewise.
16020 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16022 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
16024 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
16026 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16028 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
16029 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
16030 include/grub/parser.h, include/grub/script.h, kern/parser.c,
16031 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
16032 normal/lexer.c, normal/parser.y, normal/script.c, and
16034 Removed kern/sparc64/cache.c.
16036 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
16037 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
16040 * configure.ac (AC_INIT): Bumped to 1.92.
16042 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
16044 * kern/err.c (grub_error_push): Added new function to support error
16046 (grub_error_pop): Likewise.
16047 (grub_error_stack_items): New local variable to support error stacks.
16048 (grub_error_stack_pos): Likewise.
16049 (grub_error_stack_assert): Likewise.
16050 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
16052 (grub_print_error): Added support to print errors from error stack.
16054 * include/grub/err.h (grub_error_push): Added function prototype.
16055 (grub_error_pop): Likewise.
16057 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
16059 * configure.ac: Accept `powerpc64' as host_cpu.
16060 (amd64): Rename to `biarch32'.
16062 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
16063 non-cacheline-aligned addresses.
16065 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
16066 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
16067 if `size' is non-zero.
16069 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
16071 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
16072 and `cd' to make sure the filename is not prefixed with a
16074 (pkgdata_MODULES): Add `gpt.mod'.
16075 (gpt_mod_SOURCES): New variable.
16076 (gpt_mod_CFLAGS): Likewise.
16077 (gpt_mod_LDFLAGS): Likewise.
16079 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
16081 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
16084 * partmap/gpt.c: New file.
16086 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
16087 GPT partition map is detected.
16089 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
16091 * commands/i386/pc/play.c: New file.
16092 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
16093 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
16096 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
16098 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
16099 ((unused))' to silence gcc warning.
16101 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
16103 * configure.ac: Correct `AC_PROG_YACC' test.
16105 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16107 * util/powerpc/ieee1275/grub-install.in: Run the mount point
16108 check before installing files.
16110 2005-11-22 Mike Small <smallm@panix.com>
16112 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
16113 number regex so multidigit numbers are recognized correctly.
16115 2005-11-22 Mike Small <smallm@panix.com>
16117 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
16118 debugging message before attempting to claim memory.
16119 (grub_rescue_cmd_initrd): Add a claim debugging message and try
16120 multiple addresses in case of failure.
16122 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16124 * term/tparm.c (get_space): Remove empty `if' statement.
16126 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
16128 * kern/parser.c (check_varstate): Rename `state' to 's'.
16130 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16132 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
16133 variable definitions to the beginning of each function. Sort stack
16135 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
16136 `buf' argument to `char *'.
16138 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16140 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
16141 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16142 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16143 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16144 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16145 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16146 configfile.mod, search.mod, gzio.mod and test.mod.
16147 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16148 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16149 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16150 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16151 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16152 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16153 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16154 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16155 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16156 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16157 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16158 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16159 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16160 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16161 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16162 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16163 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16164 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16165 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16166 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16167 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16168 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16169 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
16171 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
16173 (pkgdata_MODULES): Add test.mod.
16175 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16177 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
16178 appending to variables with "+=".
16179 (PModule): Use full pathname to generate *.lst filenames.
16181 * Makefile.in: Fixed list rules moved from genmk.rb.
16182 (.DELETE_ON_ERROR): New special target.
16183 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
16185 * conf/i386-pc.rmk: Include conf/common.mk.
16186 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16187 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16188 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16189 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16190 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16191 configfile.mod, search.mod, gzio.mod and test.mod.
16192 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16193 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16194 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16195 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16196 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16197 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16198 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16199 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16200 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16201 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16202 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16203 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16204 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16205 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16206 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16207 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16208 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16209 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16210 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16211 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16212 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16213 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16214 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
16216 * conf/common.rmk: ... to here. New file.
16218 * conf/common.mk: New file.
16220 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
16222 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
16223 (grub_script.tab.c): ... here.
16225 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
16226 (grub_script.tab.c): ... here.
16228 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
16229 (grub_script.tab.c): ... here.
16231 * normal/command.c (grub_command_find): Fixed a memory leak of
16232 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
16234 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16236 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
16237 "@" which marks the start of a comment on ARM.
16238 (VARIABLE): Likewise.
16240 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16242 Add support for Linux/ADFS partition tables.
16244 * partmap/acorn.c: New file.
16246 * include/grub/acorn_filecore.h: Likewise.
16248 * DISTLIST: Added `partmap/acorn.c' and
16249 `include/grub/acorn_filecore.h'.
16251 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16253 (pkgdata_MODULES): Add `acorn.mod'.
16254 (acorn_mod_SOURCES): New variable.
16255 (acorn_mod_CFLAGS): Likewise.
16257 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16259 (pkgdata_MODULES): Add `acorn.mod'.
16260 (acorn_mod_SOURCES): New variable.
16261 (acorn_mod_CFLAGS): Likewise.
16263 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
16264 (pkgdata_MODULES): Add `acorn.mod'.
16265 (acorn_mod_SOURCES): New variable.
16266 (acorn_mod_CFLAGS): Likewise.
16267 (acorn_mod_LDFLAGS): Likewise.
16269 * include/types.h (grub_disk_addr_t): New typedef.
16271 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
16273 * geninit.sh: New file.
16275 * geninitheader.sh: Likewise.
16277 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
16278 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
16279 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
16280 * commands/configfile.c (grub_configfile_init)
16281 (grub_configfile_fini): Likewise.
16282 * commands/default.c (grub_default_init, grub_default_fini):
16284 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
16285 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
16286 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
16287 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
16289 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
16290 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
16292 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
16293 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
16295 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
16297 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
16299 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
16300 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
16301 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
16302 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
16303 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
16304 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
16305 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
16306 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
16307 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
16308 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
16309 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
16310 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
16311 * partmap/amiga.c (grub_amiga_partition_map_init)
16312 (grub_amiga_partition_map_fini): Likewise.
16313 * partmap/apple.c (grub_apple_partition_map_init)
16314 (grub_apple_partition_map_fini): Likewise.
16315 * partmap/pc.c (grub_pc_partition_map_init)
16316 (grub_pc_partition_map_fini): Likewise.
16317 * partmap/sun.c (grub_sun_partition_map_init,
16318 grub_sun_partition_map_fini): Likewise.
16319 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
16322 * util/grub-emu.c: Include <grub_modules_init.h>.
16323 (main): Don't initialize and de-initialize any modules directly,
16324 use `grub_init_all' and `grub_fini_all' instead.
16326 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
16327 `grub_vesafb_mod_init'.
16328 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
16330 * term/i386/pc/vga.c (grub_vga_init): Renamed to
16331 `grub_vga_mod_init'. Updated all users.
16332 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
16334 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
16335 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
16338 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
16339 Generate a function to initialize the module in utilities.
16340 Updated all callers.
16341 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
16342 initialize the module in utilities. Updated all callers.
16344 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16346 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
16347 escape sequence and a literal ^L to clear the screen.
16349 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
16350 when returning from Open Firmware.
16352 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16354 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
16355 (grub_ofconsole_height): Likewise.
16356 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
16357 manually insert a '\n'.
16358 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
16359 `grub_ofconsole_height'. Return early if these are already set.
16361 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
16363 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16364 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
16365 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
16366 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
16367 and `normal/script.c'.
16368 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16369 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16370 (test_mod_SOURCES): New variable.
16371 (test_mod_CFLAGS): Likewise.
16372 (test_mod_LDFLAGS): Likewise.
16373 (pkgdata_MODULES): Add `test.mod'.
16374 (grub_script.tab.c): New rule.
16375 (grub_script.tab.h): Likewise.
16377 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
16379 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16380 `commands/test.c', `normal/execute.c', `normal/lexer.c',
16381 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16382 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16383 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16384 (test_mod_SOURCES): New variable.
16385 (test_mod_CFLAGS): Likewise.
16386 (pkgdata_MODULES): Add `test.mod'.
16387 (grub_script.tab.c): New rule.
16388 (grub_script.tab.h): Likewise.
16390 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
16392 Add initial scripting support.
16394 * commands/test.c: New file.
16395 * include/grub/script.h: Likewise.
16396 * normal/execute.c: Likewise.
16397 * normal/function.c: Likewise.
16398 * normal/lexer.c: Likewise.
16399 * normal/parser.y: Likewise.
16400 * normal/script.c: Likewise.
16402 * configure.ac: Add `AC_PROG_YACC' test.
16404 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
16405 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
16406 `normal/function.c' and `normal/script.c'.
16407 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16408 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16409 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
16411 (pkgdata_MODULES): Add `test.mod'.
16412 (grub_script.tab.c): New rule.
16413 (grub_script.tab.h): Likewise.
16415 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
16417 * include/grub/normal.h (grub_test_init): New prototype.
16418 (grub_test_fini): Likewise.
16420 * normal/command.c: Include <grub/script.h>.
16421 (grub_command_execute): Rewritten.
16423 * util/grub-emu.c (main): Call `grub_test_init' and
16426 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16428 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
16430 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
16431 there are no pending characters.
16433 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16435 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
16436 `grub_strndup' to drop device arguments. Replace unnecessary
16437 `grub_strndup' with `grub_strdup'.
16439 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16441 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
16442 `debug' environment variable has been set.
16444 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
16446 * Makefile.in (install-local): Use $(DATA).
16447 (uninstall): Likewise.
16448 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
16449 (sbin_UTILITIES): ... to here.
16450 (sbin_SCRIPTS): New variable.
16451 (grub_install_SOURCES): New variable.
16452 * util/powerpc/ieee1275/grub-install.in: New file.
16453 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
16455 (add_segments): Call `grub_util_get_path'.
16457 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
16459 From Timothy Baldwin:
16460 * commands/ls.c (grub_ls_list_files): Close FILE with
16462 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
16464 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
16466 * include/grub/parser.h: New file.
16468 * kern/parser.c: Likewise.
16470 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
16471 (grub_setup_SOURCES): Likewise.
16472 (grub_probefs_SOURCES): Likewise.
16473 (grub_emu_SOURCES): Likewise.
16474 (kernel_img_HEADERS): Add `parser.h'.
16476 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16477 (grub_emu_SOURCES): Add `kern/parser.c'.
16478 (grubof_SOURCES): Likewise.
16480 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16481 (grubof_SOURCES): Add `kern/parser.c'.
16483 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
16485 * kern/misc.c (grub_split_cmdline): Removed function.
16487 * kern/rescue.c: Include <grub/parser.h>.
16488 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
16489 of `grub_split_cmdline'.
16491 * normal/command.c: Include <grub/parser.h>.
16492 (grub_command_execute): Use `grub_parser_split_cmdline' instead
16493 of `grub_split_cmdline'.
16495 * normal/completion.c: Include <grub/parser.h>.
16496 (cmdline_state): New variable.
16497 (iterate_dir): End the filename with a quote depending on the
16498 command line state.
16499 (get_state): new function.
16500 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
16501 split the arguments and determine the current argument. When the
16502 argument string is not quoted, escape all spaces.
16504 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16506 * normal/sparc64/setjmp.S: New file.
16508 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16510 * include/grub/sparc64/libgcc.h: New file.
16511 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
16512 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
16513 normal/sparc64/setjmp.c.
16515 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16517 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
16518 * kern/sparc64/cache.S: New file.
16519 * kern/sparc64/cache.c: Removed.
16520 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
16521 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
16523 (COMMON_LDFLAGS): Add -melf64_sparc.
16524 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
16525 (grubof_SOURCES): Use cache.S instead of cache.c.
16526 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
16527 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
16528 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
16530 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
16531 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
16532 (linux_mod_CFLAGS): Commented out.
16533 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
16534 out because module isn't built.
16535 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
16536 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
16537 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
16538 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
16539 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
16540 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16541 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16542 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
16543 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
16544 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
16545 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16546 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16547 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
16548 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
16550 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
16552 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
16553 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
16554 longer, because HFS should not be used on PC.
16556 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16558 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
16559 consistently within the loop.
16561 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
16563 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
16564 directory can not be read.
16566 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16568 * configure.ac (AC_INIT): Increase the version number to 1.91.
16570 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
16571 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
16572 term/i386/pc/serial.c.
16574 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16576 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
16577 file size must be permitted.
16579 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
16580 between %ah and %al.
16582 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16584 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
16586 Call the hook with a NUL-terminated filename.
16587 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
16590 * kern/term.c (cursor_state): New variable.
16591 (grub_term_set_current): Reset the cursor state on a new
16593 (grub_setcursor): Rewritten to use CURSOR_STATE.
16594 (grub_getcursor): New function.
16596 * include/grub/term.h (grub_getcursor): New prototype.
16598 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
16599 integers on ARM. Reported by Timothy Baldwin
16600 <T.E.Baldwin99@members.leeds.ac.uk>.
16602 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
16604 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
16606 (grub_sfs_dir): Likewise.
16608 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
16610 Add support for the SFS filesystem.
16612 * fs/sfs.c: New file.
16614 * DISTLIST: Added `fs/sfs.c'.
16616 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
16617 (grub_probefs_SOURCES): Likewise.
16618 (grub_emu_SOURCES): Likewise.
16619 (pkgdata_MODULES): Add `sfs.mod'.
16620 (sfs_mod_SOURCES): New variable.
16621 (sfs_mod_CFLAGS): Likewise.
16622 (sfs_mod_LDFLAGS): Likewise.
16624 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
16625 (pkgdata_MODULES): Add `sfs.mod'.
16626 (sfs_mod_SOURCES): New variable.
16627 (sfs_mod_CFLAGS): Likewise.
16629 * util/grub-emu.c (main): Call `grub_sfs_init' and
16632 * include/grub/fs.h (grub_sfs_init): New prototype.
16633 (grub_sfs_fini): Likewise.
16635 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
16637 Add support for the AFFS filesystem.
16639 * fs/affs.c: New file.
16641 * DISTLIST: Added `fs/affs.c'.
16643 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
16644 (grub_probefs_SOURCES): Likewise.
16645 (grub_emu_SOURCES): Likewise.
16646 (pkgdata_MODULES): Add `affs.mod'.
16647 (affs_mod_SOURCES): New variable.
16648 (affs_mod_CFLAGS): Likewise.
16649 (affs_mod_LDFLAGS): Likewise.
16651 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
16652 (pkgdata_MODULES): Add `affs.mod'.
16653 (affs_mod_SOURCES): New variable.
16654 (affs_mod_CFLAGS): Likewise.
16656 * util/grub-emu.c (main): Call `grub_affs_init' and
16659 * include/grub/fs.h (grub_affs_init): New prototype.
16660 (grub_affs_fini): Likewise.
16662 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16664 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
16666 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16668 * configure.ac: Accept `x86_64' as host_cpu. In that case add
16671 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
16674 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
16675 (COMMON_LDFLAGS): New variable.
16676 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
16677 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
16678 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
16679 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
16680 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
16681 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
16682 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
16683 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
16684 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
16685 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
16686 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16687 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16688 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
16689 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
16690 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
16692 (normal_mod_ASFLAGS): Add `-m32'.
16694 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
16695 (grub_host_size_t, grub_host_ssize_t): New types.
16696 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
16697 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
16698 `GRUB_HOST_SIZEOF_VOID_P'.
16700 * include/grub/kernel.h (struct grub_module_header): Type of
16701 member offset changed to `grub_host_off_t'. Type of member size
16702 changed to `grub_host_size_t'.
16703 (struct grub_module_info): Type of member offset changed to
16704 `grub_host_off_t'. Type of member size changed to
16705 `grub_host_size_t'.
16707 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
16709 Make GRUB's kernel compliant to Multiboot Specification.
16711 * kern/i386/pc/startup.S (multiboot_header): New label.
16712 (multiboot_entry): Likewise.
16713 (multiboot_trampoline): Likewise.
16715 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16716 Increased to 0x4A0.
16718 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
16719 put parentheses after a question mark.
16720 [!GRUB_UTIL] (my_mod): New variable.
16722 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
16724 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
16726 Adds support for the XFS filesystem. Btrees are not supported
16729 * fs/xfs.c: New file.
16731 * DISTLIST: Added `fs/xfs.c'.
16733 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
16734 (grub_probefs_SOURCES): Likewise.
16735 (grub_emu_SOURCES): Likewise.
16736 (pkgdata_MODULES): Add `xfs.mod'.
16737 (xfs_mod_SOURCES): New variable.
16738 (xfs_mod_CFLAGS): Likewise.
16740 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
16741 (pkgdata_MODULES): Add `xfs.mod'.
16742 (xfs_mod_SOURCES): New variable.
16743 (xfs_mod_CFLAGS): Likewise.
16745 * util/grub-emu.c (main): Call `grub_xfs_init' and
16748 * include/grub/fs.h (grub_xfs_init): New prototype.
16749 (grub_xfs_fini): Likewise.
16752 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
16754 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
16755 color modes, allow greater than 16 colors to be configured as
16758 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
16760 * normal/completion.c (complete_arguments): Add the qualifier
16761 const into OPTIONS.
16763 From Omniflux <omniflux+lists@omniflux.com>:
16764 * include/grub/terminfo.h: New file.
16765 * include/grub/tparm.h: Likewise.
16766 * include/grub/i386/pc/serial.h: Likewise.
16767 * term/terminfo.c: Likewise.
16768 * term/tparm.c: Likewise.
16769 * term/i386/pc/serial.c: Likewise.
16770 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
16772 (terminfo_mod_SOURCES): New variable.
16773 (terminfo_mod_CFLAGS): Likewise.
16774 (serial_mod_SOURCES): Likewise.
16775 (serial_mod_CFLAGS): Likewise.
16777 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
16779 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
16780 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
16781 and kern/powerpc/ieee1275/cmain.c, respectively.
16783 * boot/powerpc/ieee1275/crt0.S: Moved to ...
16784 * kern/powerpc/ieee1275/crt0.S: ... here.
16786 * boot/powerpc/ieee1275/cmain.c: Moved to ...
16787 * kern/powerpc/ieee1275/cmain.c: ... here.
16789 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
16790 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
16791 instead of boot/powerpc/ieee1275/crt0.S and
16792 boot/powerpc/ieee1275/cmain.c, respectively.
16794 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
16795 sectors. It was not used anyway.
16797 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16799 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
16800 `unused parameter' warning.
16802 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16804 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
16806 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
16809 2005-08-28 Marco Gerards <metgerards@student.han.nl>
16811 * include/grub/normal.h (enum grub_completion_type): Added
16812 `GRUB_COMPLETION_TYPE_ARGUMENT'.
16814 * normal/cmdline.c (print_completion): Handle
16815 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
16816 * normal/menu_entry.c (store_completion): Likewise.
16818 * normal/completion.c (complete_arguments): New function.
16819 (grub_normal_do_completion): Call `complete_arguments' when the
16820 current words start with a dash.
16822 2005-08-27 Marco Gerards <metgerards@student.han.nl>
16824 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
16825 `gzio.mod' instead of `io.mod').
16827 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
16829 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
16830 (DISTDIRS): Added io and video.
16831 Rewrite the search routine to make an output consistently.
16833 * DISTLIST: Added conf/sparc64-ieee1275.mk,
16834 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
16835 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
16836 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
16837 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
16838 util/powerpc/ieee1275/misc.c.
16840 * include/grub/gzio.h: New file.
16841 * io/gzio.c: Likewise.
16843 * kern/file.c (grub_file_close): Call grub_device_close only if
16844 FILE->DEVICE is not NULL.
16846 * include/grub/mm.h [!NULL] (NULL): New macro.
16848 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
16850 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
16851 (pkgdata_MODULES): Added gzio.mod.
16852 (gzio_mod_SOURCES): New variable.
16853 (gzio_mod_CFLAGS): Likewise.
16855 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
16856 (pkgdata_MODULES): Added gzio.mod.
16857 (gzio_mod_SOURCES): New variable.
16858 (gzio_mod_CFLAGS): Likewise.
16860 * commands/cat.c: Include grub/gzio.h.
16861 (grub_cmd_cat): Use grub_gzfile_open instead of
16864 * commands/cmp.c: Include grub/gzio.h.
16865 (grub_cmd_cmp): Use grub_gzfile_open instead of
16868 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
16869 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
16871 (grub_rescue_cmd_module): Likewise.
16873 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
16875 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
16876 kern/sparc64/ieee1275/init.c because it contains _start.
16877 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
16879 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
16881 * configure.ac: Add support for sparc64 host with ieee1275
16883 * configure: Generated from configure.ac.
16884 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
16886 (grub_ofdisk_read): Likewise.
16887 (grub_ofdisk_open): Use %p to print pointer values, and cast the
16888 pointers as (void *) to remove a warning.
16889 (grub_ofdisk_close): Likewise.
16890 (grub_ofdisk_read): Likewise.
16891 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
16892 returns, so make it return void to remove a warning.
16893 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
16894 Corresponding prototype change.
16895 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
16896 values, and cast the pointers as (void *) to remove a warning.
16897 (grub_mm_dump): Likewise.
16898 * conf/sparc64-ieee1275.mk: New file.
16899 * conf/sparc64-ieee1275.rmk: Likewise.
16900 * include/grub/sparc64/setjmp.h: Likewise.
16901 * include/grub/sparc64/types.h: Likewise.
16902 * include/grub/sparc64/ieee1275/console.h: Likewise.
16903 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
16904 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
16905 * include/grub/sparc64/ieee1275/time.h: Likewise.
16906 * kern/sparc64/cache.c: Likewise.
16907 * kern/sparc64/dl.c: Likewise.
16908 * kern/sparc64/ieee1275/init.c: Likewise.
16909 * kern/sparc64/ieee1275/openfw.c: Likewise.
16911 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
16913 * util/console.c (grub_ncurses_putchar): If C is greater than
16914 0x7f, set C to a question mark.
16915 (grub_ncurses_getcharwidth): New function.
16916 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
16919 * normal/menu.c (print_entry): Made aware of Unicode. First,
16920 convert TITLE to UCS-4, and predict the cursor position by
16923 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
16925 * kern/misc.c (grub_utf16_to_utf8): Likewise.
16927 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
16929 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
16930 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
16933 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
16934 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
16935 grub_strcpy and grub_strlen. Take it into account that a space
16936 character is inserted as a delimiter.
16938 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
16940 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
16941 invalid magic in the error.
16943 * commands/search.c: New file.
16945 * util/grub-emu.c (main): Call grub_search_init and
16948 * kern/rescue.c (grub_rescue_print_disks): Removed.
16949 (grub_rescue_print_devices): New function.
16950 (grub_rescue_cmd_ls): Use grub_device_iterate with
16951 grub_rescue_print_devices instead of grub_disk_dev_iterate with
16952 grub_rescue_print_disks.
16954 * kern/partition.c (grub_partition_iterate): Return the result of
16955 PARTMAP->ITERATE instead of GRUB_ERRNO.
16957 * kern/device.c: Include grub/partition.h.
16958 (grub_device_iterate): New function.
16960 * include/grub/partition.h (grub_partition_iterate): Return int
16961 instead of grub_err_t.
16963 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
16965 [GRUB_UTIL] (grub_search_fini): Likewise.
16967 * include/grub/device.h (grub_device_iterate): New prototype.
16969 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
16971 (pkgdata_MODULES): Added search.mod.
16972 (search_mod_SOURCES): New variable.
16973 (search_mod_CFLAGS): Likewise.
16975 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
16976 (pkgdata_MODULES): Added search.mod.
16977 (search_mod_SOURCES): New variable.
16978 (search_mod_CFLAGS): Likewise.
16980 * commands/ls.c (grub_ls_list_disks): Renamed to ...
16981 (grub_ls_list_devices): ... this, and use grub_device_iterate.
16982 All callers changed.
16984 * DISTLIST: Added commands/search.c.
16986 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
16988 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
16990 (grub_getcharwidth): New function.
16992 * kern/misc.c (grub_utf8_to_ucs4): New function.
16994 * include/grub/term.h (struct grub_term): Added a new member
16996 (grub_getcharwidth): New prototype.
16998 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
17000 * term/i386/pc/console.c (map_char): New function. Segregated from
17001 grub_console_putchar.
17002 (grub_console_putchar): Use map_char.
17003 (grub_console_getcharwidth): New function.
17004 (grub_console_term): Specified grub_console_getcharwidth as
17007 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
17008 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
17010 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
17012 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
17013 on grub_strtoul completely.
17014 (write_char): Declare local variables in the beginning of the
17016 (grub_vesafb_getcharwidth): New function.
17017 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
17020 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
17022 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
17023 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
17024 commands/i386/pc/vbetest.c.
17026 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
17027 call grub_vbe_get_controller_info again, because the returned
17028 information is volatile.
17029 (grub_vbe_set_video_mode): Mostly rewritten.
17030 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
17031 grub_vbe_status_t correctly.
17032 (grub_vbe_get_video_mode_info): Likewise.
17033 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
17034 several if statements.
17036 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
17037 * commands/i386/pc/vbeinfo.c: ... this.
17039 * commands/i386/pc/vbe_test.c: Renamed to ...
17040 * commands/i386/pc/vbetest.c: ... this.
17042 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
17044 (grub_cmd_vbeinfo): ... this. Save video modes before
17045 iterating. Skip a video mode, if it is not available, not enough
17046 information is given or it is monochrome. Show the memory
17047 model. Leave the interpretation of MODEVAR to grub_strtoul
17049 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
17050 (GRUB_MOD_FINI): Likewise.
17052 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
17053 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
17054 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
17055 duplicated grub_env_get. Leave the interpretation of MODEVAR to
17056 grub_strtoul completely.
17057 (real2pm): Removed.
17058 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
17059 (GRUB_MOD_FINI): Likewise.
17061 * normal/misc.c: Include grub/mm.h.
17063 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
17064 vbe_list_modes with vbetest.mod and vbeinfo.mod.
17065 (vbe_list_modes_mod_SOURCES): Removed.
17066 (vbe_list_modes_mod_CFLAGS): Likewise.
17067 (vbe_test_mod_SOURCES): Likewise.
17068 (vbe_test_mod_CFLAGS): Likewise.
17069 (vbeinfo_mod_SOURCES): New variable.
17070 (vbeinfo_mod_CFLAGS): Likewise.
17071 (vbetest_mod_SOURCES): Likewise.
17072 (vbetest_mod_CFLAGS): Likewise.
17074 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
17076 * normal/misc.c: New file.
17078 * DISTLIST: Added normal/misc.c.
17080 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
17081 DISK to HOOK. Call HOOK with DISK.
17082 * partmap/apple.c (apple_partition_map_iterate): Likewise.
17083 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17084 * partmap/sun.c (sun_partition_map_iterate): Likewise.
17086 * normal/menu_entry.c (struct screen): Added a new member
17087 "completion_shown".
17088 (completion_buffer): New global variable.
17089 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
17090 (store_completion): New function.
17091 (complete): Likewise.
17092 (clear_completions): Likewise.
17093 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
17094 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
17095 a tab, call complete.
17097 * normal/completion.c (disk_dev): Removed.
17098 (print_simple_completion): Likewise.
17099 (print_partition_completion): Likewise.
17100 (print_func): New global variable.
17101 (add_completion): Do not take the arguments WHAT or PRINT any
17102 longer. Added a new argument TYPE. Instead of printing directly,
17103 call PRINT_FUNC if not NULL.
17104 All callers changed.
17105 (complete_device): Use a local variable DEV instead of
17106 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
17107 (grub_normal_do_completion): Take a new argument HOOK. Do not
17108 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
17109 empty string, return NULL instead.
17110 All callers changed.
17112 * normal/cmdline.c (print_completion): New function.
17114 * kern/partition.c (grub_partition_iterate): Add an argument DISK
17116 All callers changed.
17118 * kern/disk.c (grub_print_partinfo): Removed.
17120 * include/grub/partition.h (struct grub_partition_map): Add a new
17121 argument DISK into HOOK of ITERATE.
17122 (grub_partition_iterate): Add a new argument DISK to HOOK.
17124 * include/grub/normal.h (enum grub_completion_type): New enum.
17125 (grub_completion_type_t): New type.
17126 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
17127 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
17128 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
17129 (GRUB_COMPLETION_TYPE_FILE): Likewise.
17130 (grub_normal_do_completion): Added a new argument HOOK.
17131 (grub_normal_print_device_info): New prototype.
17133 * include/grub/disk.h (grub_print_partinfo): Removed.
17135 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
17136 (normal_mod_SOURCES): Likewise.
17137 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17138 (normal_mod_SOURCES): Likewise.
17140 * commands/ls.c (grub_ls_list_disks): Use
17141 grub_normal_print_device_info instead of grub_print_partinfo. Free
17143 (grub_ls_list_files): Use grub_normal_print_device_info instead of
17144 duplicating the code.
17146 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17148 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
17149 follow GCS more precisely.
17150 * commands/i386/pc/vbe_test.c: Likewise.
17151 * include/grub/i386/pc/vbe.h: Likewise.
17152 * term/i386/pc/vesafb.c: Likewise.
17153 * video/i386/pc/vbe.c: Likewise.
17155 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17157 * DISTLIST: Added term/i386/pc/vesafb.c
17158 DISTLIST: Added video/i386/pc/vbe.c
17159 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
17160 DISTLIST: Added commands/i386/pc/vbe_test.c.
17161 * commands/i386/pc/vbe_list_modes.c: New file.
17162 * commands/i386/pc/vbe_test.c: Likewise.
17163 * term/i386/pc/vesafb.c: Likewise.
17164 * video/i386/pc/vbe.c: Likewise.
17165 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
17166 (grub_vbe_probe) Added prototype.
17167 (grub_vbe_set_video_mode) Likewise.
17168 (grub_vbe_get_video_mode) Likewise.
17169 (grub_vbe_get_video_mode_info) Likewise.
17170 (grub_vbe_set_pixel_rgb) Likewise.
17171 (grub_vbe_set_pixel_index) Likewise.
17172 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
17173 (pkgdata_MODULES): Added vesafb.mod.
17174 (pkgdata_MODULES): Added vbe_list_modes.mod.
17175 (pkgdata_MODULES): Added vbe_test.mod.
17176 (vbe_mod_SOURCES): Added.
17177 (vbe_mod_CFLAGS): Likewise.
17178 (vesafb_mod_SOURCES): Likewise.
17179 (vesafb_mod_CFLAGS): Likewise.
17180 (vbe_list_modes_mod_SOURCES): Likewise.
17181 (vbe_list_modes_mod_CFLAGS): Likewise.
17182 (vbe_test_mod_SOURCES): Likewise.
17183 (vbe_test_mod_CFLAGS): Likewise.
17185 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
17187 * normal/command.c (grub_command_execute): If INTERACTIVE is
17188 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
17189 CMDLINE. Disable the pager if INTERACTIVE is true.
17190 All callers are changed.
17192 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
17193 before reading a config file.
17194 * normal/main.c (read_config_file): Even if a command is not
17195 found, register it if it is within an entry.
17197 * util/grub-emu.c: Include sys/types.h and unistd.h.
17198 (options): Added --hold.
17199 (struct arguments): Added a new member "hold".
17200 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
17202 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
17203 cleared by a debugger, if it is not zero.
17205 * include/grub/normal.h (grub_command_execute): Add an argument
17208 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
17210 * DISTLIST: Added include/grub/i386/pc/vbe.h.
17212 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
17214 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
17215 program with another one, because the old one didn't detect a bug
17216 in gcc-3.4. Always use regparm 2, because the new test is still
17217 not enough for gcc-4.0. Someone must investigate a simple test
17218 case which detects a bug in gcc-4.0.
17220 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
17222 * DISTLIST: Added normal/completion.c.
17224 * normal/completion.c: New file.
17226 * term/i386/pc/console.c (grub_console_getwh): New function.
17227 (grub_console_term): Assign grub_console_getwh to getwh.
17229 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
17230 function is defined in normal/completion.c as
17231 grub_normal_do_completion.
17232 (grub_cmdline_get): Use grub_normal_do_completion instead of
17235 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
17236 returns non-zero, otherwise return 0.
17237 (grub_partition_iterate): First, probe the partition map. Then,
17238 call ITERATE only for this partition map.
17240 * kern/misc.c (grub_strncmp): Rewritten.
17242 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
17243 returns non-zero. Otherwise return 0.
17245 * include/grub/partition.h (grub_partition_map_iterate): Return
17246 int instead of void.
17248 * include/grub/normal.h (grub_normal_do_completion): New prototype.
17250 * include/grub/misc.h (grub_strncmp): Change the type of N to
17253 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
17256 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
17257 unsigned explicitly before comparing it with I.
17259 * kern/main.c (grub_env_write_root): Add the attribute unused into
17262 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17263 normal/completion.c.
17264 (normal_mod_SOURCES): Likewise.
17265 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17266 (normal_mod_SOURCES): Likewise.
17268 * normal/command.c (grub_iterate_commands): If ITERATE returns
17269 non-zero, return one immediately.
17271 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
17273 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
17274 * kern/i386/pc/startup.S: Updated Global Descriptor table's
17276 (grub_vbe_get_controller_info): New function.
17277 (grub_vbe_get_mode_info): Likewise.
17278 (grub_vbe_set_mode): Likewise.
17279 (grub_vbe_get_mode): Likewise.
17280 (grub_vbe_set_memory_window): Likewise.
17281 (grub_vbe_get_memory_window): Likewise.
17282 (grub_vbe_set_scanline_length): Likewise.
17283 (grub_vbe_get_scanline_length): Likewise.
17284 (grub_vbe_set_display_start): Likewise.
17285 (grub_vbe_get_display_start): Likewise.
17286 (grub_vbe_set_palette_data): Likewise.
17287 * include/grub/i386/pc/vbe.h: New file.
17289 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17291 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17292 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
17293 * DISTLIST: Likewise.
17294 * kern/ieee1275/of.c: Moved to ...
17295 * kern/ieee1275/ieee1275.c: ... here.
17297 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17299 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
17300 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
17301 Pass 0 as `end' parameter to grub_strtoul().
17303 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17305 * include/grub/powerpc/ieee1275/console.h: Do not include
17306 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
17308 (grub_console_cur_color): Remove i386-specific prototype.
17309 (grub_console_real_putchar): Likewise.
17310 (grub_console_checkkey): Likewise.
17311 (grub_console_getkey): Likewise.
17312 (grub_console_getxy): Likewise.
17313 (grub_console_gotoxy): Likewise.
17314 (grub_console_cls): Likewise.
17315 (grub_console_setcursor): Likewise.
17316 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
17317 Include <grub/machine/console.h>.
17318 * term/ieee1275/ofconsole.c: Likewise.
17320 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
17322 * Makefile.in (LIBLZO): New variable.
17324 * configure.ac: Check for LZO version 2.
17326 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
17327 lzo/lzo1x.h instead of lzo1x.h.
17329 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
17332 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
17333 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
17335 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
17336 copying the data from PARTITION to P.
17338 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17340 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
17341 negative, unload the module.
17343 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
17344 map is "pc_partition_map" but not "pc".
17345 (usage): Fix the description. The options are --boot-image and
17346 --core-image but not --boot-file or --core-file.
17347 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
17348 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
17351 * util/i386/pc/grub-install.in: Do not specify --boot-file or
17352 --core-file. Specify INSTALL_DEVICE as an argument.
17354 * util/console.c: Include config.h.
17355 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
17356 [HAVE_NCURSES_H]: Include ncurses.h.
17357 [HAVE_CURSES_H]: Include curses.h.
17358 [!A_NORMAL] (A_NORMAL): Defined as zero.
17359 [!A_STANDOUT] (A_STANDOUT): Likewise.
17361 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
17363 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
17365 * configure.ac: Check for curses libraries and headers.
17367 * Makefile.in (LIBCURSES): New variable.
17369 * genmk.rb (Script::rule): Set the executable bits.
17371 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
17372 name of the PC partition map is "pc_partition_map" but not "pc".
17374 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17376 * util/i386/pc/grub-install.in (grub_probefs): New variable.
17377 (modules): Likewise.
17378 (usage): Added descriptions for --modules and --grub-probefs.
17379 Handle --modules and --grub-probefs. Save the arguments in MODULES
17380 and GRUB_PROBEFS, respectively.
17381 Auto-detect a filesystem module against GRUBDIR. If the result is
17382 empty and modules are not specified explicitly, abort the
17383 installation. Add the result to MODULES.
17385 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
17386 disk/powerpc/ieee1275/ofdisk.c,
17387 include/grub/powerpc/ieee1275/init.h and
17388 term/powerpc/ieee1275/ofconsole.c.
17389 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
17390 term/ieee1275/ofconsole.c.
17392 * include/grub/powerpc/ieee1275/console.h: Resurrected.
17394 * COPYING: Upgraded to the latest version. Only the address of the
17395 FSF office has changed.
17397 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17399 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17400 kern/ieee1275.c with kern/ieee1275/of.c.
17402 * kern/ieee1275.c: Moved to ...
17403 * kern/ieee1275/of.c: ... here.
17405 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
17407 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
17410 * config.guess: Updated to the latest version from gnulib.
17411 * config.sub: Likewise.
17412 * install.sh: Likewise.
17413 * mkinstalldirs: Likewise.
17415 * include/grub/console.h: Removed. This file is arch-specific. Do
17416 not put this in include/grub.
17418 * include/grub/i386/pc/console.h: Resurrected.
17420 * util/console.c: Include grub/machine/console.h instead of
17422 * util/grub-emu.c: Likewise.
17424 2005-08-04 Marco Gerards <metgerards@student.han.nl>
17426 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
17429 From Vincent Pelletier <subdino2004@yahoo.fr>
17430 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
17431 Redefined to use grub_getwh.
17432 (grub_term): New member named getwh.
17433 (grub_getwh): New prototype.
17434 * kern/term.c (grub_getwh): New function.
17435 * term/i386/pc/console.c (grub_console_getwh): New function.
17436 (grub_console_term): New member `getwh'.
17437 * term/i386/pc/vga.c (grub_vga_getwh): New function.
17438 (grub_vga_term): New member `getwh'.
17439 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
17441 (grub_ofconsole_getw): New function.
17442 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
17443 (grub_ofconsole_term): New field named getwh and new initial
17446 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
17448 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
17449 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
17450 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
17451 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
17452 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
17453 of <grub/machine/ieee1275.h>.
17454 * commands/ieee1275/reboot.c: Likewise.
17455 * boot/powerpc/ieee1275/ieee1275.c: Move ...
17456 * kern/ieee1275.c: ... to here. All users updated. Change all
17457 parameter structs to use new type `grub_ieee1275_cell_t'.
17458 * term/powerpc/ieee1275/ofconsole.c: Move ...
17459 * term/ieee1275/ofconsole.c: ... to here. All users updated.
17460 * disk/powerpc/ieee1275/ofdisk.c: Move ...
17461 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
17462 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
17464 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
17465 Remove unused prototypes. All users updated.
17466 * include/grub/powerpc/ieee1275/console.h: Removed.
17467 * include/grub/powerpc/ieee1275/ieee1275.h: Define
17468 `grub_ieee1275_cell_t'.
17469 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
17470 Cast comparisons with -1 to the correct type.
17471 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
17472 type to match `grub_ieee1275_entry_fn'.
17474 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
17476 * DISTLIST: Added util/i386/pc/grub-probefs.c.
17478 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
17479 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
17481 (grub_probefs_SOURCES): New variable.
17483 * util/i386/pc/grub-probefs.c: New file.
17485 * util/i386/pc/grub-setup.c (main): Call
17486 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
17487 grub_hfs_init and grub_jfs_init to initialize the system. Call
17488 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
17489 grub_pc_partition_map_fini to finish the system.
17491 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
17493 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
17495 (grub_multiboot_load_elf32): Likewise.
17496 (grub_multiboot_is_elf64): Likewise.
17497 (grub_multiboot_load_elf64): Likewise.
17498 (grub_multiboot_load_elf): Likewise.
17499 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
17500 an ELF32 or ELF64 file.
17501 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
17503 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
17504 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
17505 NULL before calling FS->LABEL.
17506 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
17507 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
17508 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
17509 before calling FS->LABEL.
17511 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
17513 * util/i386/pc/grub-install.in (datadir): New variable.
17515 (pkgdatadir): New variable.
17516 (pkglibdir): Removed.
17518 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
17520 * DISTLIST: Added util/i386/pc/grub-install.in.
17522 * util/i386/pc/grub-install.in: New file.
17524 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
17525 (grub_install_SOURCES): Likewise.
17527 * genmk.rb: Added support for scripts.
17528 (Script): New class.
17529 (scripts): New variable.
17531 * Makefile.in (install-local): Install sbin_SCRIPTS by
17533 (uninstall): Remove sbin_SCRIPTS.
17535 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
17536 device, try to get a GRUB device by
17537 grub_util_biosdisk_get_grub_dev.
17540 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
17541 description for --device-map.
17543 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17545 Change the semantics of variable hooks. They now return strings
17546 instead of error values.
17548 * util/i386/pc/grub-setup.c: Include grub/env.h.
17549 (setup): Use grub_device_set_root instead of grub_env_set.
17551 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
17552 grub_env_get instead of grub_device_set_root and
17553 grub_device_get_root, respectively.
17555 * kern/main.c (grub_env_write_root): New function.
17556 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
17557 grub_env_set instead of grub_device_set_root.
17559 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
17561 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
17562 rather than calling ENV->WRITE_HOOK afterwards.
17563 (grub_env_get): Return the result of ENV->READ_HOOK rather than
17564 passing a pointer of a pointer.
17565 (grub_register_variable_hook): Change the types of "read_hook" and
17566 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
17568 Allocate the default empty string on the heap, because this string
17569 may be freed later.
17571 * kern/device.c: Include grub/env.h.
17572 (grub_device_set_root): Removed.
17573 (grub_device_get_root): Likewise.
17574 (grub_device_open): Use grub_env_get instead of
17575 grub_device_get_root.
17577 * include/grub/env.h (grub_env_read_hook_t): New type.
17578 (grub_env_write_hook_t): Likewise.
17579 (grub_env_var): Change the types of "read_hook" and "write_hook"
17580 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
17581 (grub_register_variable_hook): Likewise.
17583 * include/grub/device.h (grub_device_set_root): Removed.
17584 (grub_device_set_root): Likewise.
17586 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
17587 make sure that DIRNAME terminates with '/', so that
17588 grub_fat_find_dir will fail if PATH is not a directory.
17590 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
17592 Use the qualifier auto for print_files and print_files_long.
17593 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
17595 Put a newline only if there is no error.
17596 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
17599 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17601 * kern/partition.c (grub_partition_probe): Initialize PART to
17602 NULL. Otherwise, when no partition map is registered, this returns
17605 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
17607 * partmap/apple.c (apple_partition_map_iterate): Check if POS
17608 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
17611 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
17613 * commands/ls.c (grub_ls_list_disks): Print the filesystem
17614 information on each device, if it does not have partitions. Print
17615 "Device" instead of "Disk", because this function is not specific
17618 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
17619 static to ensure that it is put on the memory rather than a
17622 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17624 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
17625 (grub_cat_init): Likewise.
17626 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
17627 (options): Likewise.
17628 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
17629 (grub_configfile_init): Likewise.
17630 * font/manager.c (GRUB_MOD_INIT): Likewise.
17631 * commands/help.c (GRUB_MOD_INIT): Likewise.
17632 (grub_help_init): Likewise.
17633 * normal/command.c (grub_command_init): Likewise.
17634 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
17635 * disk/loopback.c (grub_loop_init): Likewise.
17636 (GRUB_MOD_INIT): Likewise.
17637 * commands/ls.c (grub_ls_init): Likewise.
17638 (GRUB_MOD_INIT): Likewise.
17639 (options): Likewise.
17640 * commands/boot.c (grub_boot_init): Likewise.
17641 (GRUB_MOD_INIT): Likewise.
17642 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
17643 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
17644 (GRUB_MOD_INIT): Likewise.
17645 * commands/cmp.c (grub_cmp_init): Likewise.
17646 (GRUB_MOD_INIT): Likewise.
17648 * normal/arg.c: Use <> instead of "" to include header files.
17649 (SHORT_ARG_HELP): New macro.
17650 (SHORT_ARG_USAGE): Likewise.
17651 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
17652 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
17654 (find_short): Check if C is 'h' or 'u' explicitly.
17655 (grub_arg_show_help): Use space characters instead of tabs. Treat
17656 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
17657 are shown with --help and --usage only if they are not used for
17658 the command itself.
17659 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
17662 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
17663 const into "longarg". Change the type of "shortarg" to int.
17665 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17667 * boot/i386/pc/boot.S (boot_drive_check): New label.
17669 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
17672 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
17673 which do not pass a boot drive correctly. Copied from GRUB Legacy.
17675 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17677 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
17678 When turning off Gate A20, skip the check and return immediately,
17679 because this is not fatal usually.
17681 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17683 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
17684 be 0x7C00 instead of 0x8000.
17686 * boot/i386/pc/pxeboot.S: Rewritten.
17688 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
17690 (gate_a20_check_state): Read a byte from 0x108000. Invert the
17693 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
17695 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
17696 robustness. This routine now supports a BIOS call and System
17697 Control Port A to modify the gate A20.
17699 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17700 Increased to 0x440.
17702 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
17704 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
17705 device path and resulting ihandle.
17706 (grub_ofdisk_close): dprintf the ihandle being closed.
17707 (grub_ofdisk_read): dprintf function parameters.
17708 * kern/mm.c (grub_mm_init_region): Likewise.
17709 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
17710 (grub_linux_boot): dprintf the Linux entry point, initrd address and
17711 size, and boot arguments.
17712 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
17713 before loading into memory.
17714 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
17715 before loading into memory.
17717 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
17719 * kern/mm.c: Added much documentation.
17720 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
17721 8, set to 5 instead of 8.
17723 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17725 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
17727 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
17728 (grub_mkdevicemap_SOURCES): New variable.
17730 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
17731 lib/device.c of GRUB Legacy.
17733 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17735 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
17736 instead of PATH is NULL.
17738 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
17740 * commands/cmp.c (BUFFER_SIZE): New macro.
17741 (grub_cmd_cmp): Close the right file at the right time. Compare
17742 only data just read. Don't report files of different size as
17743 identical. Dynamically allocate buffers. Move variable
17744 declarations at the beginning of function.
17746 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
17748 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
17751 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
17753 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
17754 when backspace is pressed at beginning of line.
17756 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
17758 * DISTLIST: Added genfslist.sh.
17760 * normal/main.c (fs_module_list): New variable.
17761 (autoload_fs_module): New function.
17762 (read_fs_list): Likewise.
17763 (grub_normal_execute): Call read_fs_list.
17765 * kern/fs.c (grub_fs_autoload_hook): New variable.
17766 (grub_fs_probe): Added support for auto-loading.
17768 * include/grub/normal.h (struct grub_fs_module_list): New struct.
17769 (grub_fs_module_list_t): New type.
17771 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
17772 (grub_fs_autoload_hook): New prototype.
17774 * genfslist.sh: New file.
17776 * genmk.rb: Added a rule to generate a filesystem list.
17778 2005-06-30 Marco Gerards <metgerards@student.han.nl>
17780 * configure.ac: Fix the test for cross-compiling.
17782 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
17783 define GRUB_UTIL anymore.
17785 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
17786 so this function works on other systems than just big endian.
17787 (load_modules): Likewise.
17788 (add_segments): Likewise.
17790 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
17792 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
17793 contains `l' modifier, get a long from va_arg().
17795 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
17797 * kern/mm.c (grub_free): If the next free block which is being
17798 merged is the first free block, set the first block to the block
17800 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
17802 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17804 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
17805 `grub_ieee1275_chosen'.
17807 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17809 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
17810 (grub_ieee1275_chosen): New variable.
17811 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
17813 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
17814 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
17815 Rename first argument to `phandle' for consistency.
17816 (grub_ieee1275_get_property_length): Likewise.
17817 (grub_ieee1275_next_property): Likewise. Change type of first argument
17818 to grub_ieee1275_phandle_t.
17819 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
17820 Move export next to declaration.
17821 (grub_ieee1275_chosen): New variable.
17822 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
17823 Correct cosmetic typo.
17824 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
17825 `grub_ieee1275_chosen'.
17826 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
17827 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
17828 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
17829 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
17830 `grub_ieee1275_chosen'.
17832 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
17834 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
17836 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
17837 /chosen/bootargs as "variable=value" pairs.
17839 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
17841 * include/grub/misc.h (grub_dprintf): New macro.
17842 (grub_real_dprintf): New prototype.
17843 (grub_strword): Likewise.
17844 (grub_iswordseparator): Likewise.
17845 * kern/misc.c (grub_real_dprintf): New function.
17846 (grub_strword): Likewise.
17847 (grub_iswordseparator): Likewise.
17849 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
17851 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
17852 (roundup): Remove macro.
17853 (grub_ieee1275_flags): Make static.
17854 (grub_ieee1275_realmode): Remove.
17855 (grub_ieee1275_test_flag): New function.
17856 (grub_ieee1275_set_flag): Likewise.
17857 (find_options): Rename to `grub_ieee1275_find_options'; update
17858 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
17859 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
17860 (cmain): New prototype.
17861 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
17862 `grub_ieee1275_flags' directly.
17863 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
17864 machine/biosdisk.h.
17865 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
17866 Don't include grub/machine/init.h.
17867 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
17868 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
17870 (grub_ieee1275_realmode): Likewise.
17871 (grub_ieee1275_flag): New enum.
17872 (grub_ieee1275_test_flag): New prototype.
17873 (grub_ieee1275_set_flag): New prototype.
17874 * include/grub/powerpc/ieee1275/init.h: Remove file.
17875 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
17876 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
17877 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
17878 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
17880 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
17881 `grub_ieee1275_test_flag'.
17882 (grub_ieee1275_encode_devname): Likewise.
17884 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
17886 * include/grub/powerpc/ieee1275/ieee1275.h
17887 (grub_ieee1275_encode_devname): New prototype.
17888 (grub_ieee1275_get_filename): Likewise.
17889 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
17891 (grub_set_prefix): Likewise.
17892 (grub_machine_init): Call grub_set_prefix.
17893 * kern/powerpc/ieee1275/openfw.c: Fix typos.
17894 (grub_parse_type): New enum.
17895 (grub_ieee1275_get_devargs): New function.
17896 (grub_ieee1275_get_devname): Likewise.
17897 (grub_ieee1275_parse_args): Likewise.
17898 (grub_ieee1275_get_filename): Likewise.
17899 (grub_ieee1275_encode_devname): Likewise.
17901 2005-03-30 Marco Gerards <metgerards@student.han.nl>
17903 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
17904 `grub_loader_unset'.
17906 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
17908 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
17909 instead of grub_ieee1275_interpret.
17910 (grub_halt_init): New function.
17911 (grub_halt_fini): Likewise.
17912 (GRUB_MOD_INIT): Correct message grammar.
17913 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
17914 instead of grub_ieee1275_interpret.
17915 (grub_reboot_init): New function.
17916 (grub_reboot_fini): Likewise.
17917 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
17918 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
17919 util/i386/pc/misc.c with commands/ieee1275/halt.c,
17920 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
17921 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
17923 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
17925 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
17927 (grub_halt): Likewise.
17928 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
17929 (cmain): Remove __attribute__((unused)).
17930 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
17931 (grub_heap_len): Likewise.
17932 (grub_machine_fini): New function.
17933 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
17934 (grub_halt): Likewise.
17935 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
17937 * util/powerpc/ieee1275/misc.c: New file.
17939 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
17941 * DISTLIST: New file.
17942 * gendistlist.sh: Likewise.
17944 * Makefile.in (COMMON_DISTFILES): Removed.
17945 (BOOT_DISTFILES): Likewise.
17946 (CONF_DISTFILES): Likewise.
17947 (DISK_DISTFILES): Likewise.
17948 (FS_DISTFILES): Likewise.
17949 (INCLUDE_DISTFILES): Likewise.
17950 (KERN_DISTFILES): Likewise.
17951 (LOADER_DISTFILES): Likewise.
17952 (TERM_DISTFILES): Likewise.
17953 (UTIL_DISTFILES): Likewise.
17954 (DISTFILES): Likewise.
17955 (uninstall): Uninstall files in $(pkgdata_DATA).
17956 (DISTLIST): New target.
17957 (distdir): Use the contents of the file DISTLIST to get a list of
17960 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
17962 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
17963 descriptor. This is ported from GRUB Legacy.
17965 * gencmdlist.sh: Added an extra semicolon to make it work with
17966 old sed versions. Reported by Robert Bihlmeyer
17967 <robbe@orcus.priv.at>.
17969 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
17971 Automatic loading of commands is supported.
17973 * normal/main.c (read_command_list): New function.
17974 (grub_normal_execute): Call read_command_list.
17976 * normal/command.c (grub_register_command): Return zero or CMD.
17977 Allocate CMD->NAME from the heap.
17978 Initialize CMD->MODULE_NAME to zero.
17979 Find the same name as well. If the same command is found and it is
17980 a dummy command, overwrite members. If it is not a dummy command,
17982 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
17983 (grub_command_find): If a dummy command is found, load a module
17984 and retry to find a command only once.
17986 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
17987 make sure that each command is loaded.
17989 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
17991 (struct grub_command): Remove const from the member `name'.
17992 Add a new member `module_name'.
17993 (grub_register_command): Return grub_command_t.
17995 * commands/help.c (grub_cmd_help): Call grub_command_find to make
17996 sure that each command is loaded.
17998 * genmk.rb (PModule::rule): Specify a module name without the
17999 suffix ".mod" to gencmdlist.sh.
18001 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18003 * gencmdlist.sh: New file.
18005 * genmk.rb (PModule::rule): Generate a rule for a command list.
18007 Generate command.lst from $(COMMANDFILES).
18009 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
18010 (DATA): Added $(pkgdata_DATA).
18011 (install-local): Install files in $(pkgdata_DATA).
18013 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18015 * term/i386/pc/vga.c (debug_command): Removed.
18016 (GRUB_MOD_INIT): Do not register the command "debug".
18018 From Hollis Blanchard:
18019 * commands/configfile.c: New file.
18020 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18021 commands/configfile.c.
18022 (pkgdata_MODULES): Added configfile.mod.
18023 (configfile_mod_SOURCES): New variable.
18024 (configfile_mod_CFLAGS): Likewise.
18025 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18026 commands/configfile.c.
18027 (pkgdata_MODULES): Added configfile.mod.
18028 (configfile_mod_SOURCES): New variable.
18029 (configfile_mod_CFLAGS): Likewise.
18030 * util/grub-emu.c (main): Call grub_configfile_init and
18031 grub_configfile_fini.
18032 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
18034 [GRUB_UTIL] (grub_configfile_fini): Likewise.
18036 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18038 * normal/arg.c (grub_arg_show_help): Do not show the bug report
18041 * commands/help.c (grub_cmd_help): Do not print newlines after
18042 the last command in print_command_help.
18044 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18046 * commands/default.h: New file.
18047 * commands/timeout.h: Likewise.
18048 * normal/context.c: Likewise.
18050 * util/misc.c: Do not include sys/times.h.
18051 Include sys/time.h and grub/machine/time.h.
18052 (grub_get_rtc): Rewritten with gettimeofday.
18054 * util/grub-emu.c (main): Call grub_default_init and
18055 grub_timeout_init before grub_normal_init, and call
18056 grub_timeout_fini and grub_default_fini after grub_main.
18058 * util/console.c (grub_ncurses_checkkey): Return the read
18061 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
18064 * normal/main.c (read_config_file): Push MENU. If this fails,
18065 print an error and wait for a user input.
18066 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
18067 If a menu is empty or an error occurs, pop MENU.
18068 (grub_normal_execute): Pop and free MENU after grub_menu_run
18071 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
18073 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
18075 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18077 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
18079 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18082 * include/grub/normal.h (struct grub_menu_list): New struct.
18083 (grub_menu_list_t): New type.
18084 (struct grub_context): New struct.
18085 (grub_context_t): New type.
18086 (grub_register_command): Got rid of EXPORT_FUNC.
18087 (grub_unregister_command): Likewise.
18088 (grub_context_get): New prototype.
18089 (grub_context_get_current_menu): Likewise.
18090 (grub_context_push_menu): Likewise.
18091 (grub_context_pop_menu): Likewise.
18092 [GRUB_UTIL] (grub_default_init): Likewise.
18093 [GRUB_UTIL] (grub_default_fini): Likewise.
18094 [GRUB_UTIL] (grub_timeout_init): Likewise.
18095 [GRUB_UTIL] (grub_timeout_fini): Likewise.
18097 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
18098 commands/timeout.c and normal/context.c.
18099 (pkgdata_MODULES): Added default.mod and timeout.mod.
18100 (normal_mod_SOURCES): Added normal/context.c.
18101 (default_mod_SOURCES): New variable.
18102 (default_mod_CFLAGS): Likewise.
18103 (timeout_mod_SOURCES): Likewise.
18104 (timeout_mod_CFLAGS): Likewise.
18105 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
18107 (pkgdata_MODULES): Added default.mod and timeout.mod.
18108 (normal_mod_SOURCES): Added normal/context.c.
18109 (default_mod_SOURCES): New variable.
18110 (default_mod_CFLAGS): Likewise.
18111 (timeout_mod_SOURCES): Likewise.
18112 (timeout_mod_CFLAGS): Likewise.
18114 * Makefile.in (all-local): Added $(MKFILES).
18116 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
18118 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
18119 (grub_emu_SOURCES): Likewise.
18120 (pkgdata_MODULES): Add `sun.mod'.
18121 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18122 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18124 (pkgdata_MODULES): Add `sun.mod'.
18125 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18126 * include/grub/partition.h (grub_sun_partition_map_init): New
18128 (grub_sun_partition_map_fini): Likewise.
18129 * partmap/sun.c: New file.
18130 * util/grub-emu.c (main): Initialize and de-initialize the sun
18131 partitionmap support.
18133 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
18135 This implements an Emacs-like menu entry editor.
18137 * normal/menu_entry.c: New file.
18139 * util/console.c (grub_ncurses_putchar): Translate some Unicode
18140 characters to ASCII.
18141 (saved_char): New variable.
18142 (grub_ncurses_checkkey): Rewritten completely.
18143 (grub_ncurses_getkey): Likewise.
18144 (grub_ncurses_init): Call raw instead of cbreak.
18146 * normal/menu.c (print_entry): Do not put a space.
18147 (init_page): Renamed to ...
18148 (grub_menu_init_page): ... this. All callers changed.
18149 (edit_menu_entry): Removed.
18150 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
18152 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
18154 * kern/misc.c (grub_vprintf): Call grub_refresh.
18156 * normal/menu.c (DISP_LEFT): Renamed to ...
18157 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
18158 * normal/menu.c (DISP_UP): Renamed to ...
18159 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
18160 * normal/menu.c (DISP_RIGHT): Renamed to ...
18161 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
18162 * normal/menu.c (DISP_DOWN): Renamed to ...
18163 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
18164 * normal/menu.c (DISP_HLINE): Renamed to ...
18165 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
18166 * normal/menu.c (DISP_VLINE): Renamed to ...
18167 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
18168 * normal/menu.c (DISP_UL): Renamed to ...
18169 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
18170 * normal/menu.c (DISP_UR): Renamed to ...
18171 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
18172 * normal/menu.c (DISP_LL): Renamed to ...
18173 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
18174 * normal/menu.c (DISP_LR): Renamed to ...
18175 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
18176 * normal/menu.c (TERM_WIDTH): Renamed to ...
18177 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
18178 * normal/menu.c (TERM_HEIGHT): Renamed to ...
18179 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
18180 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
18181 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
18182 * normal/menu.c (TERM_MARGIN): Renamed to ...
18183 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
18184 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
18185 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
18186 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
18187 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
18188 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
18189 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
18190 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
18191 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
18192 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
18193 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
18194 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
18195 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
18196 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
18197 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
18198 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
18199 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
18200 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
18201 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
18202 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
18203 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
18204 All callers changed.
18206 * include/grub/normal.h: New prototype.
18208 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18209 normal/menu_entry.c.
18210 (normal_mod_SOURCES): Likewise.
18211 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18212 (normal_mod_SOURCES): Likewise.
18214 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
18216 * include/grub/normal.h (grub_halt_init): New prototype.
18217 (grub_halt_fini): Likewise.
18218 (grub_reboot_init): Likewise.
18219 (grub_reboot_fini): Likewise.
18221 * util/grub-emu.c: Include signal.h.
18222 (main_env): New global variable.
18223 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
18225 (grub_machine_fini): New function.
18226 (main): Call grub_halt_init and grub_reboot_init before
18227 grub_main, and grub_reboot_fini and grub_halt_fini after it.
18228 Call setjmp with MAIN_ENV to go back afterwards.
18229 Call grub_machine_fini right before return.
18231 * include/grub/util/misc.h: Include setjmp.h.
18232 (main_env): New prototype.
18234 * include/grub/kernel.h (grub_machine_fini): New prototype.
18235 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
18236 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
18238 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
18239 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
18240 * term/i386/pc/console.c (grub_console_fini): Likewise.
18242 * util/i386/pc/misc.c: New file.
18244 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18245 util/i386/pc/misc.c, commands/i386/pc/halt.c and
18246 commands/i386/pc/reboot.c.
18248 2005-02-14 Guillem Jover <guillem@hadrons.org>
18250 * include/grub/dl.h (grub_dl_check_header): New prototype.
18251 (grub_arch_dl_check_header): Change return type to grub_err_t,
18252 remove size parameter and export function. Update all callers.
18253 * kern/dl.c (grub_dl_check_header): New function.
18254 (grub_dl_load_core): Use `grub_dl_check_header' instead of
18255 `grub_arch_dl_check_header'. Check ELF type. Check if sections
18256 are inside the core.
18257 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
18258 independent ELF header checks.
18259 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18260 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
18261 `grub_dl_check_header' instead of explicit checks. Check for the
18263 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
18264 `grub_dl_check_header' instead of explicit checks. Remove arch
18265 specific ELF header checks.
18267 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
18270 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
18272 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
18273 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
18275 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
18277 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
18278 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
18279 (part_map_iterate): Clear `grub_errno' and return 0 if
18280 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
18281 * partmap/amiga.c (amiga_partition_map_iterate): Return
18282 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
18283 * partmap/apple.c (apple_partition_map_iterate): Likewise.
18285 2005-02-01 Guillem Jover <guillem@hadrons.org>
18287 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
18290 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18292 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
18294 (grub_rescue_cmd_linux): New prototype.
18295 (grub_rescue_cmd_initrd): Likewise.
18296 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
18298 (grub_linux_release_mem): Release the memory for the initrd.
18299 (grub_load_linux): Renamed from this...
18300 (grub_rescue_cmd_linux): ...To this. Changed all callers.
18301 Changed `entry' not to be static. Loop over memory regions to
18302 find another one when the default fails.
18303 (grub_rescue_cmd_initrd): New function.
18304 (grub_linux_init): Remove function.
18305 (grub_linux_fini): Likewise.
18306 (GRUB_MOD_INIT): Register `initrd'.
18307 (GRUB_MOD_FINI): Unregister `initrd'.
18308 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
18310 (grub_linux_normal_fini): Likewise.
18311 (GRUB_MOD_INIT): Register `initrd'.
18312 (GRUB_MOD_FINI): Unregister `initrd'.
18314 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18316 * commands/help.c: New file.
18317 * normal/arg.c (show_help): Renamed to...
18318 (grub_arg_show_help): ... this.
18319 * commands/i386/pc/halt.c: New file.
18320 * commands/i386/pc/reboot.c: Likewise.
18321 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
18322 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
18323 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
18324 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
18326 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18328 (pkgdata_MODULES): Add `help.mod'.
18329 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
18330 * grub/i386/pc/init.h (grub_reboot): New prototype.
18331 (grub_halt): Likewise.
18332 * include/grub/normal.h (grub_arg_show_help): New prototype.
18333 (grub_help_init): Likewise.
18334 (grub_help_fini): Likewise.
18335 * util/grub-emu.c (main): Initialize and deinitialize the help
18338 * normal/cmdline.c (grub_cmdline_get): Doc fix.
18340 * normal/command.c (grub_command_init): Fixed the description of
18341 the `set' and `unset' commands.
18343 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18345 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
18347 * commands/ieee1275/halt.c: New file.
18348 * commands/ieee1275/reboot.c: Likewise.
18349 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
18350 `__attribute__ ((unused))'. Some GCS related fixed.
18351 (grub_suspend_init) [GRUB_UTIL]: Function removed.
18352 (grub_suspend_fini): Likewise.
18353 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
18355 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
18356 (halt_mod_CFLAGS): New variables.
18357 * include/grub/powerpc/ieee1275/ieee1275.h
18358 (grub_ieee1275_interpret): New prototype.
18360 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
18362 * include/grub/misc.h (memmove): New prototype.
18363 (memcpy): Likewise.
18365 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
18367 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
18368 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
18370 2005-01-22 Marco Gerards <metgerards@student.han.nl>
18372 * kern/misc.c (grub_strndup): Function rewritten.
18374 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
18376 * normal/menu.c (TERM_WIDTH): Macro redefined.
18377 (TERM_TOP_BORDER_Y): Likewise.
18378 (draw_border): Replaced while-loop by a for-loop. Make the number
18379 of lines consistent with the number of lines displayed in
18380 print_entries. Added a margin below the rectangle.
18381 (print_entry): Make the entry fit in the rectangle.
18382 (print_entries): Display the scroll arrows next to the right
18385 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18387 * fs/minix.c (grub_minix_find_file): Reserve more space for
18388 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
18389 `grub_strncpy' to copy `path' into it.
18391 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18393 Add the loopback device, a device via which files can be accessed
18396 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
18397 (pkgdata_MODULES): Add loopback.mod.
18398 (loopback_mod_SOURCES): New variable.
18399 (loopback_mod_CFLAGS): Likewise.
18400 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18402 (pkgdata_MODULES): Add loopback.mod.
18403 (loopback_mod_SOURCES): New variable.
18404 (loopback_mod_CFLAGS): Likewise.
18405 * disk/loopback.c: new file.
18406 * include/grub/normal.h (grub_loop_init): New prototype.
18407 (grub_loop_fini): New prototype.
18408 * util/grub-emu.c (main): Initialize and de-initialize loopback
18410 * include/grub/disk.h (grub_disk_dev_id): Add
18411 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
18413 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
18415 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
18417 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
18418 (suspend_mod_SOURCES): New variable.
18419 (suspend_mod_CFLAGS): Likewise.
18420 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
18422 * commands/ieee1275/suspend.c: New file.
18424 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
18426 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
18427 ((unused))' to `__attribute__ ((used))'.
18428 (GRUB_MOD_FINI): Likewise.
18429 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
18430 * genmk.rb (PModule): Assign space to common symbols when linking
18433 2005-01-20 Marco Gerards <metgerards@student.han.nl>
18435 * include/grub/mm.h (grub_mm_init_region): Change the type of the
18436 `unsigned' arguments to `grub_size_t'.
18437 (grub_malloc): Likewise.
18438 (grub_realloc): Likewise.
18439 (grub_memalign): Likewise.
18440 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
18441 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18442 * util/misc.c (grub_malloc): Likewise.
18443 (grub_realloc): Likewise.
18444 * kern/mm.c (get_header_from_pointer): Change the casts to
18445 `unsigned' into a cast to `grub_size_t'.
18447 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
18448 point to `currnode' when `currnode' is changed.
18450 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
18451 Schottelius <nico-linux@schottelius.org>.
18453 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
18455 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
18456 (note_path): Remove variable.
18457 (GRUB_IEEE1275_NOTE_NAME): New macro.
18458 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
18459 (grub_ieee1275_note_hdr): New structure.
18460 (grub_ieee1275_note_desc): Likewise.
18461 (grub_ieee1275_note): Likewise.
18462 (load_note): Remove `dir' argument. All callers updated. Remove
18463 `note_img' and `path'. Do not load a file from `note_path'.
18464 Initialize a struct grub_ieee1275_note and write that to `out'.
18465 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
18467 2005-01-05 Marco Gerards <metgerards@student.han.nl>
18469 * util/misc.c (grub_util_read_image): Revert last change. It
18470 called `grub_util_read_at', which seeks from the beginning of the
18473 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
18475 * TODO: Add note about endianness in grub-mkimage.
18476 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
18478 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
18479 (grub_mkimage_SOURCES): New target.
18480 * include/grub/kernel.h (grub_start_addr): Remove variable.
18481 (grub_end_addr): Likewise.
18482 (grub_total_module_size): Likewise.
18483 (grub_kernel_image_size): Likewise.
18484 (GRUB_MODULE_MAGIC): New constant.
18485 (grub_module_info): New structure.
18486 (grub_arch_modules_addr): New prototype.
18487 (grub_get_end_addr): Remove prototype.
18488 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
18489 * include/grub/powerpc/ieee1275/kernel.h: New file.
18490 * include/grub/util/misc.h (grub_util_get_fp_size): New
18492 (grub_util_read_at): Likewise.
18493 (grub_util_write_image_at): Likewise.
18494 * kern/main.c (grub_get_end_addr): Remove function.
18495 (grub_load_modules): Call grub_arch_modules_addr instead of using
18496 grub_end_addr. Look for a grub_module_info struct in memory. Use
18497 the grub_module_info fields instead of calling grub_get_end_addr
18498 as loop conditions. Move grub_add_unused_region code here.
18499 (grub_add_unused_region): Remove function.
18500 * kern/i386/pc/init.c: Include grub/cache.h.
18501 (grub_machine_init): Remove call to grub_get_end_addr. Remove
18502 one call to add_mem_region.
18503 (grub_arch_modules_addr): New function.
18504 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
18505 (grub_total_module_size): Likewise.
18506 Include grub/machine/kernel.h.
18507 (grub_arch_modules_addr): New function.
18508 * util/grub-emu.c (grub_end_addr): Remove variable.
18509 (grub_total_module_size): Likewise.
18510 (grub_arch_modules_addr): New function.
18511 * util/misc.c: Include unistd.h.
18512 (grub_util_get_fp_size): New function.
18513 (grub_util_read_at): Likewise.
18514 (grub_util_write_image_at): Likewise.
18515 (grub_util_read_image): Call grub_util_read_at.
18516 (grub_util_write_image): Call grub_util_write_image_at.
18517 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
18518 additional memory in kernel_img for a struct grub_module_info.
18519 Fill in that grub_module_info.
18520 * util/powerpc/ieee1275/grub-mkimage.c: New file.
18522 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18524 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
18526 * include/grub/powerpc/ieee1275/ieee1275.h
18527 (grub_ieee1275_milliseconds): New prototype.
18528 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
18530 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
18531 grub_ieee1275_milliseconds.
18533 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18535 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
18537 (find_options): New function.
18538 (cmain): Call find_options.
18539 * include/grub/powerpc/ieee1275/ieee1275.h
18540 (grub_ieee1275_realmode): New extern variable.
18541 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
18542 grub_map if grub_ieee1275_realmode is false.
18544 2004-12-29 Marco Gerards <metgerards@student.han.nl>
18546 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
18547 lines are inserted and make it work like readline. Reported by
18548 Vincent Pelletier <subdino2004@yahoo.fr>.
18550 2004-12-28 Marco Gerards <metgerards@student.han.nl>
18552 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
18554 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
18555 `kern/powerpc/cache.S'.
18557 2004-12-27 Marco Gerards <metgerards@student.han.nl>
18559 * genmk.rb: Handle the `Program' class in the main loop. Written
18560 by Johan Rydberg <jrydberg@gnu.org>.
18561 (Program): New class.
18562 (programs): New variable.
18563 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
18564 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
18565 instead of "grub/kernel.h". Include <grub/machine/init.h>.
18566 (help_arch): Function removed.
18567 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
18568 `powerpc/libgcc.h' and `loader.h'.
18569 (pkgdata_PROGRAMS): New variable.
18570 (sbin_UTILITIES): Variable removed.
18571 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
18572 (grubof_SOURCES): Variable re-defined so it only includes the
18573 core functionality.
18574 (grubof_CFLAGS): Remove `-DGRUBOF'.
18575 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
18576 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
18577 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
18578 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
18579 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
18580 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
18581 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
18582 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
18583 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
18584 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
18585 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
18586 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
18587 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
18588 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
18589 (pc_mod_CFLAGS): New variables.
18590 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
18591 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
18592 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
18593 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
18595 * include/grub/i386/pc/init.h (grub_os_area_addr)
18596 (rub_os_area_size): ... to here.
18597 * include/grub/powerpc/ieee1275/ieee1275.h
18598 (grub_ieee1275_entry_fn): Export symbol.
18599 * include/grub/powerpc/ieee1275/init.h: New file.
18600 * include/grub/powerpc/libgcc.h: Likewise.
18601 * include/grub/cache.h: Likewise.
18602 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
18603 <hollis@penguinppc.org>.
18604 * kern/dl.c: Include <grub/cache.h>.
18605 (grub_dl_flush_cache): New function.
18606 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
18608 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
18609 (grub_console_init): Removed prototypes.
18610 (grub_machine_init): Don't initialize the modules anymore.
18611 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
18613 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
18614 Macro undef removed.
18615 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
18616 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
18617 relocation `R_PPC_REL32'. Return an error when the relocation is
18619 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
18620 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
18621 * util/misc.c (grub_arch_sync_caches): Likewise.
18623 2004-12-19 Marco Gerards <metgerards@student.han.nl>
18625 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
18626 `symlist.c', add `grubof_symlist.c'.
18627 (symlist.c): Variable removed.
18628 (grubof_HEADERS): Variable added.
18629 (grubof_symlist.c): New target.
18630 (kernel_syms.lst): Use `grubof_HEADERS' instead of
18631 `kernel_img_HEADERS'.
18632 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
18633 * kern/powerpc/dl.c: New file.
18634 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
18636 (grub_arch_dl_relocate_symbols): Likewise.
18637 (grub_register_exported_symbols): Likewise.
18639 2004-12-13 Marco Gerards <metgerards@student.han.nl>
18641 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
18642 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
18643 to fail instead. Reported by Vincent Pelletier
18644 <subdino2004@yahoo.fr>.
18646 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
18647 it is not allocated. Reported by Vincent Pelletier
18648 <subdino2004@yahoo.fr>.
18650 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
18651 output so the output looks better.
18653 2004-12-04 Marco Gerards <metgerards@student.han.nl>
18655 Modulize the partition map support and add support for the amiga
18658 * commands/ls.c: Include <grub/partition.h> instead of
18659 <grub/machine/partition.h>.
18660 * kern/disk.c: Likewise.
18661 * kern/rescue.c: Likewise.
18662 * loader/i386/pc/chainloader.c: Likewise.
18663 * normal/cmdline.c: Likewise.
18664 * kern/powerpc/ieee1275/init.c: Likewise.
18665 (grub_machine_init): Call `grub_pc_partition_map_init',
18666 `grub_amiga_partition_map_init' and
18667 `grub_apple_partition_map_init'.
18668 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
18669 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
18670 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
18671 `partition.h' and `pc_partition.h'.
18672 (grub_setup_SOURCES): Remove
18673 `disk/i386/pc/partition.c'. Add `kern/partition.c',
18674 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18675 (grub_emu_SOURCES): Likewise.
18676 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
18677 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
18678 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
18679 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18680 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
18681 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18682 (grubof_SOURCES): Likewise.
18683 * disk/i386/pc/partition.c: File removed.
18684 * disk/powerpc/ieee1275/partition.c: Likewise.
18685 * include/grub/powerpc/ieee1275/partition.h: Likewise.
18686 * include/grub/i386/pc/partition.h: Likewise.
18687 * kern/partition.c: New file.
18688 * partmap/amiga.c: Likewise.
18689 * partmap/apple.c: Likewise.
18690 * partmap/pc.c: Likewise.
18691 * include/grub/partition.h: Likewise..
18692 * include/grub/pc_partition.h: Likewise.
18693 * util/grub-emu.c: Include <grub/partition.h> instead of
18694 <grub/machine/partition.h>.
18695 (main): Call `grub_pc_partition_map_init',
18696 `grub_amiga_partition_map_init' and
18697 `grub_apple_partition_map_init' and deinitialize afterwards.
18698 * util/i386/pc/biosdisk.c: Include `#include
18699 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18700 `<grub/machine/partition.h>'.
18701 * util/i386/pc/grub-setup.c: Likewise.
18702 * util/i386/pc/biosdisk.c: Likewise.
18703 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
18704 partition information in case of a PC partition.
18705 * util/i386/pc/grub-setup.c: Include `#include
18706 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18707 `<grub/machine/partition.h>'.
18708 (setup): Only access the PC specific partition information in case
18711 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
18713 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
18714 (grub_longjmp): Likewise.
18715 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
18717 * normal/powerpc/setjmp.S: New file.
18718 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
18719 `normal/powerpc/setjmp.S'.
18720 (grubof_CFLAGS): Add `-DGRUBOF'.
18721 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
18722 [GRUB_UTIL && !GRUBOF].
18724 2004-11-16 Marco Gerards <metgerards@student.han.nl>
18726 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
18727 property named `name'. Correctly handle the error returned by
18728 `grub_ieee1275_finddevice' if a device can not be opened.
18730 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
18732 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
18733 `actual' for negativity.
18734 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18737 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18739 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
18740 (PAGE_OFFSET): New macro.
18741 (CRTC_ADDR_PORT): Likewise.
18742 (CRTC_DATA_PORT): Likewise.
18743 (START_ADDR_HIGH_REGISTER): Likewise.
18744 (START_ADDR_LOW_REGISTER): Likewise.
18745 (GRAPHICS_ADDR_PORT): Likewise.
18746 (GRAPHICS_DATA_PORT): Likewise.
18747 (READ_MAP_REGISTER): Likewise.
18748 (INPUT_STATUS1_REGISTER): Likewise.
18749 (INPUT_STATUS1_VERTR_BIT): Likewise.
18750 (page): New variable.
18751 (wait_vretrace): New function.
18752 (set_read_map): Likewise.
18753 (set_start_address): Likewise.
18754 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
18756 (check_vga_mem): Take the page into account.
18757 (write_char): Likewise.
18758 (write_cursor): Likewise.
18759 (scroll_up): Likewise. Copy the page to the page that is not
18760 shown and switch between both pages.
18761 (grub_vga_putchar): Fix off by one error.
18762 (grub_vga_cls): Wait for the vertical retrace. Take the page into
18765 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18767 Add support for iso9660 (including rockridge).
18769 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18770 (iso9660_mod_SOURCES): New variable.
18771 (iso9660_mod_CFLAGS): Likewise.
18772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18773 * include/grub/fs.h (grub_iso9660_init): New prototype.
18774 * util/grub-emu.c (main): Call `grub_iso9660_init'.
18775 * fs/iso9660.c: New file.
18777 * include/grub/misc.h (grub_strncat): New prototype.
18778 * kern/misc.c (grub_strncat): New function.
18780 * fs/hfs.c (grub_hfs_mount): Translate the error
18781 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
18782 * fs/jfs.c (grub_jfs_mount): Likewise.
18783 * fs/ufs.c (grub_ufs_mount): Likewise.
18785 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
18787 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
18788 which initialized BAT registers.
18789 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
18790 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18792 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
18793 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18795 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
18796 (grub_mapclaim): Likewise.
18797 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
18798 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
18801 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
18803 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
18804 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
18805 -ffreestanding and -msoft-float.
18807 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
18809 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
18810 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
18811 set in grub_ieee1275_flags.
18813 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
18815 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
18817 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
18818 grub_console_init first.
18819 Change the memory range used for grub_ieee1275_claim and
18820 grub_mm_init_region.
18821 Print an error message if the claim fails.
18822 Include <grub/misc.h>.
18824 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
18826 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
18827 Call grub_children_iterate for device nodes of type `scsi',
18829 (grub_ofdisk_open): Remove manual device alias resolution.
18830 Fix memory leak when device cannot be opened.
18831 * include/grub/powerpc/ieee1275/ieee1275.h
18832 (grub_children_iterate): New prototype.
18833 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
18835 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18836 Return -1 if args.size was -1.
18838 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18840 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
18841 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
18842 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
18843 Open Firmware's memory for it; claim memory from _start to _end.
18844 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
18845 (_end): New extern.
18846 (_start): Zero BSS from __bss_start to _end.
18847 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
18849 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
18851 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18853 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
18854 -1 if args.base was -1.
18856 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
18858 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
18859 escape sequence instead of a literal ^L. Also call
18860 grub_ofconsole_gotoxy.
18862 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
18864 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
18865 void * arguments to grub_addr_t. All callers updated. Also make
18866 the `result' argument optional.
18867 (grub_ieee1275_release): change void * arguments to grub_addr_t.
18868 All callers updated.
18870 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
18872 * commands/ls.c (grub_ls_list_files): Use the string following the
18873 initial ')', if present, as the filesystem path.
18874 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
18876 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
18878 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
18880 Make the source code of the menu interface more readable.
18882 * normal/menu.c: Include grub/mm.h.
18883 (TERM_WIDTH): New macro.
18884 (TERM_HEIGHT): Likewise.
18885 (TERM_INFO_HEIGHT): Likewise.
18886 (TERM_MARGIN): Likewise.
18887 (TERM_SCROLL_WIDTH): Likewise.
18888 (TERM_TOP_BORDER_Y): Likewise.
18889 (TERM_LEFT_BORDER_X): Likewise.
18890 (TERM_BORDER_WIDTH): Likewise.
18891 (TERM_MESSAGE_HEIGHT): Likewise.
18892 (TERM_BORDER_HEIGHT): Likewise.
18893 (TERM_NUM_ENTRIES): Likewise.
18894 (TERM_FIRST_ENTRY_Y): Likewise.
18895 (TERM_ENTRY_WIDTH): Likewise.
18896 (TERM_CURSOR_X): Likewise.
18897 (draw_border): Use macros instead of magic numbers.
18898 (print_entry): Likewise.
18899 (print_entries): Likewise.
18900 (run_menu): Likewise. Also, handle the key 'e'.
18901 (run_menu_entry): Ignore empty command lines.
18902 (print_message): Added a new argument EDIT. If EDIT is true,
18903 print a different message.
18904 (init_page): Likewise.
18905 (edit_menu_entry): New function. Not implemented yet.
18907 2004-09-17 Marco Gerards <metgerards@student.han.nl>
18909 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
18910 can be loaded from normal mode.
18912 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
18914 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
18915 (multiboot_mod_CFLAGS): New variables.
18916 * loader/i386/pc/linux_normal.c: New file.
18917 * loader/i386/pc/multiboot_normal.c: Likewise.
18919 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
18920 attribute `unused'.
18922 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
18923 `fdiro' to read the mode information from instead of `diro'.
18925 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
18926 looking up a symlink.
18928 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
18930 * normal/command.c (grub_command_execute): Don't parse the
18931 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
18932 flags of the command.
18934 * normal/menu.c (grub_menu_run): Fix typo.
18936 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
18938 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
18940 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
18941 `y + 1' instead of `y - 1'.
18943 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
18945 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
18947 From Hollis Blanchard <hollis@penguinppc.org>:
18948 * kern/misc.c (memmove): New alias for grub_memmove.
18949 (memcmp): New alias for grub_memcmp.
18950 (memset): New alias for grub_memset.
18951 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18952 Change "int handle" to "grub_ieee1275_phandle_t handle".
18953 * include/grub/powerpc/ieee1275/ieee1275.h
18954 (grub_ieee1275_get_property): Likewise.
18956 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
18958 Added normal mode command `chainloader' as module chain.mod, which
18959 depends on normal.mod and _chain.mod.
18961 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
18962 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
18963 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
18965 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
18966 but arguments parsing moved to ...
18967 (grub_chainloader_cmd): ... here. New function.
18968 * include/grub/i386/pc/chainloader.h: New file.
18969 * loader/i386/pc/chainloader_normal.c: Likewise.
18971 2004-09-11 Marco Gerards <metgerards@student.han.nl>
18973 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
18974 (grub_mkimage_LDFLAGS): Likewise.
18975 (grub_emu_SOURCES): Likewise.
18976 (kernel_img_HEADERS): Added fshelp.h.
18977 * fs/ext2.c: Include <grub/fshelp.h>.
18978 (FILETYPE_REG): New macro.
18979 (FILETYPE_INO_REG): Likewise.
18980 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
18982 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
18984 (grub_fshelp_node): New struct.
18985 (grub_ext2_data): Added member `diropen'. Changed member `inode'
18987 (grub_ext2_get_file_block): Removed function.
18988 (grub_ext2_read_block): New function.
18989 (grub_ext2_read_file): Replaced parameter `data' by `node'.
18990 This function was written.
18991 (grub_ext2_mount): Read the root inode. Create a diropen struct.
18992 (grub_ext2_find_file): Removed function.
18993 (grub_ext2_read_symlink): New function.
18994 (grub_ext2_iterate_dir): Likewise.
18995 (grub_ext2_open): Rewritten.
18996 (grub_ext2_dir): Rewritten.
18997 * include/grub/fshelp.h: New file.
18998 * fs/fshelp.c: Likewise.
19000 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
19002 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
19003 (print_message): Add a missing newline.
19004 (run_menu): Added timeout support.
19005 (run_menu_entry): New local function.
19006 (grub_menu_run): Added support for booting.
19008 * kern/loader.c (grub_loader_is_loaded): New function.
19010 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
19011 (grub_get_rtc): Exported.
19013 * include/grub/i386/pc/time.h: Include grub/symbol.h.
19014 (grub_get_rtc): Exported.
19016 * include/grub/normal.h (struct grub_command_list): Remove
19017 constant from the member `command'.
19019 * include/grub/loader.h (grub_loader_is_loaded): Declared.
19021 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
19023 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
19025 2004-08-28 Marco Gerards <metgerards@student.han.nl>
19027 Add support for the JFS filesystem.
19029 * fs/jfs.c: New file.
19030 * include/grub/fs.h (grub_jfs_init): New prototype.
19031 (grub_jfs_fini): New prototype.
19032 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
19033 (grub_emu_SOURCES): Likewise.
19034 (pkgdata_MODULES): Add jfs.mod.
19035 (jfs_mod_SOURCES): New variable.
19036 (jfs_mod_CFLAGS): Likewise.
19037 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
19038 (grubof_SOURCES): Likewise.
19039 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
19041 * fs/fat.c (grub_fat_find_dir): Convert the filename little
19042 endian to the host endian.
19043 (grub_fat_utf16_to_utf8): Move function from there...
19044 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
19045 the endianness of the source string anymore.
19046 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
19048 2004-08-24 Marco Gerards <metgerards@student.han.nl>
19050 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
19051 (grub_boot_fini) [GRUB_UTIL]: Likewise.
19052 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
19053 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
19055 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
19056 (grub_hfs_iterate_dir): Make the function static. Add prototypes
19057 for `node_found' and `it_dir'.
19058 (grub_hfs_dir): Add prototype for `dir_hook'.
19060 * fs/minix.c (grub_minix_get_file_block): Add prototype for
19061 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
19062 and `indir32' to silence a gcc warning.
19064 * include/grub/fs.h (grub_hfs_init): New prototype.
19065 (grub_hfs_fini): Likewise.
19068 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
19070 Each disk device has its own id now. This is useful to make use
19071 of multiple disk devices.
19073 * include/grub/disk.h (grub_disk_dev_id): New enum.
19074 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
19075 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
19077 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
19078 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19080 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
19081 GRUB_DISK_DEVICE_OFDISK_ID as an id.
19083 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
19084 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19086 * include/grub/disk.h (struct grub_disk_dev): Added a new member
19087 "id" which is used by the cache manager.
19089 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
19092 2004-08-18 Marco Gerards <metgerards@student.han.nl>
19094 * fs/hfs.c: New file.
19095 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
19096 (grub_emu_SOURCES): Likewise.
19097 (pkgdata_MODULES): Add hfs.mod.
19098 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
19099 (grubof_SOURCES): Likewise.
19100 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
19102 * include/grub/misc.h (grub_strncasecmp): Add prototype.
19103 * kern/misc.c (grub_strncasecmp): Add function.
19105 2004-08-14 Marco Gerards <metgerards@student.han.nl>
19107 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
19110 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
19111 (grub_ext2_dir): In case the directory entry type is unknown, read
19114 2004-08-02 Peter Bruin <pjbruin@dds.nl>
19116 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
19117 grub_load_linux instead of grub_rescue_cmd_linux as second
19118 argument of grub_rescue_register_command.
19120 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
19122 2004-07-27 Marco Gerards <metgerards@student.han.nl>
19124 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
19126 * commands/boot.c: Remove the check for `GRUB_UTIL'.
19127 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
19128 `loader/powerpc/ieee1275/linux.c',
19129 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
19130 * include/grub/powerpc/ieee1275/ieee1275.h
19131 (grub_ieee1275_release): New prototype.
19132 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
19133 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
19134 normal, boot, linux and linux_normal.
19135 * loader/powerpc/ieee1275/linux.c: New file.
19136 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
19138 2004-07-12 Marco Gerards <metgerards@student.han.nl>
19140 * normal/arg.c (grub_arg_parse): Correct error handling after
19141 reallocating the argumentlist (check if `argl' is not null instead
19142 of checking if `args' is not null).
19143 * kern/mm.c (grub_realloc): Return the same pointer when using the
19144 same region, instead of returning the header address.
19146 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19148 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
19149 one block instead of two when looking for the initial partition.
19150 (grub_partition_probe): Initialize the local variable `p' with 0.
19151 Use base 10 for the grub_strtoul call.
19152 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
19153 need for one local variable.
19154 (grub_strtoul): Don't add the new value to `num', instead of that
19157 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19159 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
19160 (pxeboot_img_SOURCES): New variable.
19161 (pxeboot_img_ASFLAGS): Likewise.
19162 (pxeboot_img_LDFLAGS): Likewise.
19163 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
19164 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
19165 <lode_leroy@hotmail.com>.
19167 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19169 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
19170 there was no input.
19172 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19174 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
19175 the history buffer logic.
19177 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19179 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
19180 (FILETYPE_INO_SYMLINK): New macros.
19181 (grub_ext2_find_file): Check if the node is a directory using the
19182 inode stat information instead of using the filetype in the
19183 dirent. Exclude the first character of an absolute symlink.
19184 (grub_ext2_dir): Mask out the filetype part of the mode member of
19187 2004-05-24 Marco Gerards <metgerards@student.han.nl>
19189 Add support for UFS version 1 and 2. Add support for the minix
19190 filesystem version 1 and 2, both the variants with 14 and 30 long
19193 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
19195 (grub_emu_SOURCES): Likewise.
19196 (pkgdata_MODULES): Add ufs.mod and minix.mod.
19197 (ufs_mod_SOURCES): New variable.
19198 (ufs_mod_CFLAGS): Likewise.
19199 (minix_mod_SOURCES): Likewise.
19200 (minix_mod_CFLAGS): Likewise.
19201 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
19203 (grubof_SOURCES): Likewise.
19204 * fs/ufs.c: New file.
19205 * fs/minix.c: New file.
19206 * include/grub/fs.h (grub_ufs_init): New prototype.
19207 (grub_ufs_fini): Likewise.
19208 (grub_minix_init): Likewise.
19209 (grub_minix_fini): Likewise.
19210 * util/grub-emu.c (main): Initialize and deinitialize UFS and
19213 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
19215 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
19216 commands/ls.c, commands/terminal.c, commands/boot.c,
19217 commands/cmp.c and commands/cat.c.
19218 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
19220 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
19223 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19225 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
19226 and grub_, respectively. Because the conversion is trivial and
19227 mechanical, I omit the details here. Please refer to the CVS
19228 if you need more information.
19230 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19232 * include/pupa: Renamed to ...
19233 * include/grub: ... this.
19234 * util/i386/pc/pupa-mkimage.c: Renamed to ...
19235 * util/i386/pc/grub-mkimage.c: ... this.
19236 * util/i386/pc/pupa-setup.c: Renamed to ...
19237 * util/i386/pc/grub-setup.c: ... this.
19238 * util/pupa-emu.c: Renamed to ...
19239 * util/grub-emu.c: ... this.
19241 2004-03-29 Marco Gerards <metgerards@student.han.nl>
19243 Add support for the newworld apple macintosh (PPC). This has been
19244 tested on the powerbook 2000 only. It only adds support for
19245 generic ieee1275 functions, console and disk support. This should
19246 be easy to port to other architectures with support for Open
19249 * configure.ac: Accept the powerpc as host_cpu. In the case of
19250 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
19251 specific tests are only executed while building for the i386.
19252 Inverse test for crosscompile.
19253 * genmk.rb (Utility): Allow assembler files.
19254 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
19255 * conf/powerpc-ieee1275.rmk: New file.
19256 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
19257 * disk/powerpc/ieee1275/partition.c: Likewise.
19258 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
19259 * include/pupa/powerpc/ieee1275/console.h: Likewise.
19260 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
19261 * include/pupa/powerpc/ieee1275/time.h: Likewise.
19262 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
19263 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
19264 * include/pupa/powerpc/ieee1275/loader.h
19265 * include/pupa/powerpc/setjmp.h: Likewise.
19266 * include/pupa/powerpc/types.h: Likewise.
19267 * kern/powerpc/ieee1275/init.c: Likewise.
19268 * kern/powerpc/ieee1275/openfw.c: Likewise.
19269 * term/powerpc/ieee1275/ofconsole.c: Likewise.
19271 These files were written by Johan Rydberg
19272 (jrydberg@night.trouble.net) and I only modified them slightly.
19274 * boot/powerpc/ieee1275/cmain.c: New file.
19275 * boot/powerpc/ieee1275/crt0.S: Likewise.
19276 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
19277 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
19279 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
19281 * Makefile.in: Update copyright.
19282 * genmodsrc.sh: Likewise.
19283 * gensymlist.sh: Likewise.
19284 * term/i386/pc/vga.c: Indent correctly.
19286 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
19287 bugreporting address.
19288 * util/i386/pc/pupa-setup.c (usage): Likewise,
19289 (main): Call pupa_ext2_init and pupa_ext2_fini.
19291 * fs/fat.c (log2): Renamed to ...
19292 (fat_log2): ... this.
19293 All callers changed.
19294 * kern/misc.c (memcpy): Alias to pupa_memmove.
19295 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
19297 * util/console.c (pupa_ncurses_fini): Return 0.
19299 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
19300 Move fail label here.
19301 [__GNU__]: Don't warn when using stat.
19302 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
19303 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
19304 long int. Use strtol instead of strtoul.
19306 2004-03-14 Marco Gerards <metgerards@student.han.nl>
19308 * commands/boot.c: New file.
19309 * commands/cat.c: Likewise.
19310 * commands/cmp.c: Likewise.
19311 * commands/ls.c: Likewise.
19312 * commands/terminal.c: Likewise.
19313 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
19314 (pupa_register_command): Changed interface to match the new
19316 (pupa_command_execute): Changed (almost rewritten) so it uses
19317 pupa_split_command. Added support for setting variables using the
19319 (rescue_command): Changed to work with the new argument parser.
19320 (terminal_command): Moved from here to commands/terminal.c.
19321 (set_command): New function.
19322 (unset_command): New function.
19323 (insmod_command): New function.
19324 (rmmod_command): New function.
19325 (lsmod_command): New function.
19326 (pupa_command_init): Don't initialize the command terminal
19327 anymore. Initialize the commands set, unset, insmod, rmmod and
19329 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
19330 (kernel_img_HEADERS): Add arg.h and env.h.
19331 (pupa_mkimage_LDFLAGS): Add kern/env.c.
19332 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
19333 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
19335 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
19337 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
19338 (boot_mod_SOURCES): New variable.
19339 (terminal_mod_SOURCES): Likewise.
19340 (ls_mod_SOURCES): Likewise.
19341 (cmp_mod_SOURCES): Likewise.
19342 (cat_mod_SOURCES): Likewise.
19344 * normal/arg.c: New file.
19345 * kern/env.c: Likewise.
19346 * include/pupa/arg.h: Likewise.
19347 * include/pupa/env.h: Likewise.
19348 * font/manager.c (font_command): Changed to match argument parsing
19350 (PUPA_MOD_INIT): Likewise.
19351 * hello/hello.c (pupa_cmd_hello): Likewise.
19352 (PUPA_MOD_INIT): Likewise.
19353 * include/pupa/disk.h: Include <pupa/device.h>.
19354 (pupa_print_partinfo): New prototype.
19355 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
19356 (pupa_dl_get_prefix): Likewise.
19357 * include/pupa/misc.h: Include <pupa/err.h>.
19358 (pupa_isgraph): New prototype.
19359 (pupa_isdigit): Likewise.
19360 (pupa_split_cmdline): Likewise.
19361 * include/pupa/normal.h: Include <pupa/arg.h>.
19362 (pupa_command): Changed the prototype of the member `func' to
19363 match the argument parsing interface. Added member `options'.
19364 (pupa_register_command): Updated to match function.
19365 (pupa_arg_parse): New prototype.
19366 (pupa_hello_init) [PUPA_UTIL]: New prototype.
19367 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
19368 (pupa_ls_init) [PUPA_UTIL]: Likewise.
19369 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
19370 (pupa_cat_init) [PUPA_UTIL]: Likewise.
19371 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
19372 (pupa_boot_init) [PUPA_UTIL]: Likewise.
19373 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
19374 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
19375 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
19376 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
19377 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
19378 * kern/disk.c: Include <pupa/file.h>.
19379 (pupa_print_partinfo): New function.
19380 * kern/dl.c: Include <pupa/env.h>.
19381 (pupa_dl_dir): Variable removed.
19382 (pupa_dl_load): Use the environment variable `prefix' instead of
19383 the variable pupa_dl_dir.
19384 (pupa_dl_set_prefix): Function removed.
19385 (pupa_dl_get_prefix): Likewise.
19386 * kern/i386/pc/init.c: Include <pupa/env.h>.
19387 (pupa_machine_init): Use the environment variable `prefix' instead of
19388 using pupa_dl_set_prefix to set the prefix.
19389 * kern/main.c: Include <pupa/env.h>.
19390 (pupa_set_root_dev): Use the environment variable `prefix' instead of
19391 using pupa_dl_get_prefix to get the prefix.
19392 * kern/misc.c: Include <pupa/env.h>.
19393 (pupa_isdigit): New function.
19394 (pupa_isgraph): Likewise.
19395 (pupa_ftoa): Likewise.
19396 (pupa_vsprintf): Added support for printing values of the type
19397 `double'. Make it possible to format variable output when using
19398 formatting like `%1.2%f'.
19399 (pupa_split_cmdline): New function.
19400 * kern/rescue.c: Include <pupa/env.h>.
19401 (next_word): Removed function.
19402 (pupa_rescue_cmd_prefix): Likewise.
19403 (pupa_rescue_cmd_set): New function.
19404 (pupa_rescue_cmd_unset): New function.
19405 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
19406 split the command line instead of splitting it here. Added
19407 support for setting variables using the syntax `foo=bar'. Don't
19408 initialize the prefix command anymore. Initialized the set and
19410 * normal/cmdline.c: Include <pupa/env.h>.
19411 (pupa_tab_complete): Added prototypes for print_simple_completion,
19412 print_partition_completion, add_completion, iterate_commands,
19413 iterate_dev, iterate_part and iterate_dir. Moved code to print
19414 partition information from here to kern/disk.c.
19415 (pupa_cmdline_run): Don't check if the function exists anymore.
19416 * normal/main.c: Include <pupa/env.h>.
19417 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
19418 instead of using pupa_dl_get_prefix to get the prefix.
19419 * term/i386/pc/vga.c: Include <pupa/arg.h>.
19420 (check_vga_mem): Cast pointers to `void *' to silence a gcc
19422 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
19423 (pupa_vga_setcolor): Declare unused variables with `__attribute__
19424 ((unused))' to silence a gcc warning.
19425 (pupa_vga_setcolor): Likewise.
19426 (debug_command): Changed to match argument parsing
19428 * util/pupa-emu.c: Include <pupa/env.h>.
19429 (options): Added 0's for unused fields to silence a gcc warning.
19431 (main): Use the environment variable `prefix' instead of using
19432 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
19433 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
19436 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
19437 * util/misc.c: Include <malloc.h>.
19438 (pupa_malloc): Rewritten so errors are correctly reported.
19439 (pupa_realloc): Likewise.
19440 (pupa_memalign): Likewise.
19441 (pupa_mm_init_region): Declare unused variables with
19442 `__attribute__ ((unused))' to silence a gcc warning.
19443 * normal/i386/setjmp.S: Remove tab at the end of the file to
19444 silence a gcc warning.
19445 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
19446 variables with `__attribute__ ((unused))' to silence a gcc
19448 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
19449 local variable i unsigned to silence a gcc warning.
19451 * kern/term.c: Include <pupa/misc.h>.
19452 (pupa_more_lines): New variable.
19453 (pupa_more): Likewise.
19454 (pupa_putcode): When the pager is active pause at the end of every
19456 (pupa_set_more): New function.
19457 * include/pupa/term.h (pupa_set_more): New prototype.
19460 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
19462 Now this project is GRUB 2 rather than PUPA. The location of
19463 the CVS repository was moved to GRUB's.
19465 * configure.ac: Use bug-grub as the reporting address.
19466 Use GRUB instead of PUPA.
19467 Change the version number to 1.90.
19469 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
19471 * genkernsyms.sh: Updated copyright information.
19472 * genmk.rb: Likewise.
19473 * genmodsrc.sh: Likewise.
19474 * gensymlist.sh: Likewise.
19475 * boot/i386/pc/boot.S: Likewise.
19476 * boot/i386/pc/diskboot.S: Likewise.
19477 * disk/i386/pc/biosdisk.c: Likewise.
19478 * disk/i386/pc/partition.c: Likewise.
19479 * font/manager.c: Likewise.
19480 * fs/ext2.c: Likewise.
19481 * fs/fat.c: Likewise.
19482 * include/pupa/boot.h: Likewise.
19483 * include/pupa/device.h: Likewise.
19484 * include/pupa/disk.h: Likewise.
19485 * include/pupa/dl.h: Likewise.
19486 * include/pupa/elf.h: Likewise.
19487 * include/pupa/err.h: Likewise.
19488 * include/pupa/file.h: Likewise.
19489 * include/pupa/font.h: Likewise.
19490 * include/pupa/fs.h: Likewise.
19491 * include/pupa/kernel.h: Likewise.
19492 * include/pupa/loader.h: Likewise.
19493 * include/pupa/misc.h: Likewise.
19494 * include/pupa/mm.h: Likewise.
19495 * include/pupa/net.h: Likewise.
19496 * include/pupa/normal.h: Likewise.
19497 * include/pupa/rescue.h: Likewise.
19498 * include/pupa/setjmp.h: Likewise.
19499 * include/pupa/symbol.h: Likewise.
19500 * include/pupa/term.h: Likewise.
19501 * include/pupa/types.h: Likewise.
19502 * include/pupa/i386/setjmp.h: Likewise.
19503 * include/pupa/i386/types.h: Likewise.
19504 * include/pupa/i386/pc/biosdisk.h: Likewise.
19505 * include/pupa/i386/pc/boot.h: Likewise.
19506 * include/pupa/i386/pc/console.h: Likewise.
19507 * include/pupa/i386/pc/init.h: Likewise.
19508 * include/pupa/i386/pc/kernel.h: Likewise.
19509 * include/pupa/i386/pc/linux.h: Likewise.
19510 * include/pupa/i386/pc/loader.h: Likewise.
19511 * include/pupa/i386/pc/memory.h: Likewise.
19512 * include/pupa/i386/pc/multiboot.h: Likewise.
19513 * include/pupa/i386/pc/partition.h: Likewise.
19514 * include/pupa/i386/pc/time.h: Likewise.
19515 * include/pupa/i386/pc/vga.h: Likewise.
19516 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
19517 * include/pupa/util/getroot.h: Likewise.
19518 * include/pupa/util/misc.h: Likewise.
19519 * include/pupa/util/resolve.h: Likewise.
19520 * kern/device.c: Likewise.
19521 * kern/disk.c: Likewise.
19522 * kern/dl.c: Likewise.
19523 * kern/err.c: Likewise.
19524 * kern/file.c: Likewise.
19525 * kern/fs.c: Likewise.
19526 * kern/loader.c: Likewise.
19527 * kern/main.c: Likewise.
19528 * kern/misc.c: Likewise.
19529 * kern/mm.c: Likewise.
19530 * kern/rescue.c: Likewise.
19531 * kern/term.c: Likewise.
19532 * kern/i386/dl.c: Likewise.
19533 * kern/i386/pc/init.c: Likewise.
19534 * kern/i386/pc/lzo1x.S: Likewise.
19535 * kern/i386/pc/startup.S: Likewise.
19536 * loader/i386/pc/chainloader.c: Likewise.
19537 * loader/i386/pc/linux.c: Likewise.
19538 * loader/i386/pc/multiboot.c: Likewise.
19539 * normal/cmdline.c: Likewise.
19540 * normal/command.c: Likewise.
19541 * normal/main.c: Likewise.
19542 * normal/menu.c: Likewise.
19543 * normal/i386/setjmp.S: Likewise.
19544 * term/i386/pc/console.c: Likewise.
19545 * term/i386/pc/vga.c: Likewise.
19546 * util/console.c: Likewise.
19547 * util/genmoddep.c: Likewise.
19548 * util/misc.c: Likewise.
19549 * util/pupa-emu.c: Likewise.
19550 * util/resolve.c: Likewise.
19551 * util/unifont2pff.rb: Likewise.
19552 * util/i386/pc/biosdisk.c: Likewise.
19553 * util/i386/pc/getroot.c: Likewise.
19554 * util/i386/pc/pupa-mkimage.c: Likewise.
19555 * util/i386/pc/pupa-setup.c: Likewise.
19557 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
19559 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
19560 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
19561 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
19562 reading and reset it after reading.
19563 (pupa_ext2_close): Return PUPA_ERR_NONE.
19565 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
19567 (struct linux_kernel_header): Add kernel_version and
19569 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
19570 pupa_file_read succeeds.
19571 (pupa_rescue_cmd_initrd): Implement.
19573 2003-12-03 Marco Gerards <metgerards@student.han.nl>
19575 * fs/ext2.c (pupa_ext2_label): New function.
19576 (pupa_ext2_fs): Added label.
19577 * fs/fat.c (pupa_fat_label): New function.
19578 (pupa_fat_fs): Added label.
19579 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
19581 * kern/misc.c (pupa_strndup): New function.
19582 * include/pupa/misc.h (pupa_strndup): New prototype.
19584 * include/pupa/normal.h: Include <pupa/err.h>.
19585 (pupa_set_history): New prototype.
19586 (pupa_iterate_commands): New prototype.
19587 * normal/cmdline.c: Include <pupa/machine/partition.h>,
19588 <pupa/disk.h>, <pupa/file.h>.
19589 (hist_size): New variable.
19590 (hist_lines): Likewise.
19591 (hist_end): Likewise.
19592 (hist_used): Likewise.
19593 (pupa_set_history): New function.
19594 (pupa_history_get): Likewise.
19595 (pupa_history_add): Likewise.
19596 (pupa_history_replace): Likewise.
19597 (pupa_tab_complete): Likewise.
19598 (pupa_cmdline_run): Added tab completion and history buffer. Tab
19599 completion shows partitionnames while completing partitions, this
19600 feature was suggested by Jeff Bailey.
19601 * normal/command.c (pupa_iterate_commands): New function.
19602 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
19603 (pupa_normal_init): Initialize history buffer.
19604 (PUPA_MOD_INIT): Likewise.
19605 (pupa_normal_fini): Free the history buffer.
19606 (PUPA_MOD_FINI): Likewise.
19608 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
19611 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
19612 * configure.ac [i386]: Check for regparam bug.
19613 (NESTED_FUNC_ATTR) [! i386]: Defined.
19615 2003-11-17 Marco Gerards <metgerards@student.han.nl>
19617 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
19618 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
19619 (pupa_emu_SOURCES): New variable.
19620 (pupa_emu_LDFLAGS): Likewise.
19621 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
19622 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
19623 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
19624 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19625 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
19626 (pupa_jmp_buf): New typedef.
19627 (pupa_setjmp) [PUPA_UTIL]: New macro.
19628 (pupa_longjmp) [PUPA_UTIL]: Likewise.
19629 * include/pupa/term.h (struct pupa_term): New member `refresh'.
19630 (pupa_refresh): New prototype.
19631 * include/pupa/util/getroot.h: New file.
19632 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
19634 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
19635 (pupa_rescue_cmd_cat): Likewise.
19636 (pupa_rescue_cmd_ls): Likewise.
19637 (pupa_rescue_cmd_testload): Likewise.
19638 (pupa_rescue_cmd_lsmod): Likewise.
19639 * normal/cmdline.c (pupa_cmdline_get): Likewise.
19640 * normal/menu.c (run_menu): Likewise.
19641 * kern/term.c (pupa_cls): Likewise.
19642 (pupa_refresh): New function.
19643 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
19644 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19645 * util/console.c: New file.
19647 * util/i386/pc/getroot.c: New file.
19648 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
19649 (pupa_putchar): New function.
19650 (pupa_refresh): Likewise.
19651 (xgetcwd): Function moved to ...
19652 (strip_extra_slashes): Likewise.
19653 (get_prefix): Likewise.
19654 * util/i386/pc/getroot.c: ... here.
19655 (find_root_device): Function moved and renamed to...
19656 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
19657 Changed all callers.
19658 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
19660 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
19661 Changed all callers.
19662 * util/misc.c (pupa_memalign): New function.
19663 (pupa_mm_init_region): Likewise.
19664 (pupa_register_exported_symbols): Likewise.
19665 (pupa_putchar): Function removed.
19666 * util/pupa-emu.c: New file.
19668 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
19670 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
19671 (_multiboot_mod_SOURCES): New variable.
19672 (_multiboot_mod_CFLAGS): Likewise.
19673 * loader/i386/pc/multiboot.c: New file.
19674 * include/pupa/i386/pc/multiboot.h: Likewise.
19675 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
19676 (pupa_multiboot_real_boot): New function.
19677 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
19678 (pupa_multiboot_real_boot): New prototype.
19679 (pupa_rescue_cmd_multiboot): Likewise
19680 (pupa_rescue_cmd_module): Likewise.
19682 * kern/loader.c (pupa_loader_set): Continue when
19683 pupa_loader_unload_func() fails.
19684 (pupa_loader_unset): New function.
19685 * include/pupa/loader.h (pupa_loader_unset): New prototype.
19687 * kern/misc.c (pupa_stpcpy): New function.
19688 * include/pupa/misc.h (pupa_stpcpy): New prototype.
19690 2003-11-12 Marco Gerards <metgerards@student.han.nl>
19692 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
19693 for available extensions.
19695 * include/pupa/i386/pc/time.h: New file.
19696 * kern/disk.c: Include <pupa/machine/time.h>.
19697 (PUPA_CACHE_TIMEOUT): New macro.
19698 (pupa_last_time): New variable.
19699 (pupa_disk_open): Flush the cache when there was a timeout.
19700 (pupa_disk_close): Reset the timer.
19701 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
19703 * util/misc.c: Include <sys/times.h>
19704 (pupa_get_rtc): New function.
19706 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
19708 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
19710 (pupa_ext2_get_file_block): Use blocks member.
19712 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
19713 first block. Return -1 instead of pupa_errno on error.
19715 2003-10-27 Marco Gerards <metgerards@student.han.nl>
19717 * README: In the pupa-mkimage example use _chain instead of chain
19718 and ext2 instead of fat.
19719 * TODO: Replace ext2fs with jfs as an example. Add an item for
19720 adding journal playback for ext2fs.
19721 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
19722 (pkgdata_MODULES): Added ext2.mod.
19723 (ext2_mod_SOURCES): New variable.
19724 (ext2_mod_CFLAGS): Likewise.
19725 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
19726 * include/pupa/misc.h (pupa_strncpy): New prototype.
19727 (pupa_strcat): Likewise.
19728 (pupa_strncmp): Likewise.
19729 * kern/misc.c (pupa_strcat): Enable function.
19730 (pupa_strncpy): New function.
19731 (pupa_strncmp): Likewise.
19732 * fs/ext2.c: New file.
19734 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
19735 when the read failed before retrying.
19736 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
19737 (_FILE_OFFSET_BITS): Likewise.
19738 * configure.ac: Added AC_SYS_LARGEFILE.
19740 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19742 * genmk.rb (PModule#rule): Make sure to get only symbol names
19743 from the output of nm.
19744 Reported by Robert Millan <zeratul2@wanadoo.es>.
19746 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19748 I forgot to check in these changes for a long time. This adds
19749 incomplete support for VGA console, and this is still very
19750 buggy. Also, a lot of consideration is required for I18N,
19751 UNICODE, and VGA font issues. Therefore, assume that this is
19752 such that "better than nothing".
19754 * font/manager.c: New file.
19755 * include/pupa/font.h: Likewise.
19756 * include/pupa/i386/pc/vga.h: Likewise.
19757 * term/i386/pc/vga.c: Likewise.
19758 * util/unifont2pff.rb: Likewise.
19760 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
19761 (pkgdata_MODULES): Added vga.mod and font.mod.
19762 (vga_mod_SOURCES): New variables.
19763 (vga_mod_CFLAGS): Likewise.
19764 (font_mod_SOURCES): Likewise.
19765 (font_mod_CFLAGS): Likewise.
19767 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
19769 * include/pupa/term.h: Include pupa/err.h.
19770 (struct pupa_term): Added init and fini.
19771 Changed the argument of putchar to pupa_uint32_t.
19773 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
19774 (pupa_console_real_putchar): New prototype.
19775 (pupa_console_putchar): Removed.
19776 (pupa_console_checkkey): Exported.
19777 (pupa_console_getkey): Likewise.
19779 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
19782 * kern/term.c (pupa_term_set_current): Rewritten.
19783 (pupa_putchar): Likewise.
19784 (pupa_putcode): New function.
19786 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
19787 (pupa_console_real_putchar): ... this.
19788 (pupa_vga_set_mode): New function.
19789 (pupa_vga_get_font): Likewise.
19791 * normal/command.c: Include pupa/term.h.
19792 (terminal_command): New function.
19793 (pupa_command_init): Register the command "terminal".
19795 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
19796 (DISP_UP): Likewise.
19797 (DISP_RIGHT): Likewise.
19798 (DISP_DOWN): Likewise.
19799 (DISP_HLINE): Likewise.
19800 (DISP_VLINE): Likewise.
19801 (DISP_UL): Likewise.
19802 (DISP_UR): Likewise.
19803 (DISP_LL): Likewise.
19804 (DISP_LR): Likewise.
19806 * term/i386/pc/console.c (pupa_console_putchar): New function.
19808 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
19810 * util/resolve.c (pupa_util_resolve_dependencies): BUG
19811 FIX. Reverse the path_list.
19813 * include/pupa/normal.h: Export pupa_register_command and
19814 pupa_unregister_command.
19816 * hello/hello.c (pupa_cmd_hello): New module.
19817 * conf/i386-pc.rmk: Added hello.mod.
19819 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
19821 * kern/i386/pc/lzo1x.S: New file.
19823 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
19824 (compress_kernel): New variable.
19825 (generate_image): Heavily modified to support compressing a
19826 large part of the core image.
19828 * util/misc.c (pupa_util_read_image): Fix a file descriptor
19830 (pupa_util_load_image): New function.
19832 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
19833 (pupa_compressed_size): New variable.
19834 (codestart): Enable Gate A20 here.
19835 Decompress the compressed part of the core image.
19836 Rearrange the code to put functions and variables which are
19837 required for initialization in the non-compressed part.
19840 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
19843 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
19845 * include/pupa/i386/pc/kernel.h
19846 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
19847 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
19848 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
19849 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
19850 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
19852 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
19854 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
19855 (Utility#rule): Likewise.
19857 * configure.ac: Check if LZO is available.
19859 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
19861 * include/pupa/normal.h: New file.
19862 * include/pupa/setjmp.h: Likewise.
19863 * include/pupa/i386/setjmp.h: Likewise.
19864 * normal/cmdline.c: Likewise.
19865 * normal/command.c: Likewise.
19866 * normal/main.c: Likewise.
19867 * normal/menu.c: Likewise.
19868 * normal/i386/setjmp.S: Likewise.
19870 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
19871 (pupa_rescue_cmd_initrd): Likewise.
19873 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
19876 * kern/i386/pc/startup.S (translation_table): New variable.
19877 (translate_keycode): New function.
19878 (pupa_console_getkey): Call translate_keycode.
19880 * kern/rescue.c (attempt_normal_mode): New function.
19881 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
19882 it failed, print a message.
19884 * kern/mm.c (pupa_real_malloc): Print more information when a
19885 free magic is broken.
19886 (pupa_free): If the first free header is not free actually, set
19889 * kern/main.c (pupa_load_normal_mode): Just load the module
19891 (pupa_main): Don't print the message
19892 "Entering into rescue mode..." here.
19894 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
19896 (pupa_rescue_cmd_initrd): Likewise.
19897 (pupa_rescue_cmd_initrd): Likewise.
19899 * include/pupa/symbol.h (FUNCTION): Specify the type.
19900 (VARIABLE): Likewise.
19902 * include/pupa/err.h (pupa_err_t): Added
19903 PUPA_ERR_UNKNOWN_COMMAND.
19905 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
19906 (pupa_dl_get_prefix): Likewise.
19908 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
19909 Added _chain.mod and _linux.mod instead of chain.mod and
19911 (chain_mod_SOURCES): Renamed to ...
19912 (_chain_mod_SOURCES): ... this.
19913 (chain_mod_CFLAGS): Renamed to ...
19914 (_chain_mod_CFLAGS): ... this.
19915 (linux_mod_SOURCES): Renamed to ...
19916 (_linux_mod_SOURCES): ... this.
19917 (linux_mod_CFLAGS): Renamed to ...
19918 (_linux_mod_CFLAGS): ... this.
19919 (normal_mod_SOURCES): New variable.
19920 (normal_mod_CFLAGS): Likewise.
19921 (normal_mod_ASFLAGS): Likewise.
19923 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
19925 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
19928 * kern/dl.c (pupa_dl_ref): Refer depending modules
19930 (pupa_dl_unref): Unrefer depending modules recursively.
19931 Don't call pupa_dl_unload implicitly, because PUPA can crash if
19932 a module is unloaded before one depending on that module is
19934 (pupa_dl_unload): Unload depending modules explicitly,
19937 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
19939 * include/pupa/i386/pc/linux.h: New file.
19940 * loader/i386/pc/linux.c: Likewise.
19942 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
19944 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
19945 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
19946 of PUPA_CHAINLOADER_BOOT_SECTOR.
19948 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
19949 (pupa_linux_prot_size): New variable.
19950 (pupa_linux_tmp_addr): Likewise.
19951 (pupa_linux_real_addr): Likewise.
19952 (pupa_linux_boot_zimage): New function.
19953 (pupa_linux_boot_bzimage): Likewise.
19955 * kern/i386/pc/init.c (struct mem_region): New structure.
19956 (MAX_REGIONS): New macro.
19957 (mem_regions): New variable.
19958 (num_regions): Likewise.
19959 (pupa_os_area_addr): Likewise.
19960 (pupa_os_area_size): Likewise.
19961 (pupa_lower_mem): Likewise.
19962 (pupa_upper_mem): Likewise.
19963 (add_mem_region): New function.
19964 (compact_mem_regions): Likewise.
19965 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
19966 the size of the conventional memory and that of so-called upper
19967 memory (before the first memory hole).
19968 Instead of adding each found region to free memory, use
19969 add_mem_region and add them after removing overlaps.
19970 Also, add only 1/4 of the upper memory to free memory. The rest
19971 is used for loading OS images. Maybe this is ad hoc, but this
19972 makes it much easier to relocate OS images when booting.
19974 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
19975 (pupa_enter_rescue_mode): Don't register initrd and module.
19977 * kern/mm.c: Include pupa/dl.h.
19979 * kern/main.c: Include pupa/file.h and pupa/device.h.
19981 * kern/loader.c (pupa_loader_load_module_func): Removed.
19982 (pupa_loader_load_module): Likewise.
19984 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
19987 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
19988 (pupa_linux_tmp_addr): Likewise.
19989 (pupa_linux_real_addr): Likewise.
19990 (pupa_linux_boot_zimage): Likewise.
19991 (pupa_linux_boot_bzimage): Likewise.
19993 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
19994 (pupa_upper_mem): Likewise.
19995 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
19996 module is too dangerous.
19998 * include/pupa/loader.h (pupa_os_area_addr): Declared.
19999 (pupa_os_area_size): Likewise.
20000 (pupa_loader_set): Remove the first argument. Loader doesn't
20001 manage modules or initrd any longer.
20002 (pupa_loader_load_module): Removed.
20004 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
20005 (linux_mod_SOURCES): New variable.
20006 (linux_mod_CFLAGS): Likewise.
20008 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
20010 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
20011 the length of a blocklist correctly.
20013 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
20014 Use ioctl only if the OS file is a block device.
20015 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
20016 not very useful for normal files.
20018 * kern/main.c (pupa_set_root_dev): New function.
20019 (pupa_load_normal_mode): Likewise.
20020 (pupa_main): Call those above.
20022 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
20025 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
20027 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20029 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
20030 (setup): Configure the installed partition information and the
20033 * loader/i386/pc/chainloader.c (my_mod): New variable.
20034 (pupa_chainloader_unload): New function.
20035 (pupa_rescue_cmd_chainloader): Refer itself.
20036 (PUPA_MOD_INIT): Save its own module in MY_MOD.
20038 * kern/i386/pc/startup.S (install_partition): Removed.
20039 (version_string): Likewise.
20040 (config_file): Likewise.
20041 (pupa_install_dos_part): New variable.
20042 (pupa_install_bsd_part): Likewise.
20043 (pupa_prefix): Likewise.
20044 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
20046 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
20048 (make_install_device): New function.
20049 (pupa_machine_init): Set the dl prefix.
20051 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
20052 (buf): Renamed to ...
20053 (linebuf): ... this.
20054 (pupa_rescue_cmd_prefix): New function.
20055 (pupa_rescue_cmd_insmod): Likewise.
20056 (pupa_rescue_cmd_rmmod): Likewise.
20057 (pupa_rescue_cmd_lsmod): Likewise.
20058 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
20061 * kern/mm.c (pupa_memalign): If failed even after invalidating
20062 disk caches, unload unneeded modules and retry.
20064 * kern/misc.c (pupa_memmove): New function.
20065 (pupa_memcpy): Removed.
20066 (pupa_strcpy): New function.
20067 (pupa_itoa): Made static.
20069 * kern/dl.c (pupa_dl_iterate): New function.
20070 (pupa_dl_ref): Likewise.
20071 (pupa_dl_unref): Likewise.
20072 (pupa_dl_unload): Return if succeeded or not.
20073 (pupa_dl_unload_unneeded): New function.
20074 (pupa_dl_unload_all): Likewise.
20075 (pupa_dl_init): Renamed to ...
20076 (pupa_dl_set_prefix): ... this.
20077 (pupa_dl_get_prefix): New function.
20079 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
20080 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
20081 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
20082 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
20083 (pupa_install_dos_part): Declared.
20084 (pupa_install_bsd_part): Likewise.
20085 (pupa_prefix): Likewise.
20086 (pupa_boot_drive): Likewise.
20088 * include/pupa/types.h: Fix a typo.
20090 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
20092 (pupa_memmove): Declared.
20093 (pupa_strcpy): Likewise.
20095 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
20096 pupa_mod_init takes one argument, its own module.
20097 (pupa_dl_unload_unneeded): Declared.
20098 (pupa_dl_unload_all): Likewise.
20099 (pupa_dl_ref): Likewise.
20100 (pupa_dl_unref): Likewise.
20101 (pupa_dl_iterate): Likewise.
20102 (pupa_dl_init): Renamed to ...
20103 (pupa_dl_set_prefix): ... this.
20104 (pupa_dl_get_prefix): Declared.
20106 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
20107 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
20109 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
20110 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
20112 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
20113 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
20115 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20117 * util/i386/pc/pupa-setup.c (setup): Define the internal
20118 function find_first_partition_start at the top level, because GCC
20119 3.0.x cannot compile internal functions in deeper scopes
20121 (find_root_device): Use lstat instead of stat.
20122 Don't follow symbolic links.
20123 Fix the path-constructing code.
20125 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
20126 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
20127 by a BLKGETSIZE ioctl first, because block devices don't fill
20128 the member st_mode of the structure stat on Linux.
20129 [__linux__] (linux_find_partition): Use a temporary buffer
20130 REAL_DEV for the working space. Copy it to DEV before returning.
20131 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
20132 buffer cache consistent.
20133 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
20134 strncmp. The previous value was merely wrong.
20135 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
20137 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
20138 FAT size is 12. The previous value was merely wrong.
20140 * kern/main.c (pupa_main): Don't split the starting message from
20143 * kern/term.c (pupa_putchar): Put CR after LF instead of before
20144 LF, because BIOS goes crazy about character attributes in this
20147 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20149 * include/i386/pc/util/biosdisk.h: New file.
20150 * util/i386/pc/biosdisk.c: Likewise.
20151 * util/i386/pc/pupa-setup.c: Likewise.
20153 * Makefile.in (INCLUDE_DISTFILES): Added
20154 include/pupa/i386/pc/util/biosdisk.h.
20155 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
20156 directory util/i386/pc.
20157 (install-local): Added a rule for sbin_UTILITIES.
20158 (uninstall): Likewise.
20160 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
20162 * util/misc.c (xrealloc): New function.
20163 (pupa_malloc): Likewise.
20164 (pupa_free): Likewise.
20165 (pupa_realloc): Likewise.
20166 (pupa_stop): Likewise.
20167 (pupa_putchar): Likewise.
20169 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
20171 * include/pupa/util/misc.h (xrealloc): Declared.
20173 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
20175 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
20176 (PUPA_BOOT_MACHINE_BPB_END): ... this.
20178 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
20179 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20181 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
20182 way should be implemented.
20183 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20185 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
20186 the size of NAME for safety.
20187 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
20190 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
20191 (pupa_setup_SOURCES): Likewise.
20193 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
20195 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20197 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
20198 bunch of pushl's from pusha, because this destroys the return
20201 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20203 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
20204 This means that any missing prototypes could be fatal. Also, you
20205 must take care when writing assembly code. See the comments at
20206 the beginning of startup.S, for more details.
20208 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
20209 compilation mechanism.
20210 (pupa_chainloader_real_boot): Likewise.
20211 (pupa_biosdisk_rw_int13_extensions): Likewise.
20212 (pupa_biosdisk_rw_standard): Likewise.
20213 (pupa_biosdisk_check_int13_extensions): Likewise.
20214 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
20215 (pupa_biosdisk_get_diskinfo_standard): Likewise.
20216 (pupa_get_memsize): Likewise.
20217 (pupa_get_mmap_entry): Likewise.
20218 (pupa_console_putchar): Likewise.
20219 (pupa_console_setcursor): Likewise.
20220 (pupa_getrtsecs): Use pushl instead of push.
20222 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
20223 memory instead of the stack for a mmap entry, because some
20224 BIOSes may ignore the maximum size and overflow.
20226 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
20228 * genmk.rb (PModule#rule): Compile automatically generated
20229 sources with module-specific CFLAGS as well as other sources.
20231 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20233 * configure.ac: Check ld.
20234 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
20235 respectively, before checking endianness and sizes.
20237 * Makefile.in (LD): New variable.
20239 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20241 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
20243 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20245 * Changelog: New file.