1 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
3 Fix $srcdir != $objdir build.
5 * Makefile.in (po/%.po): Rewrite as ...
6 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
8 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
10 Fix GNU/Hurd grub-install crash.
11 * util/grub-probe.c (probe): Try to access `path' only when it is not
14 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
16 Correct module naming.
18 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
19 (GRUB_MOD_INIT(efi_uga)): ... to this
20 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
21 (GRUB_MOD_FINI(efi_uga)): ... to this
22 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
23 (GRUB_MOD_INIT(efi_gop)): ... to this
24 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
25 (GRUB_MOD_FINI(efi_gop)): ... to this
27 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
29 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
31 (usage): Translate `arg' strings using gettext().
32 Thanks to Jordi Mallach for the suggestion.
34 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
36 GOP support. Based on patch from Bean
37 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
39 * video/efi_gop.c: New file.
40 * include/grub/efi/graphics_output.h: Likewise.
41 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
42 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
44 * conf/x86_64-efi.rmk: Likewise.
46 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
48 Rename efi_fb to efi_uga.
50 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
52 (efi_fb_mod_SOURCES): Rename this ...
53 (efi_uga_mod_SOURCES): ... to this.
54 (efi_fb_mod_CFLAGS): Rename this ...
55 (efi_uga_mod_CFLAGS): ... to this.
56 (efi_fb_mod_LDFLAGS): Rename this ...
57 (efi_uga_mod_LDFLAGS): ... to this.
58 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
60 (efi_fb_mod_SOURCES): Rename this ...
61 (efi_uga_mod_SOURCES): ... to this.
62 (efi_fb_mod_CFLAGS): Rename this ...
63 (efi_uga_mod_CFLAGS): ... to this.
64 (efi_fb_mod_LDFLAGS): Rename this ...
65 (efi_uga_mod_LDFLAGS): ... to this.
66 * video/efi_fb.c: Move this ...
67 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
69 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
71 * po/README: New file. Explain our PO file workflow.
73 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
75 * po/ChangeLog: Remove. Move relevant entries back to ...
76 * ChangeLog: ... here.
77 * po/ca.po: Remove (now handled by TLP).
79 * po/zh_CN.po: Likewise.
80 * Makefile.in (LINGUAS): Initialize in a way that supports
83 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
85 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
86 reliing on po/LINGUAS.
87 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
90 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
92 * util/i386/efi/grub-mkimage.c: Include "progname.h".
93 (main): Use `program_name' instead of nonexistent `progname'.
95 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
97 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
98 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
100 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
102 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
104 * conf/i386-efi.rmk: Likewise.
105 * conf/i386-ieee1275.rmk: Likewise.
106 * conf/powerpc-ieee1275.rmk: Likewise.
107 * conf/sparc64-ieee1275.rmk: Likewise.
108 * conf/x86_64-efi.rmk: Likewise.
110 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
112 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
114 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
116 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
118 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
120 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
121 (grub_mkdevicemap_SOURCES): New variable.
122 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
123 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
124 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
125 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
126 (grub_mkdevicemap_SOURCES): Remove.
127 * conf/i386-efi.rmk: Likewise.
128 * conf/i386-ieee1275.rmk: Likewise.
129 * conf/i386-pc.rmk: Likewise.
130 * conf/powerpc-ieee1275.rmk: Likewise.
131 * conf/sparc64-ieee1275.rmk: Likewise.
132 * conf/x86_64-efi.rmk: Likewise.
133 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
134 (usage): Fix strings to use `program_name'.
135 (main): Initialize gettext.
136 * util/grub-editenv.c: Likewise.
137 * util/grub-emu.c: Likewise.
138 * util/grub-fstest.c: Likewise.
139 * util/grub-mkdevicemap.c: Likewise.
140 * util/grub-mkfont.c: Likewise.
141 * util/grub-mkrelpath.c: Likewise.
142 * util/grub-pe2elf.c: Likewise.
143 * util/grub-probe.c: Likewise.
144 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
145 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
146 * util/sparc64/ieee1275/grub-setup.c: Likewise.
148 * util/misc.c: Include `"progname.h"'.
149 (progname): Remove variable.
150 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
152 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
154 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
155 printf and print a newline after the menuentry header line.
156 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
158 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
160 autoconf >= 2.60 support $(localedir).
162 * INSTALL: Note that autoconf 2.60 is required.
163 * configure.ac (AC_PREREQ): Bump to 2.60.
164 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
165 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
167 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
169 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
172 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
174 * normal/main.c (grub_normal_read_line): Fix off-by-one
177 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
179 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
180 "parser.grub" in grub_command_execute() call.
182 2009-11-24 Carles Pina i Estany <carles@pina.cat>
184 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
185 * conf/i386-efi.rmk: Likewise.
186 * conf/i386-ieee1275.rmk: Likewise.
187 * conf/i386-pc.rmk: Likewise.
188 * conf/powerpc-ieee1275.rmk: Likewise.
189 * conf/sparc64-ieee1275.rmk: Likewise.
190 * conf/x86_64-efi.rmk: Likewise.
191 * gettext/gettex.c: Include <grub/i18n.h>.
192 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
194 * include/grub/i18n.h: ... to here
195 * include/grub/i18n.h: ... to here.
196 * kern/misc.c: Include <grub/i18n.h>
197 (grub_gettext_dummy): Move above user.
199 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
201 * util/Makefile.in (install-local): Convert a `for' into a normal
204 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
206 * autogen.sh: Add automake call.
207 * config.guess: Remove.
208 * config.sub: Likewise.
209 * install-sh: Likewise.
211 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
213 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
215 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
217 * util/Makefile.in (install-local): Convert a make `$(foreach)'
218 function to a normal shell `for'.
220 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
222 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
224 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
226 * util/grub-mkrelpath.c: New file.
227 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
228 (grub_mkrelpath_SOURCES): New variable.
229 * include/grub/util/misc.h: New function prototype.
230 * util/misc.c (make_system_path_relative_to_its_root): New function.
232 * util/grub-mkconfig_lib.in (bindir): New variable.
233 (grub_mkrelpath): Likewise.
234 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
236 * util/probe.c (probe): Make the file path relative to its root.
237 Change a info message to use the GRUB path. Enable again the
238 check if we can read the file with GRUB facilities.
240 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
243 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
245 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
248 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
250 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
253 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
255 * util/getroot.c (grub_util_is_dmraid): New function.
256 (grub_util_get_dev_abstraction): Treat dmraid and multipath
257 devices as normal ones, not as LVM.
259 2009-11-23 Carles Pina i Estany <carles@pina.cat>
261 * conf/common.rmk: Add grub-gettext_lib target and updates
262 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
264 * gettext/gettext.c: New file. (Reads mo files).
265 * include/grub/file.h (grub_file_pread): New prototype.
266 * include/grub/i18n.h (_): New prototype.
267 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
269 * kern/misc.c (grub_gettext_dummy): New function.
270 * normal/menu_text.c: Include <grub/i18n.h>.
271 * normal/menu_text.c (print_timeout): Gettexttize string.
272 * normal/menu_text.c (print_message): Gettexttize string.
273 * po/POTFILES: Add `normal/menu_text.c'.
274 * po/ca.po: Add new translations.
275 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
276 gettext module and defines locale_dir and lang in grub.cfg.
277 * NEWS: Add gettext support.
279 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
281 * util/hostdisk.c: Include `<grub/i18n.h>'.
282 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
283 (make_device_name): Rewrite using asprintf.
284 (convert_system_partition_to_system_disk): Replace 0 with NULL.
285 (find_system_device): If a device is not found, generate one just
286 by reusing the OS path name.
287 (read_device_map): Make it permissible for device.map not to exist.
289 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
291 * script/sh/execute.c: Move from here ...
292 * script/execute.c: ... to here. Update all users.
293 * script/sh/function.c: Move from here ...
294 * script/function.c: ... to here. Update all users.
295 * script/sh/lexer.c: Move from here ...
296 * script/lexer.c: ... to here. Update all users.
297 * script/sh/main.c: Move from here ...
298 * script/main.c: ... to here. Update all users.
299 * script/sh/parser.y: Move from here ...
300 * script/parser.y: ... to here. Update all users.
301 * script/sh/script.c: Move from here ...
302 * script/script.c: ... to here. Update all users.
304 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
306 * configure.ac: Detect all `emu' platforms. Define
307 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
308 --enable-grub-emu logic. Disable include/grub/machine
309 symlink on `emu' platforms.
311 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
312 * gensymlist.sh.in: Likewise.
314 * include/grub/i386/coreboot/machine.h: Remove file.
315 * include/grub/i386/efi/machine.h: Likewise.
316 * include/grub/i386/ieee1275/machine.h: Likewise.
317 * include/grub/i386/pc/machine.h: Likewise.
318 * include/grub/i386/qemu/machine.h: Likewise.
319 * include/grub/powerpc/ieee1275/machine.h: Likewise.
320 * include/grub/sparc64/ieee1275/machine.h: Likewise.
321 * include/grub/x86_64/efi/machine.h: Likewise.
323 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
324 * commands/halt.c: Likewise.
325 * commands/reboot.c: Likewise.
326 * include/grub/autoefi.h: Likewise.
327 * include/grub/i386/at_keyboard.h: Likewise.
328 * include/grub/i386/kernel.h: Likewise.
329 * include/grub/i386/loader.h: Likewise.
330 * include/grub/i386/pc/memory.h: Likewise.
331 * kern/dl.c: Likewise.
332 * kern/i386/coreboot/init.c: Likewise.
333 * loader/i386/bsd.c: Likewise.
334 * loader/i386/linux.c: Likewise.
335 * loader/multiboot_loader.c: Likewise.
336 * term/i386/pc/serial.c: Likewise.
337 * term/usb_keyboard.c: Likewise.
339 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
340 `<grub/machine/machine.h>'
341 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
342 * util/misc.c: Remove `<grub/machine/machine.h>' and
343 `<grub/machine/time.h>'.
345 * Makefile.in (enable_grub_emu): Remove variable.
346 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
348 * conf/any-emu.rmk: New file.
349 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
350 (grub_emu_init.c): Move from here ...
351 * conf/any-emu.rmk: ... to here.
353 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
354 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
355 * conf/any-emu.rmk: ... to here.
357 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
359 * include/grub/parser.h (grub_parser_register): Document need
361 * normal/main.c (grub_normal_read_line): Simplify prompt string.
362 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
365 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
367 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
369 * include/grub/i18n.h (N_): New macro.
370 * util/mkisofs/mkisofs.h: Likewise.
371 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
373 (usage): Use gettext() to translate help strings when printing them.
375 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
377 Based on patch from Bean
378 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
380 * video/efi_fb.c: New file.
381 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
382 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
384 * conf/x86_64-efi.rmk: Likewise.
386 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
388 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
389 * util/i386/pc/grub-setup.c: Likewise.
391 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
393 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
395 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
396 file_get_storage_info to implement grub_guess_root_device.
398 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
400 * Makefile.in (target): Use make's builtin $(shell) function
401 instead of calling directly $(SHELL) to create the locale directories,
402 inside the $(foreach) function.
404 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
406 * util/grub-mkrescue.in: Print an error and usage if output option
409 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
411 Patch from Loïc Minier <loic.minier@ubuntu.com>.
412 * util/grub.d/30_os-prober.in: Cope with Linux entries where
413 root and /boot are on different devices.
415 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
417 Fix build for srcdir != objdir.
419 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
420 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
422 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
423 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
426 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
428 * util/grub-mkrescue.in: Use source directory direcly (without copiing
429 or hardlinking it). Remove -J option, Joliet is not compatible with
430 multiple source directories.
432 2009-11-21 Carles Pina i Estany <carles@pina.cat>
433 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
435 * util/grub-mkrescue.in: Recognize `--override-directory' option.
436 (process_input_dir): New function. Process an arbitrary input
438 Misc adjustments to support both "override mode" and system-wide mode.
440 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
442 * configure.ac (UNIFONT_BDF): Rename to ...
443 (FONT_SOURCE): ... this. Update all users.
445 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
447 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
448 to the list of unifont files to look for.
450 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
452 Patch from Joe Auricchio <jauricchio@gmail.com>
453 * commands/minicmd.c (grub_mini_cmd_clear): New function.
454 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
455 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
457 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
459 * Makefile.in (install-local): Add a missing backslash.
461 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
463 * include/grub/x86_64/io.h: New file.
465 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
467 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
468 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
469 Include `"progname.h"'.
470 (main): Initialize gettext.
471 * util/i386/pc/grub-setup.c: Gettexttize.
472 * util/i386/pc/grub-mkimage.c: Likewise.
474 * Makefile.in (po/*.po): Redefine as ...
475 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
477 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
479 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
481 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
482 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
483 (program_name): Remove.
484 (main): Initialize gettext support.
485 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
486 Include `<libintl.h>'.
489 * util/mkisofs/eltorito.c: Gettexttize.
490 * util/mkisofs/joliet.c: Likewise.
491 * util/mkisofs/mkisofs.c: Likewise.
492 * util/mkisofs/multi.c: Likewise.
493 * util/mkisofs/rock.c: Likewise.
494 * util/mkisofs/tree.c: Likewise.
495 * util/mkisofs/write.c: Likewise.
497 * po/POTFILES: Update with new files.
499 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
501 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
502 * util/mkisofs/iso9660.h: Likewise.
503 * util/mkisofs/joliet.c: Likewise.
504 * util/mkisofs/mkisofs.c: Likewise.
505 * util/mkisofs/mkisofs.h: Likewise.
506 * util/mkisofs/rock.c: Likewise.
507 * util/mkisofs/tree.c: Likewise.
508 * util/mkisofs/write.c: Likewise.
510 * util/mkisofs/eltorito.c (rcsid): Remove.
511 * util/mkisofs/hash.c: Likewise.
512 * util/mkisofs/joliet.c: Likewise.
513 * util/mkisofs/name.c: Likewise.
514 * util/mkisofs/rock.c: Likewise.
515 * util/mkisofs/tree.c: Likewise.
516 * util/mkisofs/write.c: Likewise.
518 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
520 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
521 instead of static allocation.
522 * util/mkisofs/match.h: Likewise.
524 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
526 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
527 and `util/grub.d/10_linux.in'.
528 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
529 translatable Shell files.
531 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
533 * Makefile.in ($(srcdir)/aclocal.m4): New target.
535 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
537 * INSTALL: Document Automake is needed for bootstrap.
538 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
539 * util/grub.d/10_kfreebsd.in (bindir): New variable.
540 Add gettext initialization.
541 (kfreebsd_entry): Make menuentry output translatable.
543 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
545 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
546 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
547 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
548 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
549 (LINGUAS): Auto-generate using `po/LINGUAS'.
550 * po/LINGUAS: New file.
552 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
554 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
556 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
557 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
558 bindtextdomain() calls for gettext initialization.
560 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
562 * gnulib/progname.c: New file (imported from Gnulib).
563 * gnulib/progname.h: Likewise.
564 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
565 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
566 (usage): Replace `progname' with `program_name'.
567 (main): Use set_program_name() for program name initialization.
569 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
571 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
573 * Makefile.in (CPPFLAGS): ... to here.
575 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
577 * aclocal.m4: Move from here ...
578 * acinclude.m4: ... to here.
579 * autogen.sh: Add call to `aclocal'.
580 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
582 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
584 * Makefile.in (CLEANFILES): Add `po/*.mo'.
585 (LINGUAS): New variable.
586 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
587 (install-local): Install MO files.
588 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
589 * include/grub/i18n.h: New file.
590 * po/POTFILES: New file.
591 * po/ca.po: New file.
592 * util/grub.d/10_linux.in (bindir): New variable.
593 Add gettext initialization.
594 (linux_entry): Make menuentry output translatable.
595 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
596 (usage): Make --help output translatable.
597 (main): Initialize gettext.
599 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
601 * import_gcry.py: New file (written by Vladimir with minor
603 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
605 * INSTALL: Document that Python is required for bootstrap.
607 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
609 Import ciphers from libgcrypt 1.4.4.
611 * lib/libgcrypt/cipher/ChangeLog
612 * lib/libgcrypt/cipher/ac.c
613 * lib/libgcrypt/cipher/arcfour.c
614 * lib/libgcrypt/cipher/bithelp.h
615 * lib/libgcrypt/cipher/blowfish.c
616 * lib/libgcrypt/cipher/camellia-glue.c
617 * lib/libgcrypt/cipher/camellia.c
618 * lib/libgcrypt/cipher/camellia.h
619 * lib/libgcrypt/cipher/cast5.c
620 * lib/libgcrypt/cipher/cipher.c
621 * lib/libgcrypt/cipher/crc.c
622 * lib/libgcrypt/cipher/des.c
623 * lib/libgcrypt/cipher/dsa.c
624 * lib/libgcrypt/cipher/ecc.c
625 * lib/libgcrypt/cipher/elgamal.c
626 * lib/libgcrypt/cipher/hash-common.c
627 * lib/libgcrypt/cipher/hash-common.h
628 * lib/libgcrypt/cipher/hmac-tests.c
629 * lib/libgcrypt/cipher/md.c
630 * lib/libgcrypt/cipher/md4.c
631 * lib/libgcrypt/cipher/md5.c
632 * lib/libgcrypt/cipher/primegen.c
633 * lib/libgcrypt/cipher/pubkey.c
634 * lib/libgcrypt/cipher/rfc2268.c
635 * lib/libgcrypt/cipher/rijndael-tables.h
636 * lib/libgcrypt/cipher/rijndael.c
637 * lib/libgcrypt/cipher/rmd.h
638 * lib/libgcrypt/cipher/rmd160.c
639 * lib/libgcrypt/cipher/rsa.c
640 * lib/libgcrypt/cipher/seed.c
641 * lib/libgcrypt/cipher/serpent.c
642 * lib/libgcrypt/cipher/sha1.c
643 * lib/libgcrypt/cipher/sha256.c
644 * lib/libgcrypt/cipher/sha512.c
645 * lib/libgcrypt/cipher/tiger.c
646 * lib/libgcrypt/cipher/twofish.c
647 * lib/libgcrypt/cipher/whirlpool.c
649 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
651 Fix build for systems without error().
653 * gnulib/error.c: New file (imported from Gnulib).
654 * gnulib/error.h: Likewise.
655 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
656 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
657 (this variable is now used by error()).
659 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
661 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
662 instead of relying that char is signed.
664 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
666 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
667 blocksize different from specified.
668 (grub_pxefs_read): Likewise.
670 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
672 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
674 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
675 (grub_ata_readwrite): Likewise. Update 2 format strings.
676 (grub_atapi_read): Likewise.
678 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
679 * conf/i386.rmk (pkglib_MODULES): ... to here ...
680 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
681 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
682 (ata_mod_LDFLAGS): Move from here ...
683 * conf/i386.rmk: ... to here ...
684 * conf/x86_64-efi.rmk: ... and here.
685 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
686 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
688 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
690 Relicense multiboot.h, with RMS' blessing.
692 * include/multiboot.h: Change to X11 license.
694 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
696 Support --version in grub-mkisofs.
698 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
699 (OPTION_VERSION): New macro.
700 (ld_options): Recognize --version.
701 (usage): Move `program_name' from here ...
702 (program_name): ... to here. Add `static' qualifier.
703 (main): Recognize `OPTION_VERSION'.
705 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
707 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
708 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
710 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
712 Fix help2man generation for mkisofs.
714 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
715 (usage): Send output to stdout (rather than stderr).
717 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
719 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
720 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
721 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
722 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
723 (bin_SCRIPTS): Add `grub-mkfloppy'.
724 (grub_mkfloppy_SOURCES): New variable.
726 * util/grub-mkrescue.in: New file.
727 * util/i386/pc/grub-mkfloppy.in: New file.
729 * util/i386/coreboot/grub-mkrescue.in: Remove.
730 * util/i386/pc/grub-mkrescue.in: Remove.
732 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
734 * include/grub/multiboot.h (struct grub_multiboot_header): Move
736 * include/multiboot.h (struct multiboot_header): ... to here. Update
738 * include/grub/multiboot.h (struct grub_multiboot_info): Move
740 * include/multiboot.h (struct multiboot_info): ... to here. Update
742 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
744 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
746 * include/grub/multiboot.h (struct grub_mod_list): Move
748 * include/multiboot.h (struct multiboot_mod_list): ... to here.
751 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
753 * include/multiboot2.h (multiboot_word): Rename from this ...
754 (multiboot2_word): ... to this. Update all users.
755 (multiboot_header): Rename from this ...
756 (multiboot2_header): ... to this. Update all users.
757 (multiboot_tag_header): Rename from this ...
758 (multiboot2_tag_header): ... to this. Update all users.
759 (multiboot_tag_start): Rename from this ...
760 (multiboot2_tag_start): ... to this. Update all users.
761 (multiboot_tag_name): Rename from this ...
762 (multiboot2_tag_name): ... to this. Update all users.
763 (multiboot_tag_module): Rename from this ...
764 (multiboot2_tag_module): ... to this. Update all users.
765 (multiboot_tag_memory): Rename from this ...
766 (multiboot2_tag_memory): ... to this. Update all users.
767 (multiboot_tag_unused): Rename from this ...
768 (multiboot2_tag_unused): ... to this. Update all users.
769 (multiboot_tag_end): Rename from this ...
770 (multiboot2_tag_end): ... to this. Update all users.
772 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
774 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
775 this platform we should support Multiboot1 first.
777 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
778 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
779 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
781 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
783 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
784 of write calls (converting them to fwrite() if they aren't already).
785 (get_torito_desc): Likewise.
786 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
788 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
790 * util/i386/pc/grub-install.in: Move from here ...
791 * util/grub-install.in: ... to here. Update all users.
793 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
795 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
797 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
799 Support for El Torito without floppy emulation.
801 * util/mkisofs/eltorito.c: Include `<errno.h>'.
802 (init_boot_catalog): Improve error handling.
803 (get_torito_desc): Don't use floppy emulation unless requested by
804 user. Patch boot information table when requested via
806 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
807 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
808 (use_boot_info_table): New variables.
809 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
810 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
811 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
812 `--eltorito-emul-floppy'.
813 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
814 and `OPTION_ELTORITO_EMUL_FLOPPY'.
815 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
816 (use_boot_info_table, get_731): New prototypes.
817 * util/mkisofs/write.c (get_731): New function.
819 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
821 Fix the generation of the man page.
823 * util/pc/i386/grub-install.in: Source
824 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
826 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
828 Large file support for grub-mkisofs.
830 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
831 * util/mkisofs/mkisofs.c (next_extent, last_extent)
832 (session_start): Upgrade type to `uint64_t'. Update all users.
833 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
834 (struct directory_entry): Upgrade type of `starting_block' and
835 `size' to `uint64_t'. Update all users.
836 (struct deferred): Remove unused structure.
837 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
839 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
840 file is larger than `UINT32_MAX'.
841 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
842 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
844 (struct deferred_write): Upgrade type of `extent' and `size' to
845 `uint64_t'. Update all users.
846 (last_extent_written): Upgrade type to `uint64_t'. Update all
848 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
849 Update all users. Upgrade type of `remain' to `int64_t' and
850 `use' to `size_t'. Use error() to handle fread() errors.
851 (write_files): Rely on write_one_file() rather than calling
854 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
856 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
858 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
860 * util/mkisofs/fnmatch.c: Remove.
861 * util/mkisofs/getopt1.c: Likewise.
862 * util/mkisofs/getopt.c: Likewise.
863 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
864 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
865 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
866 `gnulib/getopt1.c' and `gnulib/getopt.c'.
867 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
869 * configure.ac: Detect `mingw32msvc' host_os.
870 Check for lstat(), getuid() and getgid().
872 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
873 instances of `u_char' with `uint8_t'.
875 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
876 [!HAVE_GETUID] (getuid): New function (stub).
877 [!HAVE_GETGID] (getgid): Likewise.
878 [!HAVE_LSTAT] (lstat): Likewise.
879 [!S_IROTH] (S_IROTH): New macro (dummy).
880 [!S_IRGRP] (S_IRGRP): Likewise.
882 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
884 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
885 conditional expression).
887 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
891 * gnulib/fnmatch.c: New file.
892 * gnulib/fnmatch.h: Likewise.
893 * gnulib/fnmatch_loop.c: Likewise.
894 * gnulib/getopt.c: Likewise.
895 * gnulib/getopt.h: Likewise.
896 * gnulib/getopt1.c: Likewise.
897 * gnulib/getopt_int.h: Likewise.
898 * gnulib/gettext.h: Likewise.
900 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
902 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
903 * normal/handler.c (read_handler_list): Likewise.
905 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
909 * kern/command.c (grub_register_command_prio): Use
910 grub_zalloc() instead of explicitly zeroing data.
911 * kern/list.c: Include `<grub/mm.h>'.
912 (grub_named_list_find): Replace `0' with `NULL'.
913 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
914 (fs_module_list): Change type to `grub_named_list_t'. Update all
916 * normal/dyncmd.c (read_command_list): Add space between function
917 call and parenthesis.
918 * normal/handler.c (read_handler_list): Likewise.
920 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
922 * normal/auth.c (punishment_delay): Moved from here ...
923 (grub_auth_strcmp): ... to here (inside function).
925 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
927 * include/grub/list.h (struct grub_named_list): Remove `const'
928 qualifier from `name'.
929 (struct grub_prio_list): Likewise.
931 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
933 * normal/auth.c: Include `<grub/time.h>'.
934 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
936 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
938 * normal/auth.c (punishment_delay): New variable.
939 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
940 (grub_auth_check_authentication): Punish failed login attempts with
941 an incremental (2^N) delay.
943 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
945 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
948 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
950 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
952 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
954 * util/i386/coreboot/grub-mkrescue.in: New file.
955 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
958 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
959 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
960 * configure.ac: Add header and function checks to satisfy grub-mkisofs
962 * util/mkisofs/defaults.h: New file.
963 * util/mkisofs/eltorito.c: Likewise.
964 * util/mkisofs/exclude.h: Likewise.
965 * util/mkisofs/fnmatch.c: Likewise.
966 * util/mkisofs/getopt.c: Likewise.
967 * util/mkisofs/getopt1.c: Likewise.
968 * util/mkisofs/hash.c: Likewise.
969 * util/mkisofs/include/fctldefs.h: Likewise.
970 * util/mkisofs/include/mconfig.h: Likewise.
971 * util/mkisofs/include/prototyp.h: Likewise.
972 * util/mkisofs/include/statdefs.h: Likewise.
973 * util/mkisofs/iso9660.h: Likewise.
974 * util/mkisofs/joliet.c: Likewise.
975 * util/mkisofs/match.c: Likewise.
976 * util/mkisofs/match.h: Likewise.
977 * util/mkisofs/mkisofs.c: Likewise.
978 * util/mkisofs/mkisofs.h: Likewise.
979 * util/mkisofs/multi.c: Likewise.
980 * util/mkisofs/name.c: Likewise.
981 * util/mkisofs/rock.c: Likewise.
982 * util/mkisofs/tree.c: Likewise.
983 * util/mkisofs/write.c: Likewise.
985 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
987 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
990 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
992 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
993 `grub-mkimage' (and use $0 when possible).
995 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
997 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
998 error message for excessively large memory map.
1000 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
1002 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
1005 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
1007 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
1008 message for coreboot users.
1010 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
1012 Fix build with GNU gold.
1014 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
1015 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
1016 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
1018 * aclocal.m4: Likewise.
1020 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
1022 * configure.ac (AC_PREREQ): Bump to 2.59d.
1023 * INSTALL: Make it more clear when Autoconf and Ruby are
1024 needed and when to run `./autogen.sh'.
1026 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1028 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
1031 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1033 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
1035 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1037 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
1038 giving it to GNU Mach.
1040 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1042 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
1043 GNU partition number to get internal GRUB partition number.
1045 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1047 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
1048 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
1050 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
1052 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
1053 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
1056 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
1058 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
1060 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
1064 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
1065 `-isystem=$(srcdir)/include'.
1067 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
1069 * util/i386/pc/grub-install.in: Remove hint that device.map should be
1070 checked (grub-install doesn't currently rely on it).
1072 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
1076 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
1077 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
1078 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
1079 * conf/i386-ieee1275.rmk: Likewise.
1080 * conf/i386-pc.rmk: Likewise.
1081 * conf/powerpc-ieee1275.rmk: Likewise.
1082 * conf/sparc64-ieee1275.rmk: Likewise.
1083 * conf/x86_64-efi.rmk: Likewise.
1085 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
1087 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
1089 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
1091 * include/grub/misc.h: Stop checking for APPLE_CC.
1093 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
1095 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
1096 doesn't cause an infinite call loop.
1098 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
1100 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
1103 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1105 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
1107 * Makefile.in: Likewise.
1109 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1111 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
1113 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1115 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
1117 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1119 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
1121 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1123 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
1125 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
1127 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1129 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
1130 in $(MAKEINFO) invocation. This makes it clear in output that
1131 errors are being ignored.
1133 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1135 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
1137 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
1138 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
1139 * conf/i386-ieee1275.rmk: Likewise.
1140 * conf/i386-pc.rmk: Likewise.
1141 * conf/powerpc-ieee1275.rmk: Likewise.
1142 * conf/sparc64-ieee1275.rmk: Likewise.
1143 * conf/x86_64-efi.rmk: Likewise.
1145 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
1147 * util/grub-editenv.c (main): If only a command is given, use
1148 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
1149 (usage): FILENAME is now optional and has a default.
1151 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
1153 Improve grub-mkconfig performance when there are several menu
1154 entries on a single filesystem.
1156 * util/grub.d/10_linux.in (linux_entry): Cache the output of
1157 prepare_grub_to_access_device.
1158 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
1159 * util/grub.d/30_os-prober.in: Likewise.
1161 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1163 * util/grub.d/10_freebsd.in: Remove.
1164 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
1165 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
1167 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1169 * docs/grub.cfg: Fix example usage of *BSD loaders.
1171 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1173 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
1174 grub_util_error() call.
1176 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1178 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
1179 `reserved_first_sector' member.
1180 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
1181 `reserved_first_sector' to 1.
1182 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
1183 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
1184 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
1185 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
1186 filesystems which begin at first sector.
1187 (options): New option --skip-fs-probe.
1188 (main): Handle --skip-fs-probe and pass it to setup().
1190 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1192 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
1193 (memset): Fix function prototype.
1195 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1196 2009-10-25 Vasily Averin <vvs@parallels.com>
1198 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
1199 `dirent.direntlen == 0'.
1201 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1203 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
1205 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
1207 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1209 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
1210 `__trampoline_setup' and `__ucmpdi2'.
1211 * include/grub/powerpc/libgcc.h: Only export symbols for functions
1212 that libgcc provides.
1214 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1216 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
1217 * include/grub/sparc64/libgcc.h (memset): Likewise.
1218 * include/grub/misc.h (memset, memcmp): New function prototypes.
1220 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1222 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
1224 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
1226 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1228 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
1229 * docs/grub.cfg: Compensate for recent change in multiboot
1230 loader (since 2009-08-14 it won't pass filename to payload).
1231 * util/grub.d/10_hurd.in: Likewise.
1233 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
1235 * config.guess: Update to latest version from config git
1237 * config.sub: Likewise.
1239 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
1241 Fix build on sparc64.
1243 * configure.ac: Perform checks for libgcc symbols before
1244 adding `-nostdlib' to LDFLAGS.
1246 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1248 Let user specify OpenBSD root device.
1250 * loader/i386/bsd.c (openbsd_root): New variable.
1251 (openbsd_opts): New option 'root'.
1252 (OPENBSD_ROOT_ARG): New macro.
1253 (grub_openbsd_boot): Use 'openbsd_root'.
1254 (grub_cmd_openbsd): Fill 'openbsd_root'.
1256 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
1258 * NEWS: Misc adjustments.
1260 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1262 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
1264 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
1266 * configure.ac: Bump version to 1.97.
1268 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
1270 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
1271 -mno-3dnow on x86 architectures. Some toolchains enable these
1272 features by default, but they rely on registers that aren't enabled
1273 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
1275 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
1277 Make entry text a bit more readable.
1279 * util/grub.d/10_linux.in: Add `with' before `Linux'.
1281 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1283 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
1285 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1287 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
1290 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1292 * configure.ac: Add missing dollar.
1294 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1296 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
1298 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
1299 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
1301 * include/grub/sparc64/libgcc.h: Likewise. Use
1302 preprocessor conditionals.
1304 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
1306 * conf/common.rmk (grub-dumpbios): Remove rule.
1307 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
1308 * util/grub-dumpbios.in: Remove file.
1310 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
1312 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
1313 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
1315 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
1316 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
1319 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
1320 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
1321 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
1322 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
1325 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
1327 * term/tparm.c: Switch to GPLv3.
1329 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
1331 * include/grub/i386/cpuid.h: Add header protection.
1333 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
1335 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
1337 * include/grub/i386/cpuid.h: New file.
1338 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
1339 (has_longmode): Rename to ...
1340 (grub_cpuid_has_longmode): ... this. Update all users. Remove
1342 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
1343 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
1344 on a CPU that doesn't implement AMD64 instruction set.
1346 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
1348 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
1349 that version.texi is rebuilt on version number changes.
1351 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
1353 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
1356 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
1358 * util/i386/pc/grub-install.in: Source
1359 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
1360 that the --grub-probe option will work.
1361 * util/sparc64/ieee1275/grub-install.in: Likewise.
1363 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
1365 * configure.ac: Bump version to 1.97~beta4.
1367 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
1369 Resync grub-mkdevicemap in x86_64-efi.
1371 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
1372 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
1375 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
1377 * util/grub-editenv.c (create_envblk_file): Write new block with a
1378 .new suffix and then rename it into place, to ensure atomic
1381 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
1383 Do not automatically install headers.
1385 * Makefile.in (include_DATA): Remove. Update all users.
1387 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
1389 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
1390 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
1392 * util/osdetect.lua: Remove.
1393 * script/lua/lauxlib.c: Likewise.
1394 * script/lua/ldebug.c: Likewise.
1395 * script/lua/grub_main.c: Likewise.
1396 * script/lua/lauxlib.h: Likewise.
1397 * script/lua/ldebug.h: Likewise.
1398 * script/lua/ltablib.c: Likewise.
1399 * script/lua/liolib.c: Likewise.
1400 * script/lua/lstrlib.c: Likewise.
1401 * script/lua/lualib.h: Likewise.
1402 * script/lua/ldo.c: Likewise.
1403 * script/lua/ldump.c: Likewise.
1404 * script/lua/ldo.h: Likewise.
1405 * script/lua/loslib.c: Likewise.
1406 * script/lua/lundump.c: Likewise.
1407 * script/lua/grub_lib.c: Likewise.
1408 * script/lua/ldblib.c: Likewise.
1409 * script/lua/lundump.h: Likewise.
1410 * script/lua/lmem.c: Likewise.
1411 * script/lua/grub_lib.h: Likewise.
1412 * script/lua/lmathlib.c: Likewise.
1413 * script/lua/lstate.c: Likewise.
1414 * script/lua/ltm.c: Likewise.
1415 * script/lua/lvm.c: Likewise.
1416 * script/lua/lmem.h: Likewise.
1417 * script/lua/lstate.h: Likewise.
1418 * script/lua/ltm.h: Likewise.
1419 * script/lua/ltable.c: Likewise.
1420 * script/lua/lvm.h: Likewise.
1421 * script/lua/llex.c: Likewise.
1422 * script/lua/lgc.c: Likewise.
1423 * script/lua/grub_lua.h: Likewise.
1424 * script/lua/loadlib.c: Likewise.
1425 * script/lua/lfunc.c: Likewise.
1426 * script/lua/lopcodes.c: Likewise.
1427 * script/lua/lparser.c: Likewise.
1428 * script/lua/ltable.h: Likewise.
1429 * script/lua/llex.h: Likewise.
1430 * script/lua/lgc.h: Likewise.
1431 * script/lua/lfunc.h: Likewise.
1432 * script/lua/lbaselib.c: Likewise.
1433 * script/lua/lopcodes.h: Likewise.
1434 * script/lua/lparser.h: Likewise.
1435 * script/lua/lzio.c: Likewise.
1436 * script/lua/linit.c: Likewise.
1437 * script/lua/lobject.c: Likewise.
1438 * script/lua/llimits.h: Likewise.
1439 * script/lua/lstring.c: Likewise.
1440 * script/lua/lzio.h: Likewise.
1441 * script/lua/lapi.c: Likewise.
1442 * script/lua/lcode.c: Likewise.
1443 * script/lua/lua.h: Likewise.
1444 * script/lua/lobject.h: Likewise.
1445 * script/lua/lstring.h: Likewise.
1446 * script/lua/lapi.h: Likewise.
1447 * script/lua/lcode.h: Likewise.
1448 * script/lua/luaconf.h: Likewise.
1450 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
1452 * docs/grub.texi (Command-line and menu entry commands): Document
1453 date and echo commands.
1455 2009-09-24 Pavel Roskin <proski@gnu.org>
1457 * include/grub/kernel.h (struct grub_module_header): Remove
1458 `grub_module_header_types'. Make `type' unsigned. Make `size'
1459 32-bit on all platforms.
1460 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
1461 8-bit field. Use grub_host_to_target32() for `size'.
1462 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
1463 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
1464 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
1466 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
1468 Fix "lost keypress" bug in at_keyboard.
1470 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
1471 Checks for readyness of input buffer (without flushing it).
1472 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
1473 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
1475 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
1477 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
1478 size check within GRUB_MACHINE_PCBIOS section.
1480 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
1482 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
1484 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
1485 KEYBOARD_ISREADY check.
1486 (grub_at_keyboard_checkkey): Rename to ...
1487 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
1488 Remove gratuitous cast.
1490 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
1492 * configure.ac: Call AC_PROG_MKDIR_P.
1493 * Makefile.in (docs/stamp-vti): Create docs directory. Create
1494 version.texi in $(builddir) rather than $(srcdir).
1495 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
1496 to makeinfo's @include search path.
1498 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
1500 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
1502 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
1504 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
1507 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
1509 Build info documentation. Some code borrowed from Automake.
1511 * configure.ac: Check for makeinfo.
1512 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
1513 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
1515 (MOSTLYCLEANFILES): Add vti.tmp.
1516 (docs/version.texi, docs/stamp-vti): Update automatically.
1517 (docs/grub.info): Build info documentation. Use --force and ignore
1519 (all-local): Add $(INFOS).
1520 (install-local): Install info files.
1521 (uninstall): Uninstall info files.
1522 * docs/version.texi: Remove from revision control. This file is
1523 automatically generated on build now.
1524 * gendistlist.sh: Add `*.info'.
1526 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
1528 * kern/term.c: Fix indentation.
1530 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
1532 * util/hostdisk.c: Fix a comment.
1534 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
1536 Fix regression introduced in r2539.
1538 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
1541 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
1543 * util/grub.d/30_os-prober.in: Don't throw away stderr from
1544 os-prober. Under normal operation, it does not print anything to
1545 stderr; if it does, we need to debug it, and throwing away stderr
1546 makes that excessively difficult.
1548 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
1550 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
1552 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
1554 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
1555 AC_LANG_PROGRAM from autoconf.
1556 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
1557 prototypes (fixes warning).
1559 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
1560 `--disable-werror' was used.
1562 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
1564 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
1565 uninitialized `lastaddr'.
1567 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1569 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
1571 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
1573 * commands/test.c (get_fileinfo): Return immediately if
1574 grub_fs_probe fails.
1576 2009-09-14 José MartÃnez <xosemp@gmail.com>
1578 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
1580 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
1582 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
1585 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
1587 * configure.ac: Remove --enable-grub-pe2elf. Only build
1588 grub-pe2elf when needed by the build system itself.
1589 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
1591 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
1593 * configure.ac: Bump version to 1.97~beta3.
1594 * docs/version.texi: Likewise.
1596 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
1598 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
1599 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
1601 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
1602 (grub_linux_setup_video): ... to here (with some adjustments).
1604 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
1606 Fix memory corruption issue (spotted by Colin Watson).
1608 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
1609 causing returned size to be stored in an incorrect memory location.
1610 Fix use of uninitialized value when storing the returned size.
1612 2009-09-12 Yves Blusseau <blusseau@zetam.org>
1614 Change clean rules to properly remove files
1616 * genmk.rb: add new clean rules
1617 * Makefile.in (clean): add the new targets
1618 (mostlyclean): likewise
1620 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
1622 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
1624 * fs/ntfs.c (init_file): Understand 64-bit sizes for
1627 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
1629 * configure.ac: Don't look for help2man when cross-compiling. Fixes
1632 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
1634 * util/grub-mkconfig.in: Make the created config mode 400 and
1635 print a warning if it fails.
1637 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
1639 * util/grub.d/40_custom.in: Ask user to type custom entries below
1640 comment, rather than below 'exec tail' line.
1642 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
1644 * util/grub.d/40_custom.in: Make sure that the explanatory text is
1645 visible in grub.cfg.
1647 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
1649 * util/grub.d/40_custom.in: Make it a little clearer how to use this
1652 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
1654 * docs/grub.cfg: Add an example menu entry for memtest86+.
1656 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
1658 * config.guess: Update to latest version from config git.
1659 * config.sub: Likewise.
1661 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
1663 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
1664 unknown-command case. Fixes bug #27320.
1666 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
1668 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
1669 `help' if the command exists.
1671 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
1673 * INSTALL: Require GCC 4.1.3 or later.
1675 2009-09-06 Yves Blusseau <blusseau@zetam.org>
1677 * Makefile.in (RMKFILES): add i386-qemu.rmk
1678 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
1679 $(srcdir)/stamp-h.in
1681 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
1683 * util/grub-probe.c (probe): Comment out buggy codepath, which
1684 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
1685 should be re-enabled after 1.97.
1687 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
1689 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
1692 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
1694 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
1695 unnecessary calls to grub_error.
1697 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
1699 * NEWS: Mention `keystatus' and Unicode fonts.
1701 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
1703 * configure.ac: Bump version to 1.97~beta2.
1704 * docs/version.texi: Likewise.
1706 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
1708 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
1709 containing unwind information in some cases where it previously did
1710 not. Use -fno-dwarf2-cfi-asm if available to restore the old
1711 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
1714 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
1716 Embedding loadenv module into grub-emu
1718 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
1720 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
1721 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
1722 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
1723 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
1724 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
1725 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
1727 2009-09-03 Magnus Granberg <zorry@ume.nu>
1729 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
1730 include -fPIE in the default specs.
1731 * configure.ac: Check if pie_possible is yes and add -fno-PIE
1734 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
1736 * INSTALL: Note that GNU Bison 2.3 or later is required.
1738 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
1740 * kern/i386/pc/startup.S: Fix typo.
1742 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1744 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
1747 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
1749 * docs/grub.texi (Naming convention): Describe one-based partition
1751 (Device syntax): Likewise.
1752 (File name syntax): Likewise.
1753 (Block list syntax): Likewise.
1754 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
1756 (File name syntax): Likewise.
1757 (Command-line and menu entry commands): Document acpi, blocklist,
1758 crc, export, insmod, keystatus, ls, set, and unset commands.
1760 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
1762 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
1763 to avoid implying that only one of --shift, --ctrl, or --alt may be
1766 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
1768 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
1769 rather than comparing against S_IFREG, which will almost never work.
1771 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
1773 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
1774 (write_blocklists): Likewise.
1776 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
1778 * script/lua/grub_lua.h (fputs): Supply a format string as the first
1779 argument to grub_printf.
1781 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
1783 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
1786 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
1788 * kern/file.c (grub_file_read): Spelling fix
1790 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
1792 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
1793 loading of headers in some cases.
1795 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
1797 * configure.ac: Bump version to 1.97~beta1.
1798 * docs/version.texi: Likewise.
1800 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
1802 * include/grub/i386/xnu.h: Add license header.
1803 include grub/err.h explicitly.
1805 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
1807 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
1808 to `ufs' in the vfs.root.mountfrom kernel parameter.
1810 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
1812 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
1814 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
1815 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
1817 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
1820 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1822 * kern/file.c (grub_file_read): Check offset.
1823 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
1824 * fs/jfs.c (grub_jfs_read_file): Likewise.
1825 * fs/ntfs.c (grub_ntfs_read): Likewise.
1826 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
1827 * fs/minix.c (grub_minix_read_file): Correct offset check.
1828 * fs/ufs.c (grub_ufs_read_file): Likewise.
1830 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
1832 * term/i386/pc/console.c (bios_data_area): Cast
1833 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
1835 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1837 1-bit optimised blitters.
1839 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
1841 (grub_video_fbblit_replace_24bit_1bit): Likewise.
1842 (grub_video_fbblit_replace_16bit_1bit): Likewise.
1843 (grub_video_fbblit_replace_8bit_1bit): Likewise.
1844 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
1845 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
1846 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
1847 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
1849 (grub_video_fbblit_replace_24bit_1bit): Likewise.
1850 (grub_video_fbblit_replace_16bit_1bit): Likewise.
1851 (grub_video_fbblit_replace_8bit_1bit): Likewise.
1852 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
1853 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
1854 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
1855 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
1857 * video/video.c (grub_video_get_blit_format): Return
1858 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
1860 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
1862 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
1863 the first argument to grub_printf.
1865 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
1866 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
1868 Add `getkeystatus' terminal method. Add a new `keystatus' command
1871 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
1872 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
1873 modifier key bitmasks.
1874 (struct grub_term_input): Add `getkeystatus' member.
1875 (grub_getkeystatus): Add prototype.
1876 * kern/term.c (grub_getkeystatus): New function.
1878 * include/grub/i386/pc/memory.h
1879 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
1880 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
1882 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
1883 (grub_console_term_input): Set `getkeystatus' member.
1884 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
1886 (grub_usb_keyboard_getreport): Likewise.
1887 (grub_usb_keyboard_checkkey): Likewise.
1888 (grub_usb_keyboard_getkeystatus): New function.
1889 (grub_usb_keyboard_term): Set `getkeystatus' member.
1891 * commands/keystatus.c: New file.
1892 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
1893 (keystatus_mod_SOURCES): New variable.
1894 (keystatus_mod_CFLAGS): Likewise.
1895 (keystatus_mod_LDFLAGS): Likewise.
1896 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
1897 commands/keystatus.c.
1898 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1899 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1900 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1901 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1902 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1903 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
1905 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1907 Split befs.mod and afs.mod into *_be.mod and *.mod
1909 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
1910 (grub_fstest_SOURCES): Likewise.
1911 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
1912 (afs_be_mod_SOURCES): New variable.
1913 (afs_be_mod_CFLAGS): Likewise.
1914 (afs_be_mod_LDFLAGS): Likewise.
1915 (befs_be_mod_SOURCES): Likewise.
1916 (befs_be_mod_CFLAGS): Likewise.
1917 (befs_be_mod_LDFLAGS): Likewise.
1918 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
1919 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1920 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1921 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
1922 (grub_emu_SOURCES): Likewise.
1923 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1924 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1925 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
1926 * fs/afs_be.c: New file.
1927 * fs/befs_be.c: New file.
1928 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
1929 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
1930 (U16): Replaced with ...
1931 (grub_afs_to_cpu16): ...this. All users updated.
1932 (U32): Replaced with ...
1933 (grub_afs_to_cpu32): ...this. All users updated.
1934 (U64): Replaced with ...
1935 (grub_afs_to_cpu64): ...this. All users updated.
1936 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
1937 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
1938 (grub_afs_validate_sblock): Check only one endianness.
1939 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
1940 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
1941 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
1942 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
1943 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
1944 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
1945 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
1946 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
1948 2009-08-26 Bean <bean123ch@gmail.com>
1950 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
1952 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
1953 (grub_xfs_inode_block): Change return type to grub_uint64_t.
1954 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
1956 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1958 NetBSD memory map support.
1960 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
1961 (grub_netbsd_btinfo_mmap_header): New structure.
1962 (grub_netbsd_btinfo_mmap_entry): Likewise.
1963 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
1965 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1967 Enable bsd.mod on coreboot.
1969 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
1970 (bsd_mod_SOURCES): New variable.
1971 (bsd_mod_CFLAGS): Likewise.
1972 (bsd_mod_LDFLAGS): Likewise.
1973 (bsd_mod_ASFLAGS): Likewise.
1974 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
1975 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
1977 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1979 Cleanup NetBSD root support.
1981 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
1982 grub_bsd_get_device.
1985 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
1987 * util/grub.d/00_header.in: Move check for the video backend of
1988 gfxterm from here ...
1989 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
1990 a suitable video backend.
1992 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1994 Fix breakage in grub-setup.
1996 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
1997 "msdos_partition_map".
1999 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
2001 Fix breakage in normal/auth.c.
2003 * normal/auth.c (grub_iswordseparator): New function.
2005 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
2007 Authentication support.
2009 * commands/password.c: New file.
2010 * conf/common.rmk (pkglib_MODULES): Add password.mod.
2011 (password_mod_SOURCES): New variable.
2012 (password_mod_CFLAGS): Likewise.
2013 (password_mod_LDFLAGS): Likewise.
2014 (normal_mod_SOURCES): Add normal/auth.c.
2015 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
2017 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
2018 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2019 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
2020 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2021 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2022 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
2023 * include/grub/auth.h: New file.
2024 * include/grub/err.h (grub_err_t): New enum value
2025 GRUB_ERR_ACCESS_DENIED.
2026 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
2028 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
2029 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
2031 * normal/auth.c: New file.
2032 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
2033 (grub_cmdline_run): Don't allow to go to command line without
2035 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
2036 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
2037 menuentry without superuser rights.
2038 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
2039 user isn't a superuser.
2041 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2043 Save space by inlining misc.c functions.
2045 * kern/misc.c (grub_iswordseparator): Made static.
2046 * kern/misc.c (grub_strcat): Moved from here ...
2047 * include/grub/misc.h (grub_strcat): ... here. Inlined.
2048 * kern/misc.c (grub_strncat): Moved from here ...
2049 * include/grub/misc.h (grub_strncat): ... here. Inlined.
2050 * kern/misc.c (grub_strcasecmp): Moved from here ...
2051 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
2052 * kern/misc.c (grub_strncasecmp): Moved from here ...
2053 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
2054 * kern/misc.c (grub_isalpha): Moved from here ...
2055 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
2056 * kern/misc.c (grub_isdigit): Moved from here ...
2057 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
2058 * kern/misc.c (grub_isgraph): Moved from here ...
2059 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
2060 * kern/misc.c (grub_tolower): Moved from here ...
2061 * include/grub/misc.h (grub_tolower): ... here. Inlined.
2063 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2065 * script/sh/function.c (grub_script_function_find): Cut error message
2066 not to flood terminal.
2067 * script/sh/lexer.c (grub_script_yylex): Remove command line length
2069 * script/sh/script.c (grub_script_arg_add): Duplicate string.
2071 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
2073 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
2074 `report' grub_uint8_t *.
2075 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
2076 Use a 50-millisecond timeout rather than just repeating
2077 grub_usb_keyboard_getreport 50 times.
2078 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
2080 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2082 Rename *_partition_map to part_*
2084 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
2085 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
2086 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
2087 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
2089 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
2091 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
2092 * util/grub-probe.c (probe_partmap): Don't transform partition name
2095 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2097 Fix OpenBSD and NetBSD support.
2099 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
2100 memory address conflict.
2101 (OPENBSD_MMAP_ACPI): New definition.
2102 (OPENBSD_MMAP_NVS): Likewise.
2103 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
2104 and OPENBSD_MMAP_NVS.
2105 Add memory map terminator
2106 Explicit cast when calling grub_unix_real_boot.
2107 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
2109 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2111 Let user specify NetBSD root device.
2113 * loader/i386/bsd.c (netbsd_root): New variable.
2114 (netbsd_opts): New option 'root'.
2115 (NETBSD_ROOT_ARG): New macro.
2116 (grub_netbsd_boot): Use 'netbsd_root'.
2117 (grub_bsd_unload): Free 'netbsd_root'.
2118 (grub_cmd_netbsd): Fill 'netbsd_root'.
2120 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2122 Support for 64-bit NetBSD.
2124 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
2125 point when booting non-FreeBSD.
2127 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2129 Support --no-smp and --no-acpi for NetBSD.
2131 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
2132 (NETBSD_AB_NOACPI): Likewise.
2133 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
2134 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
2136 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2138 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
2140 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
2141 errors. Call grub_error when needed.
2143 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2145 * commands/search.c (search_fs): Try searching without autoload first.
2146 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
2147 filesystem module explicitly for faster booting.
2149 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
2151 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
2153 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
2155 * util/grub.d/30_os-prober.in: Disable os-prober if
2156 `GRUB_DISABLE_OS_PROBER' was set to true.
2158 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
2160 * partmap/pc.c: Rename to ...
2161 * partmap/msdos.c: ... this. Update all users.
2162 (grub_pc_partition_map): Rename to ...
2163 (grub_msdos_partition_map): ... this. Update all users.
2165 * parttool/pcpart.c: Rename to ...
2166 * parttool/msdospart.c: ... this. Update all users.
2168 * include/grub/pc_partition.h: Rename to ...
2169 * include/grub/msdos_partition.h: ... this. Update all users.
2170 (grub_pc_partition_bsd_entry): Rename to ...
2171 (grub_msdos_partition_bsd_entry): ... this. Update all users.
2172 (grub_pc_partition_disk_label): Rename to ...
2173 (grub_msdos_partition_disk_label): ... this. Update all users.
2174 (grub_pc_partition_entry): Rename to ...
2175 (grub_msdos_partition_entry): ... this. Update all users.
2176 (grub_pc_partition_mbr): Rename to ...
2177 (grub_msdos_partition_mbr): ... this. Update all users.
2178 (grub_pc_partition): Rename to ...
2179 (grub_msdos_partition): ... this. Update all users.
2180 (grub_pc_partition_is_empty): Rename to ...
2181 (grub_msdos_partition_is_empty): ... this. Update all users.
2182 (grub_pc_partition_is_extended): Rename to ...
2183 (grub_msdos_partition_is_extended): ... this. Update all users.
2184 (grub_pc_partition_is_bsd): Rename to ...
2185 (grub_msdos_partition_is_bsd): ... this. Update all users.
2187 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
2188 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
2189 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
2190 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
2191 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
2192 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
2193 (gpt_mod_LDFLAGS): Rename to ...
2194 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
2195 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
2196 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
2197 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
2198 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
2199 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
2200 (part_gpt_mod_LDFLAGS): ... this.
2201 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
2202 `pcpart.mod' to `msdospart.mod'.
2203 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
2205 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
2206 (msdospart_mod_LDFLAGS): ... this.
2208 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2210 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
2211 (openbsd_opts): Likewise.
2212 (netbsd_opts): Likewise.
2213 (freebsd_flags): Added 0 terminator.
2214 (openbsd_flags): Likewise.
2215 (netbsd_flags): Likewise.
2216 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
2217 (grub_cmd_freebsd): Transformed into extended command.
2218 (grub_cmd_openbsd): Likewise.
2219 (grub_cmd_netbsd): Likewise.
2220 (cmd_freebsd): Changed type to grub_extcmd_t.
2221 (cmd_openbsd): Likewise.
2222 (cmd_netbsd): Likewise.
2223 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
2224 grub_cmd_openbsd as extended commands.
2225 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
2226 cmd_netbsd and cmd_openbsd
2228 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2230 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
2232 2009-08-21 Pavel Roskin <proski@gnu.org>
2234 * Makefile.in (install-local): When checking if a file is in the
2235 build directory, use "test -e" to detect symlinks.
2237 * Makefile.in (install-local): Remove all files in
2238 $(DESTDIR)$(pkglibdir) before installing new files there.
2240 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
2242 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
2245 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
2247 * util/grub-mkconfig.in: Don't use gfxterm by default if not
2248 explicitly specified by the user.
2250 2009-08-18 Pavel Roskin <proski@gnu.org>
2252 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
2253 grub_uint8_t pointer for data.
2254 * include/grub/fbutil.h (struct grub_video_fbblit_info):
2256 * video/fb/fbutil.c: Remove unnecessary casts.
2258 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
2262 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
2263 (grub_vbe_set_video_mode): Save active mode info
2264 only after setting the mode.
2265 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
2268 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
2270 Rename variables for clarity.
2272 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
2273 (active_vbe_mode_info): ... this. All users updated.
2274 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
2276 (initial_mode): Rename to ...
2277 (initial_vbe_mode): ... this. All users updated.
2278 (mode_in_use): Rename to ..
2279 (vbe_mode_in_use): ... this. All users updated.
2280 (mode_list): Rename to ..
2281 (vbe_mode_list): ... this. All users updated.
2282 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
2283 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
2284 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
2285 'mode_list_size' to 'vbe_mode_list_size'.
2286 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
2287 'best_mode_info' to 'best_vbe_mode_info' and
2288 'best_mode' to 'best_vbe_mode'
2290 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
2292 Remove duplicate grub_video_fb_get_video_ptr.
2294 * include/grub/fbutil.h (get_data_ptr): Rename to ...
2295 (grub_video_fb_get_video_ptr): ... this.
2296 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
2297 * video/fb/fbutil.c: Add comment about addressing.
2298 (get_data_ptr): Rename to ...
2299 (grub_video_fb_get_video_ptr): ... this. All users updated.
2300 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
2302 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
2304 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
2305 grub_dprintf() that was just added.
2307 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
2309 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
2310 (DEFAULT_VIDEO_MODE): Remove macros.
2311 (grub_linux_boot): Remove assumption that Linux has FB support,
2312 and use "text" as default video mode.
2314 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
2316 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
2318 * fs/fat.c (grub_fat_read_data): Likewise.
2320 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2322 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
2324 (grub_module): Likewise.
2326 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2328 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
2329 mbi->cmdline but free playground.
2331 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2333 Handle group offset on UFS1.
2335 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
2336 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
2338 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2340 Split ufs.mod into ufs1.mod and ufs2.mod.
2342 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
2343 (grub_fstest_SOURCES): Likewise.
2344 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
2345 (ufs_mod_SOURCES): Remove.
2346 (ufs_mod_CFLAGS): Likewise.
2347 (ufs_mod_LDFLAGS): Likewise.
2348 (ufs1_mod_SOURCES): New variable.
2349 (ufs1_mod_CFLAGS): Likewise.
2350 (ufs1_mod_LDFLAGS): Likewise.
2351 (ufs2_mod_SOURCES): New variable.
2352 (ufs2_mod_CFLAGS): Likewise.
2353 (ufs2_mod_LDFLAGS): Likewise.
2354 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
2355 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
2357 (grub_emu_SOURCES): Likewise.
2358 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2359 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
2360 (grub_setup_SOURCES): Likewise.
2361 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2362 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
2363 (grub_setup_SOURCES): Likewise.
2364 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
2366 * fs/ufs2.c: New file.
2367 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
2369 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2373 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
2374 subsystem at the end.
2375 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
2376 (video_fb_mod_SOURCES): New variable.
2377 (video_fb_mod_CFLAGS): Likewise.
2378 (video_fb_mod_LDFLAGS): Likewise.
2379 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
2380 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
2381 * video/i386/pc/vbeblit.c: Moved from here ...
2382 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
2383 * video/i386/pc/vbefill.c: Moved from here ...
2384 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
2385 * video/i386/pc/vbeutil.c: Moved from here ...
2386 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
2387 * include/grub/i386/pc/vbeblit.h: Moved from here ...
2388 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
2389 * include/grub/i386/pc/vbefill.h: Moved from here ...
2390 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
2391 * include/grub/i386/pc/vbeutil.h: Moved from here ...
2392 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
2393 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
2394 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
2395 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
2396 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
2397 (grub_video_adapter): Added 'get_info_and_fini'.
2398 (grub_video_get_info_and_fini): New prototype.
2399 (grub_video_set_mode): make modestring const char *.
2400 * loader/i386/linux.c (grub_linux_setup_video): Use
2401 grub_video_get_info_and_fini.
2402 (grub_linux_boot): Move modesetting just before booting.
2403 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
2404 grub_video_get_info_and_fini.
2405 * video/i386/pc/vbe.c: Moved framebuffer part ...
2406 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
2407 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
2408 grub_video_fbstd_colors and grub_video_fb_set_palette.
2409 (grub_video_vbe_init): Clear 'framebuffer' variable and use
2411 (grub_video_vbe_fini): Use grub_video_fb_fini.
2412 (grub_video_vbe_setup): Use framebuffer.render_target instead of
2413 render_target and use grub_video_fb_set_active_render_target and
2414 grub_video_fb_set_palette.
2415 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
2416 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
2417 (grub_video_vbe_adapter): Use framebuffer.
2418 * video/video.c (grub_video_get_info_and_fini): New function.
2419 (grub_video_set_mode): Make modestring const char *.
2420 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
2421 values are already initialised.
2423 2009-08-14 Pavel Roskin <proski@gnu.org>
2425 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
2427 * boot/i386/pc/diskboot.S: Likewise.
2428 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
2429 sectors allow compilation on MacOSX.
2430 * conf/i386-pc.rmk: Enable unconditional compilation of
2433 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
2435 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
2436 * util/grub.d/00_header.in: Enter interruptible sleep if
2437 GRUB_HIDDEN_TIMEOUT is set.
2439 2009-08-13 Yves Blusseau <blusseau@zetam.org>
2441 * include/grub/symbol.h: Add the LOCAL macro.
2442 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
2445 2009-08-13 Pavel Roskin <proski@gnu.org>
2447 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
2448 any modern compilers we support.
2450 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
2451 Use local labels starting with "L_" so that Apple assembler
2452 knows they are local.
2454 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
2456 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
2457 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
2458 (bsd_kernel_types): ... this enum.
2460 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
2461 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
2462 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
2464 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
2465 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
2466 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
2469 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
2471 * util/grub-dumpdevtree: Moved from here ...
2472 * util/i386/efi/grub-dumpdevtree: ... to here.
2473 (hexify): New function. Converts a string to its hex version.
2474 Generate hex versions of "efi" and "device-properties" by calling
2475 hexify() on the ASCII strings rather than by hardcoding numbers.
2477 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
2479 * fs/jfs.c: Update copyright year.
2481 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
2483 * util/grub.d/00_header.in: Fix a comment.
2484 * util/grub.d/10_linux.in: Likewise.
2485 * util/grub.d/10_windows.in: Likewise.
2486 * util/grub.d/10_hurd.in: Likewise.
2488 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
2490 * util/grub-mkconfig.in: Allow the user to specify the used font
2493 2009-08-08 Pavel Roskin <proski@gnu.org>
2495 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
2496 available, xfs.mod needs it now.
2498 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
2499 the "g" modifier in sed when the intention is to strip something
2500 once. This fixes comparison of kernels with multiple dashes.
2502 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
2503 on it. Add missing space before closing bracket. Fix
2504 misleading formatting.
2506 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2508 * docs/grub.texi: Major overhaul. Remove all sections that are
2509 specific to GRUB Legacy, or mostly composed of Legacy-specific
2512 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2514 * docs/version.texi: New file. Provides version information for
2517 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2519 * docs/grub.texi: Update CVS information to SVN.
2520 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
2522 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
2524 * util/grub-mkconfig.in: Remove a wrong `fi'.
2526 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
2528 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
2529 (grub_jfs_uuid): New function.
2530 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
2532 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
2534 * util/grub-mkconfig_lib.in (font_path): Move the functionality
2536 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
2537 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
2539 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2541 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
2542 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
2545 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
2546 not just "vmlinu[zx]".
2548 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
2551 * util/grub.d/10_linux.in (find_latest): Moved from here ...
2552 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
2555 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2557 * util/grub.d/10_freebsd.in: Use an absolute device path for
2558 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
2560 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
2562 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
2563 handling of multiple abstraction modules.
2565 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
2567 Fix a bug resulting in black screen when loading Linux using a
2570 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
2573 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
2574 (grub_vbe_bios_getset_dac_palette_width): New function.
2575 (grub_vbe_bios_get_dac_palette_width)
2576 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
2577 grub_vbe_bios_getset_dac_palette_width()).
2579 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
2580 check for return status.
2581 (grub_vbe_get_video_mode_info): When getting information for a packed
2582 mode (<= 8 bpp), obtain DAC palette width using
2583 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
2584 {red,green,blue}_mark_size.
2586 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
2588 * commands/search.c (options): Fix help output to match actual code.
2590 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2592 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
2595 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
2597 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
2600 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
2602 Support Apple partition map with sector size different from 512 bytes.
2604 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
2605 (apple_partition_map_iterate): Respect 'aheader.blocksize'
2606 and 'apart.partmap_size'.
2608 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
2609 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
2613 * commands/i386/cpuid.c (options): New variable.
2614 (grub_cmd_cpuid): Return real error.
2615 (GRUB_MOD_INIT(cpuid)): Declare options.
2617 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
2619 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
2622 2009-07-31 Bean <bean123ch@gmail.com>
2624 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
2626 (grub_fshelp_node): Move inode field to the end.
2627 (grub_xfs_data): Remove inode field.
2628 (grub_xfs_inode_block): Calculate inode size using sblock.
2629 (grub_xfs_inode_offset): Likewise.
2630 (grub_xfs_read_inode): Calculate inode size using sblock.
2631 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
2632 (grub_xfs_iterate_dir): Calculate inode size using sblock.
2633 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
2634 to match inode size.
2635 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
2636 not accessible when data is null.
2637 (grub_xfs_open): Likewise.
2639 2009-07-31 Bean <bean123ch@gmail.com>
2641 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
2642 Don't change pv->disk if it's already set.
2644 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
2645 (grub_raid_register): ... here.
2646 (grub_raid_rescan): Removed.
2648 * include/grub/raid.h (grub_raid_rescan): Removed.
2650 * util/grub-fstest.c: Remove include file <grub/raid.h>.
2651 (fstest): Replace grub_raid_rescan with module fini function followed
2654 * util/grub-probe.c: Add include file <grub/raid.h>.
2655 (probe_raid_level): New function.
2656 (probe): Detect abstraction by walking the disk device, support two
2657 level of abstraction (LVM on RAID) when detecting partition map.
2659 2009-07-31 Pavel Roskin <proski@gnu.org>
2661 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
2662 to grub_zalloc(), it was erroneous.
2663 Reported by Bean <bean123ch@gmail.com>
2665 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
2667 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
2668 embedding zone, not only the first one.
2670 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
2672 * term/gfxterm.c (clear_char): New function.
2673 (grub_virtual_screen_setup): Use clear_char.
2674 (scroll_up): Likewise.
2675 (grub_virtual_screen_cls): Likewise.
2677 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
2679 * util/deviceiter.c (get_acceleraid_disk_name): New static
2681 (grub_util_iterate_devices): Handle Accelraid devices.
2682 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
2684 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
2686 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
2687 separator for the suggested gfxpayload string (';' collides with the
2688 parser and needs escaping).
2690 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
2692 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
2693 Clear direction flag before jumping to OS.
2694 (grub_multiboot2_real_boot): Likewise.
2696 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
2698 * util/i386/pc/grub-install: Fix parsing of --disk-module
2701 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
2703 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
2706 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
2708 * util/grub-mkconfig.in (package_version): New variable.
2709 Use it do display the version.
2711 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
2713 * kern/file.c (grub_file_open): Revert to previous check with
2716 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2718 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
2719 from help line. It's out of sync with code.
2721 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2723 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
2724 entries on failed boot.
2726 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
2728 * kern/file.c (grub_file_open): Fix an error check.
2730 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
2732 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
2733 partition map couldn't be identified.
2735 2009-07-23 Pavel Roskin <proski@gnu.org>
2737 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
2738 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
2739 case of little endian words becomes just an optimization.
2740 Respect const modifier.
2741 (md5_final): Use code that doesn't depend on endianness.
2743 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
2744 to avoid loss of upper bits if align is unsigned and shorter
2747 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
2749 UUID support for UFS
2751 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
2752 (grub_ufs_uuid): New function.
2753 (grub_ufs_fs): add .uuid
2755 2009-07-21 Pavel Roskin <proski@gnu.org>
2757 * kern/dl.c (grub_dl_check_header): Make static.
2759 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
2761 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
2762 add drivemap for Vista. It breaks Windows 7.
2764 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
2766 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
2769 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2773 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
2774 (grub_fstest_SOURCES): Likewise.
2775 (pkglib_MODULES): Add befs.mod.
2776 (befs_mod_SOURCES): New variable.
2777 (befs_mod_CFLAGS): Likewise.
2778 (befs_mod_LDFLAGS): Likewise.
2779 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
2780 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
2781 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2782 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
2783 (grub_setup_SOURCES): Likewise.
2784 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2785 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2786 (grub_setup_SOURCES): Likewise.
2787 * fs/befs.c: New file.
2788 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
2789 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
2790 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
2791 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
2792 (B_KEY_INDEX_ALIGN): New declaration.
2793 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
2794 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
2795 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
2796 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
2797 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
2798 (grub_afs_mount) [MODE_BFS]: Likewise.
2799 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
2800 (grub_afs_fs): Use GRUB_AFS_FSNAME
2801 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
2802 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
2803 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
2804 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
2806 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
2808 * util/getroot.c (find_root_device): Add support for MacOSX.
2809 * util/hostdisk.c: Likewise.
2811 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2813 * font/font.c (find_glyph): Check whether a font is present to avoid
2816 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
2818 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
2820 2009-07-20 Pavel Roskin <proski@gnu.org>
2822 * configure.ac: Trim excessively wordy excuses.
2824 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2826 Add symlink, mtime and label support to AtheFS.
2828 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
2829 (grub_afs_iterate_dir): Handle symlinks.
2830 (grub_afs_open): Use grub_afs_read_symlink.
2831 (grub_afs_dir): Likewise.
2833 (grub_afs_label): New function.
2834 (grub_afs_fs): Add grub_afs_label.
2835 (grub_afs_read_symlink): New function.
2837 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2841 * fs/afs.c: Fix comments style.
2842 (grub_afs_blockrun): Declare as packed.
2843 (grub_afs_datastream): Likewise.
2844 (grub_afs_bnode): Likewise.
2845 (grub_afs_btree): Likewise.
2846 (grub_afs_sblock): Likewise.
2847 Declare `name' as char.
2848 (grub_afs_inode): Declare as packed.
2849 Change void *vnode to grub_uint32_t unused.
2850 (grub_afs_iterate_dir): Check that key_size is positive.
2851 (grub_afs_mount): Don't read superblock twice.
2852 (grub_afs_dir): Don't free node in case of error,
2853 grub_fshelp_find_file already handles this.
2854 (grub_afs_open): Likewise.
2856 2009-07-19 Pavel Roskin <proski@gnu.org>
2858 * Makefile.in: Remove LIBLZO and enable_lzo.
2859 * conf/i386-pc.rmk: Remove lzo support.
2860 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
2861 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
2863 * kern/i386/pc/lzo1x.S: Remove.
2864 * kern/i386/pc/startup.S: Remove lzo support.
2865 * util/i386/pc/grub-mkimage.c: Likewise.
2867 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
2869 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
2870 * fs/xfs.c (grub_xfs_dir): Likewise.
2871 * fs/afs.c (grub_afs_dir): Likewise.
2872 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
2873 (grub_iso9660_open): Likewise.
2874 * fs/jfs.c (grub_jfs_open): Likewise.
2875 * fs/ext2.c (grub_ext2_dir): Likewise.
2876 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
2877 * script/sh/lexer.c (grub_script_yylex): Likewise.
2879 2009-07-16 Pavel Roskin <proski@gnu.org>
2881 * configure.ac: Never add "-c" to CFLAGS.
2883 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
2885 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
2886 grub_cv_cc_efiemu should be used.
2888 * configure.ac: Typo fixes.
2890 * kern/mm.c (grub_zalloc): New function.
2891 (grub_debug_zalloc): Likewise.
2892 * include/grub/mm.h: Declare grub_zalloc() and
2893 grub_debug_zalloc().
2894 * util/misc.c (grub_zalloc): New function.
2895 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
2896 instead of grub_malloc(), remove unneeded initializations.
2897 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
2898 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
2899 * commands/parttool.c (grub_cmd_parttool): Likewise.
2900 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
2901 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
2902 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
2903 * disk/usbms.c (grub_usbms_finddevs): Likewise.
2904 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
2905 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
2906 (grub_cmd_efiemu_pnvram): Likewise.
2907 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
2908 * fs/iso9660.c (grub_iso9660_mount): Likewise.
2909 (grub_iso9660_iterate_dir): Likewise.
2910 * fs/jfs.c (grub_jfs_opendir): Likewise.
2911 * fs/ntfs.c (list_file): Likewise.
2912 (grub_ntfs_mount): Likewise.
2913 * kern/disk.c (grub_disk_open): Likewise.
2914 * kern/dl.c (grub_dl_load_core): Likewise.
2915 * kern/elf.c (grub_elf_file): Likewise.
2916 * kern/env.c (grub_env_context_open): Likewise.
2917 (grub_env_set): Likewise.
2918 (grub_env_set_data_slot): Likewise.
2919 * kern/file.c (grub_file_open): Likewise.
2920 * kern/fs.c (grub_fs_blocklist_open): Likewise.
2921 * loader/i386/multiboot.c (grub_module): Likewise.
2922 * loader/xnu.c (grub_xnu_create_key): Likewise.
2923 (grub_xnu_create_value): Likewise.
2924 * normal/main.c (grub_normal_add_menu_entry): Likewise.
2925 (read_config_file): Likewise.
2926 * normal/menu_entry.c (make_screen): Likewise.
2927 * partmap/sun.c (sun_partition_map_iterate): Likewise.
2928 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
2929 * script/sh/script.c (grub_script_parse): Likewise.
2930 * video/bitmap.c (grub_video_bitmap_create): Likewise.
2931 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
2932 * video/readers/png.c (grub_png_output_byte): Likewise.
2933 (grub_video_reader_png): Likewise.
2935 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2937 Enable all targets that can be built by default
2939 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
2940 grub-mkfont and grub-fstest if they can be built
2942 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2944 Fix hang and segmentation fault in grub-emu-usb
2946 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
2947 * util/usb.c (grub_libusb_devices): likewise
2948 (grub_libusb_init): rename to ...
2949 (GRUB_MOD_INIT (libusb)):...this
2950 (grub_libusb_fini): rename to ..
2951 (GRUB_MOD_FINI (libusb)):...this
2952 * disk/usbms.c (grub_usbms_transfer): fix retry logic
2953 * include/grub/disk.h (grub_raid_init): removed, it's useless
2954 (grub_raid_fini): likewise
2955 (grub_lvm_init): likewise
2956 (grub_lvm_fini): likewise
2957 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
2960 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2964 * Makefile.in (LIBUSB): new macro
2965 * genmk.rb (Utility/print_tail): new method
2966 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
2967 (top level): call util.print_tail at the end.
2969 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2971 Make FreeBSD accept zpool.cache
2973 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
2974 type is /boot/zfs/zpool.cache
2976 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2980 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
2981 correct wrong typedef
2982 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
2984 2009-07-15 Pavel Roskin <proski@gnu.org>
2986 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
2987 * kern/disk.c (struct grub_disk_cache): Likewise.
2989 * commands/probe.c (options): Typo fix.
2991 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
2992 Increase to 0x5a to accommodate FAT32. Adjust other offsets
2994 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
2996 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
2997 the end of "Error" to make the message more readable.
2999 * boot/i386/pc/boot.S (kernel_segment): Remove.
3000 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
3003 * boot/i386/pc/boot.S (boot_version): Remove.
3004 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
3007 * include/grub/i386/pc/boot.h: Sort all offsets.
3008 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
3009 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
3010 * boot/i386/pc/boot.S: Assert location of every offset listed in
3011 include/grub/i386/pc/boot.h.
3013 2009-07-13 Pavel Roskin <proski@gnu.org>
3015 * include/grub/i386/coreboot/machine.h: Rename
3016 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
3017 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
3018 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
3020 * kern/dl.c: Force native word size to suppress warnings when
3023 * kern/device.c (grub_device_iterate): Change struct part_ent to
3024 hold the name, not a pointer to it. Use one grub_malloc() per
3025 partition, not two. Free partition_name if grub_malloc() fails.
3026 Set ents to NULL only before grub_partition_iterate() is called.
3028 2009-07-11 Bean <bean123ch@gmail.com>
3030 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
3033 2009-07-10 Bean <bean123ch@gmail.com>
3034 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
3036 * kern/ieee1275/openfw.c (grub_children_iterate)
3037 (grub_devalias_iterate): Fix size evaluation for property or path
3038 strings, which was broken since r2132.
3040 2009-07-07 Pavel Roskin <proski@gnu.org>
3042 * commands/search.c (search_file): Merge into ...
3043 (search_fs): ... this. Accept search type as argument.
3044 (grub_cmd_search): Pass search type to search_fs().
3046 * include/grub/util/console.h: New file.
3047 * util/console.c: Use it instead of grub/machine/console.h.
3048 * util/grub-emu.c: Likewise.
3050 * lib/arg.c (find_long_option): Remove.
3051 (find_long): Add `len' argument, make `s' const char *.
3052 (grub_arg_parse): Parse long options in place, not in a
3055 2009-07-06 Pavel Roskin <proski@gnu.org>
3057 * commands/search.c (search_fs): Fix potential NULL pointer
3060 * commands/search.c (search_fs): Replace QUID macro with quid_fn
3063 2009-07-06 Daniel Mierswa <impulze@impulze.org>
3065 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
3068 2009-07-05 Pavel Roskin <proski@gnu.org>
3070 * include/grub/i386/linux.h (struct linux_kernel_params):
3071 Restore padding3, it's still needed.
3073 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
3075 * util/osdetect.lua: Likewise.
3077 2009-07-05 Bean <bean123ch@gmail.com>
3079 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
3081 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
3082 (grub_lua_getenv): Likewise.
3083 (grub_lua_setenv): Likewise.
3084 (save_errno): New function.
3085 (push_result): Likewise.
3086 (grub_lua_enum_device): Likewise.
3087 (grub_lua_enum_file): Likewise.
3088 (grub_lua_file_open): Likewise.
3089 (grub_lua_file_close): Likewise.
3090 (grub_lua_file_seek): Likewise.
3091 (grub_lua_file_read): Likewise.
3092 (grub_lua_file_getline): Likewise.
3093 (grub_lua_file_getsize): Likewise.
3094 (grub_lua_file_getpos): Likewise.
3095 (grub_lua_file_eof): Likewise.
3096 (grub_lua_file_exist): Likewise.
3097 (grub_lua_add_menu): Likewise.
3099 * script/lua/grub_lua.h (isupper): New inline function.
3100 (islower): Likewise.
3101 (ispunct): Likewise.
3102 (isxdigit): Likewise.
3103 (strcspn): Change to normal function.
3104 (strpbkr): New function declaration.
3107 * script/lua/grub_main.c (scan_str): New function.
3108 (strcspn): Likewise.
3109 (strpbrk): Likewise.
3112 * script/lua/linit.c (lualibs): Enable the string library.
3114 * util/osdetect.lua: New file.
3116 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
3118 * include/grub/i386/linux.h (struct linux_kernel_params): Add
3119 `capabilities' member.
3121 2009-07-02 Pavel Roskin <proski@gnu.org>
3123 * genparttoollist.sh: Add missing newline at the end.
3125 2009-07-01 Pavel Roskin <proski@gnu.org>
3127 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
3129 * util/hostdisk.c (open_device): Remove `const' from
3130 `sysctl_size', as sysctlbyname() can change it (in this case it
3131 doesn't actually happen).
3133 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
3134 using signed long int constants.
3136 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
3137 constant to avoid a warning on FreeBSD.
3139 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
3142 * Makefile.in: Install include/grub/machine symlink.
3144 * Makefile.in: When installing symlinks, use "cp -fR", which
3145 works on FreeBSD and MacOSX.
3146 From Yves Blusseau <cl7m42e02@sneakemail.com>
3148 * kern/dl.c (grub_dl_resolve_symbol): Make static.
3149 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
3151 * util/misc.c: Move grub_reboot() and grub_halt() ...
3152 * util/grub-emu.c: ... here. Make main_env static.
3153 * include/grub/util/misc.h: Remove main_env.
3155 * kern/mm.c: Use correct format to print size_t.
3157 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
3158 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
3159 * kern/powerpc/dl.c: Likewise.
3160 * kern/sparc64/dl.c: Likewise.
3161 * kern/x86_64/dl.c: Likewise.
3163 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
3165 Fix grub-emu build on sparc64-ieee1275.
3167 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3168 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
3170 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
3172 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
3173 (grub_reboot, grub_halt): New functions.
3175 * util/i386/pc/misc.c: Delete. Update all users.
3176 * util/sparc64/ieee1275/misc.c: Likewise.
3177 * util/powerpc/ieee1275/misc.c: Likewise.
3179 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
3181 * conf/i386.rmk (setjmp_mod_SOURCES)
3182 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
3183 * conf/common.rmk (setjmp_mod_SOURCES)
3184 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
3185 to use $(target_cpu).
3186 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
3187 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
3188 * conf/powerpc-ieee1275.rmk: Likewise.
3189 * conf/sparc64-ieee1275.rmk: Likewise.
3191 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
3192 $(target_cpu) for kern/$(target_cpu)/dl.c.
3193 * conf/i386-efi.rmk: Likewise.
3194 * conf/i386-ieee1275.rmk: Likewise.
3195 * conf/x86_64-efi.rmk: Likewise.
3196 * conf/i386-coreboot.rmk: Likewise.
3197 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
3198 $(target_cpu) for kern/$(target_cpu)/dl.c and for
3199 kern/$(target_cpu)/cache.S.
3200 * conf/sparc64-ieee1275.rmk: Likewise.
3202 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
3204 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
3205 type to `grub_uint8_t', and adjust `padding9' accordingly.
3207 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
3209 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
3211 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
3212 assembly in final jump, using register constraints.
3214 (grub_linux_boot): For text mode, initialize `have_vga' using
3215 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
3217 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
3218 right before the final jump.
3220 Set `video_mode' to 0x3.
3222 Document initialization of `video_page', `video_mode' and
3225 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
3227 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
3228 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
3229 and set GRUB_LINUX_FLAG_QUIET appropriately.
3231 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
3233 Fix build on Debian / sparc.
3235 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
3237 2009-06-28 Pavel Roskin <proski@gnu.org>
3239 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
3242 * util/grub.d/10_linux.in: Match SUSE style initrd names.
3244 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
3246 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
3249 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
3253 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
3254 file can't be opened. grub_file_open() is already supposed to set
3255 grub_errno / grub_errmsg appropriately.
3256 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
3258 2009-06-27 Pavel Roskin <proski@gnu.org>
3259 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
3261 * include/grub/dl.h: Include grub/elf.h.
3262 (struct grub_dl): Add symtab field.
3263 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
3264 GRUB_MODULES_MACHINE_READONLY.
3265 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
3266 of the header for read-only modules.
3267 (grub_dl_unload): Free mod->symtab for read-only modules.
3268 * kern/i386/dl.c: Use mod->symtab.
3269 * kern/powerpc/dl.c: Likewise.
3270 * kern/sparc64/dl.c: Likewise.
3271 * kern/x86_64/dl.c: Likewise.
3273 * conf/i386-qemu.rmk: New file.
3274 * kern/i386/qemu/startup.S: Likewise.
3275 * kern/i386/qemu/mmap.c: Likewise.
3276 * boot/i386/qemu/boot.S: Likewise.
3277 * include/grub/i386/qemu/time.h: Likewise.
3278 * include/grub/i386/qemu/serial.h: Likewise.
3279 * include/grub/i386/qemu/kernel.h: Likewise.
3280 * include/grub/i386/qemu/console.h: Likewise.
3281 * include/grub/i386/qemu/boot.h: Likewise.
3282 * include/grub/i386/qemu/init.h: Likewise.
3283 * include/grub/i386/qemu/machine.h: Likewise.
3284 * include/grub/i386/qemu/loader.h: Likewise.
3285 * include/grub/i386/qemu/memory.h: Likewise.
3287 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
3288 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
3289 [qemu] (pkglib_IMAGES): Add `boot.img'.
3290 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
3291 [qemu] (boot_img_FORMAT): New variables.
3292 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
3293 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
3294 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
3295 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3296 [qemu] (kernel_img_FORMAT): New variables.
3298 * configure.ac: Recognise `i386-qemu'.
3300 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
3301 (for no compression).
3302 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
3303 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
3304 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
3305 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
3308 2009-06-27 Pavel Roskin <proski@gnu.org>
3310 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
3312 * efiemu/prepare32.c: Likewise.
3313 * efiemu/prepare64.c: Likewise.
3315 2009-06-26 Pavel Roskin <proski@gnu.org>
3317 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
3318 * include/grub/elf.h: Define symbols without "32" or "64" based
3319 on GRUB_TARGET_WORDSIZE.
3320 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
3321 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
3323 * efiemu/loadcore64.c: Likewise.
3324 * loader/i386/bsd32.c: Likewise.
3325 * loader/i386/bsd64.c: Likewise.
3326 * kern/dl.c: Remove own ELF definitions.
3327 * util/i386/efi/grub-mkimage.c: Likewise.
3329 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
3331 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
3332 segment 0x0 unconditionally, because the reference generated by
3333 GAS is an absolute address.
3335 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3337 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
3338 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
3340 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3342 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
3343 indexes. Check for -f explicitly.
3344 (search_file): Improve error message.
3345 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
3347 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3349 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
3350 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
3352 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3354 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
3355 * conf/i386-ieee1275.rmk: Likewise.
3356 * conf/i386-coreboot.rmk: Likewise.
3358 * kern/i386/pc/startup.S (grub_stop): Remove function.
3359 * kern/i386/ieee1275/startup.S: Likewise.
3360 * kern/i386/coreboot/startup.S: Likewise.
3361 * kern/i386/misc.S (grub_stop): New function.
3363 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3365 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
3366 * kern/i386/realmode.S (real_to_prot): ... to here.
3368 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3370 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
3372 (kernel_elf_SOURCES): Rename to ...
3373 (kernel_img_SOURCES): ... this.
3374 (kernel_elf_HEADERS): Rename to ...
3375 (kernel_img_HEADERS): ... this. Update all users.
3376 (kernel_elf_ASFLAGS): Rename to ...
3377 (kernel_img_ASFLAGS): ... this.
3378 (kernel_elf_CFLAGS): Rename to ...
3379 (kernel_img_CFLAGS): ... this.
3380 (kernel_elf_LDFLAGS): Rename to ...
3381 (kernel_img_LDFLAGS): ... this.
3382 * conf/i386-coreboot.rmk: Likewise.
3383 * conf/powerpc-ieee1275.rmk: Likewise.
3385 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
3388 2009-06-21 Pavel Roskin <proski@gnu.org>
3390 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
3391 to match nested functions.
3392 * loader/sparc64/ieee1275/linux.c: Likewise.
3394 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
3396 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
3398 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
3401 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
3403 Fix asm file handling on ELF, and remove workarounds.
3405 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
3406 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
3407 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
3408 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
3410 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3412 Load BSD ELF modules
3414 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
3415 and loader/i386/bsd64.c
3416 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
3417 (FREEBSD_MODTYPE_ELF_MODULE): New definition
3418 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
3419 (grub_freebsd_load_elfmodule32): New declaration
3420 (grub_freebsd_load_elfmoduleobj64): Likewise
3421 (grub_freebsd_load_elf_meta32): Likewise
3422 (grub_freebsd_load_elf_meta64): Likewise
3423 (grub_freebsd_add_meta): Likewise
3424 (grub_freebsd_add_meta_module): Likewise
3425 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
3426 (grub_freebsd_add_meta_module): Likewise and move module-specific
3427 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
3428 (grub_cmd_freebsd): Add elf-kernel specific parts
3429 based on grub_freebsd_add_meta_module
3430 (grub_cmd_freebsd_module): Add type parsing moved from
3431 grub_freebsd_add_meta_module
3432 (grub_cmd_freebsd_module_elf): New function
3433 (cmd_freebsd_module_elf): New variable
3434 (GRUB_MOD_INIT): Register freebsd_module_elf
3435 * loader/i386/bsd32.c: New file
3436 * loader/i386/bsd64.c: Likewise
3437 * loader/i386/bsdXX.c: Likewise
3438 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
3439 (grub_elf64_load): Likewise
3440 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
3442 (grub_elf64_load_hook_t): Likewise
3444 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
3446 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
3448 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
3449 don't write a menu entry for recovery mode.
3451 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
3453 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
3454 after it's no longer needed.
3456 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
3458 * include/grub/i386/loader.h (grub_linux_prot_size)
3459 (grub_linux_tmp_addr, grub_linux_real_addr)
3460 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
3461 GRUB_MACHINE_PCBIOS.
3462 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
3463 common grub_util_info() call to ...
3464 (generate_image): ... here.
3465 Fix use of uninitialized memory, comparison of signed with
3466 unsigned integers and memory leak.
3467 Remove bogus module address message.
3469 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3471 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
3473 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
3475 2009-06-19 Pavel Roskin <proski@gnu.org>
3477 * configure.ac: Remove stray AC_MSG_CHECKING.
3479 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3481 * disk/scsi.c (grub_scsi_open): use continue instead of big if
3483 2009-06-18 Pavel Roskin <proski@gnu.org>
3485 * conf/common.rmk: Add fs_file.mod.
3486 * disk/fs_file.c: New file.
3487 * include/grub/disk.h (enum grub_disk_dev_id): Add
3488 GRUB_DISK_DEVICE_FILE_ID.
3490 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3492 Fix build with Apple's toolchain. Part 2
3494 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
3497 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3499 Fix build with Apple's toolchain. Part 1
3501 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
3503 * configure.ac: remove a leftover AC_MSG_RESULT
3504 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
3507 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3511 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
3512 (decomp_block): initialize ch
3513 use grub_memcpy instead of memcpy
3515 2009-06-17 Pavel Roskin <proski@gnu.org>
3517 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
3518 version, use declarations needed to use vga_text as the startup
3521 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
3522 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
3524 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
3525 and grub_at_keyboard_fini(), it's done on module load and
3528 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
3530 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
3531 file can't be found.
3532 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
3534 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
3536 Fix newline handling
3538 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
3539 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
3540 (grub_script_yylex): don't segfault on unterminated script
3541 newline terminates command and variable
3543 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
3545 avoid double grub_adjust_range call. Bug reported by David Simner
3547 * kern/disk.c (grub_disk_write): change to raw disk access before
3550 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
3552 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
3553 spaces, for the benefit of help2man.
3554 * util/i386/efi/grub-mkimage.c (usage): Likewise.
3556 2009-06-16 Pavel Roskin <proski@gnu.org>
3558 * kern/i386/halt.c: Include grub/machine/init.h.
3559 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
3561 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
3563 * util/grub.d/30_os-prober.in: Use ${root} in the generated
3566 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
3568 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
3571 2009-06-16 Pavel Roskin <proski@gnu.org>
3573 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
3574 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
3575 save %dx, we only need %dl and we never change it.
3576 * boot/i386/pc/cdboot.S: Don't set the root drive.
3577 * boot/i386/pc/pxeboot.S: Likewise.
3578 * include/grub/i386/pc/boot.h: Remove
3579 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
3580 GRUB_BOOT_MACHINE_DRIVE_CHECK.
3581 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
3582 * kern/i386/pc/init.c (make_install_device): Remove references
3584 * kern/i386/pc/startup.S: Likewise.
3585 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
3587 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3591 * commands/xnu_uuid.c: new file
3592 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
3593 (xnu_uuid_mod_SOURCES): new variable
3594 (xnu_uuid_mod_CFLAGS): likewise
3595 (xnu_uuid_mod_LDFLAGS): likewise
3596 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
3597 * conf/i386-ieee1275.rmk: likewise
3598 * conf/i386-pc.rmk: likewise
3599 * conf/powerpc-ieee1275.rmk: likewise
3600 * conf/sparc64-ieee1275.rmk: likewise
3601 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
3603 2009-06-16 Pavel Roskin <proski@gnu.org>
3605 * configure.ac: Avoid '==' in test command, it's not portable.
3607 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3611 * commands/probe.c: new file
3612 * conf/common.rmk (pkglib_MODULES): add probe.mod
3613 (probe_mod_SOURCES): new variable
3614 (probe_mod_CFLAGS): likewise
3615 (probe_mod_LDFLAGS): likewise
3616 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
3617 * conf/i386-ieee1275.rmk: likewise
3618 * conf/i386-pc.rmk: likewise
3619 * conf/powerpc-ieee1275.rmk: likewise
3620 * conf/sparc64-ieee1275.rmk: likewise
3622 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3624 Fix handling of string like \"hello\" and "a
3627 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
3628 (grub_script_yylex): fix parsing of quoting, escaping and newline
3630 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3632 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
3635 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
3637 * util/grub-mkconfig.in: Fix parsing of --output option.
3639 2009-06-12 Pavel Roskin <proski@gnu.org>
3641 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
3642 genmk.rb don't need to be generated or installed.
3644 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
3646 * commands/i386/pc/drivemap_int13h.S: add more comments
3648 2009-06-11 Pavel Roskin <proski@gnu.org>
3650 * Makefile.in (uninstall): Uninstall manuals.
3652 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
3653 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
3654 and update-grub_lib in two places.
3655 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
3657 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
3660 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
3661 `entry_lo' to fix variable shadowing.
3663 2009-06-11 Christian Franke <franke@computer.org>
3665 * kern/misc.c (__enable_execute_stack): Add missing return type
3666 to prevent gcc warning.
3668 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
3670 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
3672 2009-06-11 Pavel Roskin <proski@gnu.org>
3674 * Makefile.in: Don't rely on any scripts being executable.
3675 Always use $(SHELL) to run shell scripts.
3677 * configure.ac: Always define ___main if using -nostdlib. This
3678 fixes tests on Cygwin.
3680 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
3684 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
3685 is in bytes and not in blocks
3687 2009-06-11 Pavel Roskin <proski@gnu.org>
3689 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
3692 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
3694 * util/grub.d/30_os-prober.in: Fix a comment. Source
3695 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
3696 to set the root device. Place drivemap command in the generated
3699 2009-06-11 Pavel Roskin <proski@gnu.org>
3701 * configure.ac: Remove host_m32. Issues with 64-bit utilities
3702 have long been resolved.
3704 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
3706 * util/grub.d/10_linux.in: Capitalise "Linux".
3708 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
3710 2009-06-11 Pavel Roskin <proski@gnu.org>
3712 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
3713 fix a gcc warning and ensure that the function won't ever exit.
3715 * kern/i386/ieee1275/init.c: Add missing prototype for
3718 * loader/ieee1275/multiboot2.c [__i386__]: Include
3719 grub/cpu/multiboot.h.
3721 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
3722 casts to short - they are not portable and cause warnings. Fix
3723 use of uninitialized values in input_buf. Use ARRAY_SIZE.
3725 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
3729 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
3731 (grub_get_root_biosnumber_saved): new variable
3732 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
3733 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
3734 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
3735 %dx after the call if necessary
3736 * conf/common.rmk (pkglib_MODULES): remove boot.mod
3737 (boot_mod_SOURCES): remove
3738 (boot_mod_CFLAGS): remove
3739 (boot_mod_LDFLAGS): remove
3740 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
3741 (boot_mod_SOURCES): new variable
3742 (boot_mod_CFLAGS): likewise
3743 (boot_mod_LDFLAGS): likewise
3744 * conf/i386-efi.rmk: likewise
3745 * conf/i386-ieee1275.rmk: likewise
3746 * conf/i386-pc.rmk: likewise
3747 * conf/powerpc-ieee1275.rmk: likewise
3748 * conf/sparc64-ieee1275.rmk: likewise
3749 * conf/x86_64-efi.rmk: likewise
3750 * include/grub/i386/pc/biosnum.h: new file
3751 * lib/i386/pc/biosnum.c: likewise
3752 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
3753 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
3754 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
3756 2009-06-10 Pavel Roskin <proski@gnu.org>
3758 * io/gzio.c (test_header): Don't reuse one buffer for all data.
3759 Use separate variables. Read only the file size at the end, but
3760 not the checksum that we don't use.
3762 * kern/file.c (grub_file_read): Use void pointer for the buffer.
3765 * kern/ieee1275/openfw.c: Remove libc includes.
3766 * kern/ieee1275/cmain.c: Likewise.
3767 * include/grub/ieee1275/ieee1275.h: Likewise.
3769 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
3772 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
3774 * Makefile.in: Remove all trailing whitespace.
3775 * conf/i386-pc.rmk: Likewise.
3776 * conf/powerpc-ieee1275.rmk: Likewise.
3777 * conf/sparc64-ieee1275.rmk: Likewise.
3778 * docs/grub.texi: Likewise.
3779 * docs/texinfo.tex: Likewise.
3780 * disk/fs_uuid.c: Likewise.
3781 * disk/lvm.c: Likewise.
3782 * disk/scsi.c: Likewise.
3783 * disk/ata.c: Likewise.
3784 * disk/ieee1275/ofdisk.c: Likewise.
3785 * disk/i386/pc/biosdisk.c: Likewise.
3786 * disk/host.c: Likewise.
3787 * disk/raid.c: Likewise.
3788 * disk/efi/efidisk.c: Likewise.
3789 * disk/usbms.c: Likewise.
3790 * disk/memdisk.c: Likewise.
3791 * disk/loopback.c: Likewise.
3792 * kern/powerpc/dl.c: Likewise.
3793 * kern/device.c: Likewise.
3794 * kern/dl.c: Likewise.
3795 * kern/sparc64/dl.c: Likewise.
3796 * kern/ieee1275/ieee1275.c: Likewise.
3797 * kern/term.c: Likewise.
3798 * kern/fs.c: Likewise.
3799 * kern/i386/dl.c: Likewise.
3800 * kern/i386/pc/startup.S: Likewise.
3801 * kern/i386/pc/init.c: Likewise.
3802 * kern/i386/pc/mmap.c: Likewise.
3803 * kern/i386/pc/lzo1x.S: Likewise.
3804 * kern/i386/ieee1275/init.c: Likewise.
3805 * kern/i386/realmode.S: Likewise.
3806 * kern/i386/tsc.c: Likewise.
3807 * kern/partition.c: Likewise.
3808 * kern/corecmd.c: Likewise.
3809 * kern/file.c: Likewise.
3810 * kern/efi/efi.c: Likewise.
3811 * kern/efi/init.c: Likewise.
3812 * kern/efi/mm.c: Likewise.
3813 * kern/main.c: Likewise.
3814 * kern/err.c: Likewise.
3815 * kern/env.c: Likewise.
3816 * kern/disk.c: Likewise.
3817 * kern/generic/millisleep.c: Likewise.
3818 * kern/generic/rtc_get_time_ms.c: Likewise.
3819 * kern/misc.c: Likewise.
3820 * kern/parser.c: Likewise.
3821 * genmk.rb: Likewise.
3822 * configure.ac: Likewise.
3823 * boot/i386/pc/diskboot.S: Likewise.
3824 * boot/i386/pc/pxeboot.S: Likewise.
3825 * boot/i386/pc/boot.S: Likewise.
3826 * boot/i386/pc/lnxboot.S: Likewise.
3827 * boot/i386/pc/cdboot.S: Likewise.
3828 * parttool/pcpart.c: Likewise.
3829 * video/readers/tga.c: Likewise.
3830 * video/video.c: Likewise.
3831 * video/bitmap.c: Likewise.
3832 * lib/envblk.c: Likewise.
3833 * lib/i386/setjmp.S: Likewise.
3834 * fs/xfs.c: Likewise.
3835 * fs/afs.c: Likewise.
3836 * fs/fat.c: Likewise.
3837 * fs/ntfs.c: Likewise.
3838 * fs/udf.c: Likewise.
3839 * fs/affs.c: Likewise.
3840 * fs/iso9660.c: Likewise.
3841 * fs/hfs.c: Likewise.
3842 * fs/fshelp.c: Likewise.
3843 * fs/ext2.c: Likewise.
3844 * fs/jfs.c: Likewise.
3845 * fs/reiserfs.c: Likewise.
3846 * fs/hfsplus.c: Likewise.
3847 * fs/minix.c: Likewise.
3848 * fs/cpio.c: Likewise.
3849 * fs/sfs.c: Likewise.
3850 * fs/ufs.c: Likewise.
3851 * efiemu/prepare.c: Likewise.
3852 * efiemu/loadcore_common.c: Likewise.
3853 * efiemu/runtime/efiemu.sh: Likewise.
3854 * efiemu/runtime/efiemu.S: Likewise.
3855 * efiemu/runtime/efiemu.c: Likewise.
3856 * efiemu/pnvram.c: Likewise.
3857 * efiemu/main.c: Likewise.
3858 * efiemu/i386/pc/cfgtables.c: Likewise.
3859 * efiemu/i386/loadcore64.c: Likewise.
3860 * efiemu/i386/loadcore32.c: Likewise.
3861 * efiemu/loadcore.c: Likewise.
3862 * efiemu/symbols.c: Likewise.
3863 * efiemu/mm.c: Likewise.
3864 * include/grub/autoefi.h: Likewise.
3865 * include/grub/datetime.h: Likewise.
3866 * include/grub/term.h: Likewise.
3867 * include/grub/hfs.h: Likewise.
3868 * include/grub/lvm.h: Likewise.
3869 * include/grub/i386/tsc.h: Likewise.
3870 * include/grub/i386/linux.h: Likewise.
3871 * include/grub/i386/xnu.h: Likewise.
3872 * include/grub/i386/efiemu.h: Likewise.
3873 * include/grub/i386/pc/biosdisk.h: Likewise.
3874 * include/grub/i386/pc/memory.h: Likewise.
3875 * include/grub/i386/pc/vbe.h: Likewise.
3876 * include/grub/parttool.h: Likewise.
3877 * include/grub/video.h: Likewise.
3878 * include/grub/memory.h: Likewise.
3879 * include/grub/fs.h: Likewise.
3880 * include/grub/partition.h: Likewise.
3881 * include/grub/xnu.h: Likewise.
3882 * include/grub/efi/api.h: Likewise.
3883 * include/grub/efi/pe32.h: Likewise.
3884 * include/grub/efi/memory.h: Likewise.
3885 * include/grub/multiboot.h: Likewise.
3886 * include/grub/usbdesc.h: Likewise.
3887 * include/grub/multiboot2.h: Likewise.
3888 * include/grub/acpi.h: Likewise.
3889 * include/grub/efiemu/efiemu.h: Likewise.
3890 * include/grub/disk.h: Likewise.
3891 * include/grub/ieee1275/ieee1275.h: Likewise.
3892 * include/grub/net.h: Likewise.
3893 * include/grub/machoload.h: Likewise.
3894 * include/grub/macho.h: Likewise.
3895 * include/multiboot.h: Likewise.
3896 * genmoddep.awk: Likewise.
3897 * normal/main.c: Likewise.
3898 * normal/menu_entry.c: Likewise.
3899 * normal/menu_viewer.c: Likewise.
3900 * normal/completion.c: Likewise.
3901 * normal/cmdline.c: Likewise.
3902 * normal/misc.c: Likewise.
3903 * normal/datetime.c: Likewise.
3904 * bus/usb/usbtrans.c: Likewise.
3905 * bus/usb/ohci.c: Likewise.
3906 * bus/usb/uhci.c: Likewise.
3907 * bus/usb/usb.c: Likewise.
3908 * mmap/efi/mmap.c: Likewise.
3909 * mmap/i386/pc/mmap_helper.S: Likewise.
3910 * mmap/i386/pc/mmap.c: Likewise.
3911 * mmap/i386/mmap.c: Likewise.
3912 * mmap/i386/uppermem.c: Likewise.
3913 * mmap/mmap.c: Likewise.
3914 * commands/acpi.c: Likewise.
3915 * commands/echo.c: Likewise.
3916 * commands/blocklist.c: Likewise.
3917 * commands/loadenv.c: Likewise.
3918 * commands/usbtest.c: Likewise.
3919 * commands/boot.c: Likewise.
3920 * commands/parttool.c: Likewise.
3921 * commands/search.c: Likewise.
3922 * commands/cat.c: Likewise.
3923 * commands/i386/pc/play.c: Likewise.
3924 * commands/i386/pc/drivemap.c: Likewise.
3925 * commands/i386/pc/vbeinfo.c: Likewise.
3926 * commands/i386/pc/acpi.c: Likewise.
3927 * commands/i386/pc/vbetest.c: Likewise.
3928 * commands/ls.c: Likewise.
3929 * commands/cmp.c: Likewise.
3930 * commands/test.c: Likewise.
3931 * commands/efi/acpi.c: Likewise.
3932 * commands/gptsync.c: Likewise.
3933 * commands/help.c: Likewise.
3934 * partmap/amiga.c: Likewise.
3935 * partmap/apple.c: Likewise.
3936 * partmap/acorn.c: Likewise.
3937 * partmap/pc.c: Likewise.
3938 * partmap/sun.c: Likewise.
3939 * partmap/gpt.c: Likewise.
3940 * script/sh/lexer.c: Likewise.
3941 * script/sh/function.c: Likewise.
3942 * font/font.c: Likewise.
3943 * font/font_cmd.c: Likewise.
3944 * loader/powerpc/ieee1275/linux.c: Likewise.
3945 * loader/efi/chainloader.c: Likewise.
3946 * loader/multiboot_loader.c: Likewise.
3947 * loader/macho.c: Likewise.
3948 * loader/i386/multiboot.c: Likewise.
3949 * loader/i386/linux.c: Likewise.
3950 * loader/i386/pc/linux.c: Likewise.
3951 * loader/i386/pc/multiboot2.c: Likewise.
3952 * loader/i386/pc/chainloader.c: Likewise.
3953 * loader/i386/pc/xnu.c: Likewise.
3954 * loader/i386/bsd_trampoline.S: Likewise.
3955 * loader/i386/efi/linux.c: Likewise.
3956 * loader/i386/multiboot_elfxx.c: Likewise.
3957 * loader/i386/bsd_helper.S: Likewise.
3958 * loader/i386/bsd.c: Likewise.
3959 * loader/i386/linux_trampoline.S: Likewise.
3960 * loader/i386/xnu_helper.S: Likewise.
3961 * loader/i386/xnu.c: Likewise.
3962 * loader/i386/bsd_pagetable.c: Likewise.
3963 * loader/i386/multiboot_helper.S: Likewise.
3964 * loader/xnu.c: Likewise.
3965 * loader/xnu_resume.c: Likewise.
3966 * io/gzio.c: Likewise.
3967 * term/efi/console.c: Likewise.
3968 * term/terminfo.c: Likewise.
3969 * term/ieee1275/ofconsole.c: Likewise.
3970 * term/i386/pc/serial.c: Likewise.
3971 * term/i386/pc/vesafb.c: Likewise.
3972 * term/i386/pc/vga.c: Likewise.
3973 * term/usb_keyboard.c: Likewise.
3974 * term/gfxterm.c: Likewise.
3975 * aclocal.m4: Likewise.
3976 * util/lvm.c: Likewise.
3977 * util/grub.d/30_os-prober.in: Likewise.
3978 * util/grub.d/10_hurd.in: Likewise.
3979 * util/console.c: Likewise.
3980 * util/grub-macho2img.c: Likewise.
3981 * util/grub-probe.c: Likewise.
3982 * util/hostfs.c: Likewise.
3983 * util/i386/pc/grub-mkimage.c: Likewise.
3984 * util/i386/pc/grub-setup.c: Likewise.
3985 * util/i386/efi/grub-mkimage.c: Likewise.
3986 * util/grub-mkconfig.in: Likewise.
3987 * util/raid.c: Likewise.
3988 * util/resolve.c: Likewise.
3989 * util/grub-mkdevicemap.c: Likewise.
3990 * util/grub-emu.c: Likewise.
3991 * util/getroot.c: Likewise.
3992 * util/hostdisk.c: Likewise.
3993 * util/usb.c: Likewise.
3994 * util/grub-editenv.c: Likewise.
3995 * util/misc.c: Likewise.
3997 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
3999 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
4000 `genparttoollist.sh'.
4001 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
4002 Add `*.sh' to the list find searches for and change `mdate.sh'
4005 2009-06-10 Pavel Roskin <proski@gnu.org>
4007 * include/grub/multiboot2.h: Provide compatibility defines for
4009 * include/multiboot2.h: Include stdint.h only if needed, using
4011 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
4013 * loader/ieee1275/multiboot2.c: Likewise.
4014 * loader/multiboot2.c: Likewise.
4015 * loader/multiboot_loader.c: Likewise.
4017 * configure.ac: Use -nostdlib when probing for the target. It
4018 should not be required to have libc for the target.
4020 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
4021 they fail without libc headers for the target.
4022 * include/grub/powerpc/libgcc.h: Use weak attribute for all
4024 * include/grub/sparc64/libgcc.h: Likewise. Don't use
4025 preprocessor conditionals.
4027 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
4028 build system doesn't need to be aware of the tar.c internals.
4030 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
4032 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
4034 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
4036 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
4037 disk limit to 26 for IDE, Virtio, Xen and SCSI.
4039 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
4041 * util/i386/pc/grub-install.in: Change the error message if UUIDs
4042 aren't available if ata.mod gets used.
4044 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
4046 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
4047 initialising controller.
4048 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
4050 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
4052 * util/i386/pc/grub-install.in: Add a parameter --disk-module
4053 to choose between ata and biosdisk module on i386-pc.
4055 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
4057 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
4058 Subclass and Programming Interface fields in terms of the 3 byte
4059 Class Code register.
4060 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
4062 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
4063 interface is OHCI. Add grub_dprintf for symmetry with
4065 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
4066 interface is UHCI. Add interf variable for programming
4067 interface. Print interface with class/subclass.
4069 * bus/usb/ohci.c: Set interf with correct field.
4071 * bus/usb/uhci.c: Remove unneeded doubled lines.
4072 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
4073 Remove whitespace inside comment.
4075 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
4077 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
4078 as fallback an equivalent option without depth.
4080 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4082 Not fail if unable to retrieve C/H/S on LBA disks
4084 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
4085 if unable to retrieve C/H/S on LBA disks
4087 2009-06-08 Pavel Roskin <proski@gnu.org>
4089 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
4092 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
4094 * Makefile.in (uninstall): Remove all $lib_DATA files.
4096 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4098 Bugfix: install on partitionless device
4100 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
4103 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
4105 * Makefile.in (uninstall): Remove all $include_DATA files.
4107 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
4109 * commands/true.c: New file. Implement the true and false commands.
4110 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
4111 (true_mod_SOURCES): New variable.
4112 (true_mod_CFLAGS): Likewise.
4113 (true_mod_LDFLAGS): Likewise.
4115 2009-06-05 Colin D Bennett <colin@gibibit.com>
4117 Optimized font character lookup using binary search instead of linear
4118 search. Fonts now are required to have the character index ordered by
4121 * font/font.c (load_font_index): Verify that fonts have ordered
4123 (find_glyph): Use binary search instead of linear search to find a
4124 character in a font.
4126 2009-06-05 Michael Scherer <misc@mandriva.org>
4128 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
4129 uses case sensitive btree.
4130 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
4131 only for case insensitive filesystems.
4133 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4135 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
4136 * conf/common.rmk (search_mod_CFLAGS): likewise
4138 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4140 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
4141 compensate a compiler bug
4143 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4145 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
4148 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4150 Definitions for creating asm symbols with Apple's CC
4152 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
4153 [APPLE_CC] (VARIABLE): likewise
4155 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4157 Disable lnxboot.img when compiled
4160 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
4161 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
4162 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
4163 [! APPLE_CC] (CODE_LENG): skip
4164 [! APPLE_CC] (setup_sects): likewise
4165 [! APPLE_CC]: skip filling
4167 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4169 Address in trampolines based on 32-bit registers when compiled
4172 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
4174 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
4176 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4178 Avoid aliases when compiling with Apple's CC for PCBIOS machine
4180 * kern/misc.c [APPLE_CC] (memcpy): new function
4181 [APPLE_CC] (memmove): likewise
4182 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
4183 (memcpy): define alias conditionally on !APPLE_CC
4186 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
4187 APPLE_CC are defined
4188 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
4189 (grub_assert_fail): make prototype conditional
4191 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4193 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
4195 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
4197 (CLEANFILES): add grub-macho2img
4198 (grub_macho2img_SOURCES): new variable
4199 * kern/i386/pc/startup.S (bss_start): new variable
4201 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
4202 * util/grub-macho2img.c: new file
4204 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4206 Use objconv when compiling with Apple's CC
4208 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
4209 (efiemu64.o): likewise
4210 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
4211 when compiling with Apple's CC
4212 (efiemu64_s.o): likewise
4213 * configure.ac: check for objconv when compiling with Apple's CC
4214 * genmk.rb: use objconv for modules when compiled with Apple's CC
4216 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4218 Define segment as well as section when compiling with
4221 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
4222 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
4223 (efiemu_convert_pointer): likewise
4224 (efiemu_set_virtual_address_map): likewise
4225 (efiemu_convert_pointer): likewise
4226 (efiemu_getcrc32): likewise
4227 (init_crc32_table): likewise
4229 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
4230 (GRUB_MOD_DEP): likewise
4232 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4234 Allow a compilation without -mcmodel=large
4236 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
4237 when compiled without -mcmodel=large
4238 (filter_memory_map): remove memory post 4 GiB when compiled
4239 without -mcmodel=large
4240 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
4241 TARGET_CFLAGS when -mcmodel=large isn't supported
4243 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4245 Remove nested functions in efiemu core
4247 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
4249 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4251 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
4253 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
4255 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
4257 (grub_cpu_is_tsc_supported): likewise
4258 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
4260 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4262 Absolute addressing through constant with Apple's cc
4264 * kern/i386/pc/startup.S: Define necessary constants
4265 and address through it when using ABS with Apple's CC
4266 * boot/i386/pc/diskboot.S: likewise
4267 * boot/i386/pc/boot.S: likewise
4268 * boot/i386/pc/lnxboot.S: likewise
4269 * boot/i386/pc/cdboot.S: likewise
4270 * mmap/i386/pc/mmap_helper.S: likewise
4271 * commands/i386/pc/drivemap_int13h.S: likewise
4273 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4275 Check if compiler is apple cc
4277 * Makefile.in (ASFLAGS): new variable
4278 (TARGET_ASFLAGS): likewise
4279 (TARGET_MODULE_FORMAT): likewise
4280 (TARGET_APPLE_CC): likewise
4282 (TARGET_IMG_CFLAGS): likewise
4283 (TARGET_CPPFLAGS): add includedir
4284 * configure.ac: call grub_apple_cc and grub_apple_target_cc
4285 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
4286 Check for linker script only if compiler isn't Apple's CC
4287 (TARGET_MODULE_FORMAT): set
4288 (TARGET_APPLE_CC): likewise
4289 (TARGET_ASFLAGS): likewise
4291 Check for objcopy only if compiler isn't Apple's CC
4292 Check for BSS symbol only if compiler isn't Apple's CC
4293 * genmk.rb: adapt nm options if we use Apple's utils
4294 * aclocal.m4 (grub_apple_cc): new test
4295 (grub_apple_target_cc): likewise
4297 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4299 Simplify sed expressions and improve awk
4301 * Makefile.in (install-local): simplify sed expression
4302 * gencmdlist.sh: likewise
4303 * genmoddep.awk: avoid adding module as a dependency of itself
4305 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4307 Add missing start symbols
4309 * boot/i386/pc/boot.S: add start
4310 * boot/i386/pc/pxeboot.S: likewise
4312 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4314 Fix wrong assumptions with grub-mkimage on EFI
4316 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
4317 (relocate_addresses): consider both r_addend and value at offset
4318 (make_mods_section): zerofill modinfo and header
4319 (convert_elf): write prefix here
4321 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4323 Use .asciz instead of .string
4325 * i386/pc/diskboot.S: use .asciz instead of .string
4326 * i386/pc/boot.S: likewise
4327 * include/grub/dl.h (GRUB_MOD_DEP): likewise
4328 (GRUB_MOD_NAME): likewise
4330 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4334 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
4335 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
4336 (grub_video_setup): remove
4337 (grub_video_set_mode): new prototype
4338 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
4340 (linux_vesafb_res): compile only on PCBIOS
4341 (grub_linux_boot): support gfxpayload
4342 * loader/i386/pc/xnu.c (video_hook): new function
4343 (grub_xnu_set_video): support gfxpayload
4344 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
4345 (DEFAULT_VIDEO_HEIGHT): likewise
4346 (DEFAULT_VIDEO_FLAGS): likewise
4347 (DEFAULT_VIDEO_MODE): new definition
4348 (video_hook): new function
4349 (grub_gfxterm_init): use grub_video_set_mode
4350 * util/grub.d/30_os-prober.in: remove explicit modesetting before
4352 * video/video.c (grub_video_setup): removed
4353 (grub_video_set_mode): new function based on grub_gfxterm_init and
4356 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4358 Avoid calling biosdisk in drivemap
4360 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
4361 (revparse_biosdisk): likewise
4362 (list_mappings): derive name from id directly
4363 (grub_cmd_drivemap): use tryparse_diskstring
4365 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4369 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
4370 (grub_lexer_param): add tokenonhold
4371 (grub_script_create_cmdline): remove cmdline. All callers updated
4372 (grub_script_function_create): make functionname
4373 grub_script_arg. All callers updated
4374 (grub_script_execute_argument_to_string): new prototype
4375 * kern/parser.c (state_transitions): reorder
4376 (grub_parser_cmdline_state): fix a bug and make more compact
4377 * script/sh/execute.c (grub_script_execute_argument_to_string):
4379 (grub_script_execute_cmdline): use new format
4380 * script/sh/function.c (grub_script_function_create): make functionname
4381 grub_script_arg. All callers updated
4382 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
4383 (grub_script_yylex): remove
4384 (grub_script_yylex2): renamed to ...
4385 (grub_script_yylex): ...renamed
4386 parse the expressions like a${b}c
4387 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
4388 (GRUB_PARSER_TOKEN_VAR): remove
4389 (GRUB_PARSER_TOKEN_NAME): likewise
4390 ("if"): declare as typeless
4392 ("function"): likewise
4397 (argument): likewise
4398 (script): accept empty scripts and make exit on error
4399 (arguments): use GRUB_PARSER_TOKEN_ARG
4400 (function): likewise
4401 (command): move error handling to script
4402 (menuentry): move grub_script_lexer_ref before
4403 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
4404 argument. All callers updated
4406 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
4408 Prevent GRUB from probing floppies during boot.
4410 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
4411 * commands/search.c (options): Add --no-floppy.
4412 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
4413 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
4414 --no-floppy when searching for UUIDs.
4416 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
4418 Simplify the code duplication in commands/search.c.
4420 * commands/search.c (search_label, search_fs_uuid): Merge into ...
4421 (search_fs): ... this. Update all users.
4423 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
4425 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
4427 2009-05-28 Pavel Roskin <proski@gnu.org>
4429 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
4430 Remove the original symlink explicitly.
4432 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
4433 just one slash. That's how grub_fshelp_find_file() does it.
4435 2009-05-26 Pavel Roskin <proski@gnu.org>
4437 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
4440 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
4443 2009-05-25 Christian Franke <franke@computer.org>
4445 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
4447 (grub_atapi_identify): Add wait after drive select.
4448 (grub_ata_identify): Do more strict status register check before
4449 calling grub_atapi_identify (). Suppress error message if status
4450 register is 0x00 after command failure. Add status register
4451 check after PIO read to avoid bogus identify due to stuck DRQ.
4452 Thanks to Pavel Roskin for testing.
4453 (grub_device_initialize): Remove unsafe status register check.
4454 Thanks to 'phcoder' for problem report and patch.
4455 Prevent sign extension in debug message.
4457 2009-05-23 Colin D Bennett <colin@gibibit.com>
4459 Cleaned up `include/grub/normal.h'. Grouped prototypes by
4460 definition file, and functions defined in `normal/menu.c' have had
4461 their prototypes moved to `include/grub/menu.h' for consistency.
4463 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
4465 (grub_menu_get_entry): Likewise.
4466 (grub_menu_get_timeout): Likewise.
4467 (grub_menu_set_timeout): Likewise.
4468 (grub_menu_execute_entry): Likewise.
4469 (grub_menu_execute_with_fallback): Likewise.
4470 (grub_menu_entry_run): Likewise.
4472 * include/grub/normal.h: Re-ordered and grouped function
4473 prototypes by file that the function is defined in.
4474 (grub_menu_execute_callback): Removed; moved to menu.h.
4475 (grub_menu_get_entry): Likewise.
4476 (grub_menu_get_timeout): Likewise.
4477 (grub_menu_set_timeout): Likewise.
4478 (grub_menu_execute_entry): Likewise.
4479 (grub_menu_execute_with_fallback): Likewise.
4480 (grub_menu_entry_run): Likewise.
4481 (grub_menu_addentry): Renamed from this ...
4482 (grub_normal_add_menu_entry): ... to this.
4484 * normal/main.c (grub_menu_addentry): Renamed from this ...
4485 (grub_normal_add_menu_entry): ... to this.
4487 * script/sh/execute.c (grub_script_execute_menuentry): Update
4488 reference to renamed grub_menu_addentry function.
4490 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
4492 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
4494 2009-05-22 Pavel Roskin <proski@gnu.org>
4496 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
4497 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
4498 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
4499 compiling for the i386 targets, but not for the utilities.
4501 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
4503 (grub_root_drive): Likewise.
4504 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
4506 (grub_root_drive): Change size to byte.
4507 (grub_start_addr): Remove.
4508 (grub_end_addr): Likewise.
4509 (grub_apm_bios_info): Likewise.
4511 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
4513 * normal/i386: Remove.
4514 * normal/powerpc: Likewise.
4515 * normal/sparc64: Likewise.
4516 * normal/x86_64: Likewise.
4518 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
4520 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
4521 * loader/i386/linux_trampoline.S: Fix indentation
4522 * loader/i386/xnu_helper.S: Likewise
4524 2009-05-18 Colin D Bennett <colin@gibibit.com>
4526 Display error messages when parsing a Lua statement fails.
4527 Previously, executing a syntactically invalid statement like
4528 ")foo" or "bar;" would silently fail.
4530 * script/lua/grub_main.c (handle_lua_error): New function.
4531 (grub_lua_parse_line): Improved reporting of Lua parser and
4534 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4536 Remove -Werror which causes build to fail on some systems
4538 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
4539 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
4540 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
4542 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4544 trampoline for linux on 64-bit platform
4546 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
4547 loader/i386/efi/linux_trampoline.S
4548 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
4550 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
4552 * loader/i386/linux_trampoline.S: moved here
4553 * loader/i386/efi/linux.c (allocate_pages): reserve space for
4555 (jumpvector): removed
4556 (grub_linux_trampoline_start): new declaration
4557 (grub_linux_trampoline_end): likewise
4558 (grub_linux_boot): use trampoline when on 64-bit platform
4559 * loader/i386/linux.c: likewise
4561 2009-05-16 Pavel Roskin <proski@gnu.org>
4563 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
4564 const to avoid a warning.
4565 (grub_lua_setenv): Likewise.
4566 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
4567 lmsg to fix a warning.
4569 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
4571 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
4572 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
4573 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
4574 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
4575 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
4576 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
4577 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
4578 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
4580 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
4582 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
4584 2009-05-16 Bean <bean123ch@gmail.com>
4586 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
4587 (lua_mod_SOURCES): New variable.
4588 (lua_mod_CFLAGS): Likewise.
4589 (lua_mod_LDFLAGS): Likewise.
4591 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
4592 (setjmp_mod_SOURCES): New variable.
4593 (setjmp_mod_CFLAGS): Likewise.
4594 (setjmp_LDFLAGS): Likewise.
4596 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
4597 (setjmp_mod_SOURCES): New variable.
4598 (setjmp_mod_CFLAGS): Likewise.
4599 (setjmp_LDFLAGS): Likewise.
4601 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
4602 (setjmp_mod_SOURCES): New variable.
4603 (setjmp_mod_CFLAGS): Likewise.
4604 (setjmp_LDFLAGS): Likewise.
4606 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
4607 (setjmp_mod_SOURCES): New variable.
4608 (setjmp_mod_CFLAGS): Likewise.
4609 (setjmp_LDFLAGS): Likewise.
4611 * normal/i386/setjmp.S: Moved from here ...
4612 * lib/i386/setjmp.S: ... Moved here
4613 * normal/x86_64/setjmp.S: Moved from here ...
4614 * lib/x86_64/setjmp.S: ... Moved here
4615 * normal/powerpc/setjmp.S: Moved from here ...
4616 * lib/powerpc/setjmp.S: ... Moved here
4617 * normal/sparc64/setjmp.S: Moved from here ...
4618 * lib/sparc64/setjmp.S: ... Moved here
4620 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
4621 returns_twice in mingw.
4623 * script/lua/grub_lib.c: New file.
4624 * script/lua/grub_lib.h: Likewise.
4625 * script/lua/grub_lua.h: Likewise.
4626 * script/lua/grub_main.c: Likewise.
4627 * script/lua/lapi.c: Likewise.
4628 * script/lua/lapi.h: Likewise.
4629 * script/lua/lauxlib.c: Likewise.
4630 * script/lua/lauxlib.h: Likewise.
4631 * script/lua/lbaselib.c: Likewise.
4632 * script/lua/lcode.c: Likewise.
4633 * script/lua/lcode.h: Likewise.
4634 * script/lua/ldblib.c: Likewise.
4635 * script/lua/ldebug.c: Likewise.
4636 * script/lua/ldebug.h: Likewise.
4637 * script/lua/ldo.c: Likewise.
4638 * script/lua/ldo.h: Likewise.
4639 * script/lua/ldump.c: Likewise.
4640 * script/lua/lfunc.c: Likewise.
4641 * script/lua/lfunc.h: Likewise.
4642 * script/lua/lgc.c: Likewise.
4643 * script/lua/lgc.h: Likewise.
4644 * script/lua/linit.c: Likewise.
4645 * script/lua/liolib.c: Likewise.
4646 * script/lua/llex.c: Likewise.
4647 * script/lua/llex.h: Likewise.
4648 * script/lua/llimits.h: Likewise.
4649 * script/lua/lmathlib.c: Likewise.
4650 * script/lua/lmem.c: Likewise.
4651 * script/lua/lmem.h: Likewise.
4652 * script/lua/loadlib.c: Likewise.
4653 * script/lua/lobject.c: Likewise.
4654 * script/lua/lobject.h: Likewise.
4655 * script/lua/lopcodes.c: Likewise.
4656 * script/lua/lopcodes.h: Likewise.
4657 * script/lua/loslib.c: Likewise.
4658 * script/lua/lparser.c: Likewise.
4659 * script/lua/lparser.h: Likewise.
4660 * script/lua/lstate.c: Likewise.
4661 * script/lua/lstate.h: Likewise.
4662 * script/lua/lstring.c: Likewise.
4663 * script/lua/lstring.h: Likewise.
4664 * script/lua/lstrlib.c: Likewise.
4665 * script/lua/ltable.c: Likewise.
4666 * script/lua/ltable.h: Likewise.
4667 * script/lua/ltablib.c: Likewise.
4668 * script/lua/ltm.c: Likewise.
4669 * script/lua/ltm.h: Likewise.
4670 * script/lua/lua.h: Likewise.
4671 * script/lua/luaconf.h: Likewise.
4672 * script/lua/lualib.h: Likewise.
4673 * script/lua/lundump.c: Likewise.
4674 * script/lua/lundump.h: Likewise.
4675 * script/lua/lvm.c: Likewise.
4676 * script/lua/lvm.h: Likewise.
4677 * script/lua/lzio.c: Likewise.
4678 * script/lua/lzio.h: Likewise.
4680 2009-05-16 Bean <bean123ch@gmail.com>
4682 * include/grub/kernel.h (grub_module_header_types): Add type
4685 * kern/main.c (grub_load_config): New function.
4686 (grub_main): Call grub_load_config to read boot config.
4688 * grub-mkimage (generate_image): New parameter config_path.
4689 (options): New option --config.
4690 (main): Parse --config option, and pass it to generate_image.
4692 2009-05-14 Christian Franke <franke@computer.org>
4694 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
4695 This fixes build on Cygwin.
4697 2009-05-14 Pavel Roskin <proski@gnu.org>
4699 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
4700 jump. This saves two bytes, so the typical case of 2 swapped
4701 drives would fit 32 bytes.
4703 2009-05-13 Pavel Roskin <proski@gnu.org>
4705 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
4706 grub_uint32_t to avoid a warning.
4708 * loader/i386/linux.c (allocate_pages): When assigning
4709 real_mode_mem, cast through grub_size_t to fix a warning. The
4710 code already makes sure that the value would fit a pointer.
4711 (grub_linux_setup_video): Cast render_target->data to
4712 grub_size_t to fix a warning.
4714 2009-05-13 Javier MartÃn <lordhabbit@gmail.com>
4716 * commands/i386/pc/drivemap.c: New file - implement drivemap
4718 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
4719 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
4721 2009-05-13 Pavel Roskin <proski@gnu.org>
4723 * util/i386/pc/grub-setup.c (setup): Remove unused variable
4724 embedding_area_exists.
4726 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
4728 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
4729 it easier to understand / work with.
4730 Improve warning messages for cases where there's no embedding area,
4731 or when it is too small (or core.img too large).
4733 2009-05-13 Pavel Roskin <proski@gnu.org>
4735 * loader/i386/pc/multiboot2.c: Add necessary includes for
4736 grub_multiboot2_real_boot().
4738 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
4739 PX record is always little-endian. We only need the lower 2
4742 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
4743 facilitate code reuse.
4744 (grub_cpio_mount): Use "struct head", not a char buffer. This
4745 fixes a warning reported by gcc 4.4.
4747 * kernel/disk.c (grub_disk_read): Use void pointer for the
4749 (grub_disk_write): Use const void pointer for the buffer.
4750 Adjust all callers. Remove unnecessary casts.
4752 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
4754 * util/i386/pc/grub-install.in: Update copyright year.
4756 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4760 * commands/gptsync.c: new file
4761 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
4762 (gptsync_mod_SOURCES): new variable
4763 (gptsync_mod_CFLAGS): likewise
4764 (gptsync_mod_LDFLAGS): likewise
4765 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
4767 (GRUB_PC_PARTITION_TYPE_HFS): likewise
4768 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
4769 * conf/i386-ieee1275.rmk: likewise
4770 * conf/i386-pc.rmk: likewise
4771 * conf/powerpc-ieee1275.rmk: likewise
4773 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4777 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
4778 (grub_dl_ref): likewise
4780 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
4782 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
4783 split in two functions (one for msdos and one for gpt).
4785 2009-05-08 Pavel Roskin <proski@gnu.org>
4787 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
4790 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
4791 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
4792 Initialize them with -1. Add sanity check for bad1. Eliminate
4795 2009-05-08 David S. Miller <davem@davemloft.net>
4797 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
4799 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
4801 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
4804 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
4806 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
4807 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
4809 2009-05-05 David S. Miller <davem@davemloft.net>
4811 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
4813 2009-05-05 Pavel Roskin <proski@gnu.org>
4815 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
4816 of grub_dl_ref() and grub_dl_unref().
4817 * commands/parttool.c: Remove preprocessor conditionals around
4818 grub_dl_ref() and grub_dl_unref().
4819 * fs/affs.c: Likewise.
4820 * fs/afs.c: Likewise.
4821 * fs/cpio.c: Likewise.
4822 * fs/ext2.c: Likewise.
4823 * fs/fat.c: Likewise.
4824 * fs/hfs.c: Likewise.
4825 * fs/hfsplus.c: Likewise.
4826 * fs/iso9660.c: Likewise.
4827 * fs/jfs.c: Likewise.
4828 * fs/minix.c: Likewise.
4829 * fs/ntfs.c: Likewise.
4830 * fs/reiserfs.c: Likewise.
4831 * fs/sfs.c: Likewise.
4832 * fs/udf.c: Likewise.
4833 * fs/ufs.c: Likewise.
4834 * fs/xfs.c: Likewise.
4835 * include/grub/dl.h: Likewise.
4836 * loader/xnu.c: Likewise.
4838 2009-05-04 Pavel Roskin <proski@gnu.org>
4840 * commands/acpi.c: Remove unused variable my_mod.
4841 * partmap/amiga.c: Likewise.
4842 * partmap/apple.c: Likewise.
4843 * partmap/gpt.c: Likewise.
4844 * partmap/pc.c: Likewise.
4845 * partmap/sun.c: Likewise.
4846 * term/gfxterm.c: Likewise.
4847 * term/i386/pc/vesafb.c: Likewise.
4848 * term/i386/pc/vga.c: Likewise.
4850 2009-05-04 David S. Miller <davem@davemloft.net>
4852 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
4853 pointer args to grub_ieee1275_get_property().
4855 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
4857 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
4858 devices, and do not traverse down under controller nodes.
4860 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
4861 (grub_ofdisk_open): Use it to un-escape "," characters.
4862 * kern/disk.c (find_part_sep): New.
4863 (grub_disk_open): Use it to find the first non-escaped ','
4864 character in the disk name.
4865 * util/ieee1275/devicemap.c (escape_of_path): New.
4866 (grub_util_emit_devicemap_entry): Use it.
4867 * util/sparc64/ieee1275/grub-install.in: Update script to
4868 strip partition specifiers properly by not triggering on
4869 '\' escaped ',' characters.
4871 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4873 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
4875 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
4877 (linux_vesafb_modes): Add a lot of additional modes to the list (based
4878 on documentation from Wikipedia).
4880 2009-05-04 Pavel Roskin <proski@gnu.org>
4882 * disk/ata.c: Spelling fixes.
4883 * disk/raid.c: Likewise.
4884 * disk/usbms.c: Likewise.
4885 * disk/dmraid_nvidia.c: Likewise.
4886 * kern/ieee1275/openfw.c: Likewise.
4887 * kern/ieee1275/init.c: Likewise.
4888 * kern/ieee1275/cmain.c: Likewise.
4889 * boot/i386/pc/cdboot.S: Likewise.
4890 * video/readers/png.c: Likewise.
4891 * video/i386/pc/vbe.c: Likewise.
4892 * fs/udf.c: Likewise.
4893 * fs/hfs.c: Likewise.
4894 * fs/reiserfs.c: Likewise.
4895 * efiemu/runtime/efiemu.c: Likewise.
4896 * efiemu/main.c: Likewise.
4897 * efiemu/mm.c: Likewise.
4898 * include/grub/elf.h: Likewise.
4899 * include/grub/xnu.h: Likewise.
4900 * include/grub/usbdesc.h: Likewise.
4901 * include/grub/usb.h: Likewise.
4902 * include/grub/script_sh.h: Likewise.
4903 * include/grub/lib/LzmaEnc.h: Likewise.
4904 * include/grub/efiemu/efiemu.h: Likewise.
4905 * include/grub/command.h: Likewise.
4906 * normal/menu.c: Likewise.
4907 * normal/main.c: Likewise.
4908 * normal/datetime.c: Likewise.
4909 * bus/usb/uhci.c: Likewise.
4910 * mmap/i386/uppermem.c: Likewise.
4911 * mmap/mmap.c: Likewise.
4912 * commands/acpi.c: Likewise.
4913 * commands/test.c: Likewise.
4914 * partmap/apple.c: Likewise.
4915 * font/font.c: Likewise.
4916 * loader/sparc64/ieee1275/linux.c: Likewise.
4917 * loader/macho.c: Likewise.
4918 * loader/i386/bsd_trampoline.S: Likewise.
4919 * loader/i386/bsd.c: Likewise.
4920 * loader/xnu.c: Likewise.
4921 * term/i386/pc/vesafb.c: Likewise.
4922 * term/usb_keyboard.c: Likewise.
4923 * util/resolve.c: Likewise.
4924 * util/getroot.c: Likewise.
4926 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
4928 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
4930 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4932 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
4935 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4937 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
4938 parameter only available on BIOS.
4940 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4942 Removed wrong semicolon in declaration
4944 * grub/misc.h (grub_dprintf): remove semicolon
4946 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4948 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
4949 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
4950 is done by grub_cmd_linux() now).
4951 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
4952 restore video to text mode.
4953 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
4954 indicates lack of "vga=" parameter. "vga=0" is mapped to
4955 `GRUB_LINUX_VID_MODE_NORMAL'.
4957 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
4959 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
4960 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
4961 and `normal/script.c'. Add `kern/rescue_reader.c',
4962 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
4963 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
4964 `grub_script.tab.c'.
4966 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4967 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4968 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4969 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
4970 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4972 * Makefile.in: Remove duplicated 2008 in Copyright line.
4974 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4976 * util/misc.c (grub_util_warn): New function. Emits a warning
4978 * include/grub/util/misc.h (grub_util_warn): New declaration.
4980 * util/i386/pc/grub-install.in: Understand --force and pass it down
4983 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
4985 (setup): Improve error messages and add warnings when requested to
4986 install in odd layouts. Refuse to install using blocklists unless
4989 2009-05-04 martin f. krafft <madduck@madduck.net>
4991 * disk/raid.c (grub_raid_scan_device): Improve debug message.
4993 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4995 Updated copyright year
4997 * fs/hfsplus.c: updated copyright year
4999 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5003 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
5004 in the space previously used by unused3
5005 (grub_hfsplus_uuid): new function
5006 (grub_hfsplus_fs): added uuid field
5008 2009-05-03 Pavel Roskin <proski@gnu.org>
5010 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
5011 suppress warnings. It's no longer needed.
5012 * disk/host.c: Likewise.
5013 * disk/ata_pthru.c: Likewise.
5014 * disk/loopback.c: Likewise.
5015 * hook/datehook.c: Likewise.
5016 * parttool/pcpart.c: Likewise.
5017 * fs/i386/pc/pxe.c: Likewise.
5018 * fs/ntfscomp.c: Likewise.
5019 * efiemu/main.c: Likewise.
5020 * mmap/mmap.c: Likewise.
5021 * commands/crc.c: Likewise.
5022 * commands/hexdump.c: Likewise.
5023 * commands/hdparm.c: Likewise.
5024 * commands/acpi.c: Likewise.
5025 * commands/echo.c: Likewise.
5026 * commands/minicmd.c: Likewise.
5027 * commands/blocklist.c: Likewise.
5028 * commands/memrw.c: Likewise.
5029 * commands/loadenv.c: Likewise.
5030 * commands/usbtest.c: Likewise.
5031 * commands/lsmmap.c: Likewise.
5032 * commands/boot.c: Likewise.
5033 * commands/parttool.c: Likewise.
5034 * commands/configfile.c: Likewise.
5035 * commands/search.c: Likewise.
5036 * commands/ieee1275/suspend.c: Likewise.
5037 * commands/cat.c: Likewise.
5038 * commands/i386/pc/pxecmd.c: Likewise.
5039 * commands/i386/pc/play.c: Likewise.
5040 * commands/i386/pc/halt.c: Likewise.
5041 * commands/i386/pc/vbeinfo.c: Likewise.
5042 * commands/i386/pc/vbetest.c: Likewise.
5043 * commands/lspci.c: Likewise.
5044 * commands/date.c: Likewise.
5045 * commands/handler.c: Likewise.
5046 * commands/ls.c: Likewise.
5047 * commands/test.c: Likewise.
5048 * commands/cmp.c: Likewise.
5049 * commands/efi/loadbios.c: Likewise.
5050 * commands/efi/fixvideo.c: Likewise.
5051 * commands/halt.c: Likewise.
5052 * commands/help.c: Likewise.
5053 * commands/reboot.c: Likewise.
5054 * hello/hello.c: Likewise.
5055 * script/sh/main.c: Likewise.
5056 * loader/xnu.c: Likewise.
5057 * term/terminfo.c: Likewise.
5058 * term/i386/pc/serial.c: Likewise.
5059 * term/usb_keyboard.c: Likewise.
5061 2009-05-03 David S. Miller <davem@davemloft.net>
5063 * normal/menu.c: Include grub/parser.h
5065 2009-05-03 Pavel Roskin <proski@gnu.org>
5067 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
5069 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
5070 Suggested by Javier MartÃn <lordhabbit@gmail.com>
5072 * util/i386/pc/grub-mkrescue.in: Allow for the case when
5073 efiemu??.o doesn't exist.
5074 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
5077 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
5079 FreeBSD 64-bit support
5081 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
5082 and loader/i386/bsd_trampoline.S
5083 (bsd_mod_ASFLAGS): new variable
5084 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
5085 (FREEBSD_MODTYPE_KERNEL64): likewise
5086 (grub_bsd64_trampoline_start): likewise
5087 (grub_bsd64_trampoline_end): likewise
5088 (grub_bsd64_trampoline_selfjump): likewise
5089 (grub_bsd64_trampoline_gdt): likewise
5090 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
5091 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
5092 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
5093 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
5094 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
5096 * loader/i386/bsd_pagetable.c: new file
5097 * loader/i386/bsd_trampoline.S: likewise
5098 * loader/i386/bsd.c (ALIGN_QWORD): new macro
5099 (ALIGN_VAR): likewise
5100 (entry_hi): new variable
5101 (kern_end_mdofs): likewise
5102 (is_64bit): likewise
5103 (grub_freebsd_add_meta): use ALIGN_VAR
5104 (grub_e820_mmap): new declaration
5105 (grub_freebsd_add_mmap): new function
5106 (grub_freebsd_add_meta_module): support 64 bit kernels
5107 (grub_freebsd_list_modules): use ALIGN_VAR
5108 (gdt_descriptor): new declaration
5109 (grub_freebsd_boot): support 64 bit kernels
5110 (grub_bsd_elf64_hook): new function
5111 (grub_bsd_load_elf): support elf64
5113 2009-05-03 Bean <bean123ch@gmail.com>
5115 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
5116 after we get the result of if statement.
5118 2009-05-03 Bean <bean123ch@gmail.com>
5120 * Makefile.in (enable_efiemu): New variable.
5122 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
5124 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
5126 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
5127 path, add -mno-red-zone option.
5128 (efiemu64_s.o): Likewise.
5129 (efiemu64.o): Use macro $^ for source file.
5131 * configure.ac (--enable-efiemu): New option.
5133 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5137 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
5138 (pkglib_MODULES): add xnu.mod
5139 (xnu_mod_SOURCES): new variable
5140 (xnu_mod_CFLAGS): likewise
5141 (xnu_mod_LDFLAGS): likewise
5142 (xnu_mod_ASFLAGS): likewise
5143 * conf/i386-pc.rmk: likewise
5144 * conf/x86_64-efi.rmk: likewise
5145 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
5147 * include/grub/i386/macho.h: new file
5148 * include/grub/i386/xnu.h: likewise
5149 * include/grub/macho.h: likewise
5150 * include/grub/machoload.h: likewise
5151 * include/grub/x86_64/macho.h: likewise
5152 * include/grub/x86_64/xnu.h: likewise
5153 * include/grub/xnu.h: likewise
5154 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
5155 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
5156 * loader/i386/efi/xnu.c: new file
5157 * loader/i386/pc/xnu.c: likewise
5158 * loader/i386/xnu.c: likewise
5159 * loader/i386/xnu_helper.S: likewise
5160 * loader/macho.c: likewise
5161 * loader/xnu.c: likewise
5162 * loader/xnu_resume.c: likewise
5163 * util/grub-dumpdevtree: likewise
5164 * include/grub/i386/pit.h: include grub/err.h
5165 (grub_pit_wait): export
5166 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
5168 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5172 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
5173 _linux_efi, linux_efi.
5174 new files in grub-emu
5175 new targets efiemu32.o and efiemu64.o
5176 * loader/linux_normal_efiemu.c: likewise
5177 * loader/i386/efi/linux.c: added preliminary efiemu support
5178 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5180 * include/grub/autoefi.h: new file
5181 * include/grub/i386/efiemu.h: likewise
5182 * include/grub/i386/pc/efiemu.h: likewise
5183 * include/grub/efi/api.h: add LL suffix when necessary
5184 new definitions relating to tables
5185 * include/grub/efiemu/efiemu.h: new file
5186 * include/grub/efiemu/runtime.h: likewise
5187 * efiemu/prepare.c: likewise
5188 * efiemu/loadcore_common.c: likewise
5189 * efiemu/loadcore64.c: likewise
5190 * efiemu/runtime/efiemu.sh: likewise
5191 * efiemu/runtime/efiemu.S: likewise
5192 * efiemu/runtime/efiemu.c: likewise
5193 * efiemu/runtime/config.h: likewise
5194 * efiemu/prepare32.c: likewise
5195 * efiemu/main.c: likewise
5196 * efiemu/modules/pnvram.c: likewise
5197 * efiemu/modules/i386: likewise
5198 * efiemu/modules/i386/pc: likewise
5199 * efiemu/modules/acpi.c: likewise
5200 * efiemu/i386/pc/cfgtables.c: likewise
5201 * efiemu/i386/loadcore64.c: likewise
5202 * efiemu/i386/loadcore32.c: likewise
5203 * efiemu/prepare64.c: likewise
5204 * efiemu/loadcore.c: likewise
5205 * efiemu/symbols.c: likewise
5206 * efiemu/mm.c: likewise
5207 * efiemu/loadcore32.c: likewise
5209 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5213 * commands/acpi.c: new file
5214 * commands/i386/pc/acpi.c: likewise
5215 * commands/efi/acpi.c: likewise
5216 * include/grub/acpi.h: likewise
5217 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
5218 (acpi_mod_SOURCES): new variable
5219 (acpi_mod_CFLAGS): likewise
5220 (acpi_mod_LDFLAGS): likewise
5221 * conf/i386-efi.rmk: likewise
5222 * conf/x86_64-efi.rmk: likewise
5224 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5226 Missing part from mmap patch
5228 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
5229 (grub_mmap_unregister)
5230 (grub_mmap_free_and_unregister): use grub_mmap_register
5232 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5236 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
5237 * loader/i386/linux.c (find_mmap_size): likewise
5238 (allocate_pages): likewise
5239 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
5240 (grub_fill_multiboot_mmap): likewise
5241 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
5242 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
5243 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
5244 (OPENBSD_MMAP_RESERVED): likewise
5245 * include/grub/i386/pc/memory.h: include grub/memory.h
5246 (grub_lower_mem): removed
5247 (grub_upper_mem): likewise
5248 (GRUB_MACHINE_MEMORY_ACPI): new definition
5249 (GRUB_MACHINE_MEMORY_NVS): likewise
5250 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
5251 (GRUB_MACHINE_MEMORY_HOLE): likewise
5252 (grub_machine_mmap_register): likewise
5253 (grub_machine_mmap_unregister): likewise
5254 (grub_machine_get_upper): likewise
5255 (grub_machine_get_lower): likewise
5256 (grub_machine_get_post64): likewise
5257 * include/grub/i386/efi/memory.h: new file
5258 * include/grub/x86_64/efi/memory.h: likewise
5259 * include/grub/efi/memory.h: likewise
5260 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
5261 (mmap_mod_SOURCES): new variable
5262 (mmap_mod_LDFLAGS): likewise
5263 (mmap_mod_ASFLAGS): likewise
5264 * conf/i386-coreboot.rmk: likewise
5265 * conf/i386-ieee1275.rmk: likewise
5266 * conf/i386-efi.rmk: likewise
5267 * conf/x86_64-efi.rmk: likewise
5268 * include/grub/types.h (UINT_TO_PTR): new macro
5269 (PTR_TO_UINT32): likewise
5270 (PTR_TO_UINT64): likewise
5271 * include/grub/memory.h: new file
5272 * mmap/i386/pc/mmap.c: likewise
5273 * mmap/i386/pc/mmap_helper.S: likewise
5274 * mmap/i386/uppermem.c: likewise
5275 * mmap/mmap.c: likewise
5276 * mmap/efi/mmap.c: likewise
5277 * kern/i386/coreboot/init.c (grub_machine_init): don't use
5279 * kern/i386/pc/init.c (grub_lower_mem): removed variable
5280 (grub_upper_mem): likewise
5281 (grub_machine_init): don't use grub_upper_mem,
5282 make grub_lower_mem local
5283 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
5284 grub_mmap_iterate and grub_mmap_get_upper
5285 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
5287 2009-05-02 Bean <bean123ch@gmail.com>
5289 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
5291 (pkglib_MODULES): Add normal.mod and sh.mod.
5292 (normal_SOURCES): New variable.
5293 (normal_mod_CFLAGS): Likewise.
5294 (normal_mod_LDFLAGS): Likewise.
5295 (sh_mod_SOURCES): Likewise.
5296 (sh_mod_CFLAGS): Likewise.
5297 (sh_mod_LDFLAGS): Likewise.
5299 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
5300 script/sh/lexer.c_DEPENDENCIES.
5301 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
5302 kern/rescue_reader.c and kern/rescue_parser.c.
5303 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
5304 (grub_emu_SOURCES): Change source files.
5305 (pkglib_MODULES): Remove normal.mod.
5306 (normal_SOURCES): Removed.
5307 (normal_mod_CFLAGS): Likewise.
5308 (normal_mod_LDFLAGS): Likewise.
5309 * conf/i386-coreboot.rmk: Likewise.
5310 * conf/i386-efi.rmk: Likewise.
5311 * conf/i386-ieee1276.rmk: Likewise.
5312 * conf/powerpc-ieee1275.rmk: Likewise.
5313 * conf/sparc64-ieee1275.rmk: Likewise.
5314 * conf/x86_64-efi.rmk: Likewise.
5316 * include/grub/command.h (grub_command_execute): New inline function.
5318 * include/grub/menu.h (grub_menu_entry): Removed commands field.
5320 * include/grub/normal.h: Remove <grub/setjmp.h>.
5321 (grub_fs_module_list): Moved to normal/autofs.c.
5322 (grub_exit_env): Removed.
5323 (grub_command_execute): Likewise.
5324 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
5326 (read_command_list): New function declaration.
5327 (read_fs_list): Likewise.
5329 * include/parser.h: Include <grub/reader.h>.
5330 (grub_parser_split_cmdline): Change type of getline parameter.
5331 (grub_parser): New structure.
5332 (grub_parser_class): New variable.
5333 (grub_parser_execute): New function declaration.
5334 (grub_register_rescue_parser): Likewise.
5335 (grub_parser_register): New inline function.
5336 (grub_parser_unregister): Likewise.
5337 (grub_parser_get_current): Likewise.
5338 (grub_parser_set_current): Likewise.
5340 * include/grub/reader.h: New file.
5341 * kern/reader.c: Likewise.
5342 * kern/rescue_parser.c: Likewise.
5343 * kern/rescue_reader.c: Likewise.
5344 * normal/autofs.c: Likewise.
5345 * normal/dyncmd.c: Likewise.
5347 * include/grub/rescue.h: Removed.
5348 * normal/command.h: Likewise.
5350 * include/grub/script.h: Moved to ...
5351 * include/grub/script_sh.h: ... Moved here.
5352 * normal/execute.c: Moved to ...
5353 * script/sh/execute.c: ... Moved here.
5354 * normal/function.c: Moved to ...
5355 * script/sh/function.c: ... Moved here.
5356 * normal/lexer.c: Moved to ...
5357 * script/sh/lexer.c: ... Moved here.
5358 * normal/parser.y: Moved to ...
5359 * script/sh/parser.y: ... Moved here.
5360 * normal/script.c: Moved to ...
5361 * script/sh/script.c: ... Moved here.
5363 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
5365 (grub_exit_env): Removed.
5366 (fs_module_list): Moved to normal/autofs.c.
5367 (grub_file_getline): Don't handle comment here.
5368 (free_menu): Skip removed field entry->commands.
5369 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
5371 (read_config_file): Removed nested parameter, change getline function.
5372 (grub_enter_normal_mode): Removed.
5373 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
5374 (read_command_list): Likewise.
5375 (autoload_fs_module): Moved to normal/autofs.c.
5376 (read_fs_list): Likewise.
5377 (reader_nested): New variable.
5378 (grub_normal_execute): Run parser.sh to switch to sh parser.
5379 (grub_cmd_rescue): Removed.
5380 (cmd_normal): Removed.
5381 (grub_cmd_normal): Unregister itself at the beginning. Don't register
5383 (grub_cmdline_run): New function.
5384 (grub_normal_reader_init): Likewise.
5385 (grub_normal_read_line): Likewise.
5386 (grub_env_write_pager): Likewise.
5387 (cmdline): New variable.
5388 (grub_normal_reader): Likewise.
5389 (GRUB_MOD_INIT): Register normal reader and set as current, register
5390 pager hook, register normal command with grub_register_command_prio,
5391 so that it won't show up in command.lst.
5392 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
5393 grub_fs_autoload_hook.
5395 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
5396 (grub_menu_execute_entry): Replace grub_script_execute with
5397 grub_parser_execute, change parameter to grub_command_execute.
5399 * normal/menu_text.c: Remove <grub/script.h>.
5401 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
5402 and <grub/parser.h>.
5403 (run): Change editor_getline to use new parser interface. Change
5404 parameter to grub_command_execute.
5406 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
5407 <grub/reader.h> and <grub/parser.h>.
5408 (grub_load_normal_mode): Execute normal command.
5409 (grub_main): Call grub_register_core_commands,
5410 grub_register_rescue_parser and grub_register_rescue_reader, use
5411 grub_reader_loop to enter input loop.
5413 * kern/parser.c (grub_parser_split_cmdline): Change type of
5415 (grub_parser_class): New variable.
5416 (grub_parser_execute): New function.
5418 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
5419 * loader/multiboot2.c: Likewise.
5420 * loader/sparc64/ieee1275/linux.c: Likewise.
5422 * util/grub-emu.c (read_command_list): New dummy function.
5424 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
5426 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
5427 count to 16 for CCISS and IDA.
5429 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
5431 * normal/menu_text.c (grub_wait_after_message): Print a newline
5432 after waiting for user input.
5434 * loader/i386/linux.c: Include `<grub/normal.h>'.
5435 (grub_cmd_linux): Improve the error message about `ask' mode, by
5436 waiting for user input so it's not missed (we can do this, since
5437 user requested interaction).
5439 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5441 Added missing lst to grub-mkrescue
5443 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
5444 and ${input_dir}/parttool.lst
5446 2009-04-30 David S. Miller <davem@davemloft.net>
5448 * util/hostdisk.c (device_is_wholedisk): New function.
5449 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
5450 zero only if device_is_wholedisk() returns true.
5452 * util/hostdisk.c (convert_system_partition_to_system_disk):
5453 Handle virtual disk devices named /dev/vdiskX as found on sparc
5456 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
5457 lettered partition specifier is found, convert to numbered.
5459 2009-04-29 David S. Miller <davem@davemloft.net>
5461 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
5462 * include/grub/sparc64/ieee1275/memory.h: Likewise.
5464 * normal/command.c: Add missing newline at end of file.
5466 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
5468 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
5469 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
5470 grub_ofdisk_read): Likewise, and deal similarly with the fact that
5471 ihandles have a 32-bit type but need to be stored in a "void *".
5473 2009-04-28 Pavel Roskin <proski@gnu.org>
5475 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
5476 not disk. Adjust all dependencies.
5477 (grub_fs_uuid_close): Use grub_device_close(), not
5480 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
5481 parent's partition, don't copy it by reference, as it gets freed
5484 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5486 Preboot hooks support
5488 * commands/boot.c (struct grub_preboot_t): new declaration
5489 (preboots_head): new variable
5490 (preboots_tail): likewise
5491 (grub_loader_register_preboot_hook): new function
5492 (grub_loader_unregister_preboot_hook): likewise
5493 (grub_loader_set): launch preboot hooks
5494 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
5495 (grub_loader_register_preboot_hook): new declaration
5496 (grub_loader_unregister_preboot_hook): likewise
5498 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5502 * disk/scsi.c (grub_scsi_open): added missing cast when
5503 calling grub_dprintf
5505 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5507 Bug and warning fixes
5509 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
5511 * commands/test.c (test_parse): fixed bug with file tests and corrected
5512 declaration of find_file
5514 2009-04-26 Pavel Roskin <proski@gnu.org>
5516 * Makefile.in: Don't install empty manual pages if help2man is
5517 missing. Use help2man option for output, not shell redirection.
5519 2009-04-26 David S. Miller <davem@davemloft.net>
5521 * util/grub-mkdevicemap.c (make_device_map): Add missing
5522 NESTED_FUNC_ATTR to process_device().
5524 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5528 * commands/test.c: rewritten to use bash-like test
5530 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5532 Parttool autoloading and improvements
5534 * Makefile.in (pkglib_DATA): add parttool.lst
5535 (parttool.lst): new target
5536 * genmk.rb: generate parttool-*
5537 (CLEANFILES): add #{parttool}
5538 (PARTTOOLFILES): new variable
5539 * genparttoollist.sh: new file
5540 * parttool/pcpart.c (grub_pcpart_boot): more feedback
5541 (grub_pcpart_type): likewise
5542 * commands/parttool.c (helpmsg): new variable
5543 (grub_cmd_parttool): output help if not enough arguments are supplied
5545 (GRUB_MOD_INIT(parttool)): use helpmsg
5547 2009-04-24 David S. Miller <davem@davemloft.net>
5549 Avoiding opening same device multiple times in device iterator.
5551 * kern/device.c: (grub_device_iterate): Define struct part_ent,
5552 and use it to build a list of partitions in iterate_disk() and
5553 iterate_partition().
5555 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
5558 * disk/ieee1275/nand.c (grub_nand_iterate): Return
5559 grub_devalias_iterate() result instead of unconditional 0.
5560 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
5561 Also, capture hook return value, either directly or via
5562 grub_children_iterate(), and propagate to caller.
5563 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
5564 grub_children_iterate): Return value is now 'int' instead of
5566 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
5567 like a proper iterator, stopping when hooks return non-zero.
5568 (grub_devalias_iterate): Likewise.
5570 2009-04-23 David S. Miller <davem@davemloft.net>
5572 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
5574 2009-04-22 David S. Miller <davem@davemloft.net>
5576 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
5577 is larger than address_cells, use that value for address_cells too.
5579 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
5580 IEEE1275_MAX_PATH_LEN): Define.
5581 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
5582 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
5583 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
5584 'devtype'. Explicitly NULL terminate devalias expansion.
5586 * util/sparc64/ieee1275/misc.c: New file.
5587 * util/sparc64/ieee1275/grub-setup.c: New file.
5588 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
5589 * util/sparc64/ieee1275/grub-mkimage.c: New file.
5590 * util/sparc64/ieee1275/grub-install.in: New file.
5591 * util/ieee1275/ofpath.c: New file.
5592 * util/ieee1275/devicemap.c: New file.
5593 * util/devicemap.c: New file.
5594 * util/deviceiter.c: New file.
5595 * kern/sparc64/ieee1275/init.c: New file.
5596 * include/grub/util/ofpath.h: New file.
5597 * include/grub/util/deviceiter.h: New file.
5598 * util/grub-mkdevicemap.c: Include deviceiter.h.
5599 Implement using grub_util_emit_devicemap_entry and
5600 grub_util_iterate_devices.
5601 * conf/i386-corebook.rmk: Build util/deviceiter.c and
5602 util/devicemap.c into grub-mkdevicemap
5603 * conf/i386-efi.rmk: Likewise.
5604 * conf/i386-ieee1275.rmk: Likewise.
5605 * conf/i386-pc.rmk: Likewise.
5606 * conf/powerpc-ieee1275.rmk: Likewise.
5607 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
5608 images and installation utilities. Build kernel as image
5609 instead of as elf binary. Use common rules as much as possible.
5611 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5613 Correct GPT definition
5615 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
5618 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
5620 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
5622 2009-04-19 David S. Miller <davem@davemloft.net>
5624 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
5625 (grub_rescue_cmd_linux): Rename to...
5626 (grub_cmd_linux): and fix prototype.
5627 (grub_rescue_cmd_initrd): Rename to...
5628 (grub_cmd_initrd): and fix prototype.
5629 (cmd_linux, cmd_initrd): New.
5630 (GRUB_MOD_INIT(linux)): Use grub_register_command().
5631 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
5633 2009-04-17 Pavel Roskin <proski@gnu.org>
5635 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
5637 (grub_ohci_transfer): Likewise.
5639 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
5641 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
5642 return without a value. Fix inconsistent indentation.
5644 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
5645 match struct grub_fs.
5647 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
5648 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
5649 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
5650 * commands/lspci.c (grub_lspci_iter): Likewise.
5652 2009-04-16 Bean <bean123ch@gmail.com>
5654 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
5657 2009-04-15 Pavel Roskin <proski@gnu.org>
5659 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
5660 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
5661 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
5664 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
5666 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
5667 that no multiple data or metadata areas are supported and `Unknown
5670 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5672 Move loader out of the kernel
5674 * kern/loader.c: moved to ...
5675 * commands/boot.c: ... moved here
5676 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
5677 * commands/boot.c (grub_cmd_boot): moved here. All users updated
5678 * include/grub/kernel.h (grub_machine_fini): export
5679 * include/grub/loader.h (grub_loader_is_loaded): update declaration
5680 (grub_loader_set): likewise
5681 (grub_loader_unset): likewise
5682 (grub_loader_boot): likewise
5683 * conf/common.rmk: new module boot.mod
5684 (pkglib_MODULES): add boot.mod
5685 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
5686 (grub_emu_SOURCES): likewise
5687 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
5688 (grub_emu_SOURCES): likewise
5689 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
5690 (grub_emu_SOURCES): likewise
5691 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
5692 (grub_emu_SOURCES): likewise
5693 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
5694 (grub_emu_SOURCES): likewise
5695 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
5696 (grub_emu_SOURCES): likewise
5697 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
5698 (grub_emu_SOURCES): likewise
5700 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5702 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
5704 * kern/misc.c (grub_itoa): Removed function
5705 (grub_ltoa): likewise
5706 (grub_vsprintf): use grub_lltoa
5708 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5712 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
5713 * conf/i386-coreboot.rmk: likewise
5714 * conf/i386-ieee1275.rmk: likewise
5715 * conf/powerpc-ieee1275.rmk: likewise
5717 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
5719 * INSTALL: Add that `./autogen.sh' needs to be run before
5722 2009-04-14 Bean <bean123ch@gmail.com>
5724 * Makefile.in (pkglib_DATA): Add handler.lst.
5725 (handler.lst): New rule.
5727 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
5728 * conf/i386-coreboot.rmk: Likewise.
5729 * conf/i386-ieee1275.rmk: Likewise.
5730 * conf/i386-efi.rmk: Likewise.
5731 * conf/x86_64-efi.rmk: Likewise.
5732 * conf/powerpc-ieee1275.rmk: Likewise.
5733 * conf/sparc64-ieee1275.rmk: Likewise.
5735 * genhandlerlist.sh: New file.
5737 * genmk.rb: Add rules to generate handler.lst.
5739 * include/grub/normal.h (grub_file_getline): New function definition.
5740 (read_handler_list): Likewise.
5741 (free_handler_list): Likewise.
5743 * include/grub/term.h (grub_term_register_input): Add name parameter
5744 for auto generation of handler.lst.
5745 (grub_term_register_output): Likewise.
5747 * normal/handler.c: New file.
5749 * normal/main.c (get_line): Renamed to grub_file_getline.
5750 (read_config_file): Use the newly renamed grub_file_getline.
5751 (read_command_list): Likewise.
5752 (read_fs_list): Likewise.
5753 (grub_normal_execute): Call read_handler_list to parse handler.lst.
5754 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
5756 * term/efi/console.c (grub_console_init): Add name parameter for auto
5757 generation of handler.lst.
5758 * term/gfxterm.c: Likewise.
5759 * term/i386/pc/at_keyboard.c: Likewise.
5760 * term/i386/pc/console.c: Likewise.
5761 * term/i386/pc/serial.c: Likewise.
5762 * term/i386/pc/vesafb.c: Likewise.
5763 * term/i386/pc/vga.c: Likewise.
5764 * term/i386/pc/vga_text.c: Likewise.
5765 * term/ieee1275/ofconsole.c: Likewise.
5766 * term/usb_keyboard.c: Likewise.
5768 2009-04-14 Bean <bean123ch@gmail.com>
5770 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
5771 properly with null character.
5773 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
5775 * configure: Remove.
5776 * config.h.in: Likewise.
5777 * stamp-h.in: Likewise.
5778 * DISTLIST: Likewise.
5779 * conf/common.mk: Likewise.
5780 * conf/i386-coreboot.mk: Likewise.
5781 * conf/i386-efi.mk: Likewise.
5782 * conf/i386-ieee1275.mk: Likewise.
5783 * conf/i386.mk: Likewise.
5784 * conf/i386-pc.mk: Likewise.
5785 * conf/powerpc-ieee1275.mk: Likewise.
5786 * conf/sparc64-ieee1275.mk: Likewise.
5787 * conf/x86_64-efi.mk: Likewise.
5789 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
5792 2009-04-14 John Stanley <jpsinthemix@verizon.net>
5793 David S. Miller <davem@davemloft.net>
5795 * util/hostdisk.c (make_device_name): Fix buffer length
5798 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
5800 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
5801 <sys/param.h> and <sys/sysctl.h>.
5802 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
5803 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
5804 opening the device and reset them afterwards.
5806 2009-04-13 Pavel Roskin <proski@gnu.org>
5808 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
5809 Reported by John Stanley <jpsinthemix@verizon.net>
5811 2009-04-13 Robert Millan <rmh@aybabtu.com>
5813 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
5814 that name for menuentries when appropriate.
5816 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
5818 * util/grub.d/10_freebsd.in: Add a missing `fi'.
5820 2009-04-13 Robert Millan <rmh@aybabtu.com>
5822 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
5823 to Linux, simply abort telling the user it's no longer supported.
5825 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
5827 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
5828 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
5829 `freebsd_loadenv' only when devices.hints exist.
5831 2009-04-13 Pavel Roskin <proski@gnu.org>
5833 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
5835 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
5837 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
5839 (grub_drive): Likewise.
5841 2009-04-13 David S. Miller <davem@davemloft.net>
5843 * kern/sparc64/ieee1275/ieee1275.c: New file.
5844 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
5845 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
5846 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
5847 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
5848 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
5849 grub_ieee1275_alloc_physmem): Declare new exported functions.
5851 * include/grub/sparc64/ieee1275/loader.h: New file.
5852 * include/grub/sparc64/ieee1275/memory.h: Likewise.
5853 * include/grub/sparc64/kernel.h: Likewise.
5854 * loader/sparc64/ieee1275/linux.c: Likewise.
5856 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
5857 (grub_fstest_SOURCES): Likewise.
5859 * util/hostdisk.c (make_device_name): Do not make any assumptions
5860 about the length of drive names.
5862 * kern/dl.c (grub_dl_load_file): Close file immediately when
5863 we are done using it.
5865 2009-04-12 David S. Miller <davem@davemloft.net>
5867 * kern/misc.c (grub_ltoa): Fix cast when handling negative
5868 values. Noticed by Pavel Roskin.
5870 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
5873 * genmk.rb: Add more flexible image type specification, also
5874 pass --strip-unneeded to objcopy.
5875 * conf/i386-pc.rmk: Use *_FORMAT.
5876 * conf/i386-pc.mk: Rebuilt.
5878 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
5879 (OFDISK_HASH_SZ): Define.
5880 (ofdisk_hash): New hash table.
5881 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
5882 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
5883 instead of device phandle which is not unique.
5885 * kern/sparc64/ieee1275/init.c: Delete, replace with...
5886 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
5887 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
5888 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
5889 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
5890 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
5891 GRUB_KERNEL_MACHINE_DATA_END): Define.
5892 (grub_kernel_image_size, grub_total_module_size): Declare.
5894 2009-04-12 Pavel Roskin <proski@gnu.org>
5896 * configure.ac: Change the logic when we check for target tools.
5897 Do it when the target is specified and it's different from the
5898 specified value of the host.
5900 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
5902 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
5903 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
5904 GNU/kFreeBSD. Check if a device is a character device. Use
5905 DIOCGMEDIASIZE to get the size.
5906 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
5907 support for GNU/kFreeBSD.
5908 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
5909 is a character device instead of a block device. Add support for
5910 FreeBSD device names.
5912 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
5913 is a character device instead of a block device.
5915 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
5916 is a character device instead of a block device.
5918 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
5920 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
5921 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
5922 FreeBSD. Check if a device is a character device. Use
5923 DIOCGMEDIASIZE to get the size.
5924 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
5925 support for FreeBSD.
5926 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
5927 is a character device instead of a block device. Add support for
5928 FreeBSD device names.
5930 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
5931 a character device instead of a block device.
5932 (grub_util_check_char_device): New function.
5934 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
5935 a character device instead of a block device.
5937 * include/grub/util/getroot.h (grub_util_check_char_device): New
5940 2009-04-11 David S. Miller <davem@davemloft.net>
5942 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
5944 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
5945 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
5946 function, if present.
5947 (__bswapdi2): Likewise.
5949 * include/grub/sparc64/ieee1275/boot.h: New file.
5950 * boot/sparc64/ieee1275/boot.S: Likewise.
5951 * boot/sparc64/ieee1275/diskboot.S: Likewise.
5953 * kern/misc.c (grub_ltoa): New function.
5954 (grub_vsprintf): Use it to format 'long' integers.
5956 2009-04-10 David S. Miller <davem@davemloft.net>
5958 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
5959 slots are of type grub_ieee1275_cell_t.
5960 (grub_nand_read): Likewise.
5961 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
5962 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
5963 macros are used to compare values in arg/ret block of the call.
5964 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
5965 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
5966 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
5967 grub_ieee1275_instance_to_path, grub_ieee1275_write,
5968 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
5969 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
5970 grub_ieee1275_close, grub_ieee1275_set_property,
5971 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
5972 grub_ieee1275_cell_t.
5973 * kern/ieee1275/openfw.c (grub_map): Likewise.
5974 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
5975 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
5977 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
5978 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
5979 (grub_devalias_iterate): Likewise.
5981 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5985 * fs/ufs.c (INODE_NBLOCKS): new definition
5986 (struct grub_ufs_dirent): added fields for non-BSD dirents
5987 (grub_ufs_get_file_block): fixed double indirect handling
5988 (grub_ufs_lookup_symlink): use more robust way to determine whether
5990 (grub_ufs_find_file): support for non-BSD dirents
5991 (grub_ufs_dir): support for non-BSD dirents
5993 2009-04-10 Bean <bean123ch@gnail.com>
5995 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
5996 attribute, otherwise the size would be wrong for i386 platform.
5998 * include/grub/pci.h (grub_pci_read_word): New inline function.
5999 (grub_pci_read_byte): Likewise.
6000 (grub_pci_write): Likewise.
6001 (grub_pci_write_word): Likewise.
6002 (grub_pci_write_byte): Likewise.
6004 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
6006 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
6007 (find_framebuf): Scan pci to locate the frame buffer address.
6009 * commands/efi/fixvideo.c: New file.
6011 * commands/efi/loadbios.c: Likewise.
6013 * commands/memrw.c: Likewise.
6015 * util/grub-dumpbios.in: Likewise.
6017 * conf/common.rmk (grub-dumpbios): New utility.
6018 (pkglib_MODULES): New module memrw.mod.
6019 (memrw_mod_SOURCE): New macro.
6020 (memrw_mod_CFLAGS): Likewise.
6021 (memrw_mod_LDFLAGS): Likewise.
6023 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
6025 (loadbios_mod_SOURCE): New macro.
6026 (loadbios_mod_CFLAGS): Likewise.
6027 (loadbios_mod_LDFLAGS): Likewise.
6028 (fixvideo_mod_SOURCE): Likewise.
6029 (fixvideo_mod_CFLAGS): Likewise.
6030 (fixvideo_mod_LDFLAGS): Likewise.
6032 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
6034 (loadbios_mod_SOURCE): New macro.
6035 (loadbios_mod_CFLAGS): Likewise.
6036 (loadbios_mod_LDFLAGS): Likewise.
6037 (fixvideo_mod_SOURCE): Likewise.
6038 (fixvideo_mod_CFLAGS): Likewise.
6039 (fixvideo_mod_LDFLAGS): Likewise.
6041 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
6043 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
6045 2009-04-07 David S. Miller <davem@davemloft.net>
6047 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
6048 support for R_SPARC_OLO10 relocations. Fix compile warning for
6049 R_SPARC_WDISP30 case.
6050 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
6052 2009-04-06 Pavel Roskin <proski@gnu.org>
6054 * include/grub/misc.h (ARRAY_SIZE): New macro.
6055 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
6057 * loader/i386/linux.c (allocate_pages): Use free_pages().
6058 (grub_linux_unload): Don't use free_pages().
6059 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
6060 wrong index. Treat all other modes as text modes.
6061 (grub_cmd_linux): Initialize vid_mode unconditionally to
6062 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
6064 * commands/help.c (print_command_help): Use cmd->prio, not
6065 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
6067 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6071 * parttool/pcpart.c: new file
6072 * commands/parttool.c: likewise
6073 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
6074 (parttool_mod_SOURCES): new variable
6075 (parttool_mod_CFLAGS): likewise
6076 (parttool_mod_LDFLAGS): likewise
6077 (pcpart_mod_SOURCES): likewise
6078 (pcpart_mod_CFLAGS): likewise
6079 (pcpart_mod_LDFLAGS): likewise
6080 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
6081 and parttool/pcpart.c
6082 * conf/i386-efi.rmk: likewise
6083 * conf/i386-ieee1275.rmk: likewise
6084 * conf/i386-pc.rmk: likewise
6085 * conf/powerpc-ieee1275.rmk: likewise
6086 * conf/sparc64-ieee1275.rmk: likewise
6087 * conf/x86_64-ieee1275.rmk: likewise
6089 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6091 Support for mtime and further expandability of dir command
6093 * include/grub/lib/datetime.h: moved to ...
6094 * include/grub/datetime.h: ... moved here and added
6095 declaration of grub_unixtime2datetime. All users updated
6096 * include/grub/fs.h: new syntax for dir and mtime functions in
6098 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
6099 and GRUB_FSHELP_FLAGS_MASK
6100 * commands/ls.c (grub_ls_list_files): Write mtime in long format
6101 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
6102 (grub_ext2_mtime): new function
6103 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
6104 (grub_hfsplus_mtime): new function
6105 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
6106 (GRUB_UFS_ATTR_FILE): likewise
6107 (GRUB_UFS_ATTR_LNK): likewise
6108 (struct grub_ufs_sblock): new fields mtime
6109 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
6111 (grub_ufs_dir): mtime support
6112 (grub_ufs_mtime): new function
6113 * fs/affs.c (grub_affs_dir): use new dir syntax
6114 * fs/afs.c (grub_afs_dir): likewise
6115 * fs/cpio.c (grub_cpio_dir): likewise
6116 * fs/fat.c (grub_fat_find_dir): likewise
6117 * fs/hfs.c (grub_hfs_dir): likewise
6118 * fs/iso9660.c (grub_iso9660_dir): likewise
6119 * fs/jfs.c (grub_jfs_dir): likewise
6120 * fs/minix.c (grub_minix_dir): likewise
6121 * fs/ntfs.c (grub_ntfs_dir): likewise
6122 * fs/reiserfs.c (grub_reiserfs_dir): likewise
6123 * fs/sfs.c (grub_sfs_dir): likewise
6124 * fs/xfs.c (grub_xfs_dir): likewise
6125 * util/hostfs.c (grub_hostfs_dir): likewise
6126 * lib/datetime.c: moved to ...
6127 * normal/datetime.c: ... moved here
6128 (grub_unixtime2datetime): new function
6129 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
6130 * normal/completion.c (iterate_dir): use new dir syntax
6131 * normal/misc.c (grub_normal_print_device_info): tell the
6132 last modification time of a volume
6133 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
6134 * conf/common.rmk: added lib/datetime.c to ls.mod
6135 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
6136 (normal_mod_SOURCES): likewise
6137 (datetime_mod_SOURCES): Removed lib/datetime.c
6138 * conf/i386-efi.rmk: likewise
6139 * conf/i386-ieee1275.rmk: likewise
6140 * conf/i386-pc.rmk: likewise
6141 * conf/powerpc-ieee1275.rmk: likewise
6142 * conf/sparc64-ieee1275.rmk: likewise
6143 * conf/x86_64-efi.rmk: likewise
6145 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6147 Trim trailing spaces in FAT label and support mtools-like labels
6149 * fs/fat.c (grub_fat_iterate_dir): New function based
6150 on grub_fat_find_dir
6151 (grub_fat_find_dir): use grub_fat_iterate_dir
6152 (grub_fat_label): likewise
6154 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6156 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
6158 remove extraneous kernel_elf_HEADERS
6160 2009-04-04 Bean <bean123ch@gnail.com>
6162 * include/grub/util/misc.h: Add dummy function fsync for mingw.
6164 * util/misc.c: Likewise.
6166 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
6168 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
6169 instead of grub_printf.
6171 2009-04-03 Robert Millan <rmh@aybabtu.com>
6173 * loader/i386/linux.c (grub_linux_setup_video): Fill
6174 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
6175 values from `mode info' structure instead of hardcoded
6178 2009-04-01 Pavel Roskin <proski@gnu.org>
6180 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
6182 * genmk.rb: Likewise.
6183 * configure.ac: Likewise.
6185 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
6187 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
6188 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
6190 2009-04-01 David S. Miller <davem@davemloft.net>
6192 * normal/sparc64/setjmp.S: Fix setjmp implementation.
6193 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
6194 (grub_setjmp): Mark with 'returns_twice' attribute.
6195 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
6196 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
6197 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
6199 2009-04-01 Robert Millan <rmh@aybabtu.com>
6201 Reapply fix from 2008-07-28 which was accidentally reverted; also
6202 perform the same fix to a similar check in same function.
6204 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
6205 with the same number are found, just use issue a warning with
6206 grub_dprintf(), as this error has been reported to be non-fatal.
6208 2009-03-31 Pavel Roskin <proski@gnu.org>
6210 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
6211 for cross-compilation.
6213 2009-03-30 Robert Millan <rmh@aybabtu.com>
6215 Fix i386-ieee1275 build.
6217 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
6220 2009-03-30 Pavel Roskin <proski@gnu.org>
6222 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
6223 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
6224 zero-terminated, rely only on the strlen value. Fix comparison
6225 of strings differing in length.
6227 2009-03-30 Robert Millan <rmh@aybabtu.com>
6229 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
6230 checking for abi version. Improve error messages on BIOS to notify
6231 user about `linux16' command.
6233 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6237 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
6238 in case of collision
6239 * disk/scsi.c (grub_scsi_open): free scsi in case of error
6241 2009-03-29 Robert Millan <rmh@aybabtu.com>
6243 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
6244 set `vid_mode' accordingly.
6245 (grub_linux_boot): Process `vid_mode' and set video mode.
6247 2009-03-29 Robert Millan <rmh@aybabtu.com>
6249 * util/grub.d/10_linux.in (linux_entry): New function.
6250 Factorize generation of Linux boot entries.
6252 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
6254 Make the format of Environment Block plain text. The boot loader
6255 part is not tested well yet.
6257 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
6260 (usage): Remove "info" and "clear". Add "unset". Update the
6261 description of "set", as this does not delete variables any
6263 (create_envblk_file): Complete rewrite.
6264 (open_envblk_file): Likewise.
6265 (cmd_info): Removed.
6266 (cmd_list): Likewise.
6267 (cmd_set): Likewise.
6268 (cmd_clear): Likewise.
6269 (list_variables): New function.
6270 (write_envblk): Likewise.
6271 (set_variables): Likewise.
6272 (unset_variables): Likewise.
6273 (main): Complete rewrite.
6275 * commands/loadenv.c (buffer): Removed.
6277 (open_envblk_file): New function.
6278 (read_envblk_file): Complete rewrite.
6279 (grub_cmd_load_env): Likewise.
6280 (grub_cmd_list_env): Likewise.
6281 (struct blocklist): New struct.
6282 (free_blocklists): New function.
6283 (check_blocklists): Likewise.
6284 (write_blocklists): Likewise.
6285 (grub_cmd_save_env): Complete rewrite.
6287 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
6288 a plain text signature.
6289 (GRUB_ENVBLK_MAXLEN): Removed.
6290 (struct grub_envblk): Complete rewrite.
6291 (grub_envblk_find): Removed.
6292 (grub_envblk_insert): Likewise.
6293 (grub_envblk_open): New prototype.
6294 (grub_envblk_set): Likewise.
6295 (grub_envblk_delete): Put const to VALUE.
6296 (grub_envblk_iterate): Put const to NAME and VALUE.
6297 (grub_envblk_close): New prototype.
6298 (grub_envblk_buffer): New inline function.
6299 (grub_envblk_size): Likewise.
6301 * lib/envblk.c: Include grub/mm.h.
6302 (grub_env_find): Removed.
6303 (grub_envblk_open): New function.
6304 (grub_envblk_close): Likewise.
6305 (escaped_value_len): Likewise.
6306 (find_next_line): Likewise.
6307 (grub_envblk_insert): Removed.
6308 (grub_envblk_set): New function.
6309 (grub_envblk_delete): Complete rewrite.
6310 (grub_envblk_iterate): Likewise.
6312 2009-03-28 Robert Millan <rmh@aybabtu.com>
6314 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
6315 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
6316 variables. Use 16-bit loader.
6317 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
6319 * kern/i386/loader.S (grub_linux_boot): Rename to ...
6320 (grub_linux16_boot): ... this. Update all users.
6321 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
6322 (grub_linux_boot): ... this. Update all users.
6324 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
6325 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
6326 commands to `linux16' and `initrd16'.
6327 (GRUB_MOD_FINI(linux)): Rename to ...
6328 (GRUB_MOD_FINI(linux16)): ... this.
6330 2009-03-24 Pavel Roskin <proski@gnu.org>
6332 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
6333 not just for compilation.
6335 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6337 Move multiboot helper out of kernel
6339 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
6340 `loader/i386/multiboot_helper.S'.
6341 * conf/i386-coreboot.rmk: Likewise
6342 * conf/i386-ieee1275.rmk: Likewise
6344 * kern/i386/loader.S: Move multiboot helpers from here...
6345 * loader/i386/multiboot_helper.S: ...moved here
6346 * include/grub/i386/loader.h: Move declarations of multiboot
6347 helpers from here...
6348 * include/grub/i386/multiboot.h: ...moved here
6349 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
6351 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
6353 * kern/env.c (grub_env_context_open): Added an argument to specify
6354 whether a new context inherits exported variables from current
6355 one. This is useful when making a sandbox to interpret a config
6357 All callers updated.
6359 * include/grub/env.h (grub_env_context_open): Updated the prototype.
6361 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
6363 * kern/env.c (grub_env_context_close): Fix memory leaks.
6365 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
6367 * normal/main.c (grub_normal_execute): Added an argument
6368 BATCH to specify if an interactive interface should be provided
6369 after reading a config file.
6370 All callers updated.
6371 (read_command_list): Prevent being executed twice.
6372 (read_fs_list): Likewise.
6374 * include/grub/normal.h (grub_normal_execute): Updated the
6377 2009-03-22 Pavel Roskin <proski@gno.org>
6379 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
6381 * kern/i386/pc/startup.S: Likewise.
6382 * kern/i386/efi/startup.S: Likewise.
6383 * kern/i386/ieee1275/startup.S: Likewise.
6384 * kern/i386/coreboot/startup.S: Likewise.
6385 * kern/x86_64/efi/startup.S: Likewise.
6387 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
6388 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
6389 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
6391 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
6393 Bugfixes in multiboot for bugs uncovered by solaris kernel.
6395 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
6397 Use vaddr of correct segment for entry_point.
6399 2009-03-21 Bean <bean123ch@gmail.com>
6401 * commands/blocklist.c: Add include file <grub/command.h>, remove
6402 <grub/normal.h> and <grub/arg.h>.
6403 (grub_cmd_blocklist): Use the new command interface.
6404 (GRUB_MOD_INIT): Likewise.
6405 (GRUB_MOD_FINI): Likewise.
6406 * commands/boot.c: Likewise.
6407 * commands/cat.c: Likewise.
6408 * commands/cmp.c: Likewise.
6409 * commands/configfile.c: Likewise.
6410 * commands/crc.c: Likewise.
6411 * commands/echo.c: Likewise.
6412 * commands/halt.c: Likewise.
6413 * commands/handler.c: Likewise.
6414 * commands/hdparm.c: Likewise.
6415 * commands/help.c: Likewise.
6416 * commands/hexdump.c: Likewise.
6417 * commands/loadenv.c: Likewise.
6418 * commands/ls.c: Likewise.
6419 * commands/lsmmap.c: Likewise.
6420 * commands/lspci.c: Likewise.
6421 * commands/loadenv.c: Likewise.
6422 * commands/read.c: Likewise.
6423 * commands/reboot.c: Likewise.
6424 * commands/search.c: Likewise.
6425 * commands/sleep.c: Likewise.
6426 * commands/test.c: Likewise.
6427 * commands/usbtest.c: Likewise.
6428 * commands/videotest.c: Likewise.
6429 * commands/i386/cpuid.c: Likewise.
6430 * commands/i386/pc/halt.c: Likewise.
6431 * commands/i386/pc/play.c: Likewise.
6432 * commands/i386/pc/pxecmd.c: Likewise.
6433 * commands/i386/pc/vbeinfo.c: Likewise.
6434 * commands/i386/pc/vbetest.c: Likewise.
6435 * commands/ieee1275/suspend.c: Likewise.
6436 * disk/loopback.c: Likewise.
6437 * font/font_cmd.c: Likewise.
6438 * hello/hello.c: Likewise.
6439 * loader/efi/appleloader.c: Likewise.
6440 * loader/efi/chainloader.c: Likewise.
6441 * loader/i386/bsd.c: Likewise.
6442 * loader/i386/efi/linux.c: Likewise.
6443 * loader/i386/ieee1275/linux.c: Likewise.
6444 * loader/i386/linux.c: Likewise.
6445 * loader/i386/pc/chainloader.c: Likewise.
6446 * loader/i386/pc/linux.c: Likewise.
6447 * loader/powerpc/ieee1275/linux.c: Likewise.
6448 * loader/multiboot_loader.c: Likewise.
6449 * term/gfxterm.c: Likewise.
6450 * term/i386/pc/serial.c: Likewise.
6451 * term/terminfo.c: Likewise.
6453 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
6454 * term/i386/pc/vga.c: Likewise.
6455 * video/readers/jpeg.c: Likewise.
6456 * video/readers/png.c: Likewise.
6457 * video/readers/tga.c: Likewise.
6459 * util/grub-fstest (cmd_loopback): Removed.
6460 (cmd_blocklist): Likewise.
6462 (grub_register_command): Likewise.
6463 (grub_unregister_command): Likewise.
6464 (execute_command): Use grub_command_find to locate command and execute
6467 * include/grub/efi/chainloader.h: Removed.
6468 * loader/efi/chainloader_normal.c: Likewise.
6469 * loader/i386/bsd_normal.c: Likewise.
6470 * loader/i386/pc/chainloader_normal.c: Likewise.
6471 * loader/i386/pc/multiboot_normal.c: Likewise.
6472 * loader/linux_normal.c: Likewise.
6473 * loader/multiboot_loader_normal.c: Likewise.
6474 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
6476 * gencmdlist.sh: Scan new registration command grub_register_extcmd
6477 and grub_register_command_p1.
6479 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
6480 kern/command.c, lib/arg.c and commands/extcmd.c.
6481 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
6482 (minicmd_mod_SOURCES): New variable.
6483 (minicmd_mod_CFLAGS): Likewise.
6484 (minicmd_mod_LDFLAGS): Likewise.
6485 (extcmd_mod_SOURCES): Likewise.
6486 (extcmd_mod_CFLAGS): Likewise.
6487 (extcmd_mod_LDFLAGS): Likewise.
6488 (boot_mod_SOURCES): Removed.
6489 (boot_mod_CFLAGS): Likewise.
6490 (boot_mod_LDFLAGS): Likewise.
6492 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
6494 (kernel_img_HEADERS): Add command.h.
6495 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
6496 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
6498 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
6499 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
6500 remove the corresponding normal mode command.
6501 (normal_mod_SOURCES): Remove normal/arg.c.
6502 * conf/i386-coreboot.rmk: Likewise.
6503 * conf/i386-efi.rmk: Likewise.
6504 * conf/i386-ieee1275.rmk: Likewise.
6505 * conf/powerpc-ieee1275.rmk: Likewise.
6506 * conf/x86_64-efi.rmk: Likewise.
6508 * include/grub/arg.h: Move from here ...
6509 * include/grub/lib/arg.h: ... to here.
6511 * normal/arg.c: Move from here ...
6512 * lib/arg.c: ... to here.
6514 * commands/extcmd.c: New file.
6515 * commands/minicmd.c: Likewise.
6516 * include/grub/command.h: Likewise.
6517 * include/grub/extcmd.h: Likewise.
6518 * kern/command.c: Likewise.
6519 * kern/corecmd.c: Likewise.
6521 * kern/list.c (grub_list_iterate): Return int instead of void.
6522 (grub_list_insert): New function.
6523 (grub_prio_list_insert): Likewise.
6525 * kern/rescue.c (grub_rescue_command): Removed.
6526 (grub_rescue_command_list): Likewise.
6527 (grub_rescue_register_command): Likewise.
6528 (grub_rescue_unregister_command): Likewise.
6529 (grub_rescue_cmd_boot): Move to minicmd.c
6530 (grub_rescue_cmd_help): Likewise.
6531 (grub_rescue_cmd_info): Likewise.
6532 (grub_rescue_cmd_boot): Likewise.
6533 (grub_rescue_cmd_testload): Likewise.
6534 (grub_rescue_cmd_dump): Likewise.
6535 (grub_rescue_cmd_rmmod): Likewise.
6536 (grub_rescue_cmd_lsmod): Likewise.
6537 (grub_rescue_cmd_exit): Likewise.
6538 (grub_rescue_print_devices): Moved to corecmd.c.
6539 (grub_rescue_print_files): Likewise.
6540 (grub_rescue_cmd_ls): Likewise.
6541 (grub_rescue_cmd_insmod): Likewise.
6542 (grub_rescue_cmd_set): Likewise.
6543 (grub_rescue_cmd_unset): Likewise.
6544 (attempt_normal_mode): Use grub_command_find to get normal module.
6545 (grub_enter_rescue_mode): Use grub_register_core_commands to register
6546 commands, remove grub_rescue_register_command calls.
6548 * normal/command.c (grub_register_command): Removed.
6549 (grub_unregister_command): Likewise.
6550 (grub_command_find): Likewise.
6551 (grub_iterate_commands): Likewise.
6552 (rescue_command): Likewise.
6553 (export_command): Moved to corecmd.c.
6554 (set_command): Removed.
6555 (unset_command): Likewise.
6556 (insmod_command): Likewise.
6557 (rmmod_command): Likewise.
6558 (lsmod_command): Likewise.
6559 (grub_command_init): Likewise.
6561 * normal/completion.c (iterate_command): Use cmd->prio to check for
6563 (complete_arguments): Use grub_extcmd_t structure to find options.
6564 (grub_normal_do_completion): Change function grub_iterate_commands to
6565 grub_command_iterate.
6567 * normal/execute.c (grub_script_execute_cmd): No need to parse
6570 * normal/main.c (grub_dyncmd_dispatcher): New function.
6571 (read_command_list): Register unload commands as dyncmd.
6572 (grub_cmd_normal): Use new command interface, register rescue,
6573 unregister normal at entry, register normal, unregister rescue at exit.
6575 * include/grub/list.h (grub_list_test_t): New type.
6576 (grub_list_iterate): Return int instead of void.
6577 (grub_list_insert): New function.
6578 (GRUB_AS_NAMED_LIST_P): New macro.
6579 (GRUB_AS_PRIO_LIST): Likewise.
6580 (GRUB_AS_PRIO_LIST_P): Likewise.
6581 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
6582 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
6583 (grub_prio_list): New structure.
6584 (grub_prio_list_insert): New function.
6585 (grub_prio_list_remove): New inline function.
6587 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
6588 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
6589 (GRUB_COMMAND_FLAG_MENU): Likewise.
6590 (GRUB_COMMAND_FLAG_BOTH): Likewise.
6591 (GRUB_COMMAND_FLAG_TITLE): Likewise.
6592 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
6593 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
6594 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
6595 (grub_command): Likewise.
6596 (grub_register_command): Likewise.
6597 (grub_command_find): Likewise.
6598 (grub_iterate_commands): Likewise.
6599 (grub_command_init): Likewise.
6600 (grub_arg_parse): Likewise.
6601 (grub_arg_show_help): Likewise.
6603 * include/grub/rescue.h (grub_rescue_register_command): Removed.
6604 (grub_rescue_unregister_command): Likewise.
6606 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
6607 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
6608 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
6610 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
6611 grub_rescue_cmd_initrd.
6612 * include/grub/i386/loader.h: Likewise.
6613 * include/grub/x86_64/loader.h: Likewise.
6615 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
6617 2009-03-21 Bean <bean123ch@gmail.com>
6619 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
6620 instead of stat in mingw environment.
6622 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
6624 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
6626 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
6629 2009-03-21 Bean <bean123ch@gmail.com>
6631 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
6634 2009-03-18 Michel Dänzer <michel@daenzer.net>
6636 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
6637 checking inode flags for EXT4_EXTENTS_FLAG.
6639 2009-03-18 Robert Millan <rmh@aybabtu.com>
6641 * loader/i386/linux.c: Include `<grub/video.h>' and
6642 `<grub/i386/pc/vbe.h>'..
6643 (grub_linux_setup_video): New function. Loosely based on the EFI one.
6644 (grub_linux32_boot): Attempt to configure video settings with
6645 grub_linux_setup_video().
6646 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
6647 to avoid grub_console_fini() which would step out of graphical mode
6650 2009-03-14 Robert Millan <rmh@aybabtu.com>
6652 Fix build on powerpc.
6653 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
6655 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
6657 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
6658 background image command.
6660 2009-03-12 Colin D Bennett <colin@gibibit.com>
6662 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
6663 (grub_gfxterm_putchar): Extract pairs of identical calls to
6664 draw_cursor out of conditional blocks.
6666 2009-03-11 Pavel Roskin <proski@gnu.org>
6668 * fs/hfs.c (grub_hfs_strncasecmp): New function.
6669 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
6671 2009-03-11 Robert Millan <rmh@aybabtu.com>
6673 * loader/i386/multiboot_elfxx.c
6674 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
6676 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
6678 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
6681 2009-03-11 Robert Millan <rmh@aybabtu.com>
6683 * loader/i386/multiboot.c (code_size): New variable.
6684 (grub_multiboot): Define offsets by adding to `code_size' rather
6685 than subtracting from `grub_multiboot_payload_size'. Provide
6686 4-byte alignment to MBI and others by increasing
6687 `boot_loader_name_length' appropriately.
6689 * loader/i386/multiboot_elfxx.c
6690 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
6692 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
6694 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
6697 2009-03-08 Robert Millan <rmh@aybabtu.com>
6699 Make loader/i386/linux.c usable on i386-pc again.
6701 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
6703 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
6706 2009-03-07 Bean <bean123ch@gmail.com>
6708 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
6711 2009-03-06 Robert Millan <rmh@aybabtu.com>
6713 Fix display issue on terminals with screen size other than 80x25
6714 (e.g. gfxterm with resolution higher than 640x480).
6716 * normal/main.c (grub_normal_init_page): Display title text in a
6717 position relative to the center of the terminal instead of relying
6718 on a hardcoded offset.
6720 2009-03-04 Robert Millan <rmh@aybabtu.com>
6722 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
6725 * Makefile.in (host_kernel): New variable.
6726 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
6727 scripts instead of just the windows one.
6728 * configure.ac: Initialize and AC_SUBST `host_kernel'.
6730 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
6732 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
6734 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6735 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6736 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6737 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6738 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6739 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6741 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
6743 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
6744 or if there's no space for the disk label and print the partition number on a
6747 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
6749 * util/misc.c: Include <time.h>.
6750 (grub_millisleep): New function.
6752 2009-03-04 Bean <bean123ch@gmail.com>
6754 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
6755 another option -mno-red-zone.
6757 * commands/handler.c: Change module description.
6759 * kern/handler.c: Add missing space at the end of description line.
6761 * kern/list.c: Likewise.
6763 2009-03-03 Robert Millan <rmh@aybabtu.com>
6765 Move more components to the relocation area, and fix mbi pointer
6766 handling to use the destination rather than the origin (thanks to
6767 Vladimir Serbinenko for spotting).
6769 * loader/i386/multiboot.c (mbi_dest): New variable.
6770 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
6771 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
6774 2009-03-01 Bean <bean123ch@gmail.com>
6776 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
6777 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
6778 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
6779 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
6781 * loader/i386/efi/linux.c (acpi_guid): New variable.
6782 (acpi_guid): Likewise.
6783 (EBDA_SEG_ADDR): New constant.
6784 (LOW_MEM_ADDR): Likewise.
6785 (FAKE_EBDA_SEG): Likewise.
6786 (fake_bios_data): New function.
6787 (grub_linux_boot): Call fake_bios_data.
6789 2009-03-01 Bean <bean123ch@gmail.com>
6791 * commands/terminal.c: Removed.
6793 * commands/handler.c: New file.
6795 * include/grub/list.h: Likewise.
6797 * include/grub/handler.h: Likewise.
6799 * kern/list.c: Likewise.
6801 * kern/handler.c: Likewise.
6803 * kern/term.h: Include header file <grub/handler.h>.
6804 (grub_term_input): Move next field to the beginning.
6805 (grub_term_output): Likewise.
6806 (grub_term_input_class): New variable.
6807 (grub_term_output_class): Likewise.
6808 (grub_term_register_input): Changed to inline function.
6809 (grub_term_register_output): Likewise.
6810 (grub_term_unregister_input): Likewise.
6811 (grub_term_unregister_output): Likewise.
6812 (grub_term_set_current_input): Likewise.
6813 (grub_term_set_current_output): Likewise.
6814 (grub_term_get_current_input): Likewise.
6815 (grub_term_get_current_output): Likewise.
6816 (grub_term_iterate_input): Removed.
6817 (grub_term_iterate_output): Likewise.
6819 * kern/term.c (grub_term_list_input): Removed.
6820 (grub_term_list_output): Likewise.
6821 (grub_term_input_class): New variable.
6822 (grub_term_output_class): Likewise.
6823 (grub_cur_term_input): Change variable as macro.
6824 (grub_cur_term_output): Likewise.
6825 (grub_term_register_input): Removed.
6826 (grub_term_register_output): Likewise.
6827 (grub_term_unregister_input): Likewise.
6828 (grub_term_unregister_output): Likewise.
6829 (grub_term_set_current_input): Likewise.
6830 (grub_term_set_current_output): Likewise.
6831 (grub_term_iterate_input): Likewise.
6832 (grub_term_iterate_output): Likewise.
6833 (grub_term_get_current_input): Likewise.
6834 (grub_term_get_current_output): Likewise.
6836 * util/grub-editenv.c: Include header file <grub/handler.h>.
6837 (grub_term_get_current_input): Removed.
6838 (grub_term_get_current_output): Likewise.
6839 (grub_term_input_class): New variable.
6840 (grub_term_output_class): Likewise.
6842 * util/grub-fstest.c (grub_term_get_current_input): Removed.
6843 (grub_term_get_current_output): Likewise.
6844 (grub_term_input_class): New variable.
6845 (grub_term_output_class): Likewise.
6847 * util/grub-probe.c (grub_term_get_current_input): Removed.
6848 (grub_term_get_current_output): Likewise.
6849 (grub_term_input_class): New variable.
6850 (grub_term_output_class): Likewise.
6852 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
6853 (grub_term_get_current_output): Likewise.
6854 (grub_term_input_class): New variable.
6855 (grub_term_output_class): Likewise.
6857 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
6858 (terminal_mod_SOURCES): Likewise.
6859 (terminal_mod_CFLAGS): Likewise.
6860 (terminal_mod_LDFLAGS): Likewise.
6862 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
6864 (kernel_img_SOURCES): Add list.c and handler.c.
6865 (kernel_img_HEADERS): Add list.h and handler.h.
6867 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
6869 (kernel_mod_SOURCES): Add list.c and handler.c.
6870 (kernel_mod_HEADERS): Add list.h and handler.h.
6872 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
6874 (kernel_elf_SOURCES): Add list.c and handler.c.
6875 (kernel_elf_HEADERS): Add list.h and handler.h.
6877 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
6879 (kernel_elf_SOURCES): Add list.c and handler.c.
6880 (kernel_elf_HEADERS): Add list.h and handler.h.
6882 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
6884 (kernel_mod_SOURCES): Add list.c and handler.c.
6885 (kernel_mod_HEADERS): Add list.h and handler.h.
6887 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
6889 (kernel_elf_SOURCES): Add list.c and handler.c.
6890 (kernel_elf_HEADERS): Add list.h and handler.h.
6892 2009-02-27 Robert Millan <rmh@aybabtu.com>
6894 Factorize elf32 / elf64 code in Multiboot loader. This will
6895 prevent it from getting out of sync again.
6897 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
6898 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
6899 grub_multiboot_load_elf64): Move from here ...
6900 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
6901 grub_multiboot_load_elf): ... to here (new file).
6903 2009-02-27 Robert Millan <rmh@aybabtu.com>
6905 * util/grub.d/10_linux.in: Rename "single-user mode" to
6908 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6910 Don't leak in SCSI code.
6911 * disk/scsi.c (grub_scsi_close): free `scsi'.
6913 2009-02-27 Robert Millan <rmh@aybabtu.com>
6915 * loader/i386/pc/multiboot.c: Move from here ...
6916 * loader/i386/multiboot.c: ... to here. Update all users.
6918 2009-02-27 Robert Millan <rmh@aybabtu.com>
6920 Patch from Alexandre Bique <bique.alexandre@gmail.com>
6921 * util/i386/pc/grub-setup.c (setup): Fix directory path.
6923 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
6925 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
6928 2009-02-27 Robert Millan <rmh@aybabtu.com>
6930 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
6931 `0x' qualifier as 0 when base is specified as parameter).
6933 2009-02-24 Bean <bean123ch@gmail.com>
6935 * configure.ac: Check for -mcmodel=large in x86_64 target.
6937 * include/grub/efi/api.h (efi_call_10): New macro.
6938 (efi_wrap_10): New function.
6940 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
6941 (GRUB_PE32_REL_BASED_HIGH): Likewise.
6942 (GRUB_PE32_REL_BASED_LOW): Likewise.
6943 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
6944 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
6945 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
6946 (GRUB_PE32_REL_BASED_SECTION): Likewise.
6947 (GRUB_PE32_REL_BASED_REL): Likewise.
6948 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
6949 (GRUB_PE32_REL_BASED_DIR64): Likewise.
6950 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
6952 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
6955 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
6956 (efi_wrap_10): New function.
6958 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
6960 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
6961 MB/MBP model (NV chipset).
6962 (devdata_devs): Add devpath_5 to the list.
6964 * load/i386/efi/linux.c (video_base): Remove variable.
6965 (RGB_MASK): New macro.
6966 (RGB_MAGIC): Likewise.
6967 (LINE_MIN): Likewise.
6968 (LINE_MAX): Likewise.
6969 (FBTEST_STEP): Likewise.
6970 (FBTEST_COUNT): Likewise.
6971 (fb_list): New variable.
6972 (grub_find_video_card): Remove function.
6973 (find_framebuf): New function.
6974 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
6977 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
6980 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
6982 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
6984 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
6987 2009-02-22 Robert Millan <rmh@aybabtu.com>
6989 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
6990 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
6991 in our relocation, instead of using it directly from heap. Also
6992 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
6994 2009-02-21 Robert Millan <rmh@aybabtu.com>
6996 Implement USB keyboard support (based on patch by Marco Gerards)
6998 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
6999 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
7000 (usb_keyboard_mod_LDFLAGS): New variables.
7002 * term/usb_keyboard.c: New file.
7004 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
7006 Corrected wrong declaration
7008 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
7010 2009-02-14 Christian Franke <franke@computer.org>
7012 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
7013 (grub_lspci_iter): Print class code and programming interface byte.
7015 2009-02-14 Christian Franke <franke@computer.org>
7017 * gendistlist.sh: Ignore `.svn' directories.
7019 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
7021 * fs/fat.c: Add 2009 to Copyright line.
7023 2009-02-14 Christian Franke <franke@computer.org>
7025 * commands/hdparm.c: New file. Provides `hdparm' command
7026 which sends ATA commands via grub_disk_ata_pass_through ().
7028 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
7030 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
7031 and <grub/cpu/io.h> to include/grub/ata.h.
7032 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
7033 (GRUB_CDROM_SECTOR_SIZE): Remove.
7034 (GRUB_ATA_*): Move to include/grub/ata.h.
7035 (GRUB_ATAPI_*): Likewise.
7036 (enum grub_ata_commands): Likewise.
7037 (enum grub_ata_timeout_milliseconds): Likewise.
7038 (struct grub_ata_device): Likewise.
7039 (grub_ata_regset): Likewise.
7040 (grub_ata_regget): Likewise.
7041 (grub_ata_regset2): Likewise.
7042 (grub_ata_regget2): Likewise.
7043 (grub_ata_check_ready): Likewise.
7044 (grub_ata_wait_not_busy): Remove static, exported in
7046 (grub_ata_wait_drq): Likewise.
7047 (grub_ata_pio_read): Likewise.
7049 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
7050 function for hdparm.mod.
7052 * include/grub/ata.h: New file, contains declarations from
7054 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
7056 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
7057 (grub_disk_ata_pass_through): New exported variable.
7059 * kern/disk.c (grub_disk_ata_pass_through): New variable.
7061 2009-02-13 Colin D Bennett <colin@gibibit.com>
7063 Support multiple fallback entries, and provide an API to support
7064 executing default+fallback menu entries. Renamed the `terminal' menu
7067 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
7068 variable declaration.
7069 (grub_menu_execute_callback): New structure declaration.
7070 (grub_menu_execute_callback_t): New typedef.
7071 (grub_menu_execute_with_fallback): New function declaration.
7072 (grub_menu_get_entry): Likewise.
7073 (grub_menu_get_timeout): Likewise.
7074 (grub_menu_set_timeout): Likewise.
7076 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
7078 * normal/menu.c (grub_wait_after_message): Moved to
7079 `normal/menu_text.c'.
7080 (draw_border): Likewise.
7081 (print_message): Likewise.
7082 (print_entry): Likewise.
7083 (print_entries): Likewise.
7084 (grub_menu_init_page): Likewise.
7085 (get_entry_number): Likewise.
7086 (print_timeout): Likewise.
7087 (run_menu): Likewise.
7088 (grub_menu_execute_entry): Likewise.
7089 (show_text_menu): Likewise.
7090 (get_and_remove_first_entry_number): New function.
7091 (grub_menu_execute_with_fallback): Likewise.
7092 (get_entry): Renamed to ...
7093 (grub_menu_get_entry): .. this and made it global.
7094 (get_timeout): Renamed to ...
7095 (grub_menu_get_timeout): ... this and made it global.
7096 (set_timeout): Renamed to ...
7097 (grub_menu_set_timeout): ... this and made it global.
7098 (grub_normal_terminal_menu_viewer): Renamed to ...
7099 (grub_normal_text_menu_viewer): ... this.
7101 * normal/menu_text.c: New file. Extracted text-menu-specific code
7104 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
7105 (normal_mod_SOURCES): Likewise.
7107 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7108 (normal_mod_SOURCES): Likewise.
7110 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7111 (normal_mod_SOURCES): Likewise.
7113 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
7114 (normal_mod_SOURCES): Likewise.
7116 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7117 (normal_mod_SOURCES): Likewise.
7119 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7120 (normal_mod_SOURCES): Likewise.
7122 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7123 (normal_mod_SOURCES): Likewise.
7125 2009-02-11 Robert Millan <rmh@aybabtu.com>
7127 * util/grub.d/00_header.in: Update old reference to `font' command.
7129 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
7131 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
7133 Based on patch from Javier MartÃn.
7135 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
7137 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
7138 to avoid false positives with FAT.
7139 (grub_fstest_SOURCES): Likewise.
7140 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
7141 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7142 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7143 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
7144 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7145 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7147 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
7149 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
7150 bpb.version_specific.fat12_or_fat16.fstype and
7151 bpb.version_specific.fat32.fstype.
7153 2009-02-08 Robert Millan <rmh@aybabtu.com>
7155 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
7157 2009-02-08 Robert Millan <rmh@aybabtu.com>
7159 * Makefile.in (host_os, host_cpu): New variables.
7160 (target_os): Remove. Update all users.
7162 2009-02-08 Marco Gerards <marco@gnu.org>
7164 * Makefile.in (enable_grub_emu_usb): New variable.
7165 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
7166 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
7167 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
7168 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
7169 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
7170 `usbtest.mod' and `usbms.mod'.
7171 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
7172 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
7173 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
7174 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
7175 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
7178 * disk/usbms.c: New file.
7180 * include/grub/usb.h: Likewise.
7182 * include/grub/usbtrans.h: Likewise.
7184 * include/grub/usbdesc.h: Likewise.
7186 * bus/usb/usbtrans.c: Likewise.
7188 * bus/usb/ohci.c: Likewise.
7190 * bus/usb/uhci.c: Likewise.
7192 * bus/usb/usbhub.c: Likewise.
7194 * bus/usb/usb.c: Likewise.
7196 * commands/usbtest.c: Likewise.
7198 * util/usb.c: Likewise.
7200 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
7202 * configure.ac: Test for libusb presence.
7204 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
7206 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
7208 * kern/mm.c: Add more comments.
7210 2009-02-08 Robert Millan <rmh@aybabtu.com>
7212 Patch from Javier MartÃn.
7213 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
7214 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
7216 2009-02-08 Robert Millan <rmh@aybabtu.com>
7218 * fs/cpio.c: Split tar functionality to ...
7219 * fs/tar.c: ... here (new file). Update all users.
7221 2009-02-07 Robert Millan <rmh@aybabtu.com>
7223 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
7224 backward-incompatible features.
7226 Based on patch from Javier MartÃn, with some adjustments.
7228 2009-02-07 Michael Scherer <misc@mandriva.org>
7230 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
7232 2009-02-07 Robert Millan <rmh@aybabtu.com>
7234 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
7235 position of `disk/lvm.c' to ensure grub_init_all() always picks it
7236 after the RAID stuff.
7238 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
7240 Fixes problem when running vbetest command as reported by
7241 Vladimir Serbinenko <phcoder@gmail.com>.
7243 * (grub_vbe_set_video_mode): Fixed problem with text modes.
7245 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
7247 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
7248 /dev/md/NpN style mdraid devices.
7250 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
7252 * util/unifont2pff.rb: Remove.
7254 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
7256 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
7259 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
7261 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
7262 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7263 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7264 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
7265 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7266 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7267 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7269 2009-02-02 Christian Franke <franke@computer.org>
7271 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
7273 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
7275 * INSTALL: Note that we now require at least autoconf 2.59 and
7276 that LZO is optional.
7278 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
7280 Base on patch on bug #24154 created by Tomas Tintera
7283 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
7285 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
7287 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
7288 <bero@arklinux.org>.
7290 * normal/parser.y (script_init): Add missing semicolon.
7292 2009-01-31 Colin D Bennett <colin@gibibit.com>
7294 * normal/main.c: Add include to grub/menu_viewer.h.
7295 (free_menu_entry_classes): Added.
7296 (grub_normal_menu_addentry): Added class property handling.
7297 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
7298 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
7300 * normal/menu_viewer.c: New file.
7302 * normal/menu.c (run_menu_entry): Renamed to ...
7303 (grub_menu_execute_entry): ... this and made it as global.
7304 (grub_menu_run): Renamed to ...
7305 (show_text_menu): ... this and made it local.
7306 (show_text_menu): Adapt to new function names.
7307 (grub_normal_terminal_menu_viewer): New global variable.
7309 * include/grub/menu.h: New file.
7311 * include/grub/menu_viewer.h: New file.
7313 * include/grub/normal.h: Added include to grub/menu.h.
7314 (grub_menu_entry): Moved to include/grub/menu.h.
7315 (grub_menu_entry_t): Likewise.
7316 (grub_menu): Likewise.
7317 (grub_menu_t): Likewise.
7318 (grub_normal_terminal_menu_viewer): Added.
7319 (grub_menu_execute_entry): Likewise.
7320 (grub_menu_run): Removed.
7322 * DISTLIST: Added include/grub/menu.h.
7323 Added include/grub/menu_viewer.h.
7324 Added normal/menu_viewer.c.
7326 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
7328 * normal/execute.c (grub_script_execute_menuentry): Changed to use
7329 arglist for menutitle arguments.
7331 * normal/main.c (grub_normal_menu_addentry): Likewise.
7333 * normal/parser.y (menuentry): Likewise.
7335 * normal/script.c (grub_script_create_cmdmenu): Likewise.
7337 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
7338 (grub_script_create_cmdmenu): Likewise.
7340 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
7342 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
7345 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
7347 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
7349 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
7351 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
7353 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
7355 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
7357 2009-01-30 Christian Franke <franke@computer.org>
7359 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
7360 in option help text.
7362 2009-01-27 Pavel Roskin <proski@gnu.org>
7364 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
7366 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
7368 * commands/lsmmap.c: Add include to grub/machine/memory.h.
7370 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
7372 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
7373 unregister function.
7375 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
7377 * disk/scsi.c (grub_scsi_read): Fix sign problem.
7379 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
7381 * util/grub-mkfont.c (usage): Fix typo.
7383 * util/elf/grub-mkimage.c (load_modules): Fix warning.
7385 2009-01-26 Daniel Mierswa <impulze@impulze.org>
7387 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
7389 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
7391 * kern/misc.c (grub_strcasecmp): New function.
7392 (grub_strcasecmp): Use grub_size_t instead of int for length.
7394 * include/grub/misc.h: Update function prototypes.
7396 2009-01-26 Robert Millan <rmh@aybabtu.com>
7398 * configure.ac: Fix cross-compilation check.
7400 2009-01-22 Christian Franke <franke@computer.org>
7402 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
7403 (precision) digit string. Allow `.format2' without `format1' (width).
7404 Limit input chars for `%s' output to `format2' if specified. This is
7405 compatible with standard printf ().
7407 2009-01-22 Christian Franke <franke@computer.org>
7409 * disk/ata.c (grub_ata_wait_status): Replace by ...
7410 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
7411 other status bits may be invalid while BSY is asserted.
7412 (grub_ata_check_ready): New function.
7413 (grub_ata_cmd): Removed.
7414 (grub_ata_wait_drq): New function.
7415 (grub_ata_strncpy): Remove inline.
7416 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
7417 and error check now done by grub_ata_wait_drq ().
7418 (grub_ata_pio_write): Likewise.
7419 (grub_atapi_identify): Set DEV before check for !BSY. Use
7420 grub_ata_wait_drq () to wait for data.
7421 (grub_ata_device_initialize): Add status register check to
7422 detect missing SATA slave devices. Add debug messages.
7423 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
7424 (grub_atapi_packet): Set DEV before check for !BSY. Replace
7425 transfer loop by grub_ata_pio_write ().
7426 (grub_ata_identify): Set DEV before check for !BSY. Use
7427 grub_ata_wait_drq () to wait for data.
7428 (grub_ata_setaddress): Set DEV before check for !BSY.
7429 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
7430 read/write in one loop. Fix invalid command on write. Fix incomplete
7431 command on (size % batch) == 0. Add missing error check after write of
7432 last block. Add debug messages.
7433 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
7435 2009-01-19 Christian Franke <franke@computer.org>
7437 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
7438 (GRUB_ATAPI_IREASON_*): Likewise.
7439 (grub_ata_pio_write): Fix timeout error return.
7440 (grub_atapi_identify): Add grub_ata_wait () after cmd.
7441 (grub_atapi_wait_drq): New function.
7442 (grub_atapi_packet): New parameter `size'.
7443 Use grub_atapi_wait_drq () and direct write instead of
7444 grub_ata_pio_write ().
7445 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
7446 reads the number of bytes requested by the device for each DRQ
7448 (grub_atapi_write): Remove old implementation, return not
7449 implemented instead.
7451 2009-01-19 Christian Franke <franke@computer.org>
7453 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
7454 of 512 to calculate data size.
7455 (grub_scsi_read12): Likewise.
7456 (grub_scsi_write10): Likewise.
7457 (grub_scsi_write12): Likewise.
7458 (grub_scsi_read): Adjust size according to blocksize.
7459 Add checks for invalid blocksize and unaligned transfer.
7461 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
7463 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
7465 * term/gfxterm.c (write_char): Fix background rendering for wide
7468 2009-01-19 Robert Millan <rmh@aybabtu.com>
7470 * config.guess: Update to latest version from config git.
7471 * config.sub: Likewise.
7473 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
7475 * Makefile.in: Change font compilation to use new grub-mkfont instead
7478 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
7479 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
7480 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
7481 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
7482 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
7483 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
7484 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
7485 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
7486 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
7488 2009-01-16 Christian Franke <franke@computer.org>
7490 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
7491 (enum grub_ata_timeout_milliseconds): New enum.
7492 (grub_ata_wait_status): Add parameter milliseconds.
7493 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
7494 recovery from timed-out commands.
7495 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
7496 return grub_errno instead of REG_ERROR.
7497 (grub_ata_pio_write): Add parameter milliseconds.
7498 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
7499 Pass milliseconds to grub_ata_wait_status () and
7500 grub_ata_pio_read ().
7501 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
7502 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
7503 grub_ata_wait_status (). Fix IDENTIFY timeout check.
7504 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
7505 It is not suitable for device detection, because DEV bit is ignored,
7506 the command may run too long, and not all devices set the signature
7508 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
7509 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
7510 Fix device selection, DEV bit must be set first to address the registers
7511 of the correct device.
7512 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
7513 grub_ata_pio_read/write ().
7514 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
7515 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
7517 2009-01-13 Carles Pina i Estany <carles@pina.cat>
7519 * util/grub-editenv.c (main): Use fseeko(), not fseek().
7521 2009-01-13 Bean <bean123ch@gmail.com>
7523 * util/grub-mkfont.c (write_font): forget to remove some debug code.
7525 2009-01-13 Bean <bean123ch@gmail.com>
7527 * Makefile.in: (enable_grub_mkfont): New variable.
7528 (freetype_cflags): Likewise.
7529 (freetype_libs): Likewise.
7531 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
7532 (grub_mkfont_SOURCES): New variable.
7533 (grub_mkfont_CFLAGS): Likewise.
7534 (grub_mkfont_LDFLAGS): Likewise.
7536 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
7537 library if `--enable-grub-mkfont' is requested.
7538 (enable_grub_mkfont): New variable.
7539 (freetype_cflags): Likewise.
7540 (freetype_libs): Likewise.
7542 * util/grub-mkfont.c: New file.
7544 2009-01-12 Christian Franke <franke@computer.org>
7546 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
7547 mode check. Fix setting of compat_use[].
7549 2009-01-10 Robert Millan <rmh@aybabtu.com>
7551 Update a few copyright years which we forgot to do in 2008 (only for
7552 files whose changes made in 2008 were copyright-significant)
7554 * Makefile.in: Add 2008 to Copyright line.
7555 * disk/ieee1275/ofdisk.c: Likewise.
7556 * disk/efi/efidisk.c: Likewise.
7557 * kern/dl.c: Likewise.
7558 * kern/sparc64/ieee1275/init.c: Likewise.
7559 * kern/mm.c: Likewise.
7560 * kern/efi/mm.c: Likewise.
7561 * boot/i386/pc/boot.S: Likewise.
7562 * genfslist.sh: Likewise.
7563 * fs/iso9660.c: Likewise.
7564 * fs/hfs.c: Likewise.
7565 * fs/jfs.c: Likewise.
7566 * fs/minix.c: Likewise.
7567 * fs/ufs.c: Likewise.
7568 * gensymlist.sh.in: Likewise.
7569 * genkernsyms.sh.in: Likewise.
7570 * include/grub/misc.h: Likewise.
7571 * include/grub/types.h: Likewise.
7572 * include/grub/symbol.h: Likewise.
7573 * include/grub/elf.h: Likewise.
7574 * include/grub/kernel.h: Likewise.
7575 * include/grub/disk.h: Likewise.
7576 * include/grub/dl.h: Likewise.
7577 * include/grub/i386/linux.h: Likewise.
7578 * include/grub/i386/pc/biosdisk.h: Likewise.
7579 * include/grub/efi/api.h: Likewise.
7580 * include/grub/efi/pe32.h: Likewise.
7581 * include/grub/util/misc.h: Likewise.
7582 * normal/execute.c: Likewise.
7583 * normal/arg.c: Likewise.
7584 * normal/completion.c: Likewise.
7585 * normal/lexer.c: Likewise.
7586 * normal/parser.y: Likewise.
7587 * normal/misc.c: Likewise.
7588 * commands/i386/pc/vbeinfo.c: Likewise.
7589 * commands/hexdump.c: Likewise.
7590 * commands/terminal.c: Likewise.
7591 * commands/ls.c: Likewise.
7592 * commands/help.c: Likewise.
7593 * partmap/pc.c: Likewise.
7594 * loader/efi/chainloader.c: Likewise.
7595 * loader/multiboot_loader.c: Likewise.
7596 * loader/i386/pc/multiboot2.c: Likewise.
7597 * term/efi/console.c: Likewise.
7598 * term/i386/pc/serial.c: Likewise.
7599 * util/lvm.c: Likewise.
7600 * util/console.c: Likewise.
7601 * util/i386/efi/grub-mkimage.c: Likewise.
7602 * util/raid.c: Likewise.
7604 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
7606 * commands/videotest.c: Removed include to grub/machine/memory.h.
7608 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
7609 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
7610 (video_mod_SOURCES): Removed.
7611 (video_mod_CFLAGS): Likewise.
7612 (video_mod_LDFLAGS): Likewise.
7613 (gfxterm_mod_SOURCES): Likewise.
7614 (gfxterm_mod_CFLAGS): Likewise.
7615 (gfxterm_mod_LDFLAGS): Likewise.
7616 (videotest_mod_SOURCES): Likewise.
7617 (videotest_mod_CFLAGS): Likewise.
7618 (videotest_mod_LDFLAGS): Likewise.
7619 (bitmap_mod_SOURCES): Likewise.
7620 (bitmap_mod_CFLAGS): Likewise.
7621 (bitmap_mod_LDFLAGS): Likewise.
7622 (tga_mod_SOURCES): Likewise.
7623 (tga_mod_CFLAGS): Likewise.
7624 (tga_mod_LDFLAGS): Likewise.
7625 (jpeg_mod_SOURCES): Likewise.
7626 (jpeg_mod_CFLAGS): Likewise.
7627 (jpeg_mod_LDFLAGS): Likewise.
7628 (png_mod_SOURCES): Likewise.
7629 (png_mod_CFLAGS): Likewise.
7630 (png_mod_LDFLAGS): Likewise.
7632 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
7633 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
7634 (video_mod_SOURCES): Added.
7635 (video_mod_CFLAGS): Likewise.
7636 (video_mod_LDFLAGS): Likewise.
7637 (videotest_mod_SOURCES): Likewise.
7638 (videotest_mod_CFLAGS): Likewise.
7639 (videotest_mod_LDFLAGS): Likewise.
7640 (bitmap_mod_SOURCES): Likewise.
7641 (bitmap_mod_CFLAGS): Likewise.
7642 (bitmap_mod_LDFLAGS): Likewise.
7643 (tga_mod_SOURCES): Likewise.
7644 (tga_mod_CFLAGS): Likewise.
7645 (tga_mod_LDFLAGS): Likewise.
7646 (jpeg_mod_SOURCES): Likewise.
7647 (jpeg_mod_CFLAGS): Likewise.
7648 (jpeg_mod_LDFLAGS): Likewise.
7649 (png_mod_SOURCES): Likewise.
7650 (png_mod_CFLAGS): Likewise.
7651 (png_mod_LDFLAGS): Likewise.
7652 (gfxterm_mod_SOURCES): Likewise.
7653 (gfxterm_mod_CFLAGS): Likewise.
7654 (gfxterm_mod_LDFLAGS): Likewise.
7656 * term/gfxterm.c: Removed include to grub/machine/memory.h,
7657 grub/machine/console.h.
7659 2009-01-04 Jerone Young <jerone@gmail.com>
7661 Make on screen instructions clearer
7663 Based on patch created by Jidanni <jidanni@jidanni.org>
7665 * normal/menu.c: print clearer instructions on the screen
7667 2009-01-02 Colin D Bennett <colin@gibibit.com>
7671 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
7672 build system and fixed gfxterm.c to work with different sized fonts.
7674 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
7676 * configure: Re-generated.
7678 * DISTLIST: Removed font/manager.c.
7680 Added font/font_cmd.c.
7682 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
7685 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
7687 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
7689 * kern/term.c: Changed users of grub_utf8_to_ucs4.
7691 * normal/menu.c: Likewise.
7693 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
7694 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
7696 * include/grub/font.h: Replaced with new file.
7698 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
7699 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
7700 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
7701 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
7702 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
7703 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
7704 fg_red, fg_green, fg_blue, fg_alpha.
7705 (grub_video_adapter): Removed blit_glyph.
7706 (grub_video_blit_glyph): Removed.
7708 * font/manager.c: Removed file.
7710 * font/font.c: New file.
7712 * font/font_cmd.c: Likewise.
7714 * video/video.c (grub_video_blit_glyph): Removed.
7716 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
7717 (grub_video_vbe_map_rgba): Likewise.
7718 (grub_video_vbe_unmap_color_int): Likewise.
7719 (grub_video_vbe_blit_glyph): Removed.
7720 (grub_video_vbe_adapter): Removed blit_glyph.
7722 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
7723 (get_pixel): Likewise.
7724 (set_pixel): Likewise.
7726 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
7728 * term/gfxterm.c: Adapted to new font engine.
7730 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
7732 * term/i386/pc/vga.c: Likewise.
7734 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
7736 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
7738 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
7740 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
7742 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
7744 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
7746 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
7748 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
7750 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
7752 * util/grub.d/00_header.in: Changed to use new loadfont command.
7754 * util/grub-mkconfig_lib.in: Changed font extension.
7756 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
7758 * util/getroot.c (grub_util_get_grub_dev): Add support for
7759 /dev/md/dNNpNN style partitionable mdraid devices.
7761 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
7763 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
7764 at a time limit of the PXE TFTP API correctly.
7765 (grub_pxefs_close): Likewise.
7767 2008-11-29 Robert Millan <rmh@aybabtu.com>
7769 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7770 grub_ata_device_initialize() calls.
7772 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
7774 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
7776 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
7778 2008-11-28 Robert Millan <rmh@aybabtu.com>
7780 Fix build on powerpc-ieee1275. Based on patch created by
7781 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
7782 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7783 `kern/ieee1275/mmap.c'.
7784 * include/grub/powerpc/ieee1275/memory.h: New file.
7786 Provide grub-install on coreboot.
7787 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
7788 (grub_install_SOURCES): New variable.
7789 * util/i386/pc/grub-install.in: Add a few condition checks to make it
7792 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
7794 * util/grub-fstest.c (grub_term_get_current_input): Change return type
7795 to `grub_term_input_t'.
7796 (grub_term_get_current_output): Change return type to
7797 `grub_term_output_t'.
7799 2008-11-22 Robert Millan <rmh@aybabtu.com>
7801 Fix breakage on coreboot due to declaration mismatch.
7802 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
7803 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
7804 grub_vga_text_cls().
7806 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
7807 comments. Avoid copying one more byte than necessary (just in case).
7809 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
7810 to 0x200000 (avoids trouble with some OFW implementations, and matches
7811 with the one in Yaboot).
7812 Reported by Manoel Abranches
7814 2008-11-20 Robert Millan <rmh@aybabtu.com>
7816 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
7817 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
7819 * util/grub-mkconfig_lib.in (grub_warn): New function.
7820 (convert_system_path_to_grub_path): Use grub_warn() when issuing
7821 warnings, to obtain consistent formatting.
7822 * util/grub.d/00_header.in: Likewise.
7823 * util/update-grub_lib.in: Likewise.
7825 * loader/i386/linux.c (allocate_pages): Fix a warning.
7826 Move comment text to `#error' stanza.
7828 Harmonize ieee1275's grub_available_iterate() with the generic
7829 grub_machine_mmap_iterate() interface (fixes a recently-introduced
7830 build problem on i386-ieee1275):
7831 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
7832 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
7833 parameter `type'. Update all users of this function.
7834 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
7835 `kern/ieee1275/mmap.c'.
7836 * kern/ieee1275/init.c
7837 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
7839 (grub_machine_mmap_iterate): ... this.
7840 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
7841 return type to `grub_err_t'. Update all implementations of this
7843 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
7846 Add `lsmmap' command (lists firmware-provided memory map):
7847 * commands/lsmmap.c: New file.
7848 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
7849 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
7851 * conf/powerpc-ieee1275.rmk: Likewise.
7852 * conf/i386-coreboot.rmk: Likewise.
7853 * conf/i386-ieee1275.rmk: Likewise.
7855 2008-11-19 Robert Millan <rmh@aybabtu.com>
7857 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
7858 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
7859 constraints to initrd allocation (based on code from
7860 loader/i386/pc/linux.c). Without them, initrd was allocated too high
7861 for Linux to find it.
7863 2008-11-14 Robert Millan <rmh@aybabtu.com>
7865 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
7866 order to cope with duplicate slashes.
7868 2008-11-14 Robert Millan <rmh@aybabtu.com>
7870 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
7871 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
7872 don't want to mess with lower memory, because it is used in the Linux
7875 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
7876 an appropriate place in lower memory, between 0x10000 and 0x90000,
7877 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
7878 is in our heap (probably as a result of it being corrupted during
7879 decompression). Add #error instance with comment to explain why this
7880 loader isn't currently usable on PC/BIOS.
7882 2008-11-14 Robert Millan <rmh@aybabtu.com>
7884 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
7885 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
7887 2008-11-12 Robert Millan <rmh@aybabtu.com>
7889 Make loader/i386/linux.c buildable on i386-pc (although disabled).
7891 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
7892 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
7894 * include/grub/i386/pc/memory.h: ... to here.
7896 2008-11-12 Robert Millan <rmh@aybabtu.com>
7898 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
7901 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
7902 (grub_console_cur_color, grub_console_real_putchar)
7903 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
7904 (grub_console_setcolorstate, grub_console_setcolor)
7905 (grub_console_getcolor): Move from here ...
7906 * include/grub/i386/vga_common.h: ... to here (new file).
7908 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
7909 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
7911 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
7912 `<grub/i386/vga_common.h>'.
7914 2008-11-12 Robert Millan <rmh@aybabtu.com>
7916 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
7917 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
7918 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
7920 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
7921 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
7923 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
7924 grub_console_init() with call to grub_vga_text_init().
7925 (grub_machine_fini): Replace call to
7926 grub_console_fini() with call to grub_vga_text_fini() and
7927 grub_at_keyboard_fini().
7929 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
7930 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
7931 (grub_console_setcolorstate, grub_console_setcolor)
7932 (grub_console_getcolor): New function prototypes.
7934 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
7935 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
7936 (grub_vga_text_setcursor): Static-ize.
7937 (grub_vga_text_term): New structure.
7938 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
7940 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
7941 (grub_console_cur_color, grub_console_standard_color)
7942 (grub_console_normal_color, grub_console_highlight_color)
7943 (map_char, grub_console_putchar, grub_console_getcharwidth)
7944 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
7945 (grub_console_getcolor): Move from here ...
7946 * term/i386/vga_common.c: ... to here (same function names).
7948 2008-11-12 Robert Millan <rmh@aybabtu.com>
7950 Use newly-added Multiboot support in coreboot.
7952 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
7953 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
7955 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
7956 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
7957 (codestart): Store the MBI in `startup_multiboot_info' when we're
7958 being loaded using Multiboot.
7960 * kern/i386/coreboot/init.c (grub_machine_init): Move
7961 grub_at_keyboard_init() call to beginning of function (useful for
7962 debugging). Call grub_machine_mmap_init() before attempting to use
7963 grub_machine_mmap_iterate().
7964 (grub_lower_mem, grub_upper_mem): Move from here ...
7965 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
7968 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
7971 2008-11-12 Robert Millan <rmh@aybabtu.com>
7973 Fix a regression introduced by the at_keyboard.mod split. Because
7974 some terminals are default on some platforms and non-default on
7975 others, the first terminal being registered determines which is
7976 going to be default.
7978 * kern/term.c (grub_term_register_input): If this is the first
7979 terminal being registered, set it as the current one.
7980 (grub_term_register_output): Likewise.
7982 * term/efi/console.c (grub_console_init): Do not call
7983 grub_term_set_current_output() or grub_term_set_current_input().
7984 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
7985 * term/i386/pc/console.c (grub_console_init): Likewise.
7986 (grub_console_fini): Do not call grub_term_set_current_input()
7987 (but leave grub_term_set_current_output() to restore text mode).
7989 2008-11-10 Robert Millan <rmh@aybabtu.com>
7991 * util/grub.d/00_header.in: Add backward compatibility check for
7992 versions of terminal.mod that don't understand `terminal_input' or
7995 2008-11-09 Robert Millan <rmh@aybabtu.com>
7997 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
7998 `terminal_input' / `terminal_output', not `terminal'.
8000 2008-11-08 Robert Millan <rmh@aybabtu.com>
8002 * Makefile.in (include_DATA): Fix srcdir=. assumption.
8003 (DISTCLEANFILES): Add `build_env.mk'.
8005 2008-11-08 Robert Millan <rmh@aybabtu.com>
8007 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
8008 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
8009 members. Update all users.
8010 * util/console.c (grub_ncurses_term): Split in ...
8011 (grub_ncurses_term_input): ... this, and ...
8012 (grub_ncurses_term_output): ... this. Update all users.
8013 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
8015 2008-11-08 Robert Millan <rmh@aybabtu.com>
8017 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
8018 (PKGDATA): Add $(pkgdata_SRCDIR).
8019 (pkglib_BUILDDIR): New variable.
8020 (pkgdata_SRCDIR): New variable.
8021 (build_env.mk): New target.
8022 (include_DATA): New variable.
8023 (install-local): Install $(include_DATA) files in $(includedir).
8025 2008-11-07 Pavel Roskin <proski@gnu.org>
8027 * gendistlist.sh: Use C locale for sorting to ensure consistent
8028 output on all systems.
8030 * util/grub.d/00_header.in: Remove incorrect space before
8033 2008-11-07 Robert Millan <rmh@aybabtu.com>
8035 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
8037 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
8038 * loader/multiboot_loader.c (find_multi_boot2_header): New function
8039 (based on find_multi_boot1_header).
8040 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
8041 using find_multi_boot2_header(), and abort if neither Multiboot or
8042 Multiboot headers were found.
8044 2008-11-07 Robert Millan <rmh@aybabtu.com>
8046 Modularize at_keyboard.mod:
8048 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
8049 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
8050 (at_keyboard_mod_LDFLAGS): New variables.
8052 Actual terminal split:
8054 * include/grub/term.h (struct grub_term): Split in ...
8055 (struct grub_term_input): ... this, and ...
8056 (struct grub_term_output): ... this. Update all users.
8057 (grub_term_set_current): Split in ...
8058 (grub_term_set_current_input): ... this, and ...
8059 (grub_term_set_current_output): ... this.
8060 (grub_term_get_current): Split in ...
8061 (grub_term_get_current_input): ... this, and ...
8062 (grub_term_get_current_output): ... this.
8063 (grub_term_register): Split in ...
8064 (grub_term_register_input): ... this, and ...
8065 (grub_term_register_output): ... this.
8066 (grub_term_unregister): Split in ...
8067 (grub_term_unregister_input): ... this, and ...
8068 (grub_term_unregister_output): ... this.
8069 (grub_term_iterate): Split in ...
8070 (grub_term_iterate_input): ... this, and ...
8071 (grub_term_iterate_output): ... this.
8073 * kern/term.c (grub_term_list): Split in ...
8074 (grub_term_list_input): ... this, and ...
8075 (grub_term_list_output): ... this. Update all users.
8076 (grub_cur_term): Split in ...
8077 (grub_cur_term_input): ... this, and ...
8078 (grub_cur_term_output): ... this. Update all users.
8079 (grub_term_set_current): Split in ...
8080 (grub_term_set_current_input): ... this, and ...
8081 (grub_term_set_current_output): ... this.
8082 (grub_term_get_current): Split in ...
8083 (grub_term_get_current_input): ... this, and ...
8084 (grub_term_get_current_output): ... this.
8085 (grub_term_register): Split in ...
8086 (grub_term_register_input): ... this, and ...
8087 (grub_term_register_output): ... this.
8088 (grub_term_unregister): Split in ...
8089 (grub_term_unregister_input): ... this, and ...
8090 (grub_term_unregister_output): ... this.
8091 (grub_term_iterate): Split in ...
8092 (grub_term_iterate_input): ... this, and ...
8093 (grub_term_iterate_output): ... this.
8095 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
8096 a check for input and one for output (and only attempt to get keys
8097 from user when input works).
8099 * util/grub-probe.c (grub_term_get_current): Split in ...
8100 (grub_term_get_current_input): ... this, and ...
8101 (grub_term_get_current_output): ... this.
8102 * util/grub-fstest.c: Likewise.
8103 * util/i386/pc/grub-setup.c: Likewise.
8104 * util/grub-editenv.c: Likewise.
8106 Portability adjustments:
8108 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
8109 `term/i386/pc/at_keyboard.c'.
8110 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
8111 grub_keyboard_controller_init() (now handled by terminal .init).
8112 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
8113 grub_at_keyboard_init().
8114 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
8115 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
8116 at_keyboard.mod via input terminal interface).
8117 * include/grub/i386/coreboot/console.h: Convert into a stub for
8118 `<grub/i386/pc/console.h>'.
8120 Migrate full terminals to new API:
8122 * term/efi/console.c (grub_console_term): Split into ...
8123 (grub_console_term_input): ... this, and ...
8124 (grub_console_term_output): ... this. Update all users.
8125 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
8126 (grub_ofconsole_init): Split into ...
8127 (grub_ofconsole_init_input): ... this, and ...
8128 (grub_ofconsole_init_output): ... this.
8129 (grub_ofconsole_term): Split into ...
8130 (grub_ofconsole_term_input): ... this, and ...
8131 (grub_ofconsole_term_output): ... this. Update all users.
8132 * term/i386/pc/serial.c (grub_serial_term): Split into ...
8133 (grub_serial_term_input): ... this, and ...
8134 (grub_serial_term_output): ... this. Update all users.
8135 * term/i386/pc/console.c (grub_console_term): Split into ...
8136 (grub_console_term_input): ... this, and ...
8137 (grub_console_term_output): ... this. Update all users.
8138 (grub_console_term_input): Only enable it on PC/BIOS platform.
8139 (grub_console_init): Remove grub_keyboard_controller_init() call.
8141 Migrate input terminals to new API:
8143 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
8144 `i386' and `i386/pc' to enable build on x86_64 (this driver is
8145 i386-specific anyway).
8146 (grub_console_checkkey): Rename to ...
8147 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
8149 (grub_keyboard_controller_orig): New variable.
8150 (grub_console_getkey): Rename to ...
8151 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
8153 (grub_keyboard_controller_init): Static-ize. Save original
8154 controller value so that it can be restored ...
8155 (grub_keyboard_controller_fini): ... here (new function).
8156 (grub_at_keyboard_term): New structure.
8157 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
8160 Migrate output terminals to new API:
8162 * term/i386/pc/vga.c (grub_vga_term): Change type to
8163 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
8164 members. Update all users.
8165 * term/gfxterm.c (grub_video_term): Change type to
8166 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
8167 members. Update all users.
8168 * include/grub/i386/pc/console.h (grub_console_checkkey)
8169 (grub_console_getkey): Do not export (no longer needed by gfxterm,
8172 Migrate `terminal' command and userland tools to new API:
8174 * commands/terminal.c (grub_cmd_terminal): Split into ...
8175 (grub_cmd_terminal_input): ... this, and ...
8176 (grub_cmd_terminal_output): ... this.
8177 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
8178 `terminal_input' and `terminal_output'.
8179 * util/grub.d/00_header.in: Adjust `terminal' calls to new
8180 `terminal_input' / `terminal_output' API.
8181 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
8182 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
8183 provided ${GRUB_TERMINAL}, convert it).
8185 2008-11-04 Robert Millan <rmh@aybabtu.com>
8187 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
8189 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
8191 2008-11-03 Bean <bean123ch@gmail.com>
8193 * kern/elf.c (grub_elf32_load): Revert to previous code.
8194 (grub_elf64_load): Likewise.
8196 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
8198 2008-11-01 Robert Millan <rmh@aybabtu.com>
8200 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
8201 (TARGET_CPPFLAGS): Likewise.
8202 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
8204 2008-11-01 Carles Pina i Estany <carles@pina.cat>
8206 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
8208 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
8210 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
8211 addition of objects until the code is not going to be able to fail.
8213 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
8215 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
8216 (add a missing NULL check, and correct them by moving the pointer
8217 operations after the actual check).
8219 2008-10-29 Robert Millan <rmh@aybabtu.com>
8221 * util/i386/pc/grub-install.in: Handle empty string as output from
8222 make_system_path_relative_to_its_root().
8224 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
8226 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
8227 circular metadata worst case scenario. If the metadata is circular
8228 then copy the wrap in place.
8229 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
8230 project lib/format_text/layout.h
8231 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
8233 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
8235 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
8237 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
8239 * util/update-grub_lib.in: Mention filename in warning message.
8241 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
8243 * NEWS: Update for rename of update-grub to grub-mkconfig.
8245 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
8247 * util/update-grub_lib.in: Copy to ...
8248 * util/grub-mkconfig_lib.in: ... this. Update all users.
8249 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
8250 * util/update-grub.in: Rename to ...
8251 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
8252 option. Add `--output' option to allow users to specify the generated
8253 configuration file. Default to stdout.
8254 (update_grub_dir): Rename to ...
8255 (grub_mkconfig_dir): ... this.
8256 (grub_cfg): Default to an empty string.
8257 * conf/common.rmk (update-grub): Rename to ...
8258 (grub-mkconfig): ... this.
8259 (update-grub_lib): Copy to ...
8260 (grub-mkconfig_lib): ... this.
8261 (update-grub_SCRIPTS): Copy to ...
8262 (grub-mkconfig_SCRIPTS): ... this. Update all users.
8263 (update-grub_DATA): Rename to ...
8264 (grub-mkconfig_DATA): ... this.
8266 2008-09-28 Robert Millan <rmh@aybabtu.com>
8268 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
8269 to `modified'. Add the real `created' field.
8270 (grub_iso9660_uuid): Use `modified' rather than `created' for
8271 constructing the UUID.
8273 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
8275 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
8276 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
8278 2008-09-28 Bean <bean123ch@gmail.com>
8280 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
8281 Thanks to Christian Franke for finding this bug.
8283 2008-09-25 Robert Millan <rmh@aybabtu.com>
8285 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
8286 instances of grub_util_get_disk_name() (see previous commit).
8288 2008-09-25 Robert Millan <rmh@aybabtu.com>
8290 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
8291 `util/i386/get_disk_name.c'.
8292 * conf/i386-efi.rmk: Likewise.
8293 * conf/x86_64-efi.rmk: Likewise.
8294 * conf/i386-coreboot.rmk: Likewise.
8295 * conf/i386-ieee1275.rmk: Likewise.
8296 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
8297 `util/ieee1275/get_disk_name.c'.
8298 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
8299 * util/ieee1275/get_disk_name.c: Remove file.
8300 * util/i386/get_disk_name.c: Remove file.
8301 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
8302 "hd%d" for device.map entries, rather than using
8303 grub_util_get_disk_name().
8305 2008-09-24 Carles Pina i Estany <carles@pina.cat>
8307 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
8309 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
8311 2008-09-24 Carles Pina i Estany <carles@pina.cat>
8313 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
8315 (GRUB_TERM_PPAGE): Changed to 0x4900.
8317 2008-09-24 Robert Millan <rmh@aybabtu.com>
8319 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
8320 macros (they were i386-pc specific).
8321 * include/grub/sparc64/ieee1275/console.h: Likewise.
8322 * include/grub/efi/console.h: Likewise.
8324 2008-09-22 Bean <bean123ch@gmail.com>
8326 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
8327 resident and in attribute list.
8329 * include/grub/ntfs.h (BMP_LEN): Removed.
8331 2008-09-22 Bean <bean123ch@gmail.com>
8333 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
8334 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
8336 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
8337 error occurs, as grub_disk_open will call grub_disk_close, which will
8338 call p->close (scsi).
8340 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
8342 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
8343 (AC_PREREQ): Bumped to 2.59.
8344 (AC_TRY_COMPILE): Replace obsolete macro with ...
8345 (AC_COMPILE_IFELSE): ... this.
8346 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
8347 (AC_LINK_IFELSE): ... this.
8349 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
8351 * autogen.sh: Add a call to `gendistlist.sh'.
8353 2008-09-19 Christian Franke <franke@computer.org>
8355 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
8356 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
8357 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
8358 Export __enable_execute_stack() to modules.
8359 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
8362 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
8364 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
8367 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
8369 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
8370 #include <grub/util/hostdisk.h>.
8372 2008-09-08 Robert Millan <rmh@aybabtu.com>
8374 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
8375 segments when their filesz is zero (grub_file_read() interprets
8376 zero-size as "read until EOF", which results in memory corruption).
8377 Use `lowest_segment' rather than 0 for calculating the current
8378 segment load address.
8380 2008-09-08 Robert Millan <rmh@aybabtu.com>
8382 * util/hostdisk.c (open_device): Replace a grub_util_info() call
8383 with grub_dprintf("hostdisk", ...), as it was so verbose that it
8384 clobbered useful information.
8386 2008-09-08 Robert Millan <rmh@aybabtu.com>
8388 * include/grub/util/biosdisk.h: Move to ...
8389 * include/grub/util/hostdisk.h: ... here. Update all users.
8390 * util/biosdisk.c: Move to ...
8391 * util/hostdisk.c: ... here. Update all users.
8393 2008-09-07 Robert Millan <rmh@aybabtu.com>
8395 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
8397 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
8398 and length can be stored directly in the `mbi->mmap_addr' and
8399 `mbi->mmap_length' struct fields.
8401 2008-09-07 Robert Millan <rmh@aybabtu.com>
8403 * conf/i386.rmk: New file. Provides declaration for building
8405 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
8406 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
8408 Include `conf/i386.mk'.
8409 * conf/i386-efi.rmk: Likewise.
8410 * conf/x86_64-efi.rmk: Likewise.
8411 * conf/i386-coreboot.rmk: Likewise.
8412 * conf/i386-ieee1275.rmk: Likewise.
8414 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
8416 Based on patch created by Colin D Bennett <colin@gibibit.com>.
8417 Adds optimization support for BGR based modes.
8419 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
8420 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
8421 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
8422 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
8423 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
8424 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
8425 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
8426 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
8427 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
8428 (grub_video_i386_vbeblit_index_index): Likewise.
8429 (grub_video_i386_vbeblit_replace_directN): Added.
8430 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
8431 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
8432 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
8433 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
8434 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
8435 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
8436 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
8437 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
8438 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
8439 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
8440 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
8441 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
8442 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
8444 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
8445 (grub_video_i386_vbefill_R8G8B8): Likewise.
8446 (grub_video_i386_vbefill_index): Likewise.
8447 (grub_video_i386_vbefill_direct32): Added.
8448 (grub_video_i386_vbefill_direct24): Likewise.
8449 (grub_video_i386_vbefill_direct16): Likewise.
8450 (grub_video_i386_vbefill_direct8): Likewise.
8452 * include/grub/video.h (grub_video_blit_format): Removed
8453 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
8454 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
8455 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
8456 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
8457 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
8459 * video/video.c (grub_video_get_blit_format): Updated to use new
8460 blit formats. Added handling for 16 bit color modes.
8462 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
8464 (common_blitter): Updated to use new blitters.
8466 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
8468 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
8469 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
8470 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
8471 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
8472 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
8473 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
8474 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
8475 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
8476 (grub_video_i386_vbeblit_index_index): Likewise.
8477 (grub_video_i386_vbeblit_replace_directN): Added.
8478 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
8479 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
8480 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
8481 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
8482 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
8483 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
8484 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
8485 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
8486 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
8487 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
8488 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
8489 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
8490 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
8492 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
8493 (grub_video_i386_vbefill_R8G8B8): Likewise.
8494 (grub_video_i386_vbefill_index): Likewise.
8495 (grub_video_i386_vbefill_direct32): Added.
8496 (grub_video_i386_vbefill_direct24): Likewise.
8497 (grub_video_i386_vbefill_direct16): Likewise.
8498 (grub_video_i386_vbefill_direct8): Likewise.
8500 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
8503 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
8506 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
8509 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
8512 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
8514 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
8517 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
8519 * fs/iso9660.c (grub_iso9660_date): New structure.
8520 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
8521 (grub_iso9660_uuid): New function.
8523 2008-09-05 Bean <bean123ch@gmail.com>
8525 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
8527 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
8528 insensitive bit for names in Win32 and Win32 & DOS namespace.
8530 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
8532 * include/grub/types.h (LONG_MAX): Likewise.
8534 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
8536 * util/getroot.c: Include <config.h>.
8537 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
8538 add support for /dev/md/N devices and handle LVM double dash escaping.
8540 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
8542 * config.guess: Update to latest version from config git.
8543 * config.sub: Likewise.
8545 2008-09-03 Robert Millan <rmh@aybabtu.com>
8547 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
8548 `disk->total_sectors'.
8550 2008-09-01 Colin D Bennett <colin@gibibit.com>
8552 * include/grub/normal.h: Fixed incorrect comment for
8553 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
8555 2008-09-01 Colin D Bennett <colin@gibibit.com>
8557 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
8558 values with defines.
8560 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
8561 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
8562 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
8563 (GRUB_VBE_MODEATTR_COLOR): Likewise.
8564 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
8565 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
8566 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
8567 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
8568 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
8569 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
8570 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
8571 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
8572 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
8573 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
8574 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
8575 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
8576 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
8577 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
8578 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
8580 2008-08-31 Robert Millan <rmh@aybabtu.com>
8582 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
8584 (grub_multiboot): Fix a few warnings.
8586 2008-08-31 Robert Millan <rmh@aybabtu.com>
8588 * loader/i386/pc/multiboot.c: Update comment not to say that
8589 boot_device support is unimplemented.
8591 2008-08-31 Robert Millan <rmh@aybabtu.com>
8593 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
8594 or memory map support are unimplemented.
8596 2008-08-31 Colin D Bennett <colin@gibibit.com>
8598 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
8600 2008-08-31 Colin D Bennett <colin@gibibit.com>
8602 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
8603 total video memory in 'vbeinfo' output; show color format details for
8606 2008-08-30 Pavel Roskin <proski@gnu.org>
8608 * util/genmoddep.c: Remove for real this time.
8609 * DISTLIST: Remove util/genmoddep.c.
8611 2008-08-30 Robert Millan <rmh@aybabtu.com>
8613 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
8614 as required by Multiboot spec (it was already 4-byte aligned, but
8617 2008-08-29 Pavel Roskin <proski@gnu.org>
8619 * kern/powerpc/ieee1275/crt0.S: Rename to ...
8620 * kern/powerpc/ieee1275/startup.S: ... this.
8621 * conf/powerpc-ieee1275.rmk: Adjust for the above.
8622 * DISTLIST: Likewise.
8624 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
8625 grub/cpu/kernel.h. Add start label for consistency with other
8626 platforms. Add grub_prefix immediately after start. Add jump
8627 to the code after grub_prefix.
8628 * include/grub/powerpc/kernel.h: Provide valid values for
8629 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
8631 2008-08-29 Bean <bean123ch@gmail.com>
8633 * configure.ac: Change host_os to cygwin for mingw.
8634 (asprintf): New check for function.
8636 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
8637 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
8639 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
8640 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
8641 sync, sleep and grub_util_get_disk_size for mingw.
8643 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
8644 to get size in mingw.
8645 (open_device): Use flag O_BINARY if it's defined.
8646 (find_root_device): Add dummy code for mingw.
8648 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
8649 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
8650 (get_scsi_disk_name): Return 0 for mingw.
8652 * util/hostfs.c: #include <grub/util/misc.h>.
8653 (grub_hostfs_open): Use "rb" flag to open file, use
8654 grub_util_get_disk_size to get disk size for mingw.
8656 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
8657 (asprintf): New function if HAVE_ASPRINTF is not set.
8658 (sync): New function for mingw.
8660 (grub_util_get_disk_size): Likewise.
8662 2008-08-28 Pavel Roskin <proski@gnu.org>
8664 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
8667 2008-08-28 Robert Millan <rmh@aybabtu.com>
8669 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
8671 2008-08-28 Robert Millan <rmh@aybabtu.com>
8673 Change find_grub_drive() syntax so it doesn't prevent it from
8674 detecting NULL names as errors.
8676 * util/biosdisk.c (find_grub_drive): Move free slot search code
8678 (find_free_slot): ... to here.
8679 (read_device_map): Use find_free_slot() to search for free slots.
8681 2008-08-27 Marco Gerards <marco@gnu.org>
8683 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
8684 (scsi_mod_SOURCES): New variable.
8685 (scsi_mod_CFLAGS): Likewise
8686 (scsi_mod_LDFLAGS): Likewise.
8688 * disk/scsi.c: New file.
8690 * include/grub/scsi.h: Likewise.
8692 * include/grub/scsicmd.h: Likewise.
8694 * disk/ata.c: Include <grub/scsi.h>.
8695 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
8697 (grub_ata_iterate): Skip ATAPI devices.
8698 (grub_ata_open): Only handle ATAPI devices.
8699 (struct grub_atapi_read): Removed.
8700 (grub_atapi_readsector): Likewise.
8701 (grub_ata_read): No longer handle ATAPI devices.
8702 (grub_ata_write): Likewise.
8703 (grub_atapi_iterate): New function.
8704 (grub_atapi_read): Likewise.
8705 (grub_atapi_write): Likewise.
8706 (grub_atapi_open): Likewise.
8707 (grub_atapi_close): Likewise.
8708 (grub_atapi_dev): New variable.
8709 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
8710 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
8712 * include/grub/disk.h (enum grub_disk_dev_id): Add
8713 `GRUB_DISK_DEVICE_SCSI_ID'.
8715 2008-08-26 Robert Millan <rmh@aybabtu.com>
8717 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
8718 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
8721 2008-08-23 Bean <bean123ch@gmail.com>
8723 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
8724 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
8725 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
8726 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
8728 (raid5rec_mod_SOURCES): New macro.
8729 (raid5rec_mod_CFLAGS): Likewise.
8730 (raid5rec_mod_LDFLAGS): Likewise.
8731 (raid6rec_mod_SOURCES): Likewise.
8732 (raid6rec_mod_CFLAGS): Likewise.
8733 (raid6rec_mod_LDFLAGS): Likewise.
8734 (mdraid_mod_SOURCES): Likewise.
8735 (mdraid_mod_CFLAGS): Likewise.
8736 (mdraid_mod_LDFLAGS): Likewise.
8737 (dm_nv_mod_SOURCES): Likewise.
8738 (dm_nv_mod_CFLAGS): Likewise.
8739 (dm_nv_mod_LDFLAGS): Likewise.
8741 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
8742 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
8743 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
8745 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
8746 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
8748 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8750 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8752 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8754 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8756 * disk/raid5_recover.c: New file.
8758 * disk/raid6_recover.c: Likewise.
8760 * disk/mdraid_linux.c: Likewise.
8762 * disk/dmraid_nvidia.c: Likewise.
8764 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
8767 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
8768 calculate the size of raid device.
8769 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
8770 different layout of raid5.
8771 (grub_raid_scan_device): Remove code specific to mdraid.
8772 (grub_raid_list): New variable.
8773 (free_array): New function.
8774 (grub_raid_register): Likewise.
8775 (grub_raid_unregister): Likewise.
8776 (grub_raid_rescan): Likewise.
8777 (GRUB_MOD_INIT): Don't iterate device here.
8778 (GRUB_MOD_FINI): Use free_array to release resource.
8780 * include/grub/raid.h: Remove macro and structure specific to mdraid.
8781 (grub_raid5_recover_func_t): New function variable type.
8782 (grub_raid6_recover_func_t): Likewise.
8783 (grub_raid5_recover_func): New variable.
8784 (grub_raid6_recover_func): Likewise.
8785 (grub_raid_register): New function.
8786 (grub_raid_unregister): Likewise.
8787 (grub_raid_rescan): Likewise.
8788 (grub_raid_block_xor): Likewise.
8790 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
8791 (CMD_CRC): New macro.
8793 (read_file): Handle device as well as file.
8794 (cmd_crc): New function.
8795 (fstest): Handle multiple disks.
8796 (options): Remove part, raw and long, add root and diskcount.
8797 (usage): Add crc, remove -p, -r, -l, add -r and -c.
8798 (main): Find the first non option entry and ignore subsequent options,
8799 add handling for the new options, support multiple disks.
8801 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
8803 2008-08-23 Bean <bean123ch@gmail.com>
8805 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
8807 * genfslist.sh: Ignore kernel.mod.
8809 * genpartmaplist.sh: Likewise.
8811 2008-08-23 Robert Millan <rmh@aybabtu.com>
8813 * util/getroot.c (find_root_device): Skip anything that starts with
8814 a dot, not just directories. This avoids things like /dev/.tmp.md0.
8816 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
8818 * util/update-grub.in (GRUB_GFXMODE): Export variable.
8819 * util/grub.d/00_header.in: Allow the administrator to change default
8820 gfxmode via ${GRUB_GFXMODE}.
8822 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
8824 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
8826 2008-08-21 Robert Millan <rmh@aybabtu.com>
8828 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
8830 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
8831 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
8833 2008-08-20 Carles Pina i Estany <carles@pina.cat>
8835 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
8836 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
8838 2008-08-19 Robert Millan <rmh@aybabtu.com>
8840 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
8841 (struct grub_virtual_screen): Remove `cursor_color'.
8842 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
8844 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
8846 2008-08-18 Robert Millan <rmh@aybabtu.com>
8848 Unify (identical) linux_normal.c files.
8849 * loader/i386/efi/linux_normal.c: Move from here ...
8850 * loader/linux_normal.c: ... to here. Update all users.
8851 * loader/i386/pc/linux_normal.c: Delete. Update all users.
8852 * loader/i386/ieee1275/linux_normal.c: Likewise.
8854 2008-08-18 Robert Millan <rmh@aybabtu.com>
8856 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
8857 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
8858 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
8859 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
8860 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
8862 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
8863 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
8864 (GRUB_LINUX_CL_END_OFFSET): ... to here.
8865 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
8866 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
8867 (GRUB_EFI_CL_END_OFFSET): Rename to ...
8868 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
8869 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
8870 Initialize `params->video_cursor_x' and `params->video_cursor_y'
8871 portably using grub_getxy().
8872 Replace `-EFI' with `-bzImage' in boot message.
8874 2008-08-17 Robert Millan <rmh@aybabtu.com>
8876 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
8878 2008-08-17 Robert Millan <rmh@aybabtu.com>
8880 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
8882 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
8883 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
8884 (grub_machine_mmap_iterate): New function declaration.
8885 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
8887 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
8890 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
8891 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
8892 Move e820 parsing from here ...
8893 * kern/i386/pc/mmap.c: New file.
8894 (grub_machine_mmap_iterate): ... to here.
8896 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
8897 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
8898 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
8899 (grub_available_iterate): Redeclare to return `void', and redeclare
8900 its hook to use grub_uint64_t as addr and size parameters, and rename
8902 (grub_machine_mmap_iterate): ... this. Update all users.
8904 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
8905 to make it more readable. Rename to ...
8906 (grub_machine_mmap_iterate): ... this.
8908 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
8909 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
8910 (grub_multiboot): Allocate an extra region after the payload, and fill
8911 it with a Multiboot memory map. Adjust a.out loader to calculate size
8912 with the extra space.
8913 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
8914 with the extra space.
8916 2008-08-17 Carles Pina i Estany <carles@pina.cat>
8918 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
8920 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
8922 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
8923 mdate-sh to the list `find' searches for.
8924 * DISTLIST: Regenerated.
8926 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
8928 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
8929 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
8930 genmoddep.awk, gensymlist.sh.in.
8931 (DISTDIRS): Add bus, docs, hook, lib.
8932 * DISTLIST: Regenerated.
8933 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
8935 2008-08-16 Robert Millan <rmh@aybabtu.com>
8937 * disk/raid.c (grub_raid_init): Handle/report errors set by
8938 grub_device_iterate().
8939 * disk/lvm.c (grub_lvm_init): Likewise.
8941 2008-08-15 Bean <bean123ch@gmail.com>
8943 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8945 (datetime_mod_SOURCES): New macro.
8946 (datetime_mod_CFLAGS): Likewise.
8947 (datetime_mod_LDFLAGS): Likewise.
8948 (date_mod_SOURCES): Likewise.
8949 (date_mod_CFLAGS): Likewise.
8950 (date_mod_LDFLAGS): Likewise.
8951 (datehook_mod_SOURCES): Likewise.
8952 (datehook_mod_CFLAGS): Likewise.
8953 (datehook_mod_LDFLAGS): Likewise.
8955 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8957 (datetime_mod_SOURCES): New macro.
8958 (datetime_mod_CFLAGS): Likewise.
8959 (datetime_mod_LDFLAGS): Likewise.
8960 (date_mod_SOURCES): Likewise.
8961 (date_mod_CFLAGS): Likewise.
8962 (date_mod_LDFLAGS): Likewise.
8963 (datehook_mod_SOURCES): Likewise.
8964 (datehook_mod_CFLAGS): Likewise.
8965 (datehook_mod_LDFLAGS): Likewise.
8967 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8969 (datetime_mod_SOURCES): New macro.
8970 (datetime_mod_CFLAGS): Likewise.
8971 (datetime_mod_LDFLAGS): Likewise.
8972 (date_mod_SOURCES): Likewise.
8973 (date_mod_CFLAGS): Likewise.
8974 (date_mod_LDFLAGS): Likewise.
8975 (datehook_mod_SOURCES): Likewise.
8976 (datehook_mod_CFLAGS): Likewise.
8977 (datehook_mod_LDFLAGS): Likewise.
8979 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8981 (datetime_mod_SOURCES): New macro.
8982 (datetime_mod_CFLAGS): Likewise.
8983 (datetime_mod_LDFLAGS): Likewise.
8984 (date_mod_SOURCES): Likewise.
8985 (date_mod_CFLAGS): Likewise.
8986 (date_mod_LDFLAGS): Likewise.
8987 (datehook_mod_SOURCES): Likewise.
8988 (datehook_mod_CFLAGS): Likewise.
8989 (datehook_mod_LDFLAGS): Likewise.
8991 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8993 (datetime_mod_SOURCES): New macro.
8994 (datetime_mod_CFLAGS): Likewise.
8995 (datetime_mod_LDFLAGS): Likewise.
8996 (date_mod_SOURCES): Likewise.
8997 (date_mod_CFLAGS): Likewise.
8998 (date_mod_LDFLAGS): Likewise.
8999 (datehook_mod_SOURCES): Likewise.
9000 (datehook_mod_CFLAGS): Likewise.
9001 (datehook_mod_LDFLAGS): Likewise.
9003 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
9005 * commands/date.c: New file.
9007 * hook/datehook.c: Likewise.
9009 * include/grub/lib/datetime.h: Likewise.
9011 * include/grub/i386/cmos.h: Likewise.
9013 * lib/datetime.c: Likewise.
9015 * lib/i386/datetime.c: Likewise.
9017 * lib/efi/datetime.c: Likewise.
9019 2008-08-14 Robert Millan <rmh@aybabtu.com>
9021 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
9022 (grub_mkelfimage_SOURCES): New variable.
9023 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
9025 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
9026 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
9027 * conf/powerpc-ieee1275.rmk: Likewise.
9028 * conf/i386-ieee1275.rmk: Likewise.
9030 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
9031 * kern/i386/coreboot/init.c: Likewise.
9033 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
9034 with `<grub/cpu/kernel.h>'.
9035 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
9037 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
9038 * kern/i386/coreboot/startup.S: Likewise.
9040 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
9041 (GRUB_MOD_GAP): Remove.
9042 * include/grub/powerpc/kernel.h: New file.
9043 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
9044 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
9045 * include/grub/i386/kernel.h: New file.
9046 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
9047 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
9048 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
9050 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
9052 Use --directory when invoking grub_mkimage.
9054 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
9055 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
9056 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
9057 and GRUB_KERNEL_CPU_PREFIX.
9059 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
9061 * include/grub/err.h (grub_err_printf): New function prototype.
9062 * util/misc.c (grub_err_printf): New function.
9063 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
9065 * kern/err.c (grub_print_error): Use grub_err_printf.
9067 2008-08-13 Robert Millan <rmh@aybabtu.com>
9069 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
9071 2008-08-13 Robert Millan <rmh@aybabtu.com>
9073 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
9076 2008-08-12 Robert Millan <rmh@aybabtu.com>
9078 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
9079 of the relocation code from here ...
9080 (grub_multiboot): ... to here.
9081 (forward_relocator, backward_relocator): Move from here ...
9082 * kern/i386/loader.S (grub_multiboot_forward_relocator)
9083 (grub_multiboot_backward_relocator): ... to here.
9084 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
9085 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
9086 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
9087 (grub_multiboot_forward_relocator_end)
9088 (grub_multiboot_backward_relocator)
9089 (grub_multiboot_backward_relocator_end): New variables.
9091 2008-08-12 Bean <bean123ch@gmail.com>
9093 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
9095 2008-08-11 Robert Millan <rmh@aybabtu.com>
9097 * kern/i386/linuxbios/startup.S: Move from here ...
9098 * kern/i386/coreboot/startup.S: ... to here.
9100 * kern/i386/linuxbios/init.c: Move from here ...
9101 * kern/i386/coreboot/init.c: ... to here.
9103 * kern/i386/linuxbios/table.c: Move from here ...
9104 * kern/i386/coreboot/mmap.c: ... to here.
9106 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
9108 2008-08-11 Robert Millan <rmh@aybabtu.com>
9110 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
9111 errors. Leave it to the upper layer to handle them.
9113 2008-08-09 Christian Franke <franke@computer.org>
9115 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
9116 * conf/common.rmk: Install `grub-pe2elf' only if requested.
9117 Install `grub.d/10_windows' only on Cygwin.
9118 * configure.ac: Add subst of `target_os'.
9119 Check `target_os' also before setting TARGET_OBJ2ELF.
9120 Add `--enable-grub-pe2elf'.
9122 2008-08-08 Robert Millan <rmh@aybabtu.com>
9124 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
9125 (grub_last_time): Change type to grub_uint64_t.
9126 (grub_disk_open): Migrate code from to using grub_get_time_ms().
9127 (grub_disk_close): Likewise.
9129 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
9130 (run_menu): Migrate code from to using grub_get_time_ms().
9132 * util/misc.c (grub_get_time_ms): New function.
9134 2008-08-08 Marco Gerards <marco@gnu.org>
9136 * disk/ata.c (grub_ata_regget): Change return type to
9138 (grub_ata_regget2): Likewise.
9139 (grub_ata_wait_status): New function.
9140 (grub_ata_wait_busy): Removed function, updated all users to use
9141 `grub_ata_wait_status'.
9142 (grub_ata_wait_drq): Likewise.
9143 (grub_ata_cmd): New function.
9144 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
9146 (grub_ata_pio_write): Add error handling.
9147 (grub_atapi_identify): Likewise.
9148 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
9150 (grub_ata_identify): Use `grub_ata_cmd' and improve error
9151 handling. Actually use the detected registers. Reorder the
9152 detection logic such that it is easier to read.
9153 (grub_ata_pciinit): Do not assign the same ID to each controller.
9154 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
9156 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
9158 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
9160 2008-08-08 Marco Gerards <marco@gnu.org>
9164 2008-08-07 Bean <bean123ch@gmail.com>
9166 * include/grub/x86_64/pci.h: New file.
9168 2008-08-07 Christian Franke <franke@computer.org>
9170 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
9171 (TIMER2_GATE): Likewise.
9172 (grub_pit_wait): Add enable/disable of the timer2 gate
9173 bit of port 0x61. This fixes a possible infinite loop.
9175 2008-08-07 Bean <bean123ch@gmail.com>
9177 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
9178 kern/i386/tsc.c and kern/i386/pit.c.
9180 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
9183 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
9186 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
9188 2008-08-07 Bean <bean123ch@gmail.com>
9190 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
9192 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
9194 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
9195 multiple inclusion. Add #include <grub/types.h>.
9197 2008-08-06 Christian Franke <franke@computer.org>
9199 * conf/common.rmk: Build and install `10_windows'.
9200 * util/grub.d/10_windows.in: New script.
9202 2008-08-06 Pavel Roskin <proski@gnu.org>
9204 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
9206 2008-08-06 Robert Millan <rmh@aybabtu.com>
9208 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
9209 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
9211 2008-08-06 Bean <bean123ch@gmail.com>
9213 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
9214 (grub_pxefs_fs_int): Remove dummy definition.
9215 (grub_pxefs_open): Use data->block_size to store the current block
9217 (grub_pxefs_read): Use block size stored in data->block_size. As the
9218 value of grub_pxe_blksize can be changed after the file is opened.
9220 2008-08-06 Bean <bean123ch@gmail.com>
9222 * fs/i386/pc/pxe.c (curr_file): new variable.
9223 (grub_pxefs_open): Simply the handling of pxe file system. Don't
9224 require the dummy internal file system anymore.
9225 (grub_pxefs_read): Removed.
9226 (grub_pxefs_close): Likewise.
9227 (grub_pxefs_fs_int): Likewise.
9228 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
9229 connection when we switch file.
9230 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
9232 2008-08-06 Robert Millan <rmh@aybabtu.com>
9234 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
9236 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
9237 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
9239 * kern/i386/halt.c: New file.
9240 * kern/i386/reboot.c: Likewise.
9241 * include/grub/i386/reboot.h: Likewise.
9242 * include/grub/i386/halt.h: Likewise.
9244 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
9245 Include `<grub/cpu/halt.h>'.
9246 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
9247 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
9249 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
9250 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
9251 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
9252 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
9253 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
9254 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
9256 * include/grub/i386/at_keyboard.h: ... to here.
9258 2008-08-05 Robert Millan <rmh@aybabtu.com>
9260 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
9261 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
9262 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
9263 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
9264 `kern/generic/millisleep.c'.
9266 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
9267 instead of grub_get_rtc().
9268 (grub_tsc_init): Initialize `tsc_boot_time'.
9270 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
9271 (grub_machine_init): Use grub_tsc_init() rather than
9272 installing an RTC-based handler via grub_install_get_time_ms().
9274 * kern/i386/pit.c: New file.
9275 * include/grub/i386/pit.h: Likewise.
9277 2008-08-05 Bean <bean123ch@gmail.com>
9279 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
9281 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
9282 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
9283 (pxe_mod_SOURCES): New macro.
9284 (pxe_mod_CFLAGS): Likewise.
9285 (pxe_mod_LDFLAGS): Likewise.
9286 (pxecmd_mod_SOURCES): Likewise.
9287 (pxecmd_mod_CFLAGS): Likewise.
9288 (pxecmd_mod_LDFLAGS): Likewise.
9290 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
9291 (grub_pxe_call): Likewise.
9293 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
9295 * commands/i386/pc/pxecmd.c: New file.
9297 * fs/i386/pc/pxe.c: Likewise.
9299 * include/grub/i386/pc/pxe.h: Likewise.
9301 2008-08-05 Bean <bean123ch@gmail.com>
9303 * util/console.c (grub_console_cur_color): New variable.
9304 (grub_console_standard_color): Likewise.
9305 (grub_console_normal_color): Likewise.
9306 (grub_console_highlight_color): Likewise.
9307 (color_map): Likewise.
9308 (use_color): Likewise.
9309 (NUM_COLORS): New macro.
9310 (grub_ncurses_setcolorstate): Handle color properly.
9311 (grub_ncurses_setcolor): Don't change color here, just remember the
9312 settings, color will be set in grub_ncurses_setcolorstate.
9313 (grub_ncurses_getcolor): New function.
9314 (grub_ncurses_init): Initialize color pairs.
9315 (grub_ncurses_term): New member grub_ncurses_getcolor.
9317 2008-08-05 Colin D Bennett <colin@gibibit.com>
9319 High resolution timer support. Implemented for x86 CPUs using TSC.
9320 Extracted generic grub_millisleep() so it's linked in only as needed.
9321 This requires a Pentium compatible CPU; if the RDTSC instruction is
9322 not supported, then it falls back on the generic grub_get_time_ms()
9323 implementation that uses the machine's RTC.
9325 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
9326 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
9327 `kern/generic/millisleep.c'.
9329 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
9330 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
9332 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
9333 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
9335 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9337 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
9338 `kern/generic/millisleep.c'.
9340 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9342 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
9344 * kern/generic/rtc_get_time_ms.c: New file.
9346 * kern/generic/millisleep.c: New file.
9348 * kern/misc.c: Don't include
9349 <kern/time.h> anymore.
9350 (grub_millisleep_generic): Removed.
9352 * commands/sleep.c (grub_interruptible_millisleep): Uses
9353 grub_get_time_ms() instead of grub_get_rtc().
9355 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
9357 (grub_cpu_is_cpuid_supported): New inline function.
9358 (grub_cpu_is_tsc_supported): New inline function.
9359 (grub_tsc_init): New function prototype.
9360 (grub_tsc_get_time_ms): New function prototype.
9362 * kern/i386/tsc.c (grub_get_time_ms): New file.
9364 * include/grub/time.h: Include <grub/types.h.
9365 (grub_millisleep_generic): Removed.
9366 (grub_get_time_ms): New prototype.
9367 (grub_install_get_time_ms): New prototype.
9368 (grub_rtc_get_time_ms): New prototype.
9370 * kern/time.c (grub_get_time_ms): New function.
9371 (grub_install_get_time_ms): New function.
9373 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
9374 <grub/time.h> anymore.
9375 (grub_millisleep): Removed.
9376 (grub_machine_init): Call grub_tsc_init.
9378 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
9379 get_time_ms() implementation.
9381 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
9382 (ieee1275_get_time_ms): New function.
9383 (grub_machine_init): Install get_time_ms() implementation.
9385 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
9386 (grub_machine_init): Call grub_tsc_init().
9387 (grub_millisleep): Removed.
9389 * kern/ieee1275/init.c (grub_millisleep): Removed.
9390 (grub_machine_init): Install ieee1275_get_time_ms()
9392 (ieee1275_get_time_ms): New function.
9393 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
9396 2008-08-05 Marco Gerards <marco@gnu.org>
9398 * disk/ata.c: Include <grub/pci.h>.
9399 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
9400 (grub_ata_initialize): Rewritten.
9401 (grub_ata_device_initialize): New function.
9403 2008-08-04 Pavel Roskin <proski@gnu.org>
9405 * kern/main.c: Include grub/mm.h.
9407 2008-08-04 Robert Millan <rmh@aybabtu.com>
9409 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
9410 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
9411 corruption problem).
9413 2008-08-04 Robert Millan <rmh@aybabtu.com>
9415 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
9416 warnings introduced in my last commit.
9418 2008-08-03 Robert Millan <rmh@aybabtu.com>
9420 Make PCI available on all i386 architectures.
9422 * include/grub/i386/pc/pci.h: Move from here ...
9423 * include/grub/i386/pci.h: ... to here.
9425 * include/grub/i386/pc/pci.h: Remove.
9426 * include/grub/i386/efi/pci.h: Remove.
9427 * include/grub/x86_64/efi/pci.h: Remove.
9429 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
9432 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
9433 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
9434 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
9436 * conf/i386-ieee1275.rmk: Likewise.
9438 2008-08-03 Robert Millan <rmh@aybabtu.com>
9440 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
9441 (grub_console_setcursor): Make it possible to set cursor off.
9443 2008-08-03 Robert Millan <rmh@aybabtu.com>
9445 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
9446 of modules instead of assuming which platform provides what.
9447 * util/update-grub.in: Likewise.
9449 2008-08-03 Robert Millan <rmh@aybabtu.com>
9451 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
9452 instead of `grub_install_dos_part' to determine whether a drive needs
9453 to be prepended to prefix (`grub_install_dos_part' is not reliable,
9454 because it can be overridden when loading GRUB via Multiboot).
9456 2008-08-02 Robert Millan <rmh@aybabtu.com>
9458 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
9460 2008-08-02 Robert Millan <rmh@aybabtu.com>
9462 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
9463 of informational grub_dprintf() calls.
9465 2008-08-02 Robert Millan <rmh@aybabtu.com>
9467 * disk/memdisk.c (memdisk_size): Don't initialize.
9468 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
9470 * include/grub/i386/pc/kernel.h
9471 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
9472 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
9473 (grub_memdisk_image_size, grub_arch_memdisk_addr)
9474 (grub_arch_memdisk_size): Remove.
9476 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
9477 field (was only used to transfer a constant). Add `type' field to
9478 support multiple module types.
9479 (grub_module_iterate): New function.
9481 * kern/device.c (grub_device_open): Do not hide error messages
9482 when grub_disk_open() fails. Use grub_print_error() instead.
9484 * kern/i386/pc/init.c (grub_arch_modules_addr)
9485 (grub_arch_memdisk_size): Remove functions.
9486 (grub_arch_modules_addr): Return the module address in high memory
9487 (now that it isn't copied anymore).
9489 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
9490 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
9491 decompression routine (grub_total_module_size already includes that
9492 now). Don't copy modules back to low memory.
9494 * kern/main.c: Include `<grub/mm.h>'.
9495 (grub_load_modules): Split out (and use) ...
9496 (grub_module_iterate): ... this function, which iterates through
9497 module objects and runs a hook.
9498 Comment out grub_mm_init_region() call, as it would cause non-ELF
9499 modules to be overwritten.
9501 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
9502 the memdisk image in its own region, make it part of the module list.
9503 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
9504 (main): Parse --memdisk|-m option, and pass user-provided path as
9505 parameter to generate_image().
9506 (add_segments): Pass `memdisk_path' down to load_modules().
9507 (load_modules): Embed memdisk image in module section when requested.
9508 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
9509 `header.type' instead of `header.offset'.
9511 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
9512 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
9513 (memdisk_mod_LDFLAGS): New variables.
9514 * conf/i386-coreboot.rmk: Likewise.
9515 * conf/i386-ieee1275.rmk: Likewise.
9517 2008-08-02 Robert Millan <rmh@aybabtu.com>
9519 * loader/i386/pc/multiboot.c (playground, forward_relocator)
9520 (backward_relocator): New variables. Used to allocate and relocate
9521 the payload, respectively.
9522 (grub_multiboot_load_elf32): Load into heap instead of requested
9523 address, install the appropriate relocator code in each bound of
9524 the payload, and set the entry point such that
9525 grub_multiboot_real_boot() will jump to one of them.
9527 * kern/i386/loader.S (grub_multiboot_payload_size)
9528 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
9529 (grub_multiboot_payload_entry_offset): New variables.
9530 (grub_multiboot_real_boot): Set cpu context to what the relocator
9531 expects, and jump to the relocator instead of the payload.
9533 * include/grub/i386/loader.h (grub_multiboot_payload_size)
9534 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
9535 (grub_multiboot_payload_entry_offset): Export.
9537 2008-08-01 Bean <bean123ch@gmail.com>
9539 * normal/menu_entry.c (editor_getline): Don't return the original
9540 string as result, as it will be released by lexer once it has done
9543 2008-08-01 Robert Millan <rmh@aybabtu.com>
9545 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
9546 within menuentries, not before them.
9547 util/grub.d/10_hurd.in: Likewise.
9549 2008-08-01 Bean <bean123ch@gmail.com>
9551 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
9552 (bufio_mod_SOURCES): New macro.
9553 (bufio_mod_CFLAGS): Likewise.
9554 (bufio_mod_LDFLAGS): Likewise.
9556 * include/grub/bufio.h: New file.
9558 * io/bufio.c: Likewise.
9560 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
9561 (grub_video_reader_png): Use grub_buffile_open to open file.
9563 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
9564 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
9566 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
9567 (grub_video_reader_tga): Use grub_buffile_open to open file.
9569 * font/manager.c: Include <grub/bufio.h>.
9570 (add_font): Use grub_buffile_open to open file.
9572 2008-07-31 Robert Millan <rmh@aybabtu.com>
9574 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
9575 ELF segments, use a macro for arbitrarily accessing any of them instead
9576 of preparing a pointer that allows access to one at a time.
9577 (grub_multiboot_load_elf64): Likewise.
9579 2008-07-31 Bean <bean123ch@gmail.com>
9581 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
9582 GRUB_KERNEL_MACHINE_DATA_END.
9584 2008-07-30 Robert Millan <rmh@aybabtu.com>
9586 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
9587 Increase from 0x50 to 0x60.
9588 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
9589 use UUIDs to identify the root drive for them. If that's not
9591 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
9592 check, for cross-disk installs.
9594 2008-07-30 Robert Millan <rmh@aybabtu.com>
9596 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
9597 is non-empty, use it to set the `prefix' environment variable instead
9598 of the usual approach.
9599 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
9600 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
9601 environment variable instead of dummy make_install_device().
9603 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
9604 (start): Insert a data section, with `grub_prefix' variable.
9605 * kern/i386/linuxbios/startup.S: Likewise.
9607 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
9608 New variable reference.
9609 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
9610 New macro. Defines offset of `grub_prefix' within startup.S (relative
9612 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
9613 section within startup.S (relative to `start').
9614 * include/grub/i386/coreboot/kernel.h: Likewise.
9616 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
9617 Overwrite grub_prefix with its contents, at the beginning of the
9619 (main): Understand -p|--prefix.
9621 2008-07-30 Robert Millan <rmh@aybabtu.com>
9623 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
9625 2008-07-30 Robert Millan <rmh@aybabtu.com>
9627 * term/i386/pc/vga_text.c (grub_console_cls): Use
9628 grub_console_gotoxy() to go back to beginning of the screen.
9629 Found by Patrick Georgi <patrick.georgi@coresystems.de>
9631 2008-07-29 Christian Franke <franke@computer.org>
9633 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
9634 Add conversion of emulated mount points on Cygwin.
9636 2008-07-29 Christian Franke <franke@computer.org>
9638 * util/update-grub.in: Add a check for admin
9640 Remove old `grub.cfg.new' before creation.
9641 Add `-f' to `mv' to handle the different filesystem
9642 semantics of Windows.
9644 2008-07-29 Bean <bean123ch@gmail.com>
9646 * normal/main.c (get_line): Fix buffer overflow bug.
9648 2008-07-28 Robert Millan <rmh@aybabtu.com>
9650 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
9651 (struct grub_apple_header): New struct. Describes the layout of
9653 (apple_partition_map_iterate): Check the header magic as well as the
9654 partition magic (which was already being checked).
9656 2008-07-28 Pavel Roskin <proski@gnu.org>
9658 * genmk.rb: Add a warning to the beginning of the output that
9659 it's a generated file and should not be edited.
9661 2008-07-28 Robert Millan <rmh@aybabtu.com>
9663 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
9664 with the same number are found, just use issue a warning with
9665 grub_dprintf(), as this error has been reported to be non-fatal.
9667 2008-07-27 Robert Millan <rmh@aybabtu.com>
9669 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
9672 2008-07-27 Bean <bean123ch@gmail.com>
9674 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
9675 (grub_fat_find_dir): Ignore case when comparing filename.
9677 2008-07-27 Bean <bean123ch@gmail.com>
9679 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
9680 smallino, as it's more descriptive, and i8count can be confused with
9681 the other field count.
9682 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
9685 2008-07-27 Bean <bean123ch@gmail.com>
9687 * commands/crc.c: New file.
9689 * lib/crc.c: Likewise.
9691 * include/grub/lib/crc.h: Likewise.
9693 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
9695 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
9696 (hexdump): Move this function to ...
9698 * lib/hexdump.c: ... here.
9700 * include/grub/hexdump.h: Renamed to ...
9702 * include/grub/lib/hexdump.h: ... this.
9704 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
9706 * util/grub-editenv.c: Likewise.
9708 * include/envblk.h: Renamed to ...
9710 * include/lib/envblk.h: ... this.
9712 * util/envblk.c: Renamed to ...
9714 * lib/envblk.c: ... this.
9716 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
9718 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
9719 (pkglib_MODULES): Add crc.mod.
9720 (hexdump_mod_SOURCES): Add lib/hexdump.c.
9721 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
9722 (crc_mod_SOURCES): New macro.
9723 (crc_mod_CFLAGS): Likewise.
9724 (crc_mod_LDFLAGS): Likewise.
9726 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
9728 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9730 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9732 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9734 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9736 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
9738 * commands/help.c: Include <grub/term.h>.
9739 (TERM_WIDTH): Removed. Updated all users.
9741 2008-07-27 Pavel Roskin <proski@gnu.org>
9743 * util/getroot.c (find_root_device): Rephrase a comment to avoid
9744 spurious warnings about a comment within a comment.
9746 2008-07-25 Robert Millan <rmh@aybabtu.com>
9748 * util/getroot.c (find_root_device): Skip devices that match
9749 /dev/dm-[0-9]. This lets the real device be found for any type of
9750 abstraction (LVM, EVMS, RAID..).
9751 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
9752 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
9753 device is found first, find_root_device() will now skip it.
9755 2008-07-24 Pavel Roskin <proski@gnu.org>
9757 * include/grub/types.h: Use __builtin_bswap32() and
9758 __builtin_bswap64() with gcc 4.3 and newer.
9760 2008-07-24 Christian Franke <franke@computer.org>
9762 * util/i386/pc/grub-install.in: If `--debug' is specified,
9763 pass `--verbose' to grub-setup.
9764 Abort script if make_system_path_relative_to_its_root() fails.
9766 2008-07-24 Bean <bean123ch@gmail.com>
9768 * configure.ac: Fixed a bug caused by the previous cygwin patch,
9769 variable `target_platform' should be `platform'.
9771 2008-07-24 Bean <bean123ch@gmail.com>
9773 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
9774 (grub_png_init_fixed_block): New function.
9775 (grub_png_decode_image_data): Handle fixed huffman code compression.
9777 2008-07-24 Bean <bean123ch@gmail.com>
9779 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
9780 (grub_pe2elf_SOURCES): New macro.
9781 (CLEANFILES): Add grub-pe2elf.
9783 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
9784 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
9785 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
9786 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
9787 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
9788 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
9789 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
9790 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
9791 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
9792 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
9793 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
9794 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
9795 (GRUB_PE32_DT_FUNCTION): Likewise.
9796 (GRUB_PE32_REL_I386_DIR32): Likewise.
9797 (GRUB_PE32_REL_I386_REL32): Likewise.
9798 (grub_pe32_symbol): New structure.
9799 (grub_pe32_reloc): Likewise.
9801 * util/grub-pe2elf.c: New file.
9803 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
9804 start symbol in non pc platform.
9806 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
9808 The following patches are from Christian Franke.
9810 * include/grub/dl.h: Remove .previous, gas supports this only
9813 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
9814 Remove .type, gas supports this only for ELF format.
9816 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
9817 nullbytes in symbol table. This fixes an infinite loop if table is
9820 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
9821 TARGET_IMG_LDFLAGS and EXEEXT.
9823 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
9824 TARGET_IMG_LDFLAGS_AC.
9825 (grub_CHECK_STACK_ARG_PROBE): New function.
9827 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
9829 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
9831 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
9832 to set TARGET_IMG_LD* accordingly.
9833 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
9834 Add call to grub_CHECK_STACK_ARG_PROBE.
9835 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
9837 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
9839 * genmk.rb: Add EXEEXT to CLEANFILES.
9841 2008-07-23 Robert Millan <rmh@aybabtu.com>
9843 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
9844 define the codes for arrows and lines used for the menu).
9845 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
9848 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
9849 fonts, because the latter are too slow.
9851 2008-07-21 Bean <bean123ch@gmail.com>
9853 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
9854 a20. Run keyboard test last, as it will cause macbook to halt.
9856 2008-07-18 Pavel Roskin <proski@gnu.org>
9858 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
9859 load foreign architecture modules correctly anyway. Keep
9860 support for loading host architecture modules, whether we
9861 compile them or not.
9863 2008-07-17 Pavel Roskin <proski@gnu.org>
9865 * configure.ac: Use -m32 or -m64 regardless of whether we had to
9866 change target_cpu. The compiler default can mismatch target_cpu
9869 * disk/efi/efidisk.c: Fix format warnings on x86_64.
9870 * kern/efi/efi.c: Likewise.
9872 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
9873 target compiler is functional.
9874 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
9877 * configure.ac: Default to efi platform for x86_64-apple. Allow
9878 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
9879 adjustments from the rest, only do them if target is not
9880 explicitly given. Merge other adjustments with the final sanity
9881 check. Remove an extraneous check for supported CPU. Be
9882 specific which CPU and which platform is not supported.
9884 * configure.ac: Default to pc platform for x86_64.
9886 2008-07-17 Robert Millan <rmh@aybabtu.com>
9888 Partial LinuxBIOS -> Coreboot rename.
9890 * conf/i386-linuxbios.rmk: Renamed to ...
9891 * conf/i386-coreboot.rmk: ... this.
9892 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
9893 * configure.ac: Accept "coreboot" as input platform (but maintain
9894 compatibility with "linuxbios").
9895 * include/grub/i386/linuxbios: Renamed to ...
9896 * include/grub/i386/coreboot: ... this.
9898 2008-07-17 Bean <bean123ch@gmail.com>
9900 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
9901 (appleldr_mod_SOURCE): New variable.
9902 (appleldr_mod_CFLAGS): Likewise.
9903 (appleldr_mod_LDFLAGS): Likewise.
9904 (pci_mod_SOURCES): Likewise.
9905 (pci_mod_CFLAGS): Likewise.
9906 (pci_mod_LDFLAGS): Likewise.
9907 (lspci_mod_SOURCES): Likewise.
9908 (lspci_mod_CFLAGS): Likewise.
9909 (lspci_mod_LDFLAGS): Likewise.
9911 * conf/x86_64-efi.rmk: New file.
9913 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
9915 (grub_efidisk_write): Likewise.
9917 * include/efi/api.h (efi_call_0): New macro.
9918 (efi_call_1): Likewise.
9919 (efi_call_2): Likewise.
9920 (efi_call_3): Likewise.
9921 (efi_call_4): Likewise.
9922 (efi_call_5): Likewise.
9923 (efi_call_6): Likewise.
9925 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
9926 grub_rescue_cmd_chainloader.
9928 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
9929 (grub_pe32_optional_header): Change some fields based on i386 or
9931 (GRUB_PE32_PE32_MAGIC): Likewise.
9933 * include/grub/efi/uga_draw.h: New file.
9935 * include/grub/elf.h (STN_ABS): New constant.
9936 (R_X86_64_NONE): Relocation constant for x86_64.
9937 (R_X86_64_64): Likewise.
9938 (R_X86_64_PC32): Likewise.
9939 (R_X86_64_GOT32): Likewise.
9940 (R_X86_64_PLT32): Likewise.
9941 (R_X86_64_COPY): Likewise.
9942 (R_X86_64_GLOB_DAT): Likewise.
9943 (R_X86_64_JUMP_SLOT): Likewise.
9944 (R_X86_64_RELATIVE): Likewise.
9945 (R_X86_64_GOTPCREL): Likewise.
9946 (R_X86_64_32): Likewise.
9947 (R_X86_64_32S): Likewise.
9948 (R_X86_64_16): Likewise.
9949 (R_X86_64_PC16): Likewise.
9950 (R_X86_64_8): Likewise.
9951 (R_X86_64_PC8): Likewise.
9953 * include/grub/i386/efi/pci.h: New file.
9955 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
9956 Change it value based on platform.
9957 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
9958 (GRUB_E820_RAM): Likewise.
9959 (GRUB_E820_RESERVED): Likewise.
9960 (GRUB_E820_ACPI): Likewise.
9961 (GRUB_E820_NVS): Likewise.
9962 (GRUB_E820_EXEC_CODE): Likewise.
9963 (GRUB_E820_MAX_ENTRY): Likewise.
9964 (grub_e820_mmap): New structure.
9965 (linux_kernel_header): Change the efi field according to different
9966 kernel version, also field from linux_kernel_header.
9968 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
9970 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
9971 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
9972 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
9973 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
9974 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
9975 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
9976 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
9977 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
9978 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
9979 (GRUB_PCI_ADDR_IO_MASK): Likewise.
9981 * include/grub/x86_64/efi/kernel.h: New file.
9983 * include/grub/x86_64/efi/loader.h: Likewise.
9985 * include/grub/x86_64/efi/machine.h: Likewise.
9987 * include/grub/x86_64/efi/pci.h: Likewise.
9989 * include/grub/x86_64/efi/time.h: Likewise.
9991 * include/grub/x86_64/linux.h: Likewise.
9993 * include/grub/x86_64/setjmp.h: Likewise.
9995 * include/grub/x86_64/time.h: Likewise.
9997 * include/grub/x86_64/types.h: Likewise.
9999 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
10000 GRUB_TARGET_SIZEOF_VOID_P.
10002 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
10003 (grub_efi_locate_handle): Likewise.
10004 (grub_efi_open_protocol): Likewise.
10005 (grub_efi_set_text_mode): Likewise.
10006 (grub_efi_stall): Likewise.
10007 (grub_exit): Likewise.
10008 (grub_reboot): Likewise.
10009 (grub_halt): Likewise.
10010 (grub_efi_exit_boot_services): Likewise.
10011 (grub_get_rtc): Likewise.
10013 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
10014 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
10015 (grub_efi_allocate_pages): Wrap efi calls.
10016 (grub_efi_free_pages): Wrap efi calls.
10017 (grub_efi_get_memory_map): Wrap efi calls.
10019 * kern/x86_64/dl.c: New file.
10021 * kern/x86_64/efi/callwrap.S: Likewise.
10023 * kern/x86_64/efi/startup.S: Likewise.
10025 * loader/efi/appleloader.c: Likewise.
10027 * loader/efi/chainloader.c (cmdline): New variable.
10028 (grub_chainloader_unload): Wrap efi calls.
10029 (grub_chainloader_boot): Likewise.
10030 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
10033 * loader/efi/chainloader_normal.c (chainloader_command):
10034 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
10037 * loader/i386/efi/linux.c (allocate_pages): Change allocation
10039 (grub_e820_add_region): New function.
10040 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
10042 (grub_find_video_card): New function.
10043 (grub_linux_setup_video): New function.
10044 (grub_rescue_cmd_linux): Probe for video information.
10046 * normal/x86_64/setjmp.S: New file.
10048 * term/efi/console.c (map_char): New function.
10049 (grub_console_putchar): Map unicode char.
10050 (grub_console_checkkey): Wrap efi calls.
10051 (grub_console_getkey): Likewise.
10052 (grub_console_getwh): Likewise.
10053 (grub_console_gotoxy): Likewise.
10054 (grub_console_cls): Likewise.
10055 (grub_console_setcolorstate): Likewise.
10056 (grub_console_setcursor): Likewise.
10058 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
10060 2008-07-16 Pavel Roskin <proski@gnu.org>
10062 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
10065 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
10066 pointer, not an integer. This fixes a warning and prevents
10067 precision loss on 64-bit systems.
10068 (relocate_addresses): Remove unneeded cast.
10070 2008-07-15 Pavel Roskin <proski@gnu.org>
10072 * kern/i386/ieee1275/init.c: Include grub/cache.h.
10074 * term/ieee1275/ofconsole.c: Disable code unused on i386.
10076 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
10077 Fix comparison between signed and unsigned.
10079 * include/grub/i386/ieee1275/console.h: Declare
10080 grub_console_init() and grub_console_fini().
10082 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
10083 It's empty and unused.
10085 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
10086 beginning to avoid warnings with some compilers.
10088 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
10089 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
10091 2008-07-14 Pavel Roskin <proski@gnu.org>
10093 * kern/env.c (grub_register_variable_hook): Don't copy empty
10094 string, it leaks memory. Pass "" to grub_env_set(), it should
10095 handle constant strings.
10097 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
10098 * commands/cmp.c (grub_cmd_cmp): Likewise.
10099 * kern/dl.c (grub_dl_flush_cache): Likewise.
10100 (grub_dl_load_core): Likewise.
10101 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
10102 (grub_elf64_load_phdrs): Likewise.
10104 2008-07-13 Pavel Roskin <proski@gnu.org>
10106 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
10107 between signed and unsigned.
10108 (LzmaEnc_Finish): Fix warning about an unused parameter.
10110 2008-07-13 Bean <bean123ch@gmail.com>
10112 * Makefile.in (enable_lzo): New rule.
10114 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
10116 * configure.ac (ENABLE_LZO): New option --enable-lzo.
10118 * boot/i386/pc/lnxboot.S: #include <config.h>.
10120 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
10121 its value according to the compression algorithm used, lzo or lzma.
10123 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
10124 compression algorithm according to configure macro.
10126 * kern/i386/pc/startup.S (codestart): Likewise.
10128 * kern/i386/pc/lzma_decode.S: New file.
10130 * include/grub/lib/LzFind.h: Likewise.
10132 * include/grub/lib/LzHash.h: Likewise.
10134 * include/grub/lib/LzmaDec.h: Likewise.
10136 * include/grub/lib/LzmaEnc.h: Likewise.
10138 * include/grub/lib/LzmaTypes.h: Likewise.
10140 * lib/LzFind.c: Likewise.
10142 * lib/LzmaDec.c: Likewise.
10144 * lib/LzmaEnc.c: Likewise.
10146 2008-07-13 Bean <bean123ch@gmail.com>
10148 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
10149 (grub_ext4_extent_header): New structure.
10150 (grub_ext4_extent): Likewise.
10151 (grub_ext4_extent_idx): Likewise.
10152 (grub_ext4_find_leaf): New function.
10153 (grub_ext2_read_block): Handle extents.
10155 2008-07-12 Robert Millan <rmh@aybabtu.com>
10157 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
10159 2008-07-11 Robert Millan <rmh@aybabtu.com>
10161 * util/grub.d/40_custom.in: New file. Example on how to add custom
10162 entries to /etc/grub.d.
10163 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
10164 40_custom (implicitly, by merging all the grub.d rules).
10166 2008-07-11 Pavel Roskin <proski@gnu.org>
10168 * commands/read.c (grub_getline): Fix invalid memory access.
10169 Don't add newline to the variable value.
10171 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
10172 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
10173 (serial_hw_get_port): Check validity of the port number.
10174 (grub_cmd_serial): Check return value of serial_hw_get_port().
10176 2008-07-07 Pavel Roskin <proski@gnu.org>
10178 * boot/i386/pc/diskboot.S (notification_string): Replace
10179 "Loading kernel" with just "loading". This is shorter, less
10180 confusing and saves a few bytes for possible future changes.
10182 2008-07-05 Pavel Roskin <proski@gnu.org>
10184 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
10185 size for ATAPI devices, they are undefined. Output sector
10186 number in decimal form.
10188 * disk/ata.c: Use named constants for status bits.
10190 2008-07-04 Pavel Roskin <proski@gnu.org>
10192 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
10193 grub_addr_t before casting it to the void pointer to fix a
10194 warning. Non-addressable regions are discarded earlier.
10195 (grub_arch_modules_addr): Cast _end to grub_addr_t.
10196 * kern/i386/linuxbios/table.c: Include grub/misc.h.
10197 (check_signature): Don't shadow table_header.
10198 (grub_linuxbios_table_iterate): Cast numeric constants to
10199 grub_linuxbios_table_header_t.
10200 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
10203 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
10206 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
10207 pointer, which can cause warnings. Support 64-bit addresses.
10209 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
10210 of sizeof(long). This fixes PowerPC image generation on x86_64.
10212 2008-07-04 Robert Millan <rmh@aybabtu.com>
10214 This fixes a performance issue when pc & gpt partmap iterators
10215 didn't abort iteration even after our hook found what it was
10216 looking for (often causing expensive probes of non-existent drives).
10218 Some callers relied on previous buggy behaviour, since they would
10219 raise an error when their own hooks caused early abortion of its
10222 * kern/device.c (grub_device_open): Improve error message.
10223 * disk/lvm.c (grub_lvm_open): Likewise.
10224 * disk/raid.c (grub_raid_open): Likewise.
10226 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
10227 when hook requests it, independently of grub_errno.
10228 (pc_partition_map_probe): Do not fail when find_func() caused
10229 early abortion of pc_partition_map_iterate().
10231 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
10232 when hook requests it, independently of grub_errno.
10233 (gpt_partition_map_probe): Do not fail when find_func() caused
10234 early abortion of gpt_partition_map_iterate().
10236 * kern/partition.c (grub_partition_iterate): Abort parent iteration
10237 when hook requests it, independently of grub_errno. Do not fail when
10238 part_map_iterate_hook() caused early abortion of p->iterate().
10240 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
10241 when grub_partition_iterate() returned with non-zero.
10243 2008-07-03 Pavel Roskin <proski@gnu.org>
10245 * disk/ata.c (grub_ata_pio_write): Check status before writing,
10246 like we do in grub_ata_pio_read().
10247 (grub_ata_readwrite): Always write individual sectors. Fix the
10248 sector count for the remainder.
10249 (grub_ata_write): Enable writing to ATA devices. Correctly
10250 report error for ATAPI devices.
10252 2008-07-02 Pavel Roskin <proski@gnu.org>
10254 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
10257 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
10258 for every read sector, we already increment it for the whole
10259 batch. This fixes reading more than 256 sectors at once.
10261 * util/grub-editenv.c (cmd_info): Cast argument to long
10262 explicitly. ptrdiff_t reduces to int on i386.
10264 * util/grub-editenv.c (main): Be specific which parameter is
10267 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
10268 (memdisk): Make memdisk_orig_addr a pointer.
10270 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
10271 for file offsets, use grub_off_t instead. Fix printf format
10274 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
10275 there. Real unexpected warnings should not drown in the noise
10276 about known problems.
10278 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
10279 grub_disk_addr_t for memory addresses.
10281 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
10282 explicitly to fix a warning.
10284 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
10286 * Makefile.in (MODULE_LDFLAGS): New variable.
10287 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
10288 the linker accepts --build-id=none.
10289 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
10291 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
10293 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
10294 those in Linux XFS code. Provide a way to access 64-bit parent
10296 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
10297 the end of struct grub_xfs_dir_header.
10299 2008-07-02 Bean <bean123ch@gmail.com>
10301 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
10302 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
10303 and GRUB_IEEE1275_FLAG_NO_ANSI.
10305 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
10306 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
10307 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
10309 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
10310 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
10312 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
10313 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
10315 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
10316 esc sequence on non ANSI terminal.
10317 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
10319 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
10322 2008-07-02 Bean <bean123ch@gmail.com>
10324 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
10325 (grub_editenv_SOURCES): New variable.
10326 (pkglib_MODULES): Add loadenv.mod.
10327 (loadenv_mod_SOURCES): New variable.
10328 (loadenv_mod_CFLAGS): Likewise.
10329 (loadenv_mod_LDFLAGS): Likewise.
10331 * include/grub/envblk.h: New file.
10333 * util/envblk.c: New file.
10335 * util/grub-editenv.c: New file.
10337 * commands/loadenv.c: New file.
10339 2008-07-01 Pavel Roskin <proski@gnu.org>
10341 * include/multiboot2.h (struct multiboot_tag_module): Use char,
10342 not unsigned char. This fixes warnings and is consistent with
10345 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
10347 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
10349 * term/tparm.c (analyze): Always set *popcount.
10351 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
10352 cast to fix a warning.
10354 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
10355 cast to suppress a warning.
10357 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
10358 grub_fshelp_read_file() expects.
10360 * fs/fat.c: Fix UUID calculation on big-endian systems. We
10361 write uuid as a 32-bit value in CPU byte order, so declare and
10364 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
10365 long if the format specifier expects it.
10366 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
10367 * partmap/pc.c (pc_partition_map_iterate): Likewise.
10368 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
10369 long to fix a warning.
10370 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
10371 grub_dprintf() arguments to fix warnings.
10373 2008-06-30 Pavel Roskin <proski@gnu.org>
10375 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
10376 install_bsd_part immediately before core.img is embedded or
10377 modified on disk. This fixes core.img verification if core.img
10378 cannot be embedded.
10380 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
10381 core_path to calculate the blocklist.
10382 Patch from Javier MartÃn <lordhabbit@gmail.com>
10384 2008-06-29 Robert Millan <rmh@aybabtu.com>
10386 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
10387 block to disk block.
10388 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
10389 Patch from Niels Böhm <bitbucket@arcor.de>
10391 2008-06-29 Robert Millan <rmh@aybabtu.com>
10393 * util/update-grub_lib.in (font_path): Search for fonts in
10394 /boot/grub first, which is more likely to be readable (we aren't
10395 deciding where fonts live, just looking for them).
10397 2008-06-26 Pavel Roskin <proski@gnu.org>
10399 * util/biosdisk.c (read_device_map): Don't leave dead map
10400 entries for devices failing stat() check.
10402 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
10403 core_path_dev for the core.img path on the target device.
10405 2008-06-26 Robert Millan <rmh@aybabtu.com>
10407 * disk/fs_uuid.c: New file.
10408 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
10409 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
10410 (fs_uuid_mod_LDFLAGS): New variables.
10411 * include/grub/disk.h (grub_disk_dev_id): Add
10412 `GRUB_DISK_DEVICE_UUID_ID'.
10413 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
10414 implement iterate().
10416 2008-06-26 Robert Millan <rmh@aybabtu.com>
10418 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
10419 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
10420 Linux image includes no initrd.
10422 2008-06-21 Javier MartÃn <lordhabbit@gmail.com>
10424 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
10425 call to resolve the core image location that effectively appended the
10428 2008-06-21 Robert Millan <rmh@aybabtu.com>
10430 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
10433 * util/grub.d/10_hurd.in: ... to here ...
10434 * util/grub.d/10_linux.in: ... and here.
10436 2008-06-19 Robert Millan <rmh@aybabtu.com>
10438 * kern/main.c (grub_main): Export `prefix' variable immediately
10439 after it has been set by grub_machine_set_prefix().
10441 2008-06-19 Robert Millan <rmh@aybabtu.com>
10443 * commands/search.c (search_label, search_fs_uuid, search_file): Print
10444 search result when not saving to variable, not the other way around.
10445 When saving to variable, abort iteration as soon as a match is found.
10447 2008-06-19 Robert Millan <rmh@aybabtu.com>
10449 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
10450 check for partition that provides /boot/grub. Its logic is flawed,
10451 as it prevents prepare_grub_to_access_device() from being called
10454 2008-06-19 Robert Millan <rmh@aybabtu.com>
10456 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
10457 "insmod" command directly when abstraction modules are needed,
10458 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
10459 since it had already been processed).
10461 2008-06-19 Pavel Roskin <proski@gnu.org>
10463 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
10464 changed. This is needed in case GRUB_LIBDIR changes.
10465 * conf/i386-ieee1275.rmk: Likewise.
10466 * conf/i386-linuxbios.rmk: Likewise.
10467 * conf/i386-pc.rmk: Likewise.
10468 * conf/powerpc-ieee1275.rmk: Likewise.
10470 2008-06-18 Pavel Roskin <proski@gnu.org>
10472 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
10473 kernel_elf_symlist.c to symlist.c for consistency with other
10474 architectures. Update all users.
10475 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
10477 2008-06-18 Robert Millan <rmh@aybabtu.com>
10479 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
10482 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
10483 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
10484 a RAID device, run setup() for all members independently on whether
10485 LVM abstraction is being used.
10486 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
10487 If grub-mkimage has set `*install_dos_part == -2', don't override this
10489 Perform *install_dos_part adjustments independently on whether
10490 we're embedding or not.
10491 Clarify error message when image is too big for embedding.
10492 Remove duplicate *install_dos_part stanza.
10494 2008-06-17 Robert Millan <rmh@aybabtu.com>
10496 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
10497 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
10499 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
10500 values in grub_ofconsole_normal_color and
10501 grub_ofconsole_highlight_color (they're not directly related to
10502 background and foreground).
10503 (grub_ofconsole_setcolorstate): Extract background and foreground
10504 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
10506 2008-06-17 Robert Millan <rmh@aybabtu.com>
10508 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
10509 /boot/grub for the check in last commit, not /boot (they could be
10510 different partitions).
10512 2008-06-16 Robert Millan <rmh@aybabtu.com>
10514 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
10515 asked to setup access for the same partition that provides /boot,
10516 don't bother using UUIDs since our root already has the value we
10519 2008-06-16 Robert Millan <rmh@aybabtu.com>
10521 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
10523 Patch from Sven Mueller <sven@debian.org>.
10525 2008-06-16 Robert Millan <rmh@aybabtu.com>
10527 * util/update-grub.in: Check for $EUID instead of $UID.
10528 Reported by Vincent Zweije.
10530 2008-06-16 Bean <bean123ch@gmail.com>
10532 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
10533 (grub_ext2_read_block): Likewise.
10534 (grub_ext2_read_inode): Likewise.
10535 (grub_ext2_mount): Likewise.
10536 (grub_ext2_close): Likewise.
10537 (grub_ext3_get_journal): Removed.
10539 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
10540 (grub_reiserfs_read_symlink): Likewise.
10541 (grub_reiserfs_mount): Likewise.
10542 (grub_reiserfs_open): Likewise.
10543 (grub_reiserfs_read): Likewise.
10544 (grub_reiserfs_close): Likewise.
10545 (grub_reiserfs_get_journal): Removed.
10547 * fs/fshelp.c (grub_fshelp_read): Removed.
10548 (grub_fshelp_map_block): Likewise.
10550 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
10551 (grub_fshelp_journal): Likewise.
10552 (grub_fshelp_read): Likewise.
10553 (grub_fshelp_map_block): Likewise.
10555 2008-06-16 Pavel Roskin <proski@gnu.org>
10557 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
10558 floating point anymore.
10559 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
10561 2008-06-15 Pavel Roskin <proski@gnu.org>
10563 * commands/ls.c (grub_ls_list_files): Use integer calculations
10564 for human readable format, avoid floating point use.
10565 * kern/misc.c (grub_ftoa): Remove.
10566 (grub_vsprintf): Remove floating point support.
10568 2008-06-15 Robert Millan <rmh@aybabtu.com>
10570 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
10572 Reported by Max Vozeler.
10574 2008-06-15 Robert Millan <rmh@aybabtu.com>
10576 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
10577 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
10579 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
10580 the beginning of the prefix.
10582 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
10583 It is assumed that if we have a memdisk, grub-mkimage has set
10584 grub_prefix to include the "(memdisk)" drive in it.
10586 2008-06-15 Robert Millan <rmh@aybabtu.com>
10588 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
10589 Initialize keyboard controller after registering the terminal, so that
10590 grub_printf() can be called from grub_keyboard_controller_init().
10592 2008-06-15 Robert Millan <rmh@aybabtu.com>
10594 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
10595 extent-btree which is written as big endian on disk.
10596 Reported by Alain Greppin <al@chilibi.org>.
10598 2008-06-14 Robert Millan <rmh@aybabtu.com>
10600 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
10601 * util/i386/pc/grub-install.in (modules): Likewise.
10603 2008-06-13 Pavel Roskin <proski@gnu.org>
10605 * commands/ls.c (grub_ls_list_files): Fix format warnings.
10607 2008-06-13 Bean <bean123ch@gmail.com>
10609 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
10611 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
10613 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
10614 to indicate sparse block.
10616 2008-06-12 Pavel Roskin <proski@gnu.org>
10618 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
10619 number, grub_fshelp_read() does it for us.
10621 * fs/fshelp.c (grub_fshelp_read): New function. Implement
10622 linear disk read with journal translation.
10623 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
10624 * include/grub/fshelp.h: Declare grub_fshelp_read().
10626 2008-06-09 Pavel Roskin <proski@gnu.org>
10628 * fs/minix.c (grub_minix_mount): Handle error reading
10631 2008-06-08 Robert Millan <rmh@aybabtu.com>
10633 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
10634 don't append the RAID prefix afterwards.
10635 Reported by Clint Adams.
10637 2008-06-08 Robert Millan <rmh@aybabtu.com>
10639 Based on description from Pavel:
10640 * kern/disk.c (grub_disk_check_range): Rename to ...
10641 (grub_disk_adjust_range): ... this. Add a comment explaining the
10642 tasks performed by this function.
10644 2008-06-08 Robert Millan <rmh@aybabtu.com>
10646 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
10647 `num_serial' (for consistency with other variables).
10648 (struct grub_ntfs_data): Add `uuid' member.
10649 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
10650 (grub_ntfs_uuid): New function.
10651 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
10653 2008-06-07 Pavel Roskin <proski@gnu.org>
10655 * util/biosdisk.c (open_device): Revert last change to the
10656 function, it broke installation. The sector needs to be
10657 different dependent on which device is opened.
10659 2008-06-06 Robert Millan <rmh@aybabtu.com>
10661 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
10662 rest of GRUB, and breakage doesn't happen if its value were modified.
10664 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
10665 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
10666 a constant (same value).
10667 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
10668 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
10670 2008-06-06 Robert Millan <rmh@aybabtu.com>
10672 * util/biosdisk.c (open_device): Do not modify sector offset when
10673 accessing a partition. kern/disk.c already handles this for us.
10675 2008-06-06 Robert Millan <rmh@aybabtu.com>
10677 * util/grub-emu.c (grub_machine_init): Move code in this function from
10679 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
10680 segfault in case grub_printf() is called).
10682 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
10683 grub_probe. Update all users not to explicitly add it again.
10684 (grub_device): New variable; contains corresponding device for grubdir.
10685 (fs_module, partmap_module, devabstraction_module): Pass
10686 `--device ${grub_device}' to grub_probe to avoid traversing /dev
10689 2008-06-05 Robert Millan <rmh@aybabtu.com>
10691 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
10692 is found, print it (same layout as with labels).
10694 2008-06-04 Robert Millan <rmh@aybabtu.com>
10696 * util/biosdisk.c (get_drive): Rename to ...
10697 (find_grub_drive): ... this. Update all users.
10699 (get_os_disk): Rename to ...
10700 (convert_system_partition_to_system_disk): ... this. Update all users.
10702 (find_drive): Rename to ...
10703 (find_system_device): ... this. Update all users.
10705 2008-06-04 Robert Millan <rmh@aybabtu.com>
10707 * util/biosdisk.c (get_os_disk): Handle IDA devices.
10708 * util/grub-mkdevicemap.c (get_mmc_disk_name)
10709 (make_device_map): Likewise.
10711 2008-06-01 Robert Millan <rmh@aybabtu.com>
10713 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
10714 before dereferencing it.
10716 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
10717 union with fat12/fat16-specific ones. Add some new fields, including
10718 `num_serial' for both versions.
10719 (struct grub_fat_data): Add `uuid' member.
10720 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
10721 names. Initialize `data->uuid' using `num_serial'.
10722 (grub_fat_uuid): New function.
10723 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
10725 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
10726 (grub_reiserfs_uuid): New function.
10727 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
10730 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
10731 (grub_xfs_uuid): New function.
10732 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
10734 2008-06-01 Robert Millan <rmh@aybabtu.com>
10736 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
10737 code that is backward compatible with pre-uuid search command.
10739 2008-05-31 Robert Millan <rmh@aybabtu.com>
10741 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
10742 floppies after everything else, to ensure floppy drive isn't accessed
10743 unnecessarily (patch from Bean).
10745 2008-05-31 Robert Millan <rmh@aybabtu.com>
10747 * commands/search.c (search_label, search_fs_uuid, search_file): Do
10748 not print device names when we were asked to set a variable.
10750 2008-05-31 Robert Millan <rmh@aybabtu.com>
10752 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
10753 using "cursor-on" and "cursor-off" commands (understood at least by
10754 the Open Firmware flavour on OLPC).
10756 2008-05-31 Michael Gorven <michael@gorven.za.net>
10758 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
10759 on and off sequences.
10761 2008-05-31 Robert Millan <rmh@aybabtu.com>
10763 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
10764 * util/update-grub.in: Likewise.
10766 2008-05-30 Pavel Roskin <proski@gnu.org>
10768 * util/biosdisk.c (linux_find_partition): Simplify logic and
10769 make the code more universal. Keep special processing for
10770 devfs, but use a simple rule for all other devices. If the
10771 device ends with a number, append 'p' and the partition number.
10772 Otherwise, append only the partition number.
10774 2008-05-30 Robert Millan <rmh@aybabtu.com>
10776 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
10777 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
10778 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
10779 the `root' parameter to Linux.
10781 2008-05-30 Robert Millan <rmh@aybabtu.com>
10783 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
10784 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
10785 --fs_uuid with --fs-uuid.
10786 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
10787 all filesystems support them).
10789 2008-05-30 Robert Millan <rmh@aybabtu.com>
10791 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
10792 grub_printf() flags, since we're printing in units of 2 bytes.
10794 2008-05-30 Robert Millan <rmh@aybabtu.com>
10796 * util/grub.d/00_header.in: Remove obsolete comment referencing
10797 convert_system_path_to_grub_path().
10798 * util/update-grub.in: Likewise.
10799 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
10800 (convert_system_path_to_grub_path): Add a warning message explaining
10801 that this function is deprecated. Rely on is_path_readable_by_grub()
10802 for the readability checks.
10803 (font_path): Use is_path_readable_by_grub() for the readability
10804 check rather than convert_system_path_to_grub_path().
10806 2008-05-30 Robert Millan <rmh@aybabtu.com>
10808 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
10809 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
10810 converting it first.
10811 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
10812 grub.cfg for access to font file, and afterwards call it again to set
10815 2008-05-30 Robert Millan <rmh@aybabtu.com>
10817 * commands/search.c (options): Add --fs_uuid option.
10818 (search_fs_uuid): New function.
10819 (grub_cmd_search): Fix --set argument passing.
10820 Use search_fs_uuid() when requested via --fs_uuid.
10821 (grub_search_init): Update help message.
10822 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
10823 and redeclare it as an array of 16-bit words.
10824 (grub_ext2_uuid): New function.
10825 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
10826 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
10827 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
10828 (GRUB_DEVICE_BOOT_UUID): New variables.
10829 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
10830 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
10832 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
10833 just assume `root' variable has the right value.
10834 * util/grub.d/10_linux.in: Likewise.
10835 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
10837 (main): Recognise `-t fs_uuid' argument.
10839 2008-05-30 Robert Millan <rmh@aybabtu.com>
10841 * util/biosdisk.c (map): Redefine structure to hold information
10842 about GRUB drive name.
10843 (get_drive): Reimplement without assuming (and verifying) BIOS-like
10845 (call_hook): Remove.
10846 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
10847 member. Assume drive has partitions.
10848 (grub_util_biosdisk_open): Access device names via `.device' struct
10850 (open_device): Likewise.
10851 (find_drive): Likewise.
10852 (read_device_map): Adjust map[] usage to match the new struct
10853 definition. Don't check for duplicates (still possible, but not cheap
10855 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
10856 (make_device_name): Remove assumption of BIOS-like drive names.
10858 2008-05-30 Pavel Roskin <proski@gnu.org>
10860 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
10861 compiling execute.c doesn't need grub_script.tab.h anymore.
10862 (normal/command.c_DEPENDENCIES): Likewise.
10863 (normal/function.c_DEPENDENCIES): Likewise.
10864 * conf/i386-ieee1275.rmk: Likewise.
10865 * conf/i386-linuxbios.rmk: Likewise.
10866 * conf/i386-pc.rmk: Likewise.
10867 * conf/powerpc-ieee1275.rmk: Likewise.
10868 * conf/sparc64-ieee1275.rmk: Likewise.
10870 2008-05-29 Pavel Roskin <proski@gnu.org>
10872 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
10873 when scanning metadata for volume group name.
10875 * include/grub/script.h: Don't include grub_script.tab.h. It's
10876 a generated file, which may only be included from the files with
10877 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
10878 use union YYSTYPE, as the later allows forward declaration.
10879 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
10881 2008-05-29 Robert Millan <rmh@aybabtu.com>
10883 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
10884 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
10885 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
10886 (grub_console_checkkey): Add grub_dprintf() call to report unknown
10889 2008-05-29 Robert Millan <rmh@aybabtu.com>
10891 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
10892 control key combinations.
10894 2008-05-29 Robert Millan <rmh@aybabtu.com>
10896 * util/powerpc/ieee1275/grub-install.in: Move from here ...
10897 * util/ieee1275/grub-install.in: ... to here.
10898 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
10899 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
10900 (grub_install_SOURCES): Likewise.
10902 2008-05-29 Robert Millan <rmh@aybabtu.com>
10904 * fs/affs.c: Update copyright year.
10905 * fs/ext2.c: Likewise.
10906 * fs/fshelp.c: Likewise.
10907 * fs/hfsplus.c: Likewise.
10908 * fs/ntfs.c: Likewise.
10909 * fs/xfs.c: Likewise.
10910 * include/grub/fshelp.h: Likewise.
10911 * util/grub-mkdevicemap.c: Likewise.
10913 2008-05-28 Robert Millan <rmh@aybabtu.com>
10915 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
10916 might need to be fatfs to support some firmware implementations
10919 2008-05-28 Robert Millan <rmh@aybabtu.com>
10921 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
10923 * util/grub-mkdevicemap.c (get_mmc_disk_name)
10924 (make_device_map): Likewise.
10926 2008-05-20 Bean <bean123ch@gmail.com>
10928 * fs/fshelp.c (grub_fshelp_map_block): New function.
10929 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
10930 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
10932 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
10933 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
10934 (grub_fshelp_journal): New structure.
10935 (grub_fshelp_map_block): New function prototype.
10936 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
10937 (grub_fshelp_map_block): Likewise.
10939 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
10940 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
10941 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
10942 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
10943 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
10944 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
10945 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
10946 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
10947 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
10948 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
10949 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
10950 (grub_ext2_sblock): New members for journal support.
10951 (grub_ext3_journal_header): New structure.
10952 (grub_ext3_journal_revoke_header): Likewise.
10953 (grub_ext3_journal_block_tag): Likewise.
10954 (grub_ext3_journal_sblock): Likewise.
10955 (grub_fshelp_node): New members logfile and journal.
10956 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
10957 grub_fshelp_map_block to get real block number.
10958 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
10960 (grub_ext2_read_inode): Likewise.
10961 (grub_ext3_get_journal): New function.
10962 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
10963 (grub_ext2_close): Release memory used by journal.
10965 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
10966 (REISERFS_MAGIC_DESC_BLOCK): New macro.
10967 (grub_reiserfs_transaction_header): Renamed to
10968 grub_reiserfs_description_block, replace field data with real_blocks.
10969 (grub_reiserfs_commit_block): New structure.
10970 (grub_reiserfs_data): New member journal.
10971 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
10973 (grub_reiserfs_read_symlink): Likewise.
10974 (grub_reiserfs_iterate_dir): Likewise.
10975 (grub_reiserfs_open): Likewise.
10976 (grub_reiserfs_read): Likewise.
10977 (grub_reiserfs_get_journal): New function.
10978 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
10979 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
10980 using grub_reiserfs_get_journal.
10981 (grub_reiserfs_close): Release memory used by journal.
10983 * fs/affs.c (grub_affs_read_block): Change block type to
10984 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
10986 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
10988 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
10990 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
10992 * fs/udf.c (grub_udf_read_block): Change block type to
10993 grub_disk_addr_t. Use type cast to avoid warning.
10995 * fs/xfs.c (grub_xfs_read_block): Likewise.
10997 2008-05-16 Christian Franke <franke@computer.org>
10999 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
11000 to ensure that break with ESC will always work.
11001 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
11002 Remove ESC from keyboard queue.
11004 2008-05-16 Christian Franke <franke@computer.org>
11006 * util/biosdisk.c: [__CYGWIN__] Add includes.
11007 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
11008 (get_os_disk): Move variable declarations to OS specific
11009 parts to avoid warning.
11010 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
11011 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
11012 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
11014 * util/getroot.c: [__CYGWIN__] Add includes.
11015 (strip_extra_slashes): Fix "/" case.
11016 [__CYGWIN__] (get_win32_path): New function.
11017 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
11018 [__CYGWIN__] (find_root_device): Disable.
11019 [__CYGWIN__] (get_bootsec_serial): New function.
11020 [__CYGWIN__] (find_cygwin_root_device): Likewise.
11021 [__linux__] (grub_guess_root_device): Add early returns to simplify
11023 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
11024 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
11025 check for Linux only.
11027 2008-05-15 Bean <bean123ch@gmail.com>
11029 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
11030 keyboard hang problem in apple's intel mac.
11032 2008-05-09 Robert Millan <rmh@aybabtu.com>
11034 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
11036 * util/grub-mkdevicemap.c (get_virtio_disk_name)
11037 (make_device_map): Likewise.
11038 Reported by Aurelien Jarno <aurel32@debian.org>
11040 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
11042 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
11043 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
11044 (make_device_map): Output entries for xvd type disks.
11046 2008-05-07 Robert Millan <rmh@aybabtu.com>
11048 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
11050 * util/grub-mkdevicemap.c (get_cciss_disk_name)
11051 (make_device_map): Likewise.
11052 Reported by Roland Dreier <rdreier@cisco.com>
11054 2008-05-07 Robert Millan <rmh@aybabtu.com>
11056 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
11057 grub_strstr() call. Correct a few mistakes in failure path handling.
11059 2008-05-06 Robert Millan <rmh@aybabtu.com>
11061 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
11062 Do not print a trailing slash (therefore, the root directory is an
11064 (convert_system_path_to_grub_path): Do not remove trailing slash
11065 from make_system_path_relative_to_its_root() output.
11067 * util/i386/pc/grub-install.in: Add trailing slash to output from
11068 make_system_path_relative_to_its_root().
11070 2008-05-06 Robert Millan <rmh@aybabtu.com>
11072 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
11073 ensures that output lines aren't intermangled with those sent to
11074 stderr (via grub_util_info()).
11075 * util/grub-probe.c (grub_refresh): Likewise.
11076 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
11078 2008-05-05 Christian Franke <franke@computer.org>
11080 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
11081 Add Cygwin device names.
11082 (get_ide_disk_name) [__CYGWIN__]: Likewise.
11083 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
11084 (check_device): Return error instead of success on empty name.
11085 (make_device_map): Move label inside linux specific code to
11086 prevent compiler warning.
11088 2008-04-30 Robert Millan <rmh@aybabtu.com>
11090 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
11091 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
11093 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
11095 2008-04-29 Robert Millan <rmh@aybabtu.com>
11097 * docs/grub.cfg: New file (example GRUB configuration).
11099 2008-04-26 Robert Millan <rmh@aybabtu.com>
11101 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
11102 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
11103 and `disk/ieee1275/nand.c'.
11105 2008-04-25 Bean <bean123ch@gmail.com>
11107 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
11110 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
11111 change the buffer size to 4096 for cdrom device.
11113 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
11115 (_linux_mod_SOURCES): New variable.
11116 (_linux_mod_CFLAGS): Likewise.
11117 (_linux_mod_LDFLAGS): Likewise.
11118 (linux_mod_SOURCES): Likewise.
11119 (linux_mod_CFLAGS): Likewise.
11120 (linux_mod_LDFLAGS): Likewise.
11121 (nand_mod_SOURCES): Likewise.
11122 (nand_mod_CFLAGS): Likewise.
11123 (nand_mod_LDFLAGS): Likewise.
11125 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
11126 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
11127 type property. (nand device in olpc don't have this property)
11129 * include/grub/disk.h (grub_disk_dev_id): New macro
11130 GRUB_DISK_DEVICE_NAND_ID.
11132 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
11133 function prototype.
11134 (grub_rescue_cmd_initrd): Likewise.
11136 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
11137 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
11138 ofw_cif_handler and ofw_idt, adjust padding number.
11140 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
11141 GRUB_MACHINE_IEEE1275 is defined.
11143 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
11144 Use NESTED_FUNC_ATTR attribute on the hook parameter.
11146 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
11147 on nested function heap_init.
11148 (grub_upper_mem): New variable for i386-ieee1275.
11149 (grub_get_extended_memory): New function for i386-ieee1275.
11150 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
11152 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
11153 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
11156 * loader/i386/ieee1275/linux.c: New file.
11158 * loader/i386/ieee1275/linux_normal.c: New file.
11160 * disk/ieee1275/nand.c: New file.
11162 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
11164 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
11166 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
11168 2008-04-18 Robert Millan <rmh@aybabtu.com>
11170 Restructures early code path on ieee1275 to unify grub_main() as
11171 the first C function that is executed in every platform.
11173 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
11174 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
11176 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
11177 * kern/ieee1275/cmain.c (cmain): Rename to ...
11178 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
11179 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
11182 2008-04-18 Robert Millan <rmh@aybabtu.com>
11184 * util/update-grub.in: Fix syntax error when setting
11185 `GRUB_PRELOAD_MODULES'.
11186 Reported by Stephane Chazelas <stephane@artesyncp.com>
11188 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
11190 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
11191 section into account, newer toolchains generate unique build ids
11192 * configure.ac: remove the test for --build-id=none acceptance,
11193 we want build ids to be preserved
11194 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
11195 far from other sections don't cause the raw binary images grow
11198 2008-04-15 Robert Millan <rmh@aybabtu.com>
11200 * disk/lvm.c: Update copyright year.
11201 * kern/misc.c: Likewise.
11203 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
11205 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
11206 there is no memory left for physical volume name.
11208 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
11210 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
11211 volume name mapping to support bigger than 9 character names properly.
11213 2008-04-13 Robert Millan <rmh@aybabtu.com>
11215 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
11216 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
11218 2008-04-13 Christian Franke <franke@computer.org>
11220 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
11221 to create a floppy emulation boot CD when non emulation mode
11223 Enable Joliet CD filesystem extension.
11225 2008-04-13 Robert Millan <rmh@aybabtu.com>
11227 * kern/misc.c (grub_strncat): Fix off-by-one error.
11228 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
11230 * kern/env.c (grub_env_context_close): Clear current context, not
11232 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
11234 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
11236 2008-04-13 Robert Millan <rmh@aybabtu.com>
11238 Improve robustness when handling LVM.
11240 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
11241 (and leave `*p' unmodified).
11242 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
11244 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
11245 iterating through it.
11246 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
11248 (grub_lvm_scan_device): Check the return value (and fail gracefully
11249 when due) on each grub_lvm_getvalue() or grub_strstr() call.
11250 Don't assume `vg->pvs != NULL' when iterating through it.
11252 2008-04-13 Robert Millan <rmh@aybabtu.com>
11254 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
11255 * genmk.rb (partmap): New variable.
11256 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
11257 (#{partmap}): New target rule.
11258 * genpartmaplist.sh: New file.
11259 * Makefile.in (pkglib_DATA): Add partmap.lst.
11260 (partmap.lst): New target rule.
11261 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
11262 modules (including all partition maps), instead of preloading them.
11264 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
11266 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
11267 `linux-boot-prober' (if installed) to detect other operating
11268 systems which are installed on the computer and add them to
11270 * conf/common.rmk: Build and install 30_os-prober.
11272 2008-04-12 Robert Millan <rmh@aybabtu.com>
11274 * kern/powerpc/ieee1275/init.c: Move from here ...
11275 * kern/ieee1275/init.c: ... to here. Update all users.
11277 * kern/powerpc/ieee1275/cmain.c: Move from here ...
11278 * kern/ieee1275/cmain.c: ... to here. Update all users.
11280 * kern/powerpc/ieee1275/openfw.c: Move from here ...
11281 * kern/ieee1275/openfw.c: ... to here. Update all users.
11283 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
11284 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
11286 2008-04-10 Pavel Roskin <proski@gnu.org>
11288 * configure.ac: Always use "_cv_" in cache variables for
11289 compatibility with Autoconf 2.62.
11291 2008-04-07 Robert Millan <rmh@aybabtu.com>
11293 Revert grub/machine/init.h addition by Pavel (since it breaks on
11294 i386-ieee1275 and others):
11295 * util/i386/pc/misc.c: Remove grub/machine/init.h.
11296 * util/powerpc/ieee1275/misc.c: Likewise.
11298 2008-04-07 Robert Millan <rmh@aybabtu.com>
11300 * util/grub-probe.c (probe): Improve error message.
11302 2008-04-07 Robert Millan <rmh@aybabtu.com>
11304 * util/biosdisk.c (read_device_map): Skip devices that don't exist
11305 (this prevents the presence of a bogus entry from ruining the whole
11308 2008-04-06 Pavel Roskin <proski@gnu.org>
11310 * util/biosdisk.c: Include grub/util/biosdisk.h.
11311 * util/grub-fstest.c (execute_command): Make static.
11312 * util/grub-mkdevicemap.c (check_device): Likewise.
11313 * util/i386/pc/misc.c: Include grub/machine/init.h.
11314 * util/powerpc/ieee1275/misc.c: Likewise.
11315 * util/lvm.c: Include grub/util/lvm.h.
11316 * util/misc.c: Include grub/kernel.h, grub/misc.h and
11318 * util/raid.c: Include grub/util/raid.h.
11319 (grub_util_getdiskname): Make static.
11321 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
11322 grub_hostfs_fini(), as they are called from grub_init_all() and
11323 grub_fini_all() respectively. This fixes an infinite loop in
11324 grub-fstest due to double registration of hostfs.
11325 Reported by Christian Franke <Christian.Franke@t-online.de>
11327 2008-04-05 Pavel Roskin <proski@gnu.org>
11329 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
11330 all 8 functions. Otherwise, probe function 0 only.
11332 2008-04-04 Pavel Roskin <proski@gnu.org>
11334 * commands/lspci.c (grub_lspci_iter): Print the bus number
11337 * commands/lspci.c (grub_pci_classes): Fix typos.
11338 (grub_lspci_iter): Don't print func twice. Print vendor ID
11339 before device ID, as it's normally done.
11341 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
11342 Fix signedness warnings.
11343 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
11345 * util/ieee1275/get_disk_name.c: Include config.h so that
11346 _GNU_SOURCE is defined and getline() is declared. Mark an
11347 unused argument as such. Fix a signedness warning.
11349 2008-04-02 Pavel Roskin <proski@gnu.org>
11351 * genkernsyms.sh.in: Use more robust assignments for CC and
11352 srcdir. Quote srcdir.
11353 * gensymlist.sh.in: Likewise. Assert at the compile time that
11354 the symbol table is not empty.
11356 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
11357 * fs/cpio.c (grub_cpio_read): Likewise.
11359 2008-04-01 Pavel Roskin <proski@gnu.org>
11361 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
11362 * disk/host.c (grub_host_open): Likewise.
11363 * disk/loopback.c (grub_loopback_open): Likewise.
11364 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
11365 disk->id as in disk/host.c, not a multi-character constant.
11367 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
11368 later is obsolete, potentially dangerous and sets a bad example.
11369 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
11370 * util/misc.c (grub_util_get_image_size): Likewise.
11372 * disk/loopback.c (options): Improve help for "--partitions".
11374 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
11375 options to align them with the short options, e.g. "echo -e".
11377 2008-03-31 Bean <bean123ch@gmail.com>
11379 * video/reader/png.c (grub_png_data): New member is_16bit and
11381 (grub_png_decode_image_header): Detect 16 bit png image.
11382 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
11383 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
11384 (grub_video_reader_png): Release memory occupied by image_data.
11386 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
11388 (grub_nfs_mount): Skip the test for sector per cluster.
11390 * include/grub/ntfs.h (MAX_SPC): Removed.
11392 2008-03-31 Bean <bean123ch@gmail.com>
11394 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
11395 (grub_probe_SOURCES): Add fs/afs.c.
11396 (grub_fstest_SOURCES): Likewise.
11397 (afs_mod_SOURCES): New variable.
11398 (afs_mod_CFLAGS): Likewise.
11399 (afs_mod_LDFLAGS): Likewise.
11401 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
11402 (grub_emu_SOURCES): Likewise.
11404 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11406 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11408 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11410 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11412 * fs/afs.c: New file.
11414 2008-03-30 Pavel Roskin <proski@gnu.org>
11416 * disk/host.c: Include grub/misc.h to fix a warning.
11417 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
11418 warnings about implicit declarations.
11420 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
11422 * include/grub/i386/loader.h: Change declaration of
11423 grub_linux_boot() to match what grub_loader_set() expects.
11424 * util/getroot.c (grub_guess_root_device): Return const char* to
11426 * util/grub-probe.c (probe): Fix a warning about uninitialized
11427 abstraction_name variable.
11428 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
11429 second argument as unused to fix a warning.
11431 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
11432 missing grub_error() call.
11434 * util/update-grub_lib.in: Define datarootdir, since Autoconf
11435 2.60 and newer uses it to define datadir.
11437 * commands/sleep.c: Fix warning about implicit declaration.
11438 * disk/memdisk.c: Likewise.
11439 * loader/aout.c: Likewise.
11440 * loader/i386/bsd_normal.c: Likewise.
11441 * util/grub-probe.c: Likewise.
11443 * commands/i386/cpuid.c (has_longmode): Make static.
11444 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
11445 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
11447 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
11448 GDT. This is more robust, as %ds can change.
11449 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
11450 calling real_to_prot().
11451 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
11453 2008-03-28 Pavel Roskin <proski@gnu.org>
11455 * kern/i386/pc/startup.S: Assert that uncompressed functions
11456 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
11457 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
11458 code, as they push parts of the code (error handlers) beyond
11459 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
11460 code as correctness and size.
11462 2008-03-28 Pavel Roskin <proski@gnu.org>
11464 * kern/i386/pc/startup.S
11465 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
11466 data block address to the real mode, keep offset minimal. This
11467 works around a bug in AWARD BIOS on old Athlon systems, which
11468 makes CD detection hang.
11470 2008-03-26 Pavel Roskin <proski@gnu.org>
11472 * normal/color.c (grub_parse_color_name_pair): Make `name' a
11474 * include/grub/normal.h: Add grub_parse_color_name_pair()
11477 2008-03-24 Bean <bean123ch@gmail.com>
11479 * disk/i386/pc/biosdisk.c (cd_start): Removed.
11480 (cd_count): Removed.
11481 (cd_drive): New variable.
11482 (grub_biosdisk_get_drive): Don't check for (cdN) device.
11483 (grub_biosdisk_call_hook): Likewise.
11484 (grub_biosdisk_iterate): Change cdrom detection method.
11485 (grub_biosdisk_open): Replace cd_start with cd_drive.
11486 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
11487 detect cdrom device.
11489 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
11491 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
11492 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
11493 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
11494 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
11495 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
11496 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
11497 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
11498 (grub_biosdisk_cdrp): New structure.
11499 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
11501 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
11503 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
11506 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
11509 2008-03-20 Robert Millan <rmh@aybabtu.com>
11511 Remove 2 TiB limit in ata.mod.
11512 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
11513 (grub_ata_dumpinfo): Print sector count with 0x%llx.
11514 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
11515 grub_uint64_t instead of grub_uint32_t.
11517 2008-03-05 Bean <bean123ch@gmail.com>
11519 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
11520 (grub_multiboot): Set boot device.
11522 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
11524 2008-03-02 Bean <bean123ch@gmail.com>
11526 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
11529 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
11531 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
11534 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
11537 * docs/fdl.texi: New file.
11539 * docs/mdate-sh: New file. Copied from gnulib.
11540 * docs/texinfo.tex: Likewise.
11542 * config.guess: Updated from gnulib.
11543 * install-sh: Likewise.
11545 2008-02-28 Robert Millan <rmh@aybabtu.com>
11547 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
11548 (aout_mod_SOURCES): New variable.
11549 (aout_mod_CFLAGS): Likewise.
11550 (aout_mod_LDFLAGS): Likewise.
11552 * conf/i386-ieee1275.rmk: Likewise.
11554 2008-02-28 Robert Millan <rmh@aybabtu.com>
11556 * util/update-grub.in: Reorganise terminal validity check. Accept
11557 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
11558 Based on suggestion by Franklin PIAT.
11560 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
11562 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
11564 * util/getroot.c (grub_util_check_block_device): New function that
11565 returns the given argument if it is a block device and returns NULL else.
11566 * util/grub-probe.c (argument_is_device): New variable.
11567 (probe): Promote device_name from a variable to an argument. Receive
11568 device_name from grub_util_check_block_device() if path is NULL and from
11569 grub_guess_root_device() else. Do not free() device_name anymore.
11570 (options): Introduce new parameter '-d, --device'.
11571 (main): Add description of the new parameter to the help screen.
11572 Rename path variable to argument. Set argument_is_device if the '-d'
11573 option is given. Pass argument to probe() depending on
11574 argument_is_device.
11576 2008-02-24 Bean <bean123ch@gmail.com>
11578 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
11579 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
11580 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
11581 (GRUB_ISO9660_VOLDESC_PART): Likewise.
11582 (GRUB_ISO9660_VOLDESC_END): Likewise.
11583 (grub_iso9660_primary_voldesc): New member escape.
11584 (grub_iso9660_data): New member joliet.
11585 (grub_iso9660_convert_string): New function.
11586 (grub_iso9660_mount): Detect joliet extension.
11587 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
11588 (grub_iso9660_iso9660_label): Likewise.
11590 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
11591 (grub_setup_SOURCES): Add fs/udf.c.
11592 (grub_fstest_SOURCES): Likewise.
11593 (udf_mod_SOURCES): New variable.
11594 (udf_mod_CFLAGS): Likewise.
11595 (udf_mod_LDFLAGS): Likewise.
11597 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
11598 (grub_emu_SOURCES): Likewise.
11600 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11602 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11604 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11606 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11608 * fs/udf.c: New file.
11610 2008-02-24 Robert Millan <rmh@aybabtu.com>
11612 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
11613 (normal/lexer.c_DEPENDENCIES): New variables.
11614 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
11615 (normal/lexer.c_DEPENDENCIES): Likewise.
11616 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
11617 (normal/lexer.c_DEPENDENCIES): Likewise.
11618 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
11619 (normal/lexer.c_DEPENDENCIES): Likewise.
11620 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
11621 (normal/lexer.c_DEPENDENCIES): Likewise.
11622 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
11623 (normal/lexer.c_DEPENDENCIES): Likewise.
11625 2008-02-23 Robert Millan <rmh@aybabtu.com>
11627 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
11628 since they were intended to be in hex. This didn't break previously
11629 because of a bug in gpt_partition_map_iterate() (see below).
11631 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
11632 when checking the validity of GPT header.
11633 Remove `partno', since it always provides the same information as `i'.
11635 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
11637 * include/grub/efi/time.h: Fix a wrong comment.
11639 2008-02-19 Pavel Roskin <proski@gnu.org>
11641 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
11644 2008-02-19 Bean <bean123ch@gmail.com>
11646 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
11647 (aout_mod_SOURCES): New variable.
11648 (aout_mod_CFLAGS): Likewise.
11649 (aout_mod_LDFLAGS): Likewise.
11650 (_bsd_mod_SOURCES): New variable.
11651 (_bsd_mod_CFLAGS): Likewise.
11652 (_bsd_mod_LDFLAGS): Likewise.
11653 (bsd_mod_SOURCES): New variable.
11654 (bsd_mod_CFLAGS): Likewise.
11655 (bsd_mod_LDFLAGS): Likewise.
11657 * include/grub/aout.h: New file.
11659 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
11661 * include/grub/i386/bsd.h: New file.
11663 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
11666 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
11667 function is called, so that it's possible to change it inside the hook.
11668 (grub_elf64_load): Likewise.
11669 (grub_elf_file): Don't close the file if elf header is not found.
11670 (grub_elf_close): Close the file if grub_elf_file fails (The new
11671 grub_elf_file won't close it).
11672 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
11673 (grub_elf64_size): Likewise.
11675 * kern/i386/loader.S (grub_unix_real_boot): New function.
11677 * loader/aout.c: New file.
11679 * loader/i386/bsd.c: New file.
11681 * loader/i386/bsd_normal.c: New file.
11683 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
11685 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
11686 can test other formats.
11688 2008-02-19 Robert Millan <rmh@aybabtu.com>
11690 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
11691 (grub_gpt_partition_type_empty): Redefine with macro from
11692 `<grub/gpt_partition.h>'.
11693 (gpt_partition_map_iterate): Adjust partition type comparison.
11695 Export `entry' as partmap-specific `part.data' struct.
11696 (grub_gpt_header, grub_gpt_partentry): Move from here ...
11698 * include/grub/gpt_partition.h (grub_gpt_header)
11699 (grub_gpt_partentry): ... to here (new file).
11701 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
11703 (grub_gpt_partition_type_bios_boot): New const variable, defined
11704 with macro from `<grub/gpt_partition.h>'.
11706 (setup): Replace `first_start' with `embed_region', which keeps
11707 track of the embed region (and is partmap-agnostic).
11709 Replace find_first_partition_start() with find_usable_region(),
11710 which finds a usable region for embedding using partmap-specific
11711 knowledge (supports PC/MSDOS and GPT).
11713 Fix all assumptions that the embed region start at sector 1, using
11714 `embed_region.start' from now on. Similarly, use `embed_region.end'
11715 rather than `first_start' to calculate available size.
11717 In grub_util_info() message, replace "into after the MBR" with an
11718 indication of the specific sector our embed region starts at.
11720 2008-02-19 Robert Millan <rmh@aybabtu.com>
11722 * DISTLIST: Replace `commands/ieee1275/halt.c' and
11723 `commands/ieee1275/reboot.c' with `commands/halt.c' and
11724 `commands/reboot.c'.
11725 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
11726 (halt_mod_SOURCES): Likewise.
11727 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
11728 (halt_mod_SOURCES): Likewise.
11730 2008-02-17 Christian Franke <franke@computer.org>
11732 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
11734 2008-02-17 Robert Millan <rmh@aybabtu.com>
11736 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
11737 set `first_start' to 0 for non-PC/MSDOS partition maps.
11739 2008-02-16 Robert Millan <rmh@aybabtu.com>
11741 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
11742 do not assume partition map is PC/MSDOS before performing checks that
11743 are specific to that layout.
11745 2008-02-13 Robert Millan <rmh@aybabtu.com>
11747 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
11748 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
11749 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
11751 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
11753 * configure.ac: Only a cosmetic change on the handling of
11754 -fno-stack-protector.
11756 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
11758 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
11759 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
11761 (grub_install_SOURCES): Add halt.mod and reboot.mod.
11762 (halt_mod_SOURCES): New variable.
11763 (halt_mod_CFLAGS): Likewise.
11764 (halt_mod_LDFLAGS): Likewise.
11765 (reboot_mod_SOURCES): Likewise.
11766 (reboot_mod_CFLAGS): Likewise.
11767 (reboot_mod_LDFLAGS): Likewise.
11769 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
11770 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
11772 (halt_mod_SOURCES): Likewise.
11773 (reboot_mod_SOURCES): Likewise.
11775 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
11776 commands/i386/pc/reboot.c by commands/reboot.c.
11777 (reboot_mod_SOURCES): Likewise.
11779 * commands/i386/pc/reboot.c: merge this file ...
11781 * commands/ieee1275/reboot.c: ... and this file ...
11783 * commands/reboot.c: ... to this file.
11784 Add some precompiler directive to include the correct header for
11787 * commands/ieee1275/halt.c: move this file ...
11789 * commands/halt.c: ... to here.
11790 Add some precompiler directive to include the correct header for
11793 * include/grub/efi/efi.h (grub_reboot): New function declaration.
11794 (grub_halt): Likewise.
11796 * kern/efi/efi.c (grub_reboot): New function.
11797 (grub_halt): Likewise.
11799 2008-02-12 Robert Millan <rmh@aybabtu.com>
11801 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
11802 /dev (like it is done for /dev/mapper). This doesn't provide support
11803 for EVMS, but at least it is now easy to identify the problem when it
11806 2008-02-11 Robert Millan <rmh@aybabtu.com>
11808 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
11809 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
11810 comparing it with -1, not 0.
11812 2008-02-10 Robert Millan <rmh@aybabtu.com>
11814 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
11816 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11817 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
11819 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
11820 `disk/lvm.c' to the end of the list.
11821 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11822 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
11824 2008-02-10 Robert Millan <rmh@aybabtu.com>
11826 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
11827 grub_print_error() instead. This will let user know why we're entering
11829 Based on suggestions from Sam Morris.
11831 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
11833 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
11834 on remaining N args, instead of "--" arg N times.
11836 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
11838 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
11839 (fill_with_default_glyph): Changed to use unknown_glyph for fill
11840 pattern for unknown glyphs.
11842 2008-02-09 Robert Millan <rmh@aybabtu.com>
11844 * configure.ac: Probe for `help2man'.
11845 * Makefile.in (builddir): New variable.
11846 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
11847 or otherwise add a few flags/options to it.
11848 (install-local): For every executable utility or script that is
11849 installed, invoke $(HELP2MAN) to install a manpage based on --help
11852 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
11853 that it doesn't prevent --help from working in build tree.
11855 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
11856 with `bug-grub@gnu.org'.
11857 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
11858 * util/update-grub.in (usage): New function.
11859 Implement proper argument check, with support for --help and --version
11860 (as well as existing -y).
11862 2008-02-09 Christian Franke <franke@computer.org>
11864 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
11865 avoid overwriting previous output.
11866 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
11868 2008-02-09 Robert Millan <rmh@aybabtu.com>
11870 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
11873 2008-02-09 Robert Millan <rmh@aybabtu.com>
11875 * commands/sleep.c: New file.
11876 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
11877 (sleep_mod_SOURCES): New variable.
11878 (sleep_mod_CFLAGS): Likewise.
11879 (sleep_mod_LDFLAGS): Likewise.
11881 2008-02-09 Robert Millan <rmh@aybabtu.com>
11883 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
11884 situations in which we can deduce the RAID size and the superblock
11887 2008-02-09 Robert Millan <rmh@aybabtu.com>
11889 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
11890 and return a grub_diskmemberlist_t composed of LVM physical volumes.
11891 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
11893 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
11894 and return a grub_diskmemberlist_t composed of physical array members.
11895 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
11897 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
11899 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
11900 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
11901 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
11903 * util/grub-probe.c (probe): Move partmap probing code from here ...
11904 (probe_partmap): ... to here.
11905 (probe): Use probe_partmap() once for the disk we're probing, and
11906 additionally, when such disk contains a memberlist() struct member,
11907 once for each disk that is contained in the structure returned by
11910 2008-02-09 Robert Millan <rmh@aybabtu.com>
11912 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
11913 environment variable to 'all' in order to obtain debug output from
11915 * util/i386/pc/grub-setup.c (main): Likewise.
11917 2008-02-08 Robert Millan <rmh@aybabtu.com>
11919 * disk/raid.c (grub_raid_scan_device): Check for
11920 `array->device[sb.this_disk.number]' rather than for
11921 `array->device[sb.this_disk.number]->name', since the latter is not
11922 guaranteed to be accessible.
11924 2008-02-08 Robert Millan <rmh@aybabtu.com>
11926 * disk/raid.c: Update copyright.
11927 * fs/cpio.c: Likewise.
11928 * include/grub/raid.h: Likewise.
11929 * loader/i386/pc/multiboot.c: Likewise.
11930 * util/hostfs.c: Likewise.
11932 2008-02-08 Robert Millan <rmh@aybabtu.com>
11934 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
11935 to a grub_disk_t array.
11936 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
11938 (grub_raid_scan_device): Replace `device[x].name' accesses with
11939 `device[x]->name'. Simplify initialization of `array->device[x]'.
11941 2008-02-08 Robert Millan <rmh@aybabtu.com>
11943 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
11944 grub_dprintf() calls.
11945 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
11948 2008-02-07 Christian Franke <franke@computer.org>
11950 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
11951 instead of fseek and ftell to support large files.
11952 (grub_hostfs_read): Likewise.
11954 2008-02-07 Robert Millan <rmh@aybabtu.com>
11956 Patch from Jeroen Dekkers.
11957 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
11958 failure, since successfully reading all array members might not be
11961 2008-02-06 Robert Millan <rmh@aybabtu.com>
11963 * util/grub-probe.c (probe): Simplify partmap probing (with the
11964 assumption that the first word up to the underscore equals to
11967 2008-02-06 Christian Franke <franke@computer.org>
11969 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
11970 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
11971 last block of a cpio or tar stream.
11972 Check for "TRAILER!!!" instead of any empty data
11973 block to detect last block of a cpio stream.
11974 (grub_cpio_dir): Fix constness of variable np.
11975 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
11976 cpio or tar trailer is detected. This fixes a crash
11977 on open of a non existing file.
11979 2008-02-05 Bean <bean123ch@gmail.com>
11981 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
11983 (grub_multiboot_load_elf64): Likewise.
11984 (grub_multiboot): Initialize mbi structure.
11986 * util/grub-fstest.c: Don't include unused header file script.h.
11988 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
11990 (grub_fstest_SOURCES): Likewise.
11992 2008-02-05 Robert Millan <rmh@aybabtu.com>
11994 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
11995 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
11996 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
11997 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
11999 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
12000 (translation_table): Replace hardcoded values with macros
12001 provided by `<grub/term.h>'.
12003 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
12004 (keyboard_map): Correct/add a few values, with macros provided
12005 by `<grub/term.h>'.
12006 (keyboard_map_shift): Zero values that don't differ from their
12007 `keyboard_map' equivalents.
12008 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
12009 Discard the second scan code that is always sent by Caps lock.
12010 Only use `keyboard_map_shift' when it provides a non-zero value,
12011 otherwise fallback to `keyboard_map'.
12013 2008-02-04 Bean <bean123ch@gmail.com>
12015 * Makefile.in (enable_grub_fstest): New variable.
12017 * conf/common.rmk (grub_fstest_init.lst): New rule.
12018 (grub_fstest_init.h): Likewise.
12019 (grub_fstest_init.c): Likewise.
12020 (util/grub-fstest.c_DEPENDENCIES): New variable.
12021 (grub_fstest_SOURCES): Likewise.
12023 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
12025 * util/grub-fstest.c: New file.
12027 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
12029 Make grub-setup handle a separate root device.
12031 * util/i386/pc/grub-setup.c (setup): Always open the root device,
12032 so that the root device can be compared with the destination
12034 When embedding the core image, if the root and destination devices
12035 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
12037 When not embedding, set ROOT_DRIVE to 0xFF.
12039 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
12041 Add support for having a grub directory in a different drive. This
12042 is still only the data handling part.
12044 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
12045 (codestart): Save %dh in GRUB_ROOT_DRIVE.
12046 (grub_root_drive): New variable.
12048 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
12049 instead of GRUB_BOOT_DRIVE to construct a device name. Set
12050 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
12053 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
12055 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
12057 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
12059 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
12060 is bogus, because PXE booting does not specify any drive
12063 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
12064 am not sure if this is really correct.
12066 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
12067 is always identical to the boot drive when booting from a CD.
12069 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
12071 (root_drive): New variable.
12072 (real_start): Unconditionally set %dh to ROOT_DRIVE.
12073 (setup_sectors): Push %dx right after popping it, because %dh will
12075 (copy_buffer): Restore %dx.
12077 2008-02-03 Robert Millan <rmh@aybabtu.com>
12079 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
12080 use `cdboot.img' for cdrom images.
12082 2008-02-03 Robert Millan <rmh@aybabtu.com>
12084 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
12085 only setup gfxterm when `font' command has succeeded.
12087 2008-02-03 Robert Millan <rmh@aybabtu.com>
12089 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
12090 (grub_rescue_cmd_multiboot_loader)
12091 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
12093 2008-02-03 Pavel Roskin <proski@gnu.org>
12095 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
12096 %edx and %esi from stack only after grub_gate_a20() is called.
12097 grub_gate_a20() clobbers %edx.
12099 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
12101 * configure.ac (AC_INIT): Bumped to 1.96.
12103 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
12104 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
12105 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
12106 video/readers/png.c.
12108 2008-02-03 Bean <bean123ch@gmail.com>
12110 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
12111 (cdboot_img_SOURCES): New variable.
12112 (cdboot_img_ASFLAGS): New variable.
12113 (cdboot_img_LDFLAGS): New variable.
12115 * boot/i386/pc/cdboot.S: New file.
12117 * disk/i386/pc/biosdisk.c (cd_start): New variable.
12118 (cd_count): Likewise.
12119 (grub_biosdisk_get_drive): Add support for cd device.
12120 (grub_biosdisk_call_hook): Likewise.
12121 (grub_biosdisk_iterate): Likewise.
12122 (grub_biosdisk_open): Likewise.
12123 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
12124 (grub_biosdisk_rw): Support reading from cd device.
12125 (GRUB_MOD_INIT): Iterate cd devices.
12127 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
12128 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
12129 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
12131 * kern/i386/pc/init.c (make_install_device): Check for cd device.
12133 2008-02-02 Robert Millan <rmh@aybabtu.com>
12135 * commands/read.c: New file.
12136 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
12137 (read_mod_SOURCES): New variable.
12138 (read_mod_CFLAGS): Likewise.
12139 (read_mod_LDFLAGS): Likewise.
12141 2008-02-02 Robert Millan <rmh@aybabtu.com>
12143 * normal/main.c (grub_normal_execute): Check for `menu->size' when
12144 determining whether menu has to be displayed.
12146 2008-02-02 Marco Gerards <marco@gnu.org>
12148 * bus/pci.c: New file.
12150 * include/grub/pci.h: Likewise.
12152 * include/grub/i386/pc/pci.h: Likewise.
12154 * commands/lspci.c: Likewise.
12156 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
12158 (pci_mod_SOURCES): New variable.
12159 (pci_mod_CFLAGS): Likewise.
12160 (pci_mod_LDFLAGS): Likewise.
12161 (lspci_mod_SOURCES): Likewise.
12162 (lspci_mod_CFLAGS): Likewise.
12163 (lspci_mod_LDFLAGS): Likewise.
12165 2008-02-02 Bean <bean123ch@gmail.com>
12167 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
12168 (grub_ufs_get_file_block): Fix indirect block calculation problem.
12170 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
12171 (grub_xfs_btree_node): New structure.
12172 (grub_xfs_btree_root): New structure.
12173 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
12174 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
12175 (GRUB_XFS_EXTENT_BLOCK): Likewise.
12176 (GRUB_XFS_EXTENT_SIZE): Likewise.
12177 (grub_xfs_read_block): Support btree format type.
12178 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
12179 Use directory block as basic unit.
12181 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
12183 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
12184 __attribute__ ((__regparm__ (1))).
12186 2008-02-01 Robert Millan <rmh@aybabtu.com>
12188 Correct a mistake in previous commit.
12190 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
12192 (normal/command.c_DEPENDENCIES): New variable.
12194 2008-02-01 Robert Millan <rmh@aybabtu.com>
12196 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
12198 (normal/command.c_DEPENDENCIES): New variable.
12199 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
12200 * conf/i386-ieee1275.rmk: Likewise.
12201 * conf/i386-linuxbios.rmk: Likewise.
12202 * conf/i386-pc.rmk: Likewise.
12203 * conf/sparc64-ieee1275.rmk: Likewise.
12204 * conf/powerpc-ieee1275.rmk: Likewise.
12205 (grub_emu_SOURCES): Add `fs/fshelp.c'.
12207 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
12209 2008-02-01 Robert Millan <rmh@aybabtu.com>
12211 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
12212 call at beginning of function.
12214 2008-01-31 Pavel Roskin <proski@gnu.org>
12216 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
12217 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
12218 (grub_mkrescue_SOURCES): Likewise.
12219 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
12221 2008-01-30 Robert Millan <rmh@aybabtu.com>
12223 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
12224 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
12225 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
12226 (grub_probe_SOURCES): ... to here.
12228 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
12229 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
12230 * conf/i386-ieee1275.rmk: Likewise.
12231 * conf/i386-linuxbios.rmk: Likewise.
12232 * conf/powerpc-ieee1275.rmk: Likewise.
12234 2008-01-30 Tristan Gingold <gingold@free.fr>
12236 * kern/rescue.c: Silently accept empty lines.
12238 2008-01-29 Bean <bean123ch@gmail.com>
12240 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
12241 (real_code_2): Code cleanup and change comment style.
12242 (move_memory): Avoid using 32-bit address mode.
12244 2008-01-29 Bean <bean123ch@gmail.com>
12246 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
12247 (png_mod_SOURCES): New variable.
12248 (png_mod_CFLAGS): Likewise.
12249 (png_mod_LDFLAGS): Likewise.
12251 * video/readers/png.c: New file.
12253 2008-01-28 Robert Millan <rmh@aybabtu.com>
12255 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
12256 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
12257 `ifndef GRUB_MOD_GAP' hack.
12258 * util/elf/grub-mkimage.c (add_segments): Likewise.
12260 2008-01-27 Robert Millan <rmh@aybabtu.com>
12262 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
12263 `GRUB_MOD_GAP' for platforms in which it's not defined.
12264 * util/elf/grub-mkimage.c (add_segments): Likewise.
12266 2008-01-27 Robert Millan <rmh@aybabtu.com>
12268 Get grub-emu to build again (including parallel builds).
12270 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
12272 (util/grub-emu.c_DEPENDENCIES): ... this, ...
12273 (normal/execute.c_DEPENDENCIES): ... this, ...
12274 (grub-emu_DEPENDENCIES): ... and this.
12276 * conf/i386-efi.rmk: Likewise.
12277 * conf/i386-linuxbios.rmk: Likewise.
12278 * conf/i386-ieee1275.rmk: Likewise.
12279 * conf/powerpc-ieee1275.rmk: Likewise.
12280 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
12282 2008-01-27 Robert Millan <rmh@aybabtu.com>
12284 * NEWS: Add a few items.
12286 2008-01-27 Robert Millan <rmh@aybabtu.com>
12288 Fix parallel builds with grub-emu. Based on earlier commit for
12289 grub-probe and grub-setup.
12291 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12292 (util/grub-emu.c_DEPENDENCIES): ... this.
12293 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12294 (util/grub-emu.c_DEPENDENCIES): ... this.
12295 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12296 (util/grub-emu.c_DEPENDENCIES): ... this.
12297 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12298 (util/grub-emu.c_DEPENDENCIES): ... this.
12299 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12300 (util/grub-emu.c_DEPENDENCIES): ... this.
12302 2008-01-27 Pavel Roskin <proski@gnu.org>
12304 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
12305 to create a gap between _end and the modules added to the image
12306 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
12307 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
12308 * util/elf/grub-mkimage.c (add_segments): Likewise.
12310 2008-01-26 Pavel Roskin <proski@gnu.org>
12312 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
12313 just return an error.
12315 2008-01-26 Bean <bean123ch@gmail.com>
12317 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
12318 (grub_reiserfs_get_item): Save offset of the next item.
12319 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
12321 2008-01-25 Robert Millan <rmh@aybabtu.com>
12323 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
12324 make all filesystem sources appear together (possibly fixing omissions
12326 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12327 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12328 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
12329 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12331 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
12333 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
12334 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
12335 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
12336 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
12338 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
12339 (probe): Add a sanity check to make sure of our ability to read
12340 requested files when probing for filesystem type.
12342 * genmk.rb: Update copyright year (2007).
12344 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
12345 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
12346 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
12347 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
12348 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
12349 : Remove function prototypes.
12351 2008-01-25 Robert Millan <rmh@aybabtu.com>
12353 Revert my previous commits (based on wrong assumption of how grub_errno
12356 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
12357 * kern/file.c (grub_file_open): Likewise.
12359 2008-01-24 Pavel Roskin <proski@gnu.org>
12361 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
12362 that hang if GRUB tries to setup colors.
12363 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
12364 colors for firmwares that don't support it.
12365 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
12366 Recognize Open Hack'Ware, set flags to work around its
12369 2008-01-24 Robert Millan <rmh@aybabtu.com>
12371 * kern/file.c (grub_file_open): Do not account previous failures of
12372 unrelated functions when grub_errno is checked for.
12373 Reported by Oleg Strikov.
12375 2008-01-24 Bean <bean123ch@gmail.com>
12377 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
12378 (grub_ufs_sblock): New member volume name.
12379 (grub_ufs_find_file): Fix string copy bug.
12380 (grub_ufs_label): Implement this function properly.
12382 * fs/hfs.c (grub_hfs_cnid_type): New enum.
12383 (grub_hfs_iterate_records): Use the correct file number for extents
12384 and catalog file. Fix problem in next index calculation.
12385 (grub_hfs_find_node): Replace recursive function call with loop.
12386 (grub_hfs_iterate_dir): Replace recursive function call with loop.
12388 2008-01-23 Robert Millan <rmh@aybabtu.com>
12390 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
12391 `<grub/symbol.h>' and `<grub/multiboot.h>'.
12392 (grub_multiboot2_real_boot): New function prototype.
12394 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
12395 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
12397 * kern/i386/ieee1275/init.c (grub_os_area_addr)
12398 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
12400 2008-01-23 Robert Millan <rmh@aybabtu.com>
12402 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
12403 #ifdef'ed out grub_printf().
12405 2008-01-23 Robert Millan <rmh@aybabtu.com>
12407 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
12408 grub_dprintf calls, since they make "debug=all" mode unusable.
12409 (grub_console_checkkey): Likewise.
12411 2008-01-23 Robert Millan <rmh@aybabtu.com>
12413 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
12414 `term/i386/pc/at_keyboard.c'.
12415 (pkglib_MODULES): Add `serial.mod'.
12416 (serial_mod_SOURCES): New variable.
12417 (serial_mod_CFLAGS): Likewise.
12418 (serial_mod_LDFLAGS): Likewise.
12420 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
12421 `<grub/powerpc/ieee1275/console.h>'.
12422 (grub_keyboard_controller_init): New function prototype.
12423 (grub_console_checkkey): Likewise.
12424 (grub_console_getkey): Likewise.
12426 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
12429 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
12430 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
12432 2008-01-23 Robert Millan <rmh@aybabtu.com>
12434 * kern/i386/pc/init.c (make_install_device): When memdisk image is
12435 present, "(memdisk)/boot/grub" becomes the default prefix.
12437 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
12438 a memdisk tarball with all the modules. Add --overlay=DIR option that
12439 allows users to overlay additional files into the image.
12441 2008-01-23 Robert Millan <rmh@aybabtu.com>
12443 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
12444 and `machine/memory.h'.
12445 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
12446 (_multiboot_mod_SOURCES): New variable.
12447 (_multiboot_mod_CFLAGS): Likewise.
12448 (_multiboot_mod_LDFLAGS): Likewise.
12449 (multiboot_mod_SOURCES): Likewise.
12450 (multiboot_mod_CFLAGS): Likewise.
12451 (multiboot_mod_LDFLAGS): Likewise.
12453 * include/grub/i386/ieee1275/loader.h: New file.
12455 * include/grub/i386/ieee1275/machine.h: Likewise.
12457 * include/grub/i386/ieee1275/memory.h: Likewise.
12459 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
12460 variable declaration.
12461 (grub_os_area_size): Likewise.
12463 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
12464 (grub_lower_mem, grub_upper_mem): New variables.
12465 (grub_stop_floppy): New function (just to make
12466 grub_multiboot2_real_boot() happy).
12468 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
12469 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
12470 (grub_stop): New function.
12471 Include `"../realmode.S"' and `"../loader.S"'.
12473 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
12474 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
12476 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
12477 rely on grub_multiboot2_real_boot() for final boot.
12479 2008-01-22 Robert Millan <rmh@aybabtu.com>
12481 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
12482 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
12483 device that doesn't look like an SD card.
12484 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
12485 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
12486 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
12487 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
12490 2008-01-22 Robert Millan <rmh@aybabtu.com>
12492 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
12493 avoid claiming over our own code.
12495 2008-01-22 Bean <bean123ch@gmail.com>
12497 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
12498 (jpeg_mod_SOURCES): New variable.
12499 (jpeg_mod_CFLAGS): Likewise.
12500 (jpeg_mod_LDFLAGS): Likewise.
12502 * video/readers/jpeg.c : New file.
12504 2008-01-22 Bean <bean123ch@gmail.com>
12506 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
12507 there are no more items.
12509 2008-01-21 Robert Millan <rmh@aybabtu.com>
12511 * kern/mm.c (grub_mm_init_region): Improve debug message.
12513 2008-01-21 Robert Millan <rmh@aybabtu.com>
12515 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
12516 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
12518 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
12520 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
12521 Indicates start of upper memory.
12522 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
12523 (generate_image): Abort when image size is big enough to corrupt
12526 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
12527 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
12528 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
12529 instead of hardcoding 0xA0000.
12530 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
12531 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
12532 instead of hardcoding 0xA0000.
12534 2008-01-21 Robert Millan <rmh@aybabtu.com>
12536 * disk/memdisk.c (memdisk_size): New variable.
12537 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
12539 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
12540 image to dynamic memory.
12541 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
12542 `memdisk_size'. Free memdisk block.
12544 2008-01-21 Robert Millan <rmh@aybabtu.com>
12546 Fix detection of very small filesystems (like tar).
12548 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
12549 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
12550 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
12551 a problem with this disk).
12553 2008-01-21 Robert Millan <rmh@aybabtu.com>
12555 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
12556 on grub_biosdisk_rw_standard() error.
12558 2008-01-21 Robert Millan <rmh@aybabtu.com>
12560 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
12562 * kern/elf.c: Likewise.
12563 * kern/ieee1275/ieee1275.c: Likewise.
12564 * kern/powerpc/ieee1275/openfw.c: Likewise.
12565 * term/ieee1275/ofconsole.c: Likewise.
12567 2008-01-21 Robert Millan <rmh@aybabtu.com>
12569 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
12571 * include/grub/kernel.h (grub_arch_memdisk_addr)
12572 (grub_arch_memdisk_size): Moved from here ...
12574 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
12575 (grub_arch_memdisk_size): ... to here.
12577 2008-01-21 Robert Millan <rmh@aybabtu.com>
12579 Mostly based on bugfix from Bean.
12581 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
12582 attribute with hook() parameter.
12583 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
12585 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
12586 attribute with hook() parameter.
12587 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
12590 2008-01-21 Robert Millan <rmh@aybabtu.com>
12592 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
12593 (pkglib_MODULES): Add `memdisk.mod'.
12594 (memdisk_mod_SOURCES): New variable.
12595 (memdisk_mod_CFLAGS): Likewise.
12596 (memdisk_mod_LDFLAGS): Likewise.
12598 * disk/memdisk.c: New file.
12600 * include/grub/disk.h (grub_disk_dev_id): Add
12601 `GRUB_DISK_DEVICE_MEMDISK_ID'.
12603 * include/grub/i386/pc/kernel.h
12604 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
12605 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
12606 (grub_kernel_image_size): New variable declaration.
12607 (grub_total_module_size): Likewise.
12608 (grub_memdisk_image_size): Likewise.
12610 * include/grub/i386/pc/memory.h
12611 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
12613 * include/grub/kernel.h: Include `<grub/symbol.h>'.
12614 (grub_arch_memdisk_addr): New variable declaration.
12615 (grub_arch_memdisk_size): Likewise.
12617 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
12618 (grub_arch_memdisk_size): Likewise.
12620 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
12621 (codestart): Replace hardcoded `0x100000' with
12622 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
12624 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
12625 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
12626 not NULL, append the contents of the file it refers to, at the end of
12627 the compressed kernel image. Initialize `grub_memdisk_image_size'
12628 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
12629 (options): Add "memdisk"|'m' option.
12630 (main): Parse --memdisk|-m option, and pass user-provided path as
12631 parameter to generate_image().
12633 2008-01-20 Robert Millan <rmh@aybabtu.com>
12635 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
12636 grub_dprintf() calls from here ...
12637 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
12639 2008-01-20 Robert Millan <rmh@aybabtu.com>
12641 Fix detection of "real mode" when /options/real-mode? doesn't exist.
12643 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
12645 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
12646 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
12647 `GRUB_IEEE1275_FLAG_REAL_MODE'.
12648 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
12650 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
12651 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
12653 2008-01-19 Robert Millan <rmh@aybabtu.com>
12655 Get rid of confusing function (superseded by
12656 `grub_ieee1275_get_integer_property')
12657 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
12659 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
12661 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
12662 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
12663 in native endianness from grub_ieee1275_get_integer_property().
12665 2008-01-19 Robert Millan <rmh@aybabtu.com>
12667 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
12668 command after "shut-down", since implementations differ on which
12669 the command for halt is.
12671 2008-01-19 Robert Millan <rmh@aybabtu.com>
12673 * include/grub/i386/linuxbios/console.h: Add header protection.
12674 (grub_keyboard_controller_init): New function prototype.
12675 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
12676 (KEYBOARD_COMMAND_READ): Likewise.
12677 (KEYBOARD_COMMAND_WRITE): Likewise.
12678 (KEYBOARD_SCANCODE_SET1): Likewise.
12679 (grub_keyboard_controller_write): New function.
12680 (grub_keyboard_controller_read): Likewise.
12681 (grub_keyboard_controller_init): Likewise.
12683 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
12684 (grub_console_init): On coreboot/LinuxBIOS, call
12685 grub_keyboard_controller_init().
12687 2008-01-19 Robert Millan <rmh@aybabtu.com>
12689 PowerPC changes provided by Pavel Roskin.
12691 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
12692 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
12693 don't rely on cmain() doing it.
12694 * kern/i386/ieee1275/startup.S (_start): Store %eax in
12695 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
12697 2008-01-16 Robert Millan <rmh@aybabtu.com>
12699 * include/grub/i386/linuxbios/memory.h
12700 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
12701 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
12702 receive `table_header' as argument. Instead, probe for it in the
12703 known memory ranges where it can be present.
12704 (grub_available_iterate): Do not pass a fixed `table_header' address
12705 to grub_linuxbios_table_iterate().
12707 2008-01-15 Robert Millan <rmh@aybabtu.com>
12709 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
12710 * conf/i386-ieee1275.rmk: New file.
12711 * include/grub/i386/ieee1275/console.h: Likewise.
12712 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
12713 * include/grub/i386/ieee1275/kernel.h: Likewise.
12714 * include/grub/i386/ieee1275/time.h: Likewise.
12715 * kern/i386/ieee1275/init.c: Likewise.
12716 * kern/i386/ieee1275/startup.S: Likewise.
12718 2008-01-15 Robert Millan <rmh@aybabtu.com>
12720 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
12721 when pointers are 32-bit (but still do set it to one when they are
12724 2008-01-15 Robert Millan <rmh@aybabtu.com>
12726 * include/grub/ieee1275/ieee1275.h
12727 (grub_ieee1275_get_integer_property): New function prototype.
12729 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
12730 (grub_ieee1275_get_integer_property): New function. Wraps around
12731 grub_ieee1275_get_property() to handle endianness.
12733 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
12734 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
12736 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
12737 (grub_map): Likewise.
12738 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
12740 2008-01-15 Bean <bean123ch@gmail.com>
12742 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
12743 (grub_script_execute_cmdline): Reset grub_errno.
12745 * normal/main.c (read_config_file): Reset grub_errno.
12747 * normal/parse.y (script_init): New.
12748 (script): Move function and menuentry here.
12750 (command): Add delimiter at the end of command.
12751 (commands): Adjust to match the new command.
12752 (commandblock): Remove grub_script_lexer_record_start.
12753 (menuentry): Add grub_script_lexer_record_start, use the new commands.
12754 (if): Use the new commands.
12756 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
12758 2008-01-15 Robert Millan <rmh@aybabtu.com>
12760 * normal/menu.c (run_menu): Move timeout message from here ...
12761 (print_timeout): ... to here.
12762 (run_menu): Use print_timeout() once during initial draw to print
12763 the whole message, and again in every clock tick to update only
12764 the number of seconds.
12766 2008-01-15 Robert Millan <rmh@aybabtu.com>
12768 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
12769 actual size of `available' from grub_ieee1275_get_property(), and
12770 restrict parsing to that bound.
12772 2008-01-15 Christian Franke <franke@computer.org>
12774 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
12775 (argp_program_version): Remove variable.
12776 (argp_program_bug_address): Likewise.
12777 (options): Convert from struct argp_option to struct option.
12778 (struct arguments): Remove.
12779 (parse_opt): Remove.
12780 (usage): New function.
12781 (main): Replace struct args members by simple variables.
12782 Replace argp_parse() by getopt_long().
12783 Add switch to evaluate options.
12784 Add missing "(...)" around root_dev in prefix string.
12786 2008-01-14 Robert Millan <rmh@aybabtu.com>
12788 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
12789 for grub_ieee1275_exit(), in order to improve portability.
12791 2008-01-14 Robert Millan <rmh@aybabtu.com>
12793 * util/grub.d/10_linux.in (prefix): Define.
12794 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
12796 2008-01-13 Pavel Roskin <proski@gnu.org>
12798 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
12799 grub_errno if no errors have been detected.
12801 2008-01-12 Robert Millan <rmh@aybabtu.com>
12803 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
12804 (grub_util_get_dev_abstraction): New function prototype.
12806 * util/getroot.c: Include `<grub/util/getroot.h>'
12807 (grub_util_get_grub_dev): Move detection of abstraction type to ...
12808 (grub_util_get_dev_abstraction): ... here (new function).
12810 * util/grub-probe.c: Convert PRINT_* to an enum. Add
12811 `PRINT_ABSTRACTION'.
12812 (probe): Probe for abstraction type when requested.
12813 (main): Understand `--target=abstraction'.
12815 * util/i386/efi/grub-install.in: Add abstraction module to core
12816 image when it is found to be necessary.
12817 * util/i386/pc/grub-install.in: Likewise.
12818 * util/powerpc/ieee1275/grub-install.in: Likewise.
12820 * util/update-grub_lib.in (font_path): Return system path without
12821 converting to GRUB path.
12822 * util/update-grub.in: Convert system path returned by font_path()
12823 to a GRUB path. Use `grub-probe -t abstraction' to determine what
12824 abstraction module is needed for loading fonts (if any). Export
12825 that as `GRUB_PRELOAD_MODULES'.
12826 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
12829 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
12831 Remove some unused code from reiserfs.
12833 * fs/reiserfs.c (struct grub_reiserfs_key)
12834 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
12835 (struct grub_reiserfs_node_body): Removed.
12836 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
12838 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
12840 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
12842 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
12844 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
12846 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
12848 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
12849 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
12850 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
12852 2008-01-10 Robert Millan <rmh@aybabtu.com>
12854 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
12855 Determines if a file is garbage left by packaging systems, etc.
12856 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
12857 for processing /etc/grub.d scripts.
12858 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
12859 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
12860 as a condition for processing Linux images.
12862 2008-01-10 Pavel Roskin <proski@gnu.org>
12864 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
12865 to compile reiserfs.c on PowerPC.
12867 2008-01-10 Robert Millan <rmh@aybabtu.com>
12869 * kern/device.c (grub_device_iterate): Do not abort device iteration
12870 when one of the devices cannot be opened.
12871 * kern/disk.c (grub_disk_open): Do not account previous failures of
12872 unrelated functions when grub_errno is checked for.
12874 2008-01-08 Robert Millan <rmh@aybabtu.com>
12876 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
12877 `! grub_linux_is_bzimage', change order of address comparison to make
12878 it more intuitive, and improve "too big zImage" error message.
12880 2008-01-08 Robert Millan <rmh@aybabtu.com>
12882 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
12883 `$(update-grub_DATA)'.
12884 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
12887 2008-01-07 Robert Millan <rmh@aybabtu.com>
12889 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
12890 which instruction is modified by grub-setup during installation
12891 (since it wasn't obvious by only looking at this file).
12893 2008-01-07 Robert Millan <rmh@aybabtu.com>
12895 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
12896 listing actual TODO items.
12898 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
12900 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
12902 (grub_reiserfs_get_key_offset): Likewise.
12903 (grub_reiserfs_set_key_offset): Likewise.
12904 (grub_reiserfs_set_key_type): Likewise.
12905 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
12907 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
12908 better to remove the bitfield version completely.
12910 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
12912 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
12913 allocated from the heap, due to the fshelp implementation.
12914 (grub_reiserfs_dir): Free NODE, due to the same reason.
12916 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
12918 Mostly from Vincent Pelletier:
12920 * fs/reiserfs.c: New file.
12922 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
12923 (reiserfs_mod_SOURCES): New variable.
12924 (reiserfs_mod_CFLAGS): Likewise.
12925 (reiserfs_mod_LDFLAGS): Likewise.
12927 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
12928 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
12929 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
12932 2008-01-06 Robert Millan <rmh@aybabtu.com>
12934 * normal/color.c: Remove `<grub/env.h>'.
12936 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
12938 * include/grub/normal.h: Include <grub/env.h>.
12940 2008-01-05 Robert Millan <rmh@aybabtu.com>
12942 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
12943 usage example with `(hd0,1)'.
12944 Reported by Samuel Thibault.
12946 2008-01-05 Robert Millan <rmh@aybabtu.com>
12948 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
12949 (grub_linux_boot_zimage): Rename to ...
12950 (grub_linux_boot): ... this.
12951 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
12952 (grub_linux_boot_zimage): Conditionalize zImage copy.
12954 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
12955 (grub_linux_boot_bzimage): Remove prototype.
12956 (grub_linux_boot_zimage): Rename to ...
12957 (grub_linux_boot): ... this.
12959 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
12960 (grub_linux_boot): Remove function.
12962 2008-01-05 Robert Millan <rmh@aybabtu.com>
12964 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
12965 (grub_env_write_color_highlight): Likewise.
12966 (grub_wait_after_message): Likewise.
12968 * normal/color.c: New file.
12970 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
12971 (normal_mod_DEPENDENCIES): Likewise.
12973 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
12974 (normal_mod_DEPENDENCIES): Likewise.
12976 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
12977 (normal_mod_DEPENDENCIES): Likewise.
12979 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
12980 (normal_mod_DEPENDENCIES): Likewise.
12982 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
12983 for waiting after a message is printed.
12984 * normal/main.c (read_config_file): Likewise.
12985 (grub_normal_init): Register grub_env_write_color_normal() and
12986 grub_env_write_color_highlight() hooks. Mark `color_normal' and
12987 `color_highlight' variables as global.
12989 * normal/menu.c (grub_wait_after_message): New function.
12990 (grub_color_menu_normal): New variable. Replaces ...
12991 (GRUB_COLOR_MENU_NORMAL): ... this macro.
12992 (grub_color_menu_highlight): New variable. Replaces ...
12993 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
12994 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
12995 `GRUB_TERM_COLOR_STANDARD'.
12996 (print_message): Use `grub_setcolorstate' to reload colors. Rename
12997 `normal_code' and `highlight_code' to `old_color_normal' and
12998 `old_color_highlight', respectively.
12999 (grub_menu_init_page): Update colors when drawing the menu, based on
13000 `menu_color_normal' and `menu_color_highlight' variables.
13001 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
13002 a message is printed.
13004 2008-01-05 Robert Millan <rmh@aybabtu.com>
13006 * kern/env.c (grub_env_context_open): Propagate hooks for global
13007 variables to new context.
13009 * kern/main.c (grub_set_root_dev): Export `root' variable.
13011 2008-01-05 Robert Millan <rmh@aybabtu.com>
13013 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
13014 discs unconditionally, since udev and others have options to provide
13017 2008-01-05 Robert Millan <rmh@aybabtu.com>
13019 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
13021 2008-01-04 Christian Franke <franke@computer.org>
13023 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
13026 2008-01-03 Pavel Roskin <proski@gnu.org>
13028 * kern/i386/linuxbios/init.c: Put "void" to all function
13029 declarations with no arguments.
13030 * kern/powerpc/ieee1275/init.c: Likewise.
13031 * term/i386/pc/at_keyboard.c: Likewise.
13032 * term/i386/pc/vga_text.c: Likewise.
13033 * util/grub-mkdevicemap.c: Likewise.
13035 2008-01-02 Robert Millan <rmh@aybabtu.com>
13037 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
13038 message when loaded image is out of bounds.
13039 (grub_multiboot_load_elf64): Likewise.
13041 2008-01-02 Pavel Roskin <proski@gnu.org>
13043 * util/grub.d/10_linux.in: Try version without ".old" when
13044 looking for initrd. It's better to use initrd from the newer
13045 kernel of the same version than no initrd at all.
13047 2008-01-01 Robert Millan <rmh@aybabtu.com>
13049 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
13051 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
13053 * include/grub/video.h: Added grub_video_unmap_color and
13054 grub_video_get_active_render_target.
13055 (grub_video_adapter): Added unmap_color and get_active_render_target.
13057 * video/video.c: Added grub_video_unmap_color and
13058 grub_video_get_active_render_target.
13059 (grub_video_get_info): Changed method to accept NULL pointer as an
13060 argument to allow detection of active video adapter.
13062 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
13063 grub_video_vbe_unmap_color_int.
13064 Added grub_video_vbe_unmap_color and
13065 grub_video_vbe_get_active_render_target.
13066 (grub_video_vbe_adapter): Added unmap_color and
13067 get_active_render_target.
13069 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
13070 with grub_video_vbe_unmap_color_int.
13072 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
13073 (DEFAULT_NORMAL_COLOR): Likewise.
13074 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
13075 (DEFAULT_FG_COLOR): Removed.
13076 (DEFAULT_BG_COLOR): Likewise.
13077 (DEFAULT_CURSOR_COLOR): Changed value.
13078 (grub_virtual_screen): Added standard_color_setting,
13079 normal_color_setting, highlight_color_setting and term_color.
13080 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
13081 (bitmap_width): Added.
13082 (bitmap_height): Likewise.
13083 (bitmap): Likewise.
13084 (set_term_color): Likewise.
13085 (grub_virtual_screen_setup): Changed to use new terminal coloring
13087 (grub_gfxterm_init): Added init for bitmap.
13088 (grub_gfxterm_fini): Added destroy for bitmap.
13089 (redraw_screen_rect): Updated to use background bitmap and new
13091 (scroll_up): Added optimization for case when there is no bitmap.
13092 (grub_gfxterm_cls): Fixed to use correct background color.
13093 (grub_virtual_screen_setcolorstate): Changed to use new terminal
13095 (grub_virtual_screen_setcolor): Likewise.
13096 (grub_virtual_screen_getcolor): Added.
13097 (grub_gfxterm_background_image_cmd): Likewise.
13098 (grub_video_term): Added setcolor and getcolor.
13099 (MOD_INIT): Added registration of background_image command.
13100 (MOD_TERM): Added unregistration for background_image command.
13102 2007-12-30 Pavel Roskin <proski@gnu.org>
13104 * loader/multiboot_loader.c: Fix multiboot command
13105 unregistration. Fix all typos in the word "multiboot".
13107 2007-12-29 Pavel Roskin <proski@gnu.org>
13109 * util/grub.d/10_linux.in: Refactor search for initrd. Add
13110 support for initrd names used in Fedora.
13112 2007-12-26 Bean <bean123ch@gmail.com>
13114 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
13115 (cpio_mod_SOURCES): New variable.
13116 (cpio_mod_CFLAGS): Likewise.
13117 (cpio_mod_LDFLAGS): Likewise.
13119 * fs/cpio.c: New file.
13121 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
13123 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13125 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
13127 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13129 2007-12-25 Robert Millan <rmh@aybabtu.com>
13131 * include/grub/term.h (struct grub_term): Add `getcolor' function.
13132 (grub_getcolor): New function.
13134 * kern/term.c (grub_getcolor): New function.
13135 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
13136 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
13137 (print_entry): Set normal and highlight colors to
13138 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
13139 respectively, before printing and restore them to old
13141 (grub_menu_init_page): Likewise. Fill an additional colored space
13142 that would otherwise be left blank.
13144 * term/efi/console.c (grub_console_getcolor): New function.
13145 (struct grub_console_term.getcolor): New variable.
13146 * term/i386/pc/console.c (grub_console_getcolor): New function.
13147 (struct grub_console_term.getcolor): New variable.
13148 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
13149 (struct grub_console_term.getcolor): New variable.
13151 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
13152 (struct grub_console_term.setcolor): Remove variable.
13153 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
13154 (struct grub_console_term.setcolor): Remove variable.
13155 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
13156 (struct grub_console_term.setcolor): Remove variable.
13157 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
13158 (struct grub_console_term.setcolor): Remove variable.
13160 2007-12-25 Robert Millan <rmh@aybabtu.com>
13162 * configure.ac: Search for possible unifont.hex locations, and
13163 define UNIFONT_HEX if found.
13165 * Makefile.in (UNIFONT_HEX): Define variable.
13166 (DATA): Rename to ...
13167 (PKGLIB): ... this. Update all users.
13168 (PKGDATA): New variable.
13169 (pkgdata_IMAGES): Rename to ...
13170 (pkglib_IMAGES): ... this. Update all users.
13171 (pkgdata_MODULES): Rename to ...
13172 (pkglib_MODULES): ... this. Update all users.
13173 (pkgdata_PROGRAMS): Rename to ...
13174 (pkglib_PROGRAMS): ... this. Update all users.
13175 (pkgdata_DATA): Rename to ...
13176 (pkglib_DATA): ... this. Update all users.
13177 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
13178 (unicode.pff, ascii.pff): New rules.
13179 (all-local): Add `$(PKGDATA)' dependency.
13180 (install-local): Process `$(PKGDATA)'.
13182 * util/update-grub_lib.in (font_path): Search for *.pff files in
13183 a few more locations, including `${pkgdata}'.
13185 2007-12-23 Robert Millan <rmh@aybabtu.com>
13187 Patch from Bean <bean123ch@gmail.com>:
13188 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
13191 2007-12-21 Bean <bean123ch@gmail.com>
13193 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
13194 (ntfscomp_mod_SOURCES): New variable.
13195 (ntfscomp_mod_CFLAGS): Likewise.
13196 (ntfscomp_mod_LDFLAGS): Likewise.
13198 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
13199 (grub_probe_SOURCES): Likewise.
13200 (grub_emu_SOURCES): Likewise.
13202 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
13203 (grub_emu_SOURCES): Likewise.
13205 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
13206 (grub_emu_SOURCES): Likewise.
13208 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
13209 (grub_emu_SOURCES): Likewise.
13211 * fs/ntfs.c (grub_ntfscomp_func): New variable.
13212 (read_run_list): Renamed to grub_ntfs_read_run_list.
13213 (decomp_nextvcn): Moved to ntfscomp.c.
13214 (decomp_getch): Likewise.
13215 (decomp_get16): Likewise.
13216 (decomp_block): Likewise.
13217 (read_block): Likewise.
13218 (read_data): Partially moved to ntfscomp.c.
13219 (fixup): Change unsigned to grub_uint16_t.
13220 (read_mft): Change unsigned long to grub_uint32_t.
13221 (read_attr): Likewise.
13222 (read_data): Likewise.
13223 (read_run_data): Likewise.
13224 (read_run_list): Likewise.
13225 (read_mft): Likewise.
13227 * fs/ntfscomp.c: New file.
13229 * include/grub/ntfs.h: New file.
13231 2007-12-16 Robert Millan <rmh@aybabtu.com>
13233 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
13234 IDE disk check, since Linux is known to support 20 IDE disks.
13235 Reported by Colin Watson.
13237 2007-12-15 Bean <bean123ch@gmail.com>
13239 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
13240 (lnxboot_img_SOURCES): New variable.
13241 (lnxboot_img_ASFLAGS): Likewise.
13242 (lnxboot_img_LDFLAGS): Likewise.
13244 * boot/i386/pc/lnxboot.S: New file.
13246 2007-11-24 Pavel Roskin <proski@gnu.org>
13248 * configure.ac: Test if '--build-id=none' is supported by the
13249 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
13250 objcopy to generate incorrect binary files (binutils
13251 2.17.50.0.18-1 as shipped by Fedora 8).
13252 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
13253 linking, so that build ID doesn't break the test.
13255 2007-11-24 Pavel Roskin <proski@gnu.org>
13257 * include/grub/i386/time.h: use "void" in the argument list
13258 of grub_cpu_idle().
13259 * include/grub/powerpc/time.h: Likewise.
13260 * include/grub/sparc64/time.h: Likewise.
13262 2007-11-18 Christian Franke <franke@computer.org>
13264 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
13265 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
13266 This fixes the problem that function keys did not work in grub-emu.
13268 2007-11-18 Christian Franke <franke@computer.org>
13270 * disk/host.c (grub_host_open): Remove attribute unused from
13271 name parameter. Add check for "host". This fixes the problem
13272 that grub-emu does not find partitions.
13274 2007-11-18 Christian Franke <franke@computer.org>
13276 * util/hostfs.c (is_dir): New function.
13277 (grub_hostfs_dir): Handle missing dirent.d_type case.
13278 (grub_hostfs_read): Add missing fseek().
13279 (grub_hostfs_label): Clear label pointer. This fixes a crash
13280 of grub-emu on "ls (host)".
13282 2007-11-18 Christian Franke <franke@computer.org>
13284 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
13285 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
13286 to 64 bit boundary by default.
13288 2007-11-18 Bean <bean123ch@gmail.com>
13290 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
13291 (hexdump_mod_SOURCES): New variable.
13292 (hexdump_mod_CFLAGS): Likewise.
13293 (hexdump_mod_LDFLAGS): Likewise.
13295 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
13297 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
13299 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
13301 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
13303 * include/grub/hexdump.h: New file.
13305 * commands/hexdump.c: New file.
13307 2007-11-10 Robert Millan <rmh@aybabtu.com>
13309 * commands/i386/pc/play.c (beep_off): Switch order of arguments
13310 in grub_outb() calls.
13311 (beep_on): Likewise.
13313 2007-11-10 Christian Franke <franke@computer.org>
13315 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
13316 (grub_menu_run): Likewise.
13318 2007-11-10 Robert Millan <rmh@aybabtu.com>
13320 * include/grub/i386/efi/machine.h: New file.
13321 * include/grub/i386/linuxbios/machine.h: Likewise.
13322 * include/grub/i386/pc/machine.h: Likewise.
13323 * include/grub/powerpc/ieee1275/machine.h: Likewise.
13324 * include/grub/sparc64/ieee1275/machine.h: Likewise.
13326 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
13327 (serial_hw_io_addr): New variable.
13328 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
13329 instead of `(unsigned short *) 0x400'.
13331 2007-11-10 Bean <bean123ch@gmail.com>
13333 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
13335 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
13337 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
13338 (vga_mod_SOURCES): Added.
13339 (vga_mod_CFLAGS): Likewise.
13340 (vga_mod_LDFLAGS): Likewise.
13342 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
13344 (set_map_mask): Likewise.
13345 (set_read_map): Likewise.
13346 (set_read_address): Likewise.
13347 (vga_font): Removed variable.
13348 (get_vga_glyph): Removed function.
13349 (invalidate_char): Likewise.
13350 (write_char): Changed to use grub_font_get_glyph() for font
13352 (grub_vga_putchar): Likewise.
13353 (grub_vga_getcharwidth): Likewise.
13355 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
13357 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
13359 (pxeboot_img_LDFLAGS): Likewise.
13360 (diskboot_img_LDFLAGS): Likewise.
13361 (kernel_img_LDFLAGS): Likewise.
13363 2007-11-06 Robert Millan <rmh@aybabtu.com>
13365 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
13366 in grub_outb() calls.
13367 (serial_hw_init): Likewise.
13369 2007-11-05 Robert Millan <rmh@aybabtu.com>
13371 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
13372 spaces. Skip non-regular files.
13374 2007-11-05 Robert Millan <rmh@aybabtu.com>
13376 * kern/disk.c (grub_disk_firmware_fini)
13377 (grub_disk_firmware_is_tainted): New variables.
13379 * include/grub/disk.h (grub_disk_firmware_fini)
13380 (grub_disk_firmware_is_tainted): Likewise.
13382 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
13383 (grub_disk_biosdisk_fini): ... to here.
13384 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
13385 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
13386 is set. Register grub_disk_biosdisk_fini() in
13387 `grub_disk_firmware_fini'.
13389 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
13390 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
13391 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
13392 to finish existing firmware disk interface.
13394 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
13395 (ata_mod_SOURCES): New variable.
13396 (ata_mod_CFLAGS): Likewise.
13397 (ata_mod_LDFLAGS): Likewise.
13399 2007-11-05 Robert Millan <rmh@aybabtu.com>
13401 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
13402 (grub_ata_wait): Reimplement using grub_millisleep().
13404 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
13405 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
13407 2007-11-03 Marco Gerards <marco@gnu.org>
13409 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
13410 (CRTC_ADDR_PORT): New macro.
13411 (CRTC_DATA_PORT): Likewise.
13412 (CRTC_CURSOR): Likewise.
13413 (CRTC_CURSOR_ADDR_HIGH): Likewise.
13414 (CRTC_CURSOR_ADDR_LOW): Likewise.
13415 (update_cursor): New function.
13416 (grub_console_real_putchar): Call `update_cursor'.
13417 (grub_console_gotoxy): Likewise.
13418 (grub_console_cls): Set the default color when clearing the
13420 (grub_console_setcursor): Implemented.
13422 2007-11-03 Marco Gerards <marco@gnu.org>
13424 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
13426 (grub_ata_pio_write): Likewise.
13428 (grub_atapi_identify): Wait after issuing an ATA command.
13429 (grub_atapi_packet): Likewise.
13430 (grub_ata_identify): Likewise.
13431 (grub_ata_readwrite): Likewise.
13433 2007-11-03 Marco Gerards <marco@gnu.org>
13435 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
13436 (grub_ata_pio_write): Likewise.
13437 (grub_ata_readwrite): Use `grub_error', instead of
13438 returning `grub_errno'.
13440 2007-11-03 Marco Gerards <marco@gnu.org>
13442 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
13443 grub_ata_pio_write once for every single sector, instead of for
13446 2007-10-31 Robert Millan <rmh@aybabtu.com>
13448 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
13450 * conf/i386-linuxbios.rmk: New file.
13452 * kern/i386/pc/hardware.c: Likewise.
13453 * term/i386/pc/at_keyboard.c: Likewise.
13454 * term/i386/pc/vga_text.c: Likewise.
13456 * include/grub/i386/linuxbios/boot.h: Likewise.
13457 * include/grub/i386/linuxbios/console.h: Likewise.
13458 * include/grub/i386/linuxbios/init.h: Likewise.
13459 * include/grub/i386/linuxbios/kernel.h: Likewise.
13460 * include/grub/i386/linuxbios/loader.h: Likewise.
13461 * include/grub/i386/linuxbios/memory.h: Likewise.
13462 * include/grub/i386/linuxbios/serial.h: Likewise.
13463 * include/grub/i386/linuxbios/time.h: Likewise.
13465 * kern/i386/linuxbios/init.c: Likewise.
13466 * kern/i386/linuxbios/startup.S: Likewise.
13467 * kern/i386/linuxbios/table.c: Likewise.
13469 2007-10-31 Marco Gerards <marco@gnu.org>
13471 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
13472 (ata_mod_SOURCES): New variable.
13473 (ata_mod_CFLAGS): Likewise.
13474 (ata_mod_LDFLAGS): Likewise.
13476 * disk/ata.c: New file.
13478 * include/grub/disk.h (grub_disk_dev_id): Add
13479 `GRUB_DISK_DEV_ATA_ID'.
13481 2007-10-31 Robert Millan <rmh@aybabtu.com>
13483 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
13484 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
13486 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
13487 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
13489 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
13492 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
13494 2007-10-27 Robert Millan <rmh@aybabtu.com>
13496 * include/grub/types.h (ULONG_MAX): Define macro.
13498 2007-10-22 Robert Millan <rmh@aybabtu.com>
13500 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
13502 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
13504 2007-10-22 Robert Millan <rmh@aybabtu.com>
13506 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
13507 (pkgdata_MODULES): Add `biosdisk.mod'.
13508 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
13511 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
13512 (grub_biosdisk_init): Replace with ...
13513 (GRUB_MOD_INIT(biosdisk)): ... this.
13514 (grub_biosdisk_fini): Replace with ...
13515 (GRUB_MOD_FINI(biosdisk)): ... this.
13517 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
13518 (grub_machine_init): Remove call to grub_biosdisk_init().
13519 (grub_machine_fini): Remove call to grub_machine_fini().
13521 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
13523 2007-10-22 Robert Millan <rmh@aybabtu.com>
13525 * include/grub/time.h: New file.
13526 * include/grub/i386/time.h: Likewise.
13527 * include/grub/powerpc/time.h: Likewise.
13528 * include/grub/sparc64/time.h: Likewise.
13530 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
13532 (KERNEL_MACHINE_TIME_HEADER): ... this.
13533 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
13535 (KERNEL_MACHINE_TIME_HEADER): ... this.
13536 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
13538 (KERNEL_MACHINE_TIME_HEADER): ... this.
13540 * kern/i386/efi/init.c: Include `<grub/time.h>'.
13541 (grub_millisleep): New function.
13542 * kern/i386/pc/init.c: Include `<grub/time.h>'.
13543 (grub_millisleep): New function.
13544 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
13545 Remove `grub/machine/time.h' include.
13546 (grub_millisleep): New function.
13547 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
13548 Remove `grub/machine/time.h' include.
13549 (grub_millisleep): New function.
13551 * include/grub/misc.h (grub_div_roundup): New function.
13553 * kern/misc.c: Include `<grub/time.h>'.
13554 (grub_millisleep_generic): New function.
13556 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
13558 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
13560 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
13561 `machine/time.h'. Add `time.h'.
13562 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13564 2007-10-21 Robert Millan <rmh@aybabtu.com>
13566 * include/grub/misc.h (grub_max): New function.
13568 2007-10-21 Robert Millan <rmh@aybabtu.com>
13570 * util/misc.c (grub_util_info): Call fflush() before returning.
13572 2007-10-20 Robert Millan <rmh@aybabtu.com>
13574 * genmk.rb (Image): Copy `extra_flags' from here ...
13575 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
13577 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
13578 to `argc' and `args' arguments.
13580 2007-10-17 Robert Millan <rmh@aybabtu.com>
13582 * kern/i386/loader.S: New file.
13584 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
13585 * kern/i386/loader.S (grub_linux_prot_size)... to here.
13586 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
13587 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
13588 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
13589 * kern/i386/loader.S (grub_linux_real_addr)... to here.
13590 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
13591 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
13592 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
13593 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
13594 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
13595 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
13596 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
13597 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
13599 * kern/i386/realmode.S: New file.
13601 * kern/i386/pc/startup.S (protstack): Moved from here ...
13602 * kern/i386/realmode.S (protstack)... to here.
13603 * kern/i386/pc/startup.S (gdt): Moved from here ...
13604 * kern/i386/realmode.S (gdt)... to here.
13605 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
13606 * kern/i386/realmode.S (prot_to_real)... to here.
13608 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
13609 `kern/i386/realmode.S'.
13611 2007-10-17 Robert Millan <rmh@aybabtu.com>
13613 * include/grub/i386/loader.h: New file.
13615 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
13616 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
13617 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
13618 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
13619 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
13620 * include/grub/i386/loader.h (grub_linux_prot_size)
13621 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
13622 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
13623 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
13624 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
13626 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
13628 2007-10-15 Robert Millan <rmh@aybabtu.com>
13630 * normal/misc.c (grub_normal_print_device_info): Do not probe for
13631 filesystem when dev->disk is unset.
13632 Do probe for filesystem even when dev->disk->has_partitions is set.
13633 In case a filesystem is found, always report it.
13634 In case it isn't, if dev->disk->has_partitions is set, report that
13635 a partition table was found instead of reporting that no filesystem
13636 could be identified.
13638 2007-10-12 Robert Millan <rmh@aybabtu.com>
13640 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
13641 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
13643 * include/grub/types.h (grub_host_to_target16): New macro.
13644 (grub_host_to_target32): Likewise.
13645 (grub_host_to_target64): Likewise.
13646 (grub_target_to_host16): Likewise.
13647 (grub_target_to_host32): Likewise.
13648 (grub_target_to_host64): Likewise.
13650 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
13651 Renamed from to ...
13652 (GRUB_MOD_ALIGN): ...this. Update all users.
13654 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
13655 grub_host_to_target32.
13656 Replace grub_be_to_cpu32 with grub_target_to_host32.
13657 (load_modules): Likewise.
13658 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
13659 Replace grub_be_to_cpu32 with grub_target_to_host32.
13660 Replace grub_cpu_to_be16 with grub_host_to_target16.
13661 Replace grub_cpu_to_be32 grub_host_to_target32.
13663 2007-10-12 Robert Millan <rmh@aybabtu.com>
13665 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
13666 * util/elf/grub-mkimage.c: ... here.
13668 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
13669 `util/powerpc/ieee1275/grub-mkimage.c'.
13671 2007-10-07 Robert Millan <rmh@aybabtu.com>
13673 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
13674 and make it easier to figure out.
13675 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
13676 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
13677 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
13678 leave us with less than HEAP_MIN_SIZE total heap.
13679 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
13681 2007-10-03 Robert Millan <rmh@aybabtu.com>
13683 * include/grub/i386/io.h: New file.
13684 * commands/i386/pc/play.c (inb): Removed.
13686 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
13688 * term/i386/pc/serial.c (inb): Removed.
13690 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
13692 * term/i386/pc/vga.c (inb): Removed.
13694 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
13697 2007-10-02 Robert Millan <rmh@aybabtu.com>
13699 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
13700 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13701 Reported by Marcin Kurek.
13703 2007-09-07 Robert Millan <rmh@aybabtu.com>
13705 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
13706 SmartFirmware version updates (as released by Sven Luther), and avoid
13707 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
13708 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
13711 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
13713 From Hitoshi Ozeki:
13714 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
13715 when merging two regions.
13717 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
13719 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
13720 * normal/completion.c (grub_normal_do_completion): Likewise.
13721 Reported by Hitoshi Ozeki.
13723 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
13725 Do not use devices at boot in chainloading.
13727 * loader/i386/pc/chainloader.c (boot_drive): New variable.
13728 (boot_part_addr): Likewise.
13729 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
13730 with BOOT_DRIVE and BOOT_PART_ADDR.
13731 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
13732 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
13734 2007-08-29 Robert Millan <rmh@aybabtu.com>
13736 Patch from Simon Peter <dn.tlp@gmx.net>:
13737 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
13738 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
13739 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
13740 util/i386/pc/grub-setup.c_DEPENDENCIES.
13741 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
13742 util/grub-probe.c_DEPENDENCIES.
13743 * conf/powerpc-ieee1275.rmk: Likewise.
13745 2007-08-28 Robert Millan <rmh@aybabtu.com>
13747 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
13748 to tell grub-mkdevicemap how to name devices.
13749 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
13752 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
13753 util/i386/get_disk_name.c.
13754 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
13755 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
13756 util/ieee1275/get_disk_name.c.
13758 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
13760 * DISTLIST: Add util/i386/get_disk_name.c and
13761 util/ieee1275/get_disk_name.c.
13763 * util/grub-mkdevicemap.c: Replace device naming logic with
13764 grub_util_get_disk_name() calls.
13766 2007-08-20 Robert Millan <rmh@aybabtu.com>
13768 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
13769 (so that it works for both plural and singular quantities).
13771 2007-08-05 Robert Millan <rmh@aybabtu.com>
13773 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
13774 so that [xz] isn't taken into account when determining order.
13776 2007-08-02 Marco Gerards <marco@gnu.org>
13778 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
13779 `include/multiboot2.h', `include/grub/elfload.h',
13780 `include/multiboot.h', `include/grub/multiboot.h',
13781 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
13782 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
13783 `kern/elf.c', `loader/multiboot_loader.c',
13784 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
13785 `loader/i386/pc/multiboot2.c',
13786 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
13787 `util/i386/pc/grub-mkrescue.in'. Remove
13788 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
13789 `include/grub/i386/pc/util/biosdisk.h' and
13790 `include/grub/powerpc/ieee1275/multiboot.h'.
13792 2007-08-02 Bean <bean123ch@gmail.com>
13794 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
13795 (ntfs_mod_SOURCES): New variable.
13796 (ntfs_mod_CFLAGS): Likewise.
13797 (ntfs_mod_LDFLAGS): Likewise.
13799 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
13800 (grub_probe_SOURCES): Likewise.
13801 (grub_emu_SOURCES): Likewise.
13803 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
13804 (grub_emu_SOURCES): Likewise.
13806 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
13807 (grub_emu_SOURCES): Likewise.
13809 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
13811 * fs/ntfs.c: New file.
13813 2007-08-02 Bean <bean123ch@gmail.com>
13815 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
13817 * file.h (grub_file): Likewise.
13819 * fshelp.h (grub_fshelp_read_file): Likewise.
13821 * util/i386/pc/grub-setup.c (setup): Likewise.
13822 (save_first_sector): Likewise.
13823 (save_blocklists): Likewise.
13825 * fs/affs.c (grub_affs_read_file): Likewise.
13827 * fs/ext2.c (grub_ext2_read_file): Likewise.
13829 * fs/fat.c (grub_fat_read_data): Likewise.
13831 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
13833 * fs/hfs.c (grub_hfs_read_file): Likewise.
13835 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
13837 * fs/jfs.c (grub_jfs_read_file): Likewise.
13839 * fs/minix.c (grub_minix_read_file): Likewise.
13841 * fs/sfs.c (grub_sfs_read_file): Likewise.
13843 * fs/ufs.c (grub_ufs_read_file): Likewise.
13845 * fs/xfs.c (grub_xfs_read_file): Likewise.
13847 * command/blocklist.c (read_blocklist): Likewise.
13848 (print_blocklist): Likewise.
13850 2007-08-02 Marco Gerards <marco@gnu.org>
13852 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
13855 * disk/host.c: New file.
13857 * util/hostfs.c: Likewise.
13859 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
13860 return `GRUB_ERR_BAD_FS'.
13861 * fs/sfs.c (grub_sfs_mount): Likewise.
13862 * fs/xfs.c (grub_xfs_mount): Likewise.
13864 * include/grub/disk.h (enum grub_disk_dev_id): Add
13865 `GRUB_DISK_DEVICE_HOST_ID'.
13867 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
13869 2007-07-24 Jerone Young <jerone@gmail.com>
13871 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
13872 modules for compilation.
13873 * conf/powerpc-ieee1275.rmk: Likewise.
13875 * include/multiboot.h: Move multiboot definitions to one file. Rename
13876 many definitions to not get grub specific.
13877 * include/multiboot2.h: Create header with multiboot 2 definitions.
13878 * include/grub/multiboot.h: Header for grub specific function
13879 prototypes and definitions.
13880 * include/grub/multiboot2.h: Likewise.
13881 * include/grub/multiboot_loader.h: Likewise.
13882 * include/grub/i386/pc/multiboot.h: Removed.
13883 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
13885 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
13886 and 2 to allow for one multiboot and module commands.
13887 * loader/multiboot2.c: Add multiboot2 functionality.
13888 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
13889 and definition names.
13890 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
13892 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
13893 ieee1275 specific multiboot2 code.
13895 * kern/i386/pc/startup.S: Change headers and definition names for
13896 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
13898 2007-07-22 Robert Millan <rmh@aybabtu.com>
13900 * geninitheader.sh: Process file specified in first parameter rather
13901 than hardcoding grub_modules_init.lst.
13902 * geninit.sh: Likewise. Also, construct header name dynamically rather
13903 than hardcoding grub_modules_init.h.
13905 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
13906 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
13907 grub_probe_init.[ch] and grub_setup_init.[ch].
13909 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
13910 grub_modules_init.h with grub_emu_init.h.
13911 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
13912 grub_probe_init.[ch] files.
13913 * conf/i386-efi.rmk: Likewise.
13914 * conf/i386-pc.rmk: Likewise.
13915 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
13916 grub_setup_init.[ch] files.
13918 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
13919 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
13920 to initialize modules rather than a list of hardcoded functions.
13921 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
13922 grub_init_all() to initialize modules rather than a list of hardcoded
13925 2007-07-22 Robert Millan <rmh@aybabtu.com>
13927 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13928 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
13930 2007-07-22 Robert Millan <rmh@aybabtu.com>
13932 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
13933 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
13934 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
13935 flag when running on SmartFirmware.
13936 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
13937 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
13940 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13941 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
13942 rather than decreasing it.
13944 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
13945 there's not enough space to do it, fail in the same way as when it
13946 can't be done because there are no partitions.
13948 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
13949 when nvsetenv failed.
13951 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
13953 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
13954 because this rule is automatically generated.
13955 (grub-mkrescue): Removed for the same reason as above.
13957 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
13959 Migrate to GNU General Public License Version 3.
13961 * COPYING: Replaced with the plain text version of GPLv3.
13963 * config.guess: Updated from gnulib.
13964 * config.sub: Likewise.
13966 * geninit.sh: Output a GPLv3 copyright notice.
13967 * geninitheader.sh: Likewise.
13968 * genmodsrc.sh: Likewise.
13969 * gensymlist.sh.in: Likewise.
13971 * boot/i386/pc/boot.S: Upgraded to GPLv3.
13972 * boot/i386/pc/diskboot.S: Likewise.
13973 * boot/i386/pc/pxeboot.S: Likewise.
13974 * commands/blocklist.c: Likewise.
13975 * commands/boot.c: Likewise.
13976 * commands/cat.c: Likewise.
13977 * commands/cmp.c: Likewise.
13978 * commands/configfile.c: Likewise.
13979 * commands/echo.c: Likewise.
13980 * commands/help.c: Likewise.
13981 * commands/ls.c: Likewise.
13982 * commands/search.c: Likewise.
13983 * commands/terminal.c: Likewise.
13984 * commands/test.c: Likewise.
13985 * commands/videotest.c: Likewise.
13986 * commands/i386/cpuid.c: Likewise.
13987 * commands/i386/pc/halt.c: Likewise.
13988 * commands/i386/pc/play.c: Likewise.
13989 * commands/i386/pc/reboot.c: Likewise.
13990 * commands/i386/pc/vbeinfo.c: Likewise.
13991 * commands/i386/pc/vbetest.c: Likewise.
13992 * commands/ieee1275/halt.c: Likewise.
13993 * commands/ieee1275/reboot.c: Likewise.
13994 * commands/ieee1275/suspend.c: Likewise.
13995 * disk/loopback.c: Likewise.
13996 * disk/lvm.c: Likewise.
13997 * disk/raid.c: Likewise.
13998 * disk/efi/efidisk.c: Likewise.
13999 * disk/i386/pc/biosdisk.c: Likewise.
14000 * disk/ieee1275/ofdisk.c: Likewise.
14001 * font/manager.c: Likewise.
14002 * fs/affs.c: Likewise.
14003 * fs/ext2.c: Likewise.
14004 * fs/fat.c: Likewise.
14005 * fs/fshelp.c: Likewise.
14006 * fs/hfs.c: Likewise.
14007 * fs/hfsplus.c: Likewise.
14008 * fs/iso9660.c: Likewise.
14009 * fs/jfs.c: Likewise.
14010 * fs/minix.c: Likewise.
14011 * fs/sfs.c: Likewise.
14012 * fs/ufs.c: Likewise.
14013 * fs/xfs.c: Likewise.
14014 * hello/hello.c: Likewise.
14015 * include/grub/acorn_filecore.h: Likewise.
14016 * include/grub/arg.h: Likewise.
14017 * include/grub/bitmap.h: Likewise.
14018 * include/grub/boot.h: Likewise.
14019 * include/grub/cache.h: Likewise.
14020 * include/grub/device.h: Likewise.
14021 * include/grub/disk.h: Likewise.
14022 * include/grub/dl.h: Likewise.
14023 * include/grub/elfload.h: Likewise.
14024 * include/grub/env.h: Likewise.
14025 * include/grub/err.h: Likewise.
14026 * include/grub/file.h: Likewise.
14027 * include/grub/font.h: Likewise.
14028 * include/grub/fs.h: Likewise.
14029 * include/grub/fshelp.h: Likewise.
14030 * include/grub/gzio.h: Likewise.
14031 * include/grub/hfs.h: Likewise.
14032 * include/grub/kernel.h: Likewise.
14033 * include/grub/loader.h: Likewise.
14034 * include/grub/lvm.h: Likewise.
14035 * include/grub/misc.h: Likewise.
14036 * include/grub/mm.h: Likewise.
14037 * include/grub/net.h: Likewise.
14038 * include/grub/normal.h: Likewise.
14039 * include/grub/parser.h: Likewise.
14040 * include/grub/partition.h: Likewise.
14041 * include/grub/pc_partition.h: Likewise.
14042 * include/grub/raid.h: Likewise.
14043 * include/grub/rescue.h: Likewise.
14044 * include/grub/script.h: Likewise.
14045 * include/grub/setjmp.h: Likewise.
14046 * include/grub/symbol.h: Likewise.
14047 * include/grub/term.h: Likewise.
14048 * include/grub/terminfo.h: Likewise.
14049 * include/grub/tparm.h: Likewise.
14050 * include/grub/types.h: Likewise.
14051 * include/grub/video.h: Likewise.
14052 * include/grub/efi/api.h: Likewise.
14053 * include/grub/efi/chainloader.h: Likewise.
14054 * include/grub/efi/console.h: Likewise.
14055 * include/grub/efi/console_control.h: Likewise.
14056 * include/grub/efi/disk.h: Likewise.
14057 * include/grub/efi/efi.h: Likewise.
14058 * include/grub/efi/pe32.h: Likewise.
14059 * include/grub/efi/time.h: Likewise.
14060 * include/grub/i386/linux.h: Likewise.
14061 * include/grub/i386/setjmp.h: Likewise.
14062 * include/grub/i386/types.h: Likewise.
14063 * include/grub/i386/efi/kernel.h: Likewise.
14064 * include/grub/i386/efi/loader.h: Likewise.
14065 * include/grub/i386/efi/time.h: Likewise.
14066 * include/grub/i386/pc/biosdisk.h: Likewise.
14067 * include/grub/i386/pc/boot.h: Likewise.
14068 * include/grub/i386/pc/chainloader.h: Likewise.
14069 * include/grub/i386/pc/console.h: Likewise.
14070 * include/grub/i386/pc/init.h: Likewise.
14071 * include/grub/i386/pc/kernel.h: Likewise.
14072 * include/grub/i386/pc/loader.h: Likewise.
14073 * include/grub/i386/pc/memory.h: Likewise.
14074 * include/grub/i386/pc/multiboot.h: Likewise.
14075 * include/grub/i386/pc/serial.h: Likewise.
14076 * include/grub/i386/pc/time.h: Likewise.
14077 * include/grub/i386/pc/vbe.h: Likewise.
14078 * include/grub/i386/pc/vbeblit.h: Likewise.
14079 * include/grub/i386/pc/vbefill.h: Likewise.
14080 * include/grub/i386/pc/vbeutil.h: Likewise.
14081 * include/grub/i386/pc/vga.h: Likewise.
14082 * include/grub/ieee1275/ieee1275.h: Likewise.
14083 * include/grub/ieee1275/ofdisk.h: Likewise.
14084 * include/grub/powerpc/libgcc.h: Likewise.
14085 * include/grub/powerpc/setjmp.h: Likewise.
14086 * include/grub/powerpc/types.h: Likewise.
14087 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14088 * include/grub/powerpc/ieee1275/console.h: Likewise.
14089 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
14090 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
14091 * include/grub/powerpc/ieee1275/loader.h: Likewise.
14092 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
14093 * include/grub/powerpc/ieee1275/time.h: Likewise.
14094 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
14095 * include/grub/sparc64/libgcc.h: Likewise.
14096 * include/grub/sparc64/setjmp.h: Likewise.
14097 * include/grub/sparc64/types.h: Likewise.
14098 * include/grub/sparc64/ieee1275/console.h: Likewise.
14099 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
14100 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
14101 * include/grub/sparc64/ieee1275/time.h: Likewise.
14102 * include/grub/util/biosdisk.h: Likewise.
14103 * include/grub/util/getroot.h: Likewise.
14104 * include/grub/util/lvm.h: Likewise.
14105 * include/grub/util/misc.h: Likewise.
14106 * include/grub/util/raid.h: Likewise.
14107 * include/grub/util/resolve.h: Likewise.
14108 * io/gzio.c: Likewise.
14109 * kern/device.c: Likewise.
14110 * kern/disk.c: Likewise.
14111 * kern/dl.c: Likewise.
14112 * kern/elf.c: Likewise.
14113 * kern/env.c: Likewise.
14114 * kern/err.c: Likewise.
14115 * kern/file.c: Likewise.
14116 * kern/fs.c: Likewise.
14117 * kern/loader.c: Likewise.
14118 * kern/main.c: Likewise.
14119 * kern/misc.c: Likewise.
14120 * kern/mm.c: Likewise.
14121 * kern/parser.c: Likewise.
14122 * kern/partition.c: Likewise.
14123 * kern/rescue.c: Likewise.
14124 * kern/term.c: Likewise.
14125 * kern/efi/efi.c: Likewise.
14126 * kern/efi/init.c: Likewise.
14127 * kern/efi/mm.c: Likewise.
14128 * kern/i386/dl.c: Likewise.
14129 * kern/i386/efi/init.c: Likewise.
14130 * kern/i386/efi/startup.S: Likewise.
14131 * kern/i386/pc/init.c: Likewise.
14132 * kern/i386/pc/lzo1x.S: Likewise.
14133 * kern/i386/pc/startup.S: Likewise.
14134 * kern/ieee1275/ieee1275.c: Likewise.
14135 * kern/powerpc/cache.S: Likewise.
14136 * kern/powerpc/dl.c: Likewise.
14137 * kern/powerpc/ieee1275/cmain.c: Likewise.
14138 * kern/powerpc/ieee1275/crt0.S: Likewise.
14139 * kern/powerpc/ieee1275/init.c: Likewise.
14140 * kern/powerpc/ieee1275/openfw.c: Likewise.
14141 * kern/sparc64/cache.S: Likewise.
14142 * kern/sparc64/dl.c: Likewise.
14143 * kern/sparc64/ieee1275/init.c: Likewise.
14144 * kern/sparc64/ieee1275/openfw.c: Likewise.
14145 * loader/efi/chainloader.c: Likewise.
14146 * loader/efi/chainloader_normal.c: Likewise.
14147 * loader/i386/efi/linux.c: Likewise.
14148 * loader/i386/efi/linux_normal.c: Likewise.
14149 * loader/i386/pc/chainloader.c: Likewise.
14150 * loader/i386/pc/chainloader_normal.c: Likewise.
14151 * loader/i386/pc/linux.c: Likewise.
14152 * loader/i386/pc/linux_normal.c: Likewise.
14153 * loader/i386/pc/multiboot.c: Likewise.
14154 * loader/i386/pc/multiboot_normal.c: Likewise.
14155 * loader/powerpc/ieee1275/linux.c: Likewise.
14156 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
14157 * normal/arg.c: Likewise.
14158 * normal/cmdline.c: Likewise.
14159 * normal/command.c: Likewise.
14160 * normal/completion.c: Likewise.
14161 * normal/execute.c: Likewise.
14162 * normal/function.c: Likewise.
14163 * normal/lexer.c: Likewise.
14164 * normal/main.c: Likewise.
14165 * normal/menu.c: Likewise.
14166 * normal/menu_entry.c: Likewise.
14167 * normal/misc.c: Likewise.
14168 * normal/parser.y: Likewise.
14169 * normal/script.c: Likewise.
14170 * normal/i386/setjmp.S: Likewise.
14171 * normal/powerpc/setjmp.S: Likewise.
14172 * normal/sparc64/setjmp.S: Likewise.
14173 * partmap/acorn.c: Likewise.
14174 * partmap/amiga.c: Likewise.
14175 * partmap/apple.c: Likewise.
14176 * partmap/gpt.c: Likewise.
14177 * partmap/pc.c: Likewise.
14178 * partmap/sun.c: Likewise.
14179 * term/gfxterm.c: Likewise.
14180 * term/terminfo.c: Likewise.
14181 * term/efi/console.c: Likewise.
14182 * term/i386/pc/console.c: Likewise.
14183 * term/i386/pc/serial.c: Likewise.
14184 * term/i386/pc/vesafb.c: Likewise.
14185 * term/i386/pc/vga.c: Likewise.
14186 * term/ieee1275/ofconsole.c: Likewise.
14187 * util/biosdisk.c: Likewise.
14188 * util/console.c: Likewise.
14189 * util/genmoddep.c: Likewise.
14190 * util/getroot.c: Likewise.
14191 * util/grub-emu.c: Likewise.
14192 * util/grub-mkdevicemap.c: Likewise.
14193 * util/grub-probe.c: Likewise.
14194 * util/lvm.c: Likewise.
14195 * util/misc.c: Likewise.
14196 * util/raid.c: Likewise.
14197 * util/resolve.c: Likewise.
14198 * util/update-grub.in: Likewise.
14199 * util/update-grub_lib.in: Likewise.
14200 * util/grub.d/00_header.in: Likewise.
14201 * util/grub.d/10_hurd.in: Likewise.
14202 * util/grub.d/10_linux.in: Likewise.
14203 * util/i386/efi/grub-install.in: Likewise.
14204 * util/i386/efi/grub-mkimage.c: Likewise.
14205 * util/i386/pc/grub-install.in: Likewise.
14206 * util/i386/pc/grub-mkimage.c: Likewise.
14207 * util/i386/pc/grub-mkrescue.in: Likewise.
14208 * util/i386/pc/grub-setup.c: Likewise.
14209 * util/i386/pc/misc.c: Likewise.
14210 * util/powerpc/ieee1275/grub-install.in: Likewise.
14211 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
14212 * util/powerpc/ieee1275/misc.c: Likewise.
14213 * video/bitmap.c: Likewise.
14214 * video/video.c: Likewise.
14215 * video/i386/pc/vbe.c: Likewise.
14216 * video/i386/pc/vbeblit.c: Likewise.
14217 * video/i386/pc/vbefill.c: Likewise.
14218 * video/i386/pc/vbeutil.c: Likewise.
14219 * video/readers/tga.c: Likewise.
14221 2007-07-02 Robert Millan <rmh@aybabtu.com>
14223 * conf/i386-efi.rmk: Replace obsolete reference to
14224 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
14225 with util/getroot.c.
14226 * conf/powerpc-ieee1275.rmk: Likewise.
14227 * conf/sparc64-ieee1275.rmk: Likewise.
14229 * util/grub-emu.c (main): Fix unchecked pointer handling.
14231 2007-07-02 Robert Millan <rmh@aybabtu.com>
14233 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
14234 invocation to fail, in order to support partition-less media.
14236 * util/i386/pc/grub-install.in: Likewise.
14238 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
14239 which fs or partmap modules are needed (akin to its sister scripts).
14241 Also use grub-probe to get rid of unportable /proc/mounts check.
14243 Print the same informational message that the other scripts do, before
14246 2007-06-23 Robert Millan <rmh@aybabtu.com>
14248 * util/update-grub_lib.in (font_path): New function. Determine whether
14249 a font file can be found and, if so, echo the GRUB path to it.
14251 * util/update-grub.in: Handle multiple terminals depending on user
14252 input, platform availability and font file presence. Propagate
14253 variables of our findings to /etc/grub.d/ children.
14255 * util/grub.d/00_header.in: Handle multiple terminals, based on
14256 environment setup by update-grub.
14258 2007-06-23 Robert Millan <rmh@aybabtu.com>
14260 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
14262 2007-06-21 Robert Millan <rmh@aybabtu.com>
14264 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
14265 indicate end of data section in kernel image.
14266 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
14267 GRUB_KERNEL_MACHINE_DATA_END.
14269 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
14271 * kern/i386/efi/startup.S: Likewise.
14273 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
14274 during image generation. Implement --prefix option to override this
14276 * util/i386/efi/grub-mkimage.c: Likewise.
14278 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
14279 code to make path relative to its root into a separate function.
14281 * util/i386/pc/grub-install.in: Use newly provided
14282 make_system_path_relative_to_its_root() to convert ${grubdir}, then
14283 pass the result to grub-install --prefix.
14285 2007-06-13 Robert Millan <rmh@aybabtu.com>
14287 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
14288 DEFAULT_DEVICE_MAP.
14289 * util/grub-emu.c: Use above definitions from misc.h instead of
14291 * util/grub-mkdevicemap.c: Likewise.
14292 * util/i386/pc/grub-setup.c: Likewise.
14293 * util/grub-probe.c: Likewise.
14294 (probe): Abort with grub_util_error() when either
14295 grub_guess_root_device or grub_util_get_grub_dev fails.
14297 2007-06-12 Robert Millan <rmh@aybabtu.com>
14299 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
14300 "pager" assignment.
14301 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
14303 * util/grub-probe.c (probe): Likewise for "drive_name".
14305 2007-06-11 Robert Millan <rmh@aybabtu.com>
14307 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
14308 not just the cdrom one.
14310 2007-06-11 Robert Millan <rmh@aybabtu.com>
14312 * util/i386/pc/grub-mkrescue.in: Add "set -e".
14313 Add --pkglibdir=DIR option to override pkglibdir.
14314 Mention --image-type=TYPE in help output.
14315 Fix --grub-mkimage (it was a no-op).
14316 Abort gracefully when no parameter is given.
14318 2007-06-11 Robert Millan <rmh@aybabtu.com>
14320 * util/i386/pc/grub-mkrescue.in: New file.
14321 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
14322 * Makefile.in: Handle bin_SCRIPTS.
14324 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
14326 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
14327 list of video modes.
14329 2007-06-06 Robert Millan <rmh@aybabtu.com>
14331 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
14332 file doesn't exist, or if it is in a filesystem grub can't read.
14334 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
14335 not abort if GRUB_DRIVE could not be defined. Rearrange generated
14336 header comment to fit in 80 columns when the variables are resolved.
14338 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
14339 could be identified by update-grub. Remove redundant check for
14340 unifont.pff existence (since convert_system_path_to_grub_path now
14343 2007-06-04 Robert Millan <rmh@aybabtu.com>
14345 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
14347 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
14349 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
14351 2007-06-04 Robert Millan <rmh@aybabtu.com>
14353 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
14355 * include/grub/partition.h: Declare grub_apple_partition_map_init and
14356 grub_apple_partition_map_fini.
14359 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
14360 to access >2 TiB disks).
14362 Print disk->total_sectors with %llu instead of %lu, since this
14363 variable is always 64-bit (prevents wrong disk size from being displayed
14364 on either >2 TiB disk or big-endian CPU).
14366 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
14367 into a generic case that supports all (sane) partition maps.
14369 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
14372 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
14373 and grub_apple_partition_map_fini() after that.
14375 2007-06-01 Robert Millan <rmh@aybabtu.com>
14377 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
14379 * util/grub.d/00_header.in: Only enable gfxterm when
14380 convert_system_path_to_grub_path() succeeds.
14382 2007-05-20 Robert Millan <rmh@aybabtu.com>
14384 * util/update-grub_lib.in: New file.
14385 * DISTLIST: Add update-grub_lib.in.
14386 * conf/common.rmk: Generate update-grub_lib and install it in
14388 * Makefile.in: Add install routine for $(lib_DATA).
14390 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
14391 function provided by update-grub_lib to support arbitrary paths of
14393 * util/update-grub.in: Use convert_system_path_to_grub_path() to
14394 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
14396 2007-05-19 Robert Millan <rmh@aybabtu.com>
14398 * commands/i386/cpuid.c: New module.
14399 * DISTLIST: Add it.
14400 * conf/i386-efi.rmk: Enable cpuid.mod.
14401 * conf/i386-pc.rmk: Likewise.
14403 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
14405 * kern/disk.c (grub_disk_read): Check return value of
14408 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
14410 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
14412 * disk/raid.c (grub_raid_open): Likewise.
14414 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
14416 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
14417 stack instead of on the heap.
14419 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
14420 before doing a read on it.
14422 * configure.ac: Only use -fno-stack-protector for the target
14425 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
14427 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
14428 __attribute_ ((unused)) to mode_type argument.
14430 * util/getroot.c (grub_guess_root_device): Fix #endif.
14432 * kern/misc.c (memcmp): Fix prototype.
14434 * include/grub/partition.h [GRUB_UTIL]
14435 (grub_gpt_partition_map_init): Add prototype.
14436 (grub_gpt_partition_map_fini): Likewise.
14438 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
14439 at the right place.
14441 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
14442 (grub_fat_read_data): Likewise.
14443 (grub_fat_find_dir): Likewise.
14445 * font/manager.c (find_glyph): Make table a const.
14446 (grub_font_get_glyph): Remove bitmap from if statement.
14448 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
14450 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
14451 code, first search for device in /dev/mapper, then in /dev.
14452 (grub_util_get_grub_dev): New function.
14453 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
14455 * util/grub-probe.c (probe): Remove check for RAID, call
14456 grub_util_get_grub_dev() instead of
14457 grub_util_biosdisk_get_grub_dev().
14458 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
14459 grub_util_biosdisk_get_grub_dev().
14460 * util/i386/pc/grub-setup.c (main): Likewise.
14462 2007-05-16 Robert Millan <rmh@aybabtu.com>
14464 * DISTLIST: Update for the latest changes.
14465 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
14466 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
14467 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
14468 grub/util/biosdisk.h.
14469 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
14470 grub/util/biosdisk.h.
14472 2007-05-16 Robert Millan <rmh@aybabtu.com>
14474 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
14476 2007-05-16 Robert Millan <rmh@aybabtu.com>
14478 * util/i386/efi/grub-install.in: New.
14479 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
14480 newly added grub-install.
14481 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
14483 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
14484 grub/util/biosdisk.h.
14485 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
14486 grub/util/biosdisk.h.
14488 2007-05-16 Robert Millan <rmh@aybabtu.com>
14490 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
14491 * include/grub/util/biosdisk.h: ... here.
14492 * util/i386/pc/biosdisk.c: Moved to ...
14493 * util/biosdisk.c: ... here.
14494 * util/i386/pc/getroot.c: Moved to ...
14495 * util/getroot.c: ... here.
14496 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
14497 * util/grub-mkdevicemap.c: ... here.
14498 * util/i386/pc/grub-probe.c: Moved to ...
14499 * util/grub-probe.c: ... here.
14501 2007-05-15 Robert Millan <rmh@aybabtu.com>
14503 * util/update-grub.in: Remove duplicated line in grub.cfg header
14506 2007-05-13 Robert Millan <rmh@aybabtu.com>
14508 * util/update-grub.in: Fix a few assumptions about the devices holding
14509 /, /boot and /boot/grub being the same.
14510 * util/grub.d/00_header.in: Likewise.
14511 * util/grub.d/10_hurd.in: Likewise.
14512 * util/grub.d/10_linux.in: Likewise.
14514 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
14515 patterns. Use that to define the `.old' suffix as older than `'.
14517 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
14519 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
14520 the grub.cfg header message.
14522 2007-05-11 Robert Millan <rmh@aybabtu.com>
14524 * util/update-grub.in: Create device.map if it doesn't already exist,
14525 before attempting to run grub-probe.
14526 Check for grub-probe and grub-mkdevicemap with the same code
14527 grub-install is using.
14530 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
14532 * Makefile.in: Add the datarootdir autoconf variable.
14534 2007-05-09 Robert Millan <rmh@aybabtu.com>
14536 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
14537 fail gracefully if dev->disk->partition == NULL.
14539 2007-05-07 Robert Millan <rmh@aybabtu.com>
14541 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
14542 determine partition map module.
14543 * util/i386/pc/grub-install.in: Use this feature to decide which
14544 partition module to load, instead of hardcoding pc and gpt.
14546 2007-05-07 Robert Millan <rmh@aybabtu.com>
14548 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
14549 source directory differs from build directory.
14551 2007-05-05 Robert Millan <rmh@aybabtu.com>
14553 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
14556 2007-05-05 Robert Millan <rmh@aybabtu.com>
14558 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
14560 2007-05-05 Robert Millan <rmh@aybabtu.com>
14562 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
14563 command-line arguments via ${GRUB_CMDLINE_LINUX}.
14565 2007-05-05 Robert Millan <rmh@aybabtu.com>
14567 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
14568 (grub_probe_SOURCES): Likewise.
14569 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
14570 GPT and initialize dos_part and bsd_part accordingly.
14571 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
14573 (main): Activate gpt module for use during partition identification,
14574 and deactivate it afterwards.
14575 * util/i386/pc/grub-install.in: Add gpt module to core.img.
14576 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
14577 partition identification, and deactivate it afterwards.
14579 2007-05-05 Robert Millan <rmh@aybabtu.com>
14581 * term/i386/pc/console.c (grub_console_fini): Call
14582 grub_term_set_current() before grub_term_unregister().
14584 2007-05-04 Robert Millan <rmh@aybabtu.com>
14586 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
14587 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
14588 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
14589 and update-grub_DATA.
14590 * conf/common.rmk: Build and install update-grub components.
14591 * conf/common.mk: Regenerate.
14592 * util/update-grub.in: New. Core of update-grub.
14593 * util/grub.d/00_header.in: New. Generates grub.cfg header.
14594 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
14595 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
14596 * util/grub.d/README: New. Document grub.d directory layout.
14598 2007-05-01 Robert Millan <rmh@aybabtu.com>
14600 * util/grub-emu.c: Move initialization functions
14601 grub_util_biosdisk_init() and grub_init_all() before
14602 grub_util_biosdisk_get_grub_dev(), which relies on them.
14604 2007-04-19 Robert Millan <rmh@aybabtu.com>
14606 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
14609 2007-04-18 Jerone Young <jerone@gmail.com>
14611 * kernel/elf.c: Add missing parenthesis for conditional statement
14614 2007-04-10 Jerone Young <jerone@gmail.com>
14616 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
14617 continue on and look for device node with real device name.
14619 2007-04-10 Jerone Young <jerone@gmail.com>
14621 * configure.ac: Add argument for autoconf to use transformation
14623 * Makefile.in: Add autoconf package transformation code.
14624 * util/i386/pc/grub-install.in: Likewise.
14625 * util/powerpc/ieee1275/grub-install.in: Likewise.
14627 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
14629 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
14630 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
14631 (EXT2_REVISION): Likewise.
14632 (EXT2_INODE_SIZE): Likewise.
14633 (struct grub_ext2_block_group): Added a missing member
14635 (grub_ext2_read_inode): Divide by the inode size in a superblock
14636 instead of 128 to obtain INODES_PER_BLOCK.
14637 Use the macro EXT2_INODE_SIZE instead of directly using
14638 SBLOCK->INODE_SIZE.
14640 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
14642 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
14643 superblock instead of the structure size to compute an
14644 offset. This fixes the problem that GRUB could not read a
14645 filesystem when inode size is different from 128-byte.
14647 2007-03-05 Marco Gerards <marco@gnu.org>
14649 * normal/main.c (read_config_file): When "menu" is not set, create
14650 an initial context.
14652 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
14654 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
14655 (HEAP_LIMIT): New macro.
14656 (grub_claim_heap): Claim memory up to `heaplimit'.
14658 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
14660 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
14661 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
14662 (_start): Likewise.
14663 (grub_arch_modules_addr): Return address after `_end'.
14664 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
14665 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
14666 (add_segments): Calculate `_end' from phdr size and location.
14667 (ALIGN_UP): Moved to ...
14668 * include/grub/misc.h: here.
14669 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
14671 (GRUB_IEEE1275_MODULE_BASE): Removed.
14673 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
14675 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
14678 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
14680 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
14682 (grub_elf64_load_hook_t): Likewise.
14683 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
14686 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
14688 * kern/mm.c: Update copyright.
14689 (grub_mm_debug): Correct syntax error.
14690 (grub_mm_dump_free): New function.
14691 (grub_debug_free): Call `grub_free'.
14692 * include/grub/mm.h: Update copyright.
14693 (grub_mm_dump_free): Add declaration.
14695 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
14697 * include/grub/ieee1275/ieee1275.h: Update copyright.
14698 * kern/powerpc/ieee1275/init.c: Likewise.
14699 * kern/powerpc/ieee1275/openfw.c: Likewise.
14701 * loader/powerpc/ieee1275/linux.c: Likewise.
14702 * include/grub/elfload.h: Likewise.
14703 * kern/elf.c: Likewise.
14704 (grub_elf32_load): Pass `base' and `size' parameters. Update all
14706 (grub_elf64_load): Likewise.
14707 (grub_elf32_load_segment): Move to a nested function.
14708 (grub_elf64_load_segment): Likewise.
14710 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
14712 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
14714 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
14715 (grub_heap_len): Likewise.
14716 (HEAP_SIZE): New macro.
14717 (grub_claim_heap): New function.
14718 (grub_machine_init): Don't claim heap directly. Call
14720 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
14721 (grub_available_iterate): New function.
14723 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
14725 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
14726 * configure.ac: Use it for testing the HOST and TARGET compilers.
14728 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
14730 * Makefile.in (enable_grub_emu): New variable.
14731 * configure.ac (--enable-grub-emu): New option.
14732 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
14733 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
14734 * conf/i386-pc.rmk: Likewise.
14735 * conf/powerpc-ieee1275.rmk: Likewise.
14736 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
14738 2006-12-12 Marco Gerards <marco@gnu.org>
14740 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
14742 * kern/env.c (grub_env_unset): Don't free the member `value' when
14743 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
14746 * normal/main.c (current_menu): Removed.
14747 (free_menu): Unset the `menu' environment variable.
14748 (grub_normal_menu_addentry): Make use of the environment variable
14749 `menu', instead of using the global `current_menu'. Allocate
14750 memory for the sourcecode of this entry.
14751 (read_config_file): New argument `nested', changed all callers.
14752 Only in the case of a new context, initialize a new menu. Set the
14753 `menu' environment variable.
14754 (grub_normal_execute): Don't set and unset the environment
14755 variable `menu' here anymore. Only free the menu when leaving the
14758 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
14761 2006-12-11 Marco Gerards <marco@gnu.org>
14763 * normal/menu_entry.c (run): Fix off by one bug so the last line
14764 is executed. Move the loader check to outside the loop.
14766 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
14768 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
14770 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
14772 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
14773 the number of sectors. Reported by Andrey Shuvikov
14774 <mr_hyro@yahoo.com>.
14776 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
14778 * kern/disk.c (grub_disk_read): When there is a read error, always
14779 try to read only the necessary data.
14781 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
14783 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
14785 [GRUB_UTIL] (grub_raid_fini): Likewise.
14786 [GRUB_UTIL] (grub_lvm_init): Likewise.
14787 [GRUB_UTIL] (grub_lvm_fini): Likewise.
14788 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
14789 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
14790 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
14791 and grub_raid_fini().
14793 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
14795 * include/grub/types.h (__unused): Rename to UNUSED.
14796 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
14797 (grub_elf64_size): Likewise.
14799 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
14801 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
14802 grub_error_push and grub_error_pop in the error-handling path.
14803 (grub_elf32_load_segment): Only call grub_file_read with non-zero
14806 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
14808 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
14809 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14810 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14811 (kernel_elf_SOURCES): Likewise.
14812 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
14813 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
14814 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
14815 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
14816 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
14817 (elf_mod_SOURCES): New variable.
14818 (elf_mod_CFLAGS): Likewise.
14819 (elf_mod_LDFLAGS): Likewise.
14820 * include/grub/types.h (__unused): New macro.
14821 * include/grub/elfload.h: New file.
14822 * kern/elf.c: Likewise.
14823 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
14824 (ELF32_LOADMASK): New macro.
14825 (ELF64_LOADMASK): Likewise.
14826 (vmlinux): Removed.
14827 (grub_linux_load32): New function.
14828 (grub_linux_load64): Likewise.
14829 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
14830 Use grub_elf_t instead of grub_file_t.
14832 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
14834 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
14835 `catch_result' to struct set_color_args.
14837 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
14839 * normal/menu.c: Include grub/script.h.
14840 * normal/menu_entry.c: Likewise.
14841 * include/grub/normal.h: Do not include grub/script.h.
14843 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
14845 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
14847 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
14849 * kern/disk.c (grub_disk_open): Print debug messages when opening a
14851 (grub_disk_close): Print debug messages when closing a disk.
14852 (grub_disk_read): Print debug messages when disk read fails.
14853 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
14855 * kern/partition.c: Include misc.h.
14856 (grub_partition_iterate): Print debug messages when detecting
14859 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
14861 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
14863 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
14865 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
14867 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14868 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
14870 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
14872 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
14873 instead of sizeof(lv). Patch by Michael Guntsche.
14875 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
14877 * disk/lvm.c: Rename VGS to VG_LIST.
14878 (grub_lvm_iterate): Change VGS->LV to VG-LV.
14879 (grub_lvm_open): Likewise.
14880 Thanks to Michael Guntsche for finding this bug.
14882 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
14884 * configure.ac (AC_INIT): Bumped to 1.95.
14886 2006-10-14 Robert Millan <rmh@aybabtu.com>
14888 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
14889 with "/dev/.static/dev/md".
14891 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
14893 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
14894 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
14895 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
14896 DRIVE_NAME are always freed.
14898 * util/i386/pc/biosdisk.c (make_device_name): Add one into
14899 DOS_PART, as a DOS partition is counted from one instead of zero
14900 now. Reported by Robert Millan.
14902 2006-10-14 Robert Millan <rmh@aybabtu.com>
14904 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
14905 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
14906 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
14907 string returned by grub_guess_root_device.
14908 * util/i386/pc/grub-setup.c: Likewise.
14909 * util/i386/pc/grub-probefs.c: Likewise.
14911 * util/i386/pc/grub-probefs.c: Rename to ...
14912 * util/i386/pc/grub-probe.c: ... this.
14913 * DISTLIST: Remove grub-probefs, add grub-probe.
14914 * conf/i386-efi.rmk: Likewise.
14915 * conf/i386-pc.rmk: Likewise.
14916 * util/i386/pc/grub-install.in: Likewise.
14918 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
14919 choose which information we want to print.
14921 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
14923 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
14924 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
14925 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
14926 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
14927 video/readers/tga.c and video/i386/pc/vbeutil.c.
14929 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
14931 Added support for RAID and LVM.
14933 * disk/lvm.c: New file.
14934 * disk/raid.c: Likewise.
14935 * include/grub/lvm.h: Likewise.
14936 * include/grub/raid.h: Likewise.
14937 * include/grub/util/lvm.h: Likewise.
14938 * include/grub/util/raid.h: Likewise.
14939 * util/lvm.c: Likewise.
14940 * util/raid.c: Likewise.
14942 * include/grub/disk.h (grub_disk_dev_id): Add
14943 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
14944 (grub_disk_get_size): New prototype.
14945 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
14946 returns a partition.
14947 (grub_disk_get_size): New function.
14949 * kern/i386/pc/init.c (make_install_device): Copy the prefix
14950 verbatim if grub_install_dos_part is -2.
14952 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
14955 * util/i386/pc/grub-setup.c (setup): New argument
14956 MUST_EMBED. Force embedding of GRUB when the argument is
14957 true. Close FILE before returning.
14958 (main): Add support for RAID and LVM.
14960 * conf/common.rmk: Add RAID and LVM modules.
14961 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
14963 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
14965 * kern/misc.c (grub_strstr): New function.
14966 * include/grub/misc.h (grub_strstr): New prototype.
14968 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
14970 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
14972 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
14974 * kern/misc.c (grub_strtoull): Guess the base only if not
14977 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
14979 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
14982 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
14984 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
14986 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
14987 Remove `flags' argument. All callers changed.
14988 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
14989 (IEEE1275_IHANDLE_INVALID): New variable.
14990 (IEEE1275_CELL_INVALID): New variable.
14991 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
14992 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
14993 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
14994 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
14995 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
14996 codes from Open Firmware. All callers updated.
14997 (grub_ieee1275_next_property): Directly return Open Firmware return
14999 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
15000 Standardize error checking from `grub_ieee1275_get_property'.
15001 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
15002 `devalias' to `aliases'. Correct comments. Consolidate error paths.
15004 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
15006 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
15007 `instance_to_package_args' to `instance_to_path_args'.
15009 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
15010 `grub_ieee1275_chosen'.
15012 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
15013 `grub_ieee1275_interpret'.
15015 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
15017 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
15019 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
15021 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
15022 (__cmpdi): Likewise.
15024 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
15025 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
15028 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
15030 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
15031 to type `grub_ssize_t'.
15032 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
15034 2006-09-22 Marco Gerards <marco@gnu.org>
15036 * normal/script.c (grub_script_create_cmdmenu): Skip leading
15039 2006-09-22 Marco Gerards <marco@gnu.org>
15041 * commands/echo.c: New file.
15043 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
15045 * conf/common.rmk (echo_mod_SOURCES): New variable.
15046 (echo_mod_CFLAGS): Likewise.
15047 (echo_mod_LDFLAGS): Likewise.
15049 2006-09-22 Marco Gerards <marco@gnu.org>
15051 * normal/main.c (get_line): Malloc memory instead of using
15052 preallocated memory. Removed the arguments `cmdline' and
15053 `max_len'. Updated all callers.
15055 2006-09-22 Marco Gerards <marco@gnu.org>
15057 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
15058 (normal_mod_DEPENDENCIES): Likewise.
15060 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
15061 (normal_mod_DEPENDENCIES): Likewise.
15063 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
15065 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
15067 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
15069 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
15070 (normal_mod_DEPENDENCIES): Likewise.
15071 * conf/i386-pc.mk: Regenerate.
15072 * conf/i386-efi.mk: Likewise
15073 * conf/common.mk: Likewise.
15074 * conf/powerpc-ieee1275.mk: Likewise.
15075 * conf/sparc64-ieee1275.mk: Likewise.
15077 2006-09-22 Robert Millan <rmh@aybabtu.com>
15079 Sync with i386 version.
15080 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
15081 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
15083 2006-09-21 Robert Millan <rmh@aybabtu.com>
15085 Import from GRUB Legacy (lib/device.c):
15086 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
15087 (init_device_map) [__linux__]: Add support for I2O devices.
15089 2006-09-14 Marco Gerards <marco@gnu.org>
15091 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
15094 2006-09-14 Robert Millan <rmh@aybabtu.com>
15096 * util/i386/pc/grub-install.in: Skip menu.lst when removing
15099 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
15101 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
15102 before adding it to device.map.
15104 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
15106 * genmk.rb: Let GCC generate dependencies the first time it
15107 compiles a file; using the -MD option.
15108 * conf/common.mk: Regenerate.
15109 * conf/i386-pc.mk: Likewise.
15110 * conf/i386-efi.mk: Likewise.
15111 * conf/powerpc-ieee1275.mk: Likewise.
15112 * conf/sparc64-ieee1275.mk: Likewise.
15114 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
15116 Move the prototypes of grub_setjmp and grub_longjmp to
15117 cpu/setjmp.h, so that each architecture may specify different
15120 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
15121 (grub_longjmp): Likewise.
15122 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
15123 (grub_longjmp): Likewise.
15124 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
15125 (grub_longjmp): Likewise.
15127 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
15128 [!GRUB_UTIL] (grub_longjmp): Removed.
15130 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
15132 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
15133 "color!" method does not return any value.
15135 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
15137 * include/grub/bitmap.h: New file.
15139 * include/grub/i386/pc/vbeutil.h: Likewise.
15141 * video/bitmap.c: Likewise.
15143 * video/readers/tga.c: Likewise.
15145 * video/i386/pc/vbeutil.c: Likewise.
15147 * commands/videotest.c: Code cleanup and updated to reflect to new
15150 * term/gfxterm.c: Likewise.
15152 * video/video.c: Likewise.
15154 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
15155 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
15156 (bitmap_mod_SOURCES): New entry.
15157 (bitmap_mod_CFLAGS): Likewise.
15158 (bitmap_mod_LDFLAGS): Likewise.
15159 (tga_mod_SOURCES): Likewise.
15160 (tga_mod_CFLAGS): Likewise.
15161 (tga_mod_LDFLAGS): Likewise.
15163 * include/grub/video.h (grub_video_blit_operators): New enum type.
15164 (grub_video_render_target): Changed as forward declaration and moved
15165 actual definition to be video driver specific.
15166 (grub_video_adapter.blit_bitmap): Added blitting operator.
15167 (grub_video_adapter.blit_render_target): Likewise.
15168 (grub_video_blit_bitmap): Likewise.
15169 (grub_video_blit_render_target): Likewise.
15171 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
15172 driver specific render target definition.
15173 (grub_video_vbe_map_rgba): Added driver internal helper.
15174 (grub_video_vbe_unmap_color): Updated to use
15175 grub_video_i386_vbeblit_info.
15176 (grub_video_vbe_get_video_ptr): Likewise.
15178 * include/grub/i386/pc/vbeblit.h
15179 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
15180 grub_video_i386_vbeblit_info.
15181 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15182 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15183 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15184 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15185 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15186 (grub_video_i386_vbeblit_index_index): Likewise.
15187 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
15188 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15189 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15190 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
15192 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
15195 * video/i386/pc/vbeblit.c: Updated to reflect changes on
15196 include/grub/i386/pc/vbeblit.h.
15198 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
15199 Updated to use grub_video_i386_vbeblit_info.
15200 (grub_video_i386_vbefill_R8G8B8): Likewise.
15201 (grub_video_i386_vbefill_index): Likewise.
15202 (grub_video_i386_vbefill): Added generic filler.
15204 * video/i386/pc/vbefill.c: Updated to reflect changes on
15205 include/grub/i386/pc/vbefill.h.
15207 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
15208 grub_video_i386_vbeblit_info.
15209 (grub_video_vbe_unmap_color): Likewise.
15210 (grub_video_vbe_blit_glyph): Likewise.
15211 (grub_video_vbe_scroll): Likewise.
15212 (grub_video_vbe_draw_pixel): Removed function.
15213 (grub_video_vbe_get_pixel): Likewise.
15214 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
15215 updated code to use it.
15216 (common_blitter): Added common blitter for render target and bitmap.
15217 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
15218 (grub_video_vbe_blit_render_target): Likewise.
15220 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
15222 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
15223 is in text mode if there is no console control protocol instance
15226 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
15228 * include/grub/video.h: Code cleanup.
15230 * include/grub/i386/pc/vbe.h: Likewise.
15232 * video/i386/pc/vbe.c: Likewise.
15234 * video/i386/pc/vbeblit.c: Likewise.
15236 * video/i386/pc/vbefill.c: Likewise.
15238 * video/video.c: Likewise. Also added more comments.
15240 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
15242 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
15243 (struct grub_biosdisk_dap): Likewise.
15245 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
15246 linkage settings for all functions.
15248 2006-07-12 Marco Gerards <marco@gnu.org>
15250 * configure.ac (--enable-mm-debug): Fix typo.
15252 * genkernsyms.sh.in: Use proper quoting for `CC'.
15254 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
15256 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
15257 (normal_mod_ASFLAGS): Remove "-m32".
15259 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
15261 * util/misc.c: Include config.h.
15262 [!HAVE_MEMALIGN]: Do not include malloc.h.
15263 (grub_memalign): Use posix_memalign, if present. Then, use
15264 memalign, if present. Otherwise, emit an error.
15266 * util/grub-emu.c: Do not include malloc.h.
15268 * include/grub/util/misc.h: Include unistd.h. This is required for
15269 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
15270 D. Eades III <hde@foobar-qux.org>.
15272 * configure.ac (AC_GNU_SOURCE): Added.
15273 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
15276 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
15278 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
15279 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
15281 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
15283 * include/grub/types.h (grub_host_addr_t): Rename to
15284 grub_target_addr_t.
15285 (grub_host_off_t): Rename to grub_target_off_t.
15286 (grub_host_size_t): Rename to grub_target_size_t.
15287 (grub_host_ssize_t): Rename to grub_target_ssize_t.
15288 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
15290 * include/grub/kernel.h (struct grub_module_header): Change type
15291 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
15292 (grub_module_info): Likewise.
15294 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
15296 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
15297 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
15298 Velazquez <jesus.velazquez@gmail.com>.
15300 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
15302 Count partitions from 1 instead of 0 in the string representation
15303 of partitions. Still use 0-based internally.
15305 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
15306 (sun_partition_map_iterate): Use grub_partition_t instead of
15307 struct grub_partition *. Cast DESC->START_CYLINDER to
15308 grub_uint64_t after converting the endian.
15309 (sun_partition_map_probe): Subtract 1 for PARTNUM.
15310 (sun_partition_map_get_name): Add 1 to P->INDEX.
15312 * partmap/pc.c (grub_partition_parse): Subtract 1 for
15314 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
15316 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
15317 zero instead of one.
15318 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
15319 (gpt_partition_map_get_name): Add 1 into P->INDEX.
15321 * partmap/apple.c (apple_partition_map_iterate): Change the type
15322 of POS to unsigned.
15323 (apple_partition_map_probe): Subtract 1 for PARTNUM.
15324 (apple_partition_map_get_name): Add 1 into P->INDEX.
15326 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
15327 of POS to unsigned.
15328 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
15329 calculate the offset of a partition.
15330 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
15331 (amiga_partition_map_get_name): Add 1 into P->INDEX.
15333 * partmap/acorn.c (acorn_partition_map_find): Change the type of
15334 SECTOR to grub_disk_addr_t.
15335 (acorn_partition_map_iterate): Likewise.
15336 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
15337 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
15339 (acorn_partition_map_get_name): Add 1 into P->INDEX.
15341 * kern/i386/pc/init.c (make_install_device): Add 1 into
15342 GRUB_INSTALL_DOS_PART.
15344 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
15347 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
15349 Clean up the code to support 64-bit addressing in disks and
15350 files. This change is not enough for filesystems yet.
15352 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
15353 type of "start" to grub_uint64_t.
15354 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
15355 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
15356 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
15359 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
15360 to grub_disk_addr_t.
15362 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
15365 * partmap/pc.c (pc_partition_map_iterate): Likewise.
15367 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
15370 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
15372 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
15374 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
15376 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
15377 to grub_off_t, to detect an error from grub_file_seek.
15378 (grub_multiboot_load_elf32): Likewise.
15380 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
15381 maximum unsigned long value when an overflow is detected.
15382 (grub_strtoull): New function.
15383 (grub_divmod64): Likewise.
15384 (grub_lltoa): use grub_divmod64.
15386 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
15388 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
15389 the pointer to next character. Use grub_strtoull instead of
15391 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
15392 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
15395 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
15396 return value is signed.
15397 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
15398 test if OFFSET is less than zero, as OFFSET is unsigned now.
15400 * kern/disk.c (struct grub_disk_cache): Change the type of
15401 "sector" to grub_disk_addr_t.
15402 (grub_disk_cache_get_index): Change the type of SECTOR to
15403 grub_disk_addr_t. Calculate the hash with SECTOR casted to
15404 unsigned after shifting.
15405 (grub_disk_cache_invalidate): Change the type of SECTOR to
15407 (grub_disk_cache_unlock): Likewise.
15408 (grub_disk_cache_store): Likewise.
15409 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
15410 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
15411 grub_disk_addr_t and grub_uint64_t, respectively.
15412 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
15413 body, as the value of OFFSET is tweaked by
15414 grub_disk_check_range. Change the types of START_SECTOR, LEN and
15415 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
15417 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
15418 body, as the value of OFFSET is tweaked by
15419 grub_disk_check_range. Change the types of LEN and N to
15422 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
15423 and "saved_offset" to grub_off_t.
15424 (test_header): Cast BUF to char *.
15425 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
15427 (grub_gzio_read): Change the types of OFFSET and SIZE to
15428 grub_off_t and grub_size_t, respectively.
15430 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
15432 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
15433 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
15434 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
15435 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
15436 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
15438 * include/grub/types.h (grub_off_t): Unconditionally set to
15440 (grub_disk_addr_t): Changed to grub_uint64_t.
15442 * include/grub/partition.h (struct grub_partition): Change the
15443 types of "start", "len" and "offset" to grub_disk_addr_t,
15444 grub_uint64_t and grub_disk_addr_t, respectively.
15445 (grub_partition_get_start): Return grub_disk_addr_t.
15446 (grub_partition_get_len): Return grub_uint64_t.
15448 * include/grub/misc.h (grub_strtoull): New prototype.
15449 (grub_divmod64): Likewise.
15451 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
15452 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
15453 grub_off_t, respectively.
15454 All callers and references changed.
15456 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
15457 grub_size_t in "read".
15458 All callers and references changed.
15460 * include/grub/file.h (struct grub_file): Change the types of
15461 "offset" and "size" to grub_off_t and grub_off_t,
15462 respectively. Change the type of SECTOR to grub_disk_addr_t in
15464 (grub_file_read): Change the type of LEN to grub_size_t.
15465 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
15467 (grub_file_size): Return grub_off_t.
15468 (grub_file_tell): Likewise.
15469 All callers and references changed.
15471 * include/grub/disk.h (struct grub_disk_dev): Change the types of
15472 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
15474 (struct grub_disk): Change the type of "total_sectors" to
15475 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
15477 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
15478 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
15479 (grub_disk_write): Likewise.
15480 All callers and references changed.
15482 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
15483 char * for grub_strncmp to silence gcc.
15484 (grub_iso9660_mount): Likewise.
15485 (grub_iso9660_mount): Likewise.
15486 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
15488 (grub_iso9660_iterate_dir): Likewise.
15489 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
15491 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
15492 LEN to grub_disk_addr_t and grub_size_t, respectively.
15494 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
15496 * fs/jfs.c (grub_jfs_read_file): Likewise.
15498 * fs/minix.c (grub_jfs_read_file): Likewise.
15500 * fs/sfs.c (grub_jfs_read_file): Likewise.
15502 * fs/ufs.c (grub_jfs_read_file): Likewise.
15504 * fs/xfs.c (grub_jfs_read_file): Likewise.
15506 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
15507 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
15510 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
15511 BLKNR to -1 instead of returning GRUB_ERRNO.
15512 (grub_ext2_read_file): Change the types of SECTOR and
15513 LEN to grub_disk_addr_t and grub_size_t, respectively.
15515 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
15516 LEN to grub_disk_addr_t and grub_size_t, respectively.
15518 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
15521 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
15522 string. Do not cast SECTOR explicitly.
15524 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
15525 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
15526 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
15527 grub_disk_addr_t and grub_size_t, respectively. If the sector is
15528 over 2TB and LBA mode is not supported, raise an error.
15529 (get_safe_sectors): New function.
15530 (grub_biosdisk_read): Use get_safe_sectors.
15531 (grub_biosdisk_write): Likewise.
15533 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
15534 (grub_efidisk_write): Likewise.
15536 * disk/loopback.c (delete_loopback): Cosmetic changes.
15537 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
15539 (grub_loopback_open): Likewise.
15540 (grub_loopback_read): Likewise. Also, change the type of POS to
15541 grub_off_t, and fix the usage of grub_memset.
15543 * commands/i386/pc/play.c: Include grub/machine/time.h.
15545 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
15548 * commands/configfile.c: Include grub/env.h.
15550 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
15551 GRUB_ERRNO directly instead. Change the type of POS to
15552 grub_off_t. Follow the coding standard.
15554 * commands/blocklist.c: Include grub/partition.h.
15555 (grub_cmd_blocklist): Return an error if the underlying device is
15556 not a disk. Take the starting sector of a partition into account,
15557 if a partition is used.
15559 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
15561 (lba_mode): Support 64-bit addresses.
15562 (chs_mode): Likewise.
15563 (copy_buffer): Adapted to the new offsets of a length field and a
15565 (blocklist_default_start): Allocate 64-bit space.
15567 * boot/i386/pc/boot.S (force_lba): Removed.
15568 (boot_drive): Moved to under KERNEL_SECTOR.
15569 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
15571 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
15573 (lba_mode): Refactored to support a 64-bit address. More size
15575 (setup_sectors): Likewise.
15577 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
15579 * DISTLIST: Added include/grub/i386/linux.h. Removed
15580 include/grub/i386/pc/linux.h
15582 * configure.ac (AC_INIT): Bumped to 1.94.
15584 * config.guess: Updated from gnulib.
15585 * config.sub: Likewise.
15586 * install-sh: Likewise.
15587 * mkinstalldirs: Likewise.
15589 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
15591 * conf/common.rmk (grub_modules_init.lst): Depended on
15592 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
15595 * genmk.rb (PModule::rule): Reverted the previous change.
15597 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
15599 * conf/common.rmk (grub_modules_init.lst): Depends on
15600 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
15601 that the target does not exist before producing.
15602 (grub_modules_init.h): Remove the target before generating.
15603 (grub_emu_init.c): Likewise.
15605 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
15607 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
15609 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
15610 for the target-specific tests. Make sure that we also have the
15611 up-to-date target variables for those tests.
15613 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
15615 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
15616 (PModule::rule): Likewise.
15618 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
15620 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
15621 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
15622 target-specific flags should be prefixed.
15623 (PModule::rule): Likewise.
15625 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
15627 * configure.ac (CMP): Check if cmp is available explicitly.
15629 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
15631 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
15632 (target_cpu): New variable.
15633 (pkglibdir): Use target_cpu instead of host_cpu.
15635 * util/i386/pc/grub-install.in (host_cpu): Removed.
15636 (target_cpu): New variable.
15637 (pkglibdir): Use target_cpu instead of host_cpu.
15639 * util/genmoddep.c: Removed.
15641 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
15642 instead of GRUB_HOST_SIZEOF_VOID_P.
15643 * kern/dl.c: Likewise.
15645 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
15647 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
15648 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
15649 (GRUB_TARGET_SIZEOF_LONG): ... this.
15650 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
15651 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
15652 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
15654 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
15655 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
15656 (GRUB_TARGET_SIZEOF_LONG): ... this.
15657 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
15658 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
15659 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
15661 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
15662 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
15663 (GRUB_TARGET_SIZEOF_LONG): ... this.
15664 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
15665 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
15667 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
15668 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
15669 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
15670 instead of GRUB_HOST_SIZEOF_LONG.
15671 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
15672 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
15673 GRUB_CPU_WORDS_BIGENDIAN.
15674 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
15675 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
15678 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
15679 (genmoddep_SOURCES): Likewise.
15680 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
15681 (genmoddep_SOURCES): Likewise.
15682 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
15683 (genmoddep_SOURCES): Likewise.
15684 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
15686 (genmoddep_SOURCES): Likewise.
15688 * genmoddep.awk: New file.
15690 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
15691 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
15692 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
15693 (PModule::rule): Likewise.
15694 (Program::rule): Likewise.
15695 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
15696 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
15699 * configure.ac: Rewritten intensively to use host and target
15700 instead of build and host, respectively.
15702 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
15703 (host_cpu): Removed.
15704 (target_cpu): New variable.
15705 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
15706 (BUILD_CC): Removed.
15707 (BUILD_CFLAGS): Likewise.
15708 (BUILD_CPPFLAGS): Likewise.
15709 (TARGET_CC): New variable.
15710 (TARGET_CFLAGS): Likewise.
15711 (TARGET_CPPFLAGS): Likewise.
15712 (TARGET_LDFLAGS): Likewise.
15714 (include): Use target_cpu instead of host_cpu.
15715 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
15717 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
15719 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
15721 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
15722 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
15723 field 'false' to 'exec_on_false'.
15724 (grub_script_create_cmdif): Renamed argument names to reflect above
15727 * normal/execute.c (grub_script_execute_cmdif): Likewise.
15729 * normal/script.c (grub_script_create_cmdif): Likewise.
15731 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
15733 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
15735 (grub_hfsplus_btree_recptr): Likewise.
15736 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
15737 FILEBLOCK both to pass a block number and store next block
15739 (grub_hfsplus_read_block): Rewritten heavily to support an extent
15740 overflow file correctly. Specify errors appropriately, because
15741 fshelp expects that GRUB_ERRNO is set when fails. Reuse
15742 grub_hfsplus_btree_recptr to get the pointer to a found key.
15743 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
15746 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
15748 (_linux_mod_SOURCES): New variable.
15749 (_linux_mod_CFLAGS): Likewise.
15750 (_linux_mod_LDFLAGS): Likewise.
15751 (linux_mod_SOURCES): Likewise.
15752 (linux_mod_CFLAGS): Likewise.
15753 (linux_mod_LDFLAGS): Likewise.
15755 * DISTLIST: Added loader/i386/efi/linux.c,
15756 loader/i386/efi/linux_normal.c and
15757 include/grub/i386/efi/loader.h.
15759 * loader/i386/efi/linux.c: New file.
15760 * loader/i386/efi/linux_normal.c: Likewise.
15761 * include/grub/i386/efi/loader.h: Likewise.
15763 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
15765 * commands/blocklist.c: New file.
15767 * DISTLIST: Added commands/blocklist.c.
15769 * term/efi/console.c (grub_console_highlight_color): Use a lighter
15770 color for the background, and a darker color for the foreground.
15771 (grub_console_checkkey): Return READ_KEY.
15772 (grub_console_cls): Set the background to
15773 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
15775 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
15777 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
15778 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
15780 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
15783 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
15784 BG. The spec is wrong again.
15786 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
15788 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
15790 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
15791 commands/blocklist.c.
15792 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15794 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
15795 (blocklist_mod_SOURCES): New variable.
15796 (blocklist_mod_CFLAGS): Likewise.
15797 (blocklist_mod_LDFLAGS): Likewise.
15799 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
15801 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
15803 (lba_mode): Use %eax more intensively to reduce the code size.
15805 2006-05-20 Marco Gerards <marco@gnu.org>
15807 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
15809 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
15811 (script): Accept leading newlines.
15812 (newlines): New rule to describe 0 or more newlines.
15813 (commands): Accept `command' with trailing newline. Fixed the
15814 order in which arguments were passed to `grub_script_add_cmd'.
15815 Accept commands separated by newlines.
15816 (function): Changed to accept newlines.
15817 (menuentry) Rewritten.
15819 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
15820 front of the list, instead of to the end.
15822 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
15824 * util/i386/pc/grub-install.in (bindir): New variable.
15825 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
15826 Shaver <lbgwjl@gmail.com>.
15828 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
15830 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
15831 grub/machine/linux.h
15832 * loader/i386/pc/linux.c: Likewise.
15834 * include/grub/i386/pc/linux.h: Moved to ...
15835 * include/grub/i386/linux.h: ... here.
15837 * include/grub/i386/linux.h (struct linux_kernel_params): New
15840 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
15842 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
15844 (grub_video_vbe_blit_glyph): Likewise.
15845 (grub_video_vbe_blit_bitmap): Likewise.
15846 (grub_video_vbe_blit_render_target): Likewise.
15848 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
15850 * configure.ac (--with-platform): Properly quote the square
15853 2006-05-08 Marco Gerards <marco@gnu.org>
15855 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
15857 (kernel_elf_HEADERS): ...to this. Updated all users.
15858 (grubof_symlist.c): Renamed from this...
15859 (kernel_elf_symlist.c): ...to this. Updated all users.
15860 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
15861 (grubof_SOURCES): Renamed from this...
15862 (kernel_elf_SOURCES): ...to this.
15863 (grubof_HEADERS): Renamed from this...
15864 (kernel_elf_HEADERS): ...to this.
15865 (grubof_CFLAGS): Renamed from this...
15866 (kernel_elf_CFLAGS): ...to this.
15867 (grubof_ASFLAGS): Renamed from this...
15868 (kernel_elf_ASFLAGS): ...to this.
15869 (grubof_LDFLAGS): Renamed from this...
15870 (kernel_elf_LDFLAGS): ...to this.
15872 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
15874 (kernel_elf_HEADERS): ...to this. Updated all users.
15875 (grubof_symlist.c): Renamed from this...
15876 (kernel_elf_symlist.c): ...to this. Updated all users.
15877 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
15878 (grubof_SOURCES): Renamed from this...
15879 (kernel_elf_SOURCES): ...to this.
15880 (grubof_HEADERS): Renamed from this...
15881 (kernel_elf_HEADERS): ...to this.
15882 (grubof_CFLAGS): Renamed from this...
15883 (kernel_elf_CFLAGS): ...to this.
15884 (grubof_ASFLAGS): Renamed from this...
15885 (kernel_elf_ASFLAGS): ...to this.
15886 (grubof_LDFLAGS): Renamed from this...
15887 (kernel_elf_LDFLAGS): ...to this.
15889 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
15890 `kernel.elf' instead of `grubof'.
15892 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
15894 Add --with-platform to configure. Use pkglibdir instead of
15895 pkgdatadir. This is reported by Roger Leigh.
15897 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
15898 (host_vendor): Likewise.
15899 (host_os): Likewise.
15900 (pkgdatadir): Likewise.
15901 (platform): New variable.
15902 (pkglibdir): Likewise.
15903 Use PKGLIBDIR instead of PKGDATADIR.
15905 * util/i386/pc/grub-install.in (datadir): Removed.
15906 (host_vendor): Likewise.
15907 (host_os): Likewise.
15908 (pkgdatadir): Likewise.
15909 (platform): New variable.
15910 (pkglibdir): Likewise.
15911 Use PKGLIBDIR instead of PKGDATADIR.
15913 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
15914 instead of GRUB_DATADIR.
15916 * util/i386/pc/grub-mkimage.c (usage): Likewise.
15918 * util/i386/efi/grub-mkimage.c (usage): Likewise.
15921 * configure.ac (--with-platform): New option.
15922 Use PLATFORM instead of HOST_VENDOR to specify a platform.
15924 * Makefile.in: Include a makefile based on PLATFORM instead of
15926 (pkgdatadir): Not appended by the machine type.
15927 (pkglibdir): Appended by the machine type.
15928 (host_vendor): Removed.
15929 (platform): New variable.
15930 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
15931 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
15932 (uninstall): Likewise.
15934 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
15936 Use the environment context in the menu. Remove the commands
15937 "default" and "timeout", and use variables instead.
15939 * normal/menu.c: Include grub/env.h.
15940 (print_entry): Cast TITLE to silence gcc.
15941 (get_timeout): New function.
15942 (set_timeout): Likewise.
15943 (get_entry_number): Likewise.
15944 (run_menu): Use a default entry, a fallback entry and a timeout
15945 in the environment variables "default", "fallback" and
15946 "timeout". Also, tweak the default entry if it is not within the
15947 current menu entries.
15948 (grub_menu_run): Use a fallback entry in the environment variable
15951 * normal/main.c (read_config_file): Do not initialize
15952 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
15954 (grub_normal_execute): Use a data slot to store the menu.
15956 * include/grub/normal.h (struct grub_menu): Removed default_entry,
15957 fallback_entry and timeout.
15958 (struct grub_menu_list): Removed.
15959 (grub_menu_list_t): Likewise.
15960 (struct grub_context): Likewise.
15961 (grub_context_t): Likewise.
15962 (grub_context_get): Likewise.
15963 (grub_context_get_current_menu): Likewise.
15964 (grub_context_push_menu): Likewise.
15965 (grub_context_pop_menu): Likewise.
15966 (grub_default_init): Likewise.
15967 (grub_default_fini): Likewise.
15968 (grub_timeout_init): Likewise.
15969 (grub_timeout_fini): Likewise.
15971 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
15973 (normal_mod_SOURCES): Removed normal/context.c.
15975 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
15976 commands/default.c, commands/timeout.c and normal/context.c.
15977 (normal_mod_SOURCES): Removed normal/context.c.
15979 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
15980 commands/timeout.c and normal/context.c.
15981 (normal_mod_SOURCES): Removed normal/context.c.
15983 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
15984 commands/default.c, commands/timeout.c and normal/context.c.
15985 (normal_mod_SOURCES): Removed normal/context.c.
15987 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
15989 (default_mod_SOURCES): Removed.
15990 (default_mod_CFLAGS): Likewise.
15991 (default_mod_LDFLAGS): Likewise.
15992 (timeout_mod_SOURCES): Removed.
15993 (timeout_mod_CFLAGS): Likewise.
15994 (timeout_mod_LDFLAGS): Likewise.
15996 * DISTLIST: Removed commands/default.c, commands/timeout.c and
15999 * commands/default.c: Removed.
16000 * commands/timeout.c: Likewise.
16001 * normal/context.c: Likewise.
16003 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
16005 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
16007 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
16009 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
16010 "next" to "prev" for readability.
16011 (struct grub_env_sorted_var): New struct.
16012 (grub_env_context): Renamed to ...
16013 (initial_context): ... this.
16014 (grub_env_var_context): Renamed to ...
16015 (current_context): ... this.
16016 (grub_env_find): Look only at CURRENT_CONTEXT.
16017 (grub_env_context_open): Rewritten to copy exported variables from
16019 (grub_env_context_close): Rewritten according to the new
16020 scheme. Also, add an assertion to prevent the initial context from
16022 (grub_env_insert): Removed the code for the sorted list.
16023 (grub_env_remove): Likewise.
16024 (grub_env_export): Simply mark the variable with
16025 GRUB_ENV_VAR_GLOBAL.
16026 (grub_env_set): A cosmetic change for naming consistency.
16027 (grub_env_get): Likewise.
16028 (grub_env_unset): Likewise.
16029 (grub_env_iterate): Rewritten to sort variables within this
16031 (grub_register_variable_hook): Fixed for naming consistency. Call
16032 grub_env_find again, only if NAME is not found at the first time.
16033 (mangle_data_slot_name): New function.
16034 (grub_env_set_data_slot): Likewise.
16035 (grub_env_get_data_slot): Likewise.
16036 (grub_env_unset_data_slot): Likewise.
16038 * include/grub/env.h (grub_env_var_type): New enum.
16039 (GRUB_ENV_VAR_LOCAL): New constant.
16040 (GRUB_ENV_VAR_GLOBAL): Likewise.
16041 (GRUB_ENV_VAR_DATA): Likewise.
16042 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
16044 (grub_env_set): Replace VAR with NAME for consistency.
16045 (grub_register_variable_hook): Likewise.
16046 (grub_env_export): Specify the name of the argument.
16047 (grub_env_set_data_slot): New prototype.
16048 (grub_env_get_data_slot): Likewise.
16049 (grub_env_unset_data_slot): Likewise.
16051 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
16053 Extend the loader so that GRUB can accept a loader which comes
16054 back to GRUB when a loaded image exits. Also, this change adds
16055 support for a chainloader on EFI.
16057 * term/efi/console.c: Include grub/misc.h.
16058 (grub_console_checkkey): Display a scan code on the top for
16059 debugging. This will be removed once the EFI port gets stable.
16060 Correct the scan code mapping.
16062 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
16063 allocate memory from larger regions, in order to reduce the number
16064 of allocated regions. Otherwise, the MacOSX loader panics.
16065 (filter_memory_map): Avoid less than 1MB for compatibility with
16067 (add_memory_regions): Allocate from the tail of a region, if
16068 possible, to avoid allocating a region near to 1MB, for the MacOSX
16071 * kern/efi/init.c (grub_efi_set_prefix): Specify
16072 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
16074 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
16075 argument IMAGE_HANDLE and specify it to get a loaded image.
16076 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
16077 grub_efi_get_loaded_image.
16078 (grub_efi_get_filename): Divide the length by the size of
16080 (grub_efi_get_device_path): New function.
16081 (grub_efi_print_device_path): Print End Device Path nodes. Divide
16082 the length by the size of grub_efi_char16_t for a file path device
16085 * kern/loader.c (grub_loader_noreturn): New variable.
16086 (grub_loader_set): Accept a new argument NORETURN. Set
16087 GRUB_LOADER_NORETURN to NORETURN.
16088 All callers changed.
16089 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
16092 * include/grub/efi/efi.h (grub_efi_get_device_path): New
16094 (grub_efi_get_loaded_image): Take an argument to specify an image
16097 * include/grub/loader.h (grub_loader_set): Added one more argument
16100 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
16101 instead of grub_efi_open_protocol.
16102 (grub_efidisk_get_device_name): Likewise.
16103 (grub_efidisk_close): Print a newline.
16104 (grub_efidisk_get_device_handle): Fixed to use
16105 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
16106 GRUB_EFI_DEVICE_PATH_TYPE.
16108 * disk/efi/efidisk.c (device_path_guid): Moved to ...
16109 * kern/efi/efi.c (device_path_guid): ... here.
16111 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
16113 (kernel_mod_HEADERS): Added efi/disk.h.
16114 (_chain_mod_SOURCES): New variable.
16115 (_chain_mod_CFLAGS): Likewise.
16116 (_chain_mod_LDFLAGS): Likewise.
16117 (chain_mod_SOURCES): Likewise.
16118 (chain_mod_CFLAGS): Likewise.
16119 (chain_mod_LDFLAGS): Likewise.
16121 * DISTLIST: Added include/grub/efi/chainloader.h,
16122 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
16124 * include/grub/efi/chainloader.h: New file.
16125 * loader/efi/chainloader.c: Likewise.
16126 * loader/efi/chainloader_normal.c: Likewise.
16128 2006-04-30 Marco Gerards <marco@gnu.org>
16130 * commands/configfile.c (grub_cmd_source): New function.
16131 (GRUB_MOD_INIT): Register the commands `source' and `.'.
16132 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
16134 2006-04-30 Marco Gerards <marco@gnu.org>
16136 * normal/execute.c (grub_script_execute_cmd): Change the return
16137 type to `grub_err_t'. Correctly return the error.
16138 (grub_script_execute_cmdline): In case a command line is not a
16139 command or a function, try to interpret it as an assignment.
16141 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
16143 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
16144 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
16145 skip a node whose name is obviously invalid as UTF-16,
16146 i.e. contains a NUL character. Stop the iteration when the last
16147 directory entry is found. Instead of using the return value of
16148 grub_hfsplus_btree_iterate_node, store the value in RET and use
16149 it, because the iterator can be stopped by the last directory
16152 2006-04-30 Marco Gerards <marco@gnu.org>
16154 * include/grub/env.h (grub_env_export): New prototype. Reported
16155 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
16157 2006-04-30 Marco Gerards <marco@gnu.org>
16159 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
16160 size of the extents in a catalog file record.
16162 2006-04-29 Marco Gerards <marco@gnu.org>
16164 * commands/configfile.c (grub_cmd_configfile): Execute the
16165 configfile within its own context.
16167 * include/grub/env.h (grub_env_context_open): New prototype.
16168 (grub_env_context_close): Likewise.
16170 * kern/env.c (grub_env): Removed.
16171 (grub_env_sorted): Likewise.
16172 (grub_env_context): New variable.
16173 (grub_env_var_context): Likewise.
16174 (grub_env_find): Search both the active context and the global
16176 (grub_env_context_open): New function.
16177 (grub_env_context_close): Likewise.
16178 (grub_env_insert): Likewise.
16179 (grub_env_remove): Likewise.
16180 (grub_env_export): Likewise.
16181 (grub_env_set): Changed to use helper functions to avoid code
16183 (grub_env_iterate): Rewritten so both the current context and the
16184 global context are being used.
16186 * normal/command.c (export_command): New function.
16187 (grub_command_init): Register the `export' function.
16189 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
16191 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
16192 explicitly to suppress gcc's warnings.
16193 * fs/fat.c (grub_fat_find_dir): Likewise.
16194 (grub_fat_label): Likewise.
16195 * fs/xfs.c (grub_xfs_read_inode): Likewise.
16196 (grub_xfs_mount): Likewise.
16197 (grub_xfs_label): Likewise.
16198 * fs/affs.c (grub_affs_mount): Likewise.
16199 (grub_affs_label): Likewise.
16200 (grub_affs_iterate_dir): Likewise.
16201 * fs/sfs.c (grub_sfs_mount): Likewise.
16202 (grub_sfs_iterate_dir): Likewise.
16203 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
16204 * fs/hfs.c (grub_hfs_mount): Likewise.
16205 (grub_hfs_cmp_catkeys): Likewise.
16206 (grub_hfs_find_dir): Likewise.
16207 (grub_hfs_dir): Likewise.
16208 (grub_hfs_label): Likewise.
16209 * fs/jfs.c (grub_jfs_mount): Likewise.
16210 (grub_jfs_opendir): Likewise.
16211 (grub_jfs_getent): Likewise.
16212 (grub_jfs_lookup_symlink): Likewise.
16213 (grub_jfs_label): Likewise.
16214 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
16215 (grub_hfsplus_iterate_dir): Likewise.
16216 (grub_hfsplus_btree_iterate_node): Made static.
16218 * util/grub-emu.c (prefix): New variable.
16219 (grub_machine_set_prefix): New function.
16220 (main): Do not set the environment variable "prefix" here. Only
16221 set PREFIX, which is used later by grub_machine_set_prefix.
16223 * include/grub/video.h: Do not include grub/symbol.h.
16224 (grub_video_register): Not exported. This symbol is not defined in
16226 (grub_video_unregister): Likewise.
16227 (grub_video_iterate): Likewise.
16228 (grub_video_setup): Likewise.
16229 (grub_video_restore): Likewise.
16230 (grub_video_get_info): Likewise.
16231 (grub_video_get_blit_format): Likewise.
16232 (grub_video_set_palette): Likewise.
16233 (grub_video_get_palette): Likewise.
16234 (grub_video_set_viewport): Likewise.
16235 (grub_video_get_viewport): Likewise.
16236 (grub_video_map_color): Likewise.
16237 (grub_video_map_rgb): Likewise.
16238 (grub_video_map_rgba): Likewise.
16239 (grub_video_fill_rect): Likewise.
16240 (grub_video_blit_glyph): Likewise.
16241 (grub_video_blit_bitmap): Likewise.
16242 (grub_video_blit_render_target): Likewise.
16243 (grub_video_scroll): Likewise.
16244 (grub_video_swap_buffers): Likewise.
16245 (grub_video_create_render_target): Likewise.
16246 (grub_video_delete_render_target): Likewise.
16247 (grub_video_set_active_render_target): Likewise.
16249 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
16251 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
16253 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
16254 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
16255 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
16256 instead of $(srcdir)/genkernsyms.sh.
16258 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
16259 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
16260 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
16261 instead of $(srcdir)/genkernsyms.sh.
16263 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
16264 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
16265 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
16266 instead of $(srcdir)/genkernsyms.sh.
16268 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
16269 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
16270 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
16271 instead of $(srcdir)/genkernsyms.sh.
16273 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
16276 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
16278 (gensymlist.sh): New target.
16279 (genkernsyms.sh): Likewise.
16281 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
16282 genkernsyms.sh.in and gensymlist.sh.in.
16284 * genkernsyms.sh: Removed.
16285 * gensymlist.sh: Likewise.
16287 * genkernsyms.sh.in: New file.
16288 * gensymlist.sh.in: Likewise.
16290 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
16292 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
16293 clobber "prefix", since we may have already set it manually.
16295 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
16297 * kern/misc.c (abort): New alias for grub_abort.
16299 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
16301 A new machine-specific function "grub_machine_set_prefix" is
16302 defined. This is called after loading modules, so that a prefix
16303 initialization can use modules. Also, this change adds an
16304 intensive debugging feature for the memory manager via the
16305 configure option "--enable-mm-debug".
16307 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
16310 * kern/sparc64/ieee1275/init.c (abort): Removed.
16311 (grub_stop): Likewise.
16312 (grub_exit): New function.
16313 (grub_set_prefix): Renamed to ...
16314 (grub_machine_set_prefix): ... this.
16315 (grub_machine_init): Do not call grub_set_prefix.
16317 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
16318 (grub_machine_set_prefix): ... this.
16319 (grub_machine_init): Do not call grub_set_prefix.
16321 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
16322 (grub_machine_init): Do not set the prefix here.
16324 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
16326 * kern/efi/init.c: Include grub/mm.h.
16327 (grub_efi_set_prefix): New function.
16329 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
16330 (grub_efi_get_filename): New function.
16331 (grub_print_device_path): Renamed to ...
16332 (grub_efi_print_device_path): ... this.
16334 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
16335 [MM_DEBUG] (grub_realloc): Likewise.
16336 [MM_DEBUG] (grub_free): Likewise.
16337 [MM_DEBUG] (grub_memalign): Likewise.
16338 [MM_DEBUG] (grub_mm_debug): New variable.
16339 [MM_DEBUG] (grub_debug_malloc): New function.
16340 [MM_DEBUG] (grub_debug_free): New function.
16341 [MM_DEBUG] (grub_debug_realloc): New function.
16342 [MM_DEBUG] (grub_debug_memalign): New function.
16344 * kern/misc.c (grub_abort): Print a newline to distinguish
16347 * kern/main.c (grub_main): Call grub_machine_set_prefix and
16348 grub_set_root_dev after loading modules. This is necessary when
16349 setting a prefix depends on modules.
16351 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
16352 (grub_efi_print_device_path): ... this.
16353 (grub_efi_get_filename): New prototype.
16354 (grub_efi_set_prefix): Likewise.
16356 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
16358 (grub_efidisk_get_device_handle): New prototype.
16359 (grub_efidisk_get_device_name): Likewise.
16361 * include/grub/mm.h: Include config.h.
16362 (MM_DEBUG): Removed.
16363 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
16364 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
16365 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
16366 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
16367 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
16368 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
16369 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
16370 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
16371 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
16373 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
16375 * disk/efi/efidisk.c: Include grub/partition.h.
16376 (iterate_child_devices): New function.
16377 (add_device): First, compare only last device path nodes, so that
16378 devices are sorted by the types.
16379 (grub_efidisk_get_device_handle): New function.
16380 (grub_efidisk_get_device_name): Likewise.
16382 * configure.ac (--enable-mm-debug): New option to enable the
16383 memory manager debugging feature. This makes the binary much
16384 bigger, so is disabled by default.
16386 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
16388 Use grub_abort instead of grub_stop, and grub_exit must be
16389 define in each architecture now. Also, this change adds support
16392 * util/i386/pc/grub-probefs.c: Include grub/term.h.
16393 (grub_getkey): New function.
16394 (grub_term_get_current): Likewise.
16396 * util/i386/pc/grub-setup.c: Include grub/term.h.
16397 (grub_getkey): New function.
16398 (grub_term_get_current): Likewise.
16400 * util/misc.c (grub_stop): Renamed to ...
16401 (grub_exit): ... this.
16403 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
16404 (grub_exit): ... this.
16405 (grub_machine_init): Use grub_abort instead of abort.
16406 (grub_stop): Removed.
16408 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
16411 * kern/i386/pc/startup.S (grub_exit): New function.
16412 (cold_reboot): New label.
16414 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
16415 (grub_efi_init): Call grub_efidisk_init.
16416 (grub_efi_fini): Call grub_efidisk_fini.
16418 * kern/efi/efi.c: Include grub/mm.h.
16419 (grub_efi_console_control_guid): Renamed to ...
16420 (console_control_guid): ... this.
16421 (grub_efi_loaded_image_guid): Renamed to ...
16422 (loaded_image_guid): ... this.
16423 (grub_efi_locate_handle): New function.
16424 (grub_efi_open_protocol): Likewise.
16425 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
16426 GRUB_EFI_CONSOLE_CONTROL_GUID.
16427 (grub_efi_exit): Removed.
16428 (grub_stop): Likewise.
16429 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
16430 (grub_exit): New function.
16431 (grub_print_device_path): Likewise.
16433 * kern/rescue.c (grub_rescue_cmd_exit): New function.
16434 (grub_enter_rescue_mode): Register "exit".
16436 * kern/misc.c (grub_real_dprintf): A cosmetic change.
16437 (grub_abort): New function.
16439 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
16441 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
16443 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
16445 * include/grub/efi/efi.h (grub_efi_exit): Removed.
16446 (grub_print_device_path): New prototype.
16447 (grub_efi_locate_handle): Likewise.
16448 (grub_efi_open_protocol): Likewise.
16450 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
16451 * disk/efi/efidisk.c: Likewise.
16453 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
16455 * include/grub/efi/console_control.h
16456 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
16458 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
16459 last 8 bytes as an array.
16460 (GRUB_EFI_DISK_IO_GUID): New macro.
16461 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
16462 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
16463 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
16465 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
16466 (struct grub_efi_device_path): Rename the member "sub_type" to
16468 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
16469 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
16470 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
16471 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
16472 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
16473 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
16474 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
16475 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
16476 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
16477 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
16478 (struct grub_efi_pci_device_path): New structure.
16479 (grub_efi_pci_device_path_t): New type.
16480 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
16481 (struct grub_efi_pccard_device_path): New structure.
16482 (grub_efi_pccard_device_path_t): New type.
16483 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
16484 (struct grub_efi_memory_mapped_device_path): New structure.
16485 (grub_efi_memory_mapped_device_path_t): New type.
16486 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
16487 (struct grub_efi_vendor_device_path): New structure.
16488 (grub_efi_vendor_device_path_t): New type.
16489 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
16490 (struct grub_efi_controller_device_path): New structure.
16491 (grub_efi_controller_device_path_t): New type.
16492 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
16493 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
16494 (struct grub_efi_acpi_device_path): New structure.
16495 (grub_efi_acpi_device_path_t): New type.
16496 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
16497 (struct grub_efi_expanded_acpi_device_path): New structure.
16498 (grub_efi_expanded_acpi_device_path_t): New type.
16499 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
16500 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
16501 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
16502 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
16503 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
16504 (struct grub_efi_atapi_device_path): New structure.
16505 (grub_efi_atapi_device_path_t): New type.
16506 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
16507 (struct grub_efi_fibre_channel_device_path): New structure.
16508 (grub_efi_fibre_channel_device_path_t): New type.
16509 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
16510 (struct grub_efi_1394_device_path): New structure.
16511 (grub_efi_1394_device_path_t): New type.
16512 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
16513 (struct grub_efi_usb_device_path): New structure.
16514 (grub_efi_usb_device_path_t): New type.
16515 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
16516 (struct grub_efi_usb_class_device_path): New structure.
16517 (grub_efi_usb_class_device_path_t): New type.
16518 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
16519 (struct grub_efi_i2o_device_path): New structure.
16520 (grub_efi_i2o_device_path_t): New type.
16521 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
16522 (struct grub_efi_mac_address_device_path): New structure.
16523 (grub_efi_mac_address_device_path_t): New type.
16524 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
16525 (struct grub_efi_ipv4_device_path): New structure.
16526 (grub_efi_ipv4_device_path_t): New type.
16527 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
16528 (struct grub_efi_ipv6_device_path): New structure.
16529 (grub_efi_ipv6_device_path_t): New type.
16530 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
16531 (struct grub_efi_infiniband_device_path): New structure.
16532 (grub_efi_infiniband_device_path_t): New type.
16533 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
16534 (struct grub_efi_uart_device_path): New structure.
16535 (grub_efi_uart_device_path_t): New type.
16536 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
16537 (struct grub_efi_vendor_messaging_device_path): New structure.
16538 (grub_efi_vendor_messaging_device_path_t): New type.
16539 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
16540 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
16541 (struct grub_efi_hard_drive_device_path): New structure.
16542 (grub_efi_hard_drive_device_path_t): New type.
16543 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
16544 (struct grub_efi_cdrom_device_path): New structure.
16545 (grub_efi_cdrom_device_path_t): New type.
16546 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
16547 (struct grub_efi_vendor_media_device_path): New structure.
16548 (grub_efi_vendor_media_device_path_t): New type.
16549 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
16550 (struct grub_efi_file_path_device_path): New structure.
16551 (grub_efi_file_path_device_path_t): New type.
16552 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
16553 (struct grub_efi_protocol_device_path): New structure.
16554 (grub_efi_protocol_device_path_t): New type.
16555 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
16556 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
16557 (struct grub_efi_bios_device_path): New structure.
16558 (grub_efi_bios_device_path_t): New type.
16559 (struct grub_efi_disk_io): New structure.
16560 (grub_efi_disk_io_t): New type.
16561 (struct grub_efi_block_io_media): New structure.
16562 (grub_efi_block_io_media_t): New type.
16563 (struct grub_efi_block_io): New structure.
16564 (grub_efi_block_io_t): New type.
16566 * include/grub/misc.h (grub_stop): Removed.
16567 (grub_exit): New prototype.
16568 (grub_abort): Likewise.
16570 * include/grub/disk.h (enum grub_disk_dev_id): Added
16571 GRUB_DISK_DEVICE_EFIDISK_ID.
16573 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
16574 disk/efi/efidisk.c.
16575 (kernel_syms.lst): Remove the target if an error occurs.
16577 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
16579 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
16580 as it was simply too buggy.
16582 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
16584 * kern/misc.c (grub_lltoa): New function.
16585 (grub_vsprintf): Added support for the long long suffix,
16588 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
16590 * Makefile.in (LDFLAGS): Add variable.
16591 (LD): Remove variable.
16592 * configure.ac: Add -m32 to LDFLAGS.
16593 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
16594 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
16595 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
16596 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
16597 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
16599 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
16600 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
16601 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
16603 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
16605 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
16606 length for unknown glyph.
16608 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
16610 Add support for pre-loaded modules into the EFI port.
16612 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
16613 completely. Accept one more argument DIR. The caller has changed.
16615 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
16617 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
16618 (grub_efi_loaded_image_guid): New variable.
16619 (grub_efi_get_loaded_image): New function.
16620 (grub_arch_modules_addr): Likewise.
16622 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
16625 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
16626 (struct grub_efi_loaded_image): New structure.
16627 (grub_efi_loaded_image_t): New type.
16629 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
16631 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
16632 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
16633 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
16635 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
16637 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
16639 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
16641 * DISTLIST: Added include/grub/efi/console.h,
16642 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
16643 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
16645 * include/grub/efi/console.h: New file.
16646 * include/grub/efi/time.h: Likewise.
16647 * include/grub/i386/efi/kernel.h: Likewise.
16648 * kern/efi/init.c: Likewise.
16649 * kern/efi/mm.c: Likewise.
16650 * term/efi/console.c: Likewise.
16652 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
16653 (grub_stop): Removed.
16654 (grub_get_rtc): Likewise.
16655 (grub_machine_init): Simply call grub_efi_init.
16656 (grub_machine_fini): Call grub_efi_fini.
16658 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
16659 (grub_efi_output_string): Removed.
16660 (grub_efi_stall): New function.
16661 (grub_stop): Likewise.
16662 (grub_get_rtc): Likewise.
16664 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
16665 (grub_efi_stall): New prototype.
16666 (grub_efi_allocate_pages): Likewise.
16667 (grub_efi_free_pages): Likewise.
16668 (grub_efi_get_memory_map): Likewise.
16669 (grub_efi_mm_init): Likewise.
16670 (grub_efi_mm_fini): Likewise.
16671 (grub_efi_init): Likewise.
16672 (grub_efi_fini): Likewise.
16674 * include/grub/i386/efi/time.h: Do not include
16675 grub/symbol.h. Include grub/efi/time.h.
16676 (GRUB_TICKS_PER_SECOND): Removed.
16677 (grub_get_rtc): Likewise.
16679 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
16680 Added padding. The EFI spec is buggy.
16681 (GRUB_EFI_BLACK): New macro.
16682 (GRUB_EFI_BLUE): Likewise.
16683 (GRUB_EFI_GREEN): Likewise.
16684 (GRUB_EFI_CYAN): Likewise.
16685 (GRUB_EFI_RED): Likewise.
16686 (GRUB_EFI_MAGENTA): Likewise.
16687 (GRUB_EFI_BROWN): Likewise.
16688 (GRUB_EFI_LIGHTGRAY): Likewise.
16689 (GRUB_EFI_BRIGHT): Likewise.
16690 (GRUB_EFI_DARKGRAY): Likewise.
16691 (GRUB_EFI_LIGHTBLUE): Likewise.
16692 (GRUB_EFI_LIGHTGREEN): Likewise.
16693 (GRUB_EFI_LIGHTCYAN): Likewise.
16694 (GRUB_EFI_LIGHTRED): Likewise.
16695 (GRUB_EFI_LIGHTMAGENTA): Likewise.
16696 (GRUB_EFI_YELLOW): Likewise.
16697 (GRUB_EFI_WHITE): Likewise.
16698 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
16699 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
16700 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
16701 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
16702 (GRUB_EFI_BACKGROUND_RED): Likewise.
16703 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
16704 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
16705 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
16706 (GRUB_EFI_TEXT_ATTR): Likewise.
16708 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
16709 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
16710 (kernel_mod_HEADERS): Added efi/time.h.
16712 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
16714 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
16715 include/grub/efi/api.h, include/grub/efi/console_control.h,
16716 include/grub/efi/efi.h, include/grub/efi/pe32.h,
16717 include/grub/i386/efi/time.h, kern/efi/efi.c,
16718 kern/i386/efi/init.c, kern/i386/efi/startup.S,
16719 and util/i386/efi/grub-mkimage.c.
16721 * Makefile.in (RMKFILES): Added i386-efi.rmk.
16723 * genmk.rb (PModule#rule): Do not export symbols if
16724 #{prefix}_EXPORTS is set to "no".
16726 * conf/i386-efi.mk: New file.
16727 * conf/i386-efi.rmk: Likewise.
16728 * include/grub/efi/api.h: Likewise.
16729 * include/grub/efi/console_control.h: Likewise.
16730 * include/grub/efi/efi.h: Likewise.
16731 * include/grub/efi/pe32.h: Likewise.
16732 * include/grub/i386/efi/time.h: Likewise.
16733 * kern/efi/efi.c: Likewise.
16734 * kern/i386/efi/init.c: Likewise.
16735 * kern/i386/efi/startup.S: Likewise.
16736 * util/i386/efi/grub-mkimage.c: Likewise.
16738 2006-04-17 Marco Gerards <marco@gnu.org>
16740 * include/grub/script.h: Include <grub/parser.h> and
16741 "grub_script.tab.h".
16742 (struct grub_lexer_param): New struct.
16743 (struct grub_parser_param): Likewise.
16744 (grub_script_create_arglist): Pass the state in an argument.
16745 (grub_script_add_arglist): Likewise.
16746 (grub_script_create_cmdline): Likewise.
16747 (grub_script_create_cmdblock): Likewise.
16748 (grub_script_create_cmdif): Likewise.
16749 (grub_script_create_cmdmenu): Likewise.
16750 (grub_script_add_cmd): Likewise.
16751 (grub_script_arg_add): Likewise.
16752 (grub_script_lexer_ref): Likewise.
16753 (grub_script_lexer_deref): Likewise.
16754 (grub_script_lexer_record_start): Likewise.
16755 (grub_script_lexer_record_stop): Likewise.
16756 (grub_script_mem_record): Likewise.
16757 (grub_script_mem_record_stop): Likewise.
16758 (grub_script_malloc): Likewise.
16759 (grub_script_yylex): Likewise.
16760 (grub_script_yyparse): Likewise.
16761 (grub_script_yyerror): Likewise.
16762 (grub_script_yylex): Likewise.
16763 (grub_script_lexer_init): Return the state.
16765 * normal/lexer.c (grub_script_lexer_state): Removed variable.
16766 (grub_script_lexer_done): Likewise.
16767 (grub_script_lexer_getline): Likewise.
16768 (grub_script_lexer_refs): Likewise.
16769 (script): Likewise.
16770 (newscript): Likewise.
16771 (record): Likewise.
16772 (recording): Likewise.
16773 (recordpos): Likewise.
16774 (recordlen): Likewise.
16775 (grub_script_lexer_init): Return the state instead of setting
16777 (grub_script_lexer_ref): Use the newly added argument for state
16778 instead of globals.
16779 (grub_script_lexer_deref): Likewise.
16780 (grub_script_lexer_record_start): Likewise.
16781 (grub_script_lexer_record_stop): Likewise.
16782 (recordchar): Likewise.
16783 (nextchar): Likewise.
16784 (grub_script_yylex2): Likewise.
16785 (grub_script_yylex): Likewise.
16786 (grub_script_yyerror): Likewise.
16788 * normal/parser.y (func_mem): Removed variable.
16789 (menu_entry): Likewise.
16791 (%lex-param): New parser option.
16792 (%parse-param): Likewise.
16793 (script): Always return the AST.
16794 (argument): Pass the state around.
16795 (arguments): Likewise.
16796 (grubcmd): Likewise.
16797 (commands): Likewise.
16798 (function): Likewise.
16799 (menuentry): Likewise.
16800 (if_statement): Likewise.
16803 * normal/script.c (grub_script_memused): Removed variable.
16804 (grub_script_parsed): Likewise.
16805 (grub_script_malloc): Added a state argument. Use that instead of
16807 (grub_script_mem_record): Likewise.
16808 (grub_script_mem_record_stop): Likewise.
16809 (grub_script_arg_add): Likewise.
16810 (grub_script_add_arglist): Likewise.
16811 (grub_script_create_cmdline): Likewise.
16812 (grub_script_create_cmdif): Likewise.
16813 (grub_script_create_cmdmenu): Likewise.
16814 (grub_script_add_cmd): Likewise.
16815 (grub_script_parse): Setup the state before calling the parser.
16817 2006-04-16 Marco Gerards <marco@gnu.org>
16819 * normal/command.c (grub_command_init): Remove the title command.
16821 * normal/lexer.c (grub_script_yylex): Renamed from this...
16822 (grub_script_yylex2): ... to this.
16823 (grub_script_yylex): New function. Temporary
16824 introduced to filter some tokens.
16825 (grub_script_yyerror): Print a newline.
16827 * normal/main.c (read_config_file): Output information about the
16828 lines that contain errors. Wait for a key after all lines have
16829 been processed. Don't return an empty menu.
16831 * normal/parser.y (func_mem): Don't initialize.
16832 (menu_entry): Likewise.
16833 (err): New variable.
16834 (script): Don't return anything when an error was encountered.
16835 (ws, returns): Removed rules.
16836 (argument): Disabled concatenated variable support.
16837 (arguments): Remove explicit separators.
16838 (grubcmd): Likewise.
16839 (function): Likewise.
16840 (menuentry): Likewise.
16842 (commands): Likewise. Add error handling.
16844 * normal/script.c (grub_script_create_cmdline): If
16845 `grub_script_parsed' is 0, assume the parser encountered an error.
16847 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
16849 * configure.ac: Add support for EFI. Fix the typo
16850 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
16852 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
16854 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
16855 foreign multibyte characters should be shown correctly.
16857 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
16859 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
16861 (read_config_file): Made it to close file before returning.
16863 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
16865 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
16866 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
16867 video/i386/pc/vbefill.c.
16869 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
16870 video/i386/pc/vbefill.c.
16872 * include/grub/video.h (grub_video_blit_format): New enum.
16873 (grub_video_mode_info): Added new member blit_format.
16874 (grub_video_get_blit_format): New function prototype.
16876 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
16877 function prototype.
16878 (grub_video_vbe_map_rgb): Likewise.
16879 (grub_video_vbe_unmap_color): Likewise.
16881 * include/grub/i386/pc/vbeblit.h: New file.
16883 * include/grub/i386/pc/vbefill.h: New file.
16885 * video/video.c (grub_video_get_blit_format): New function.
16886 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
16887 (grub_video_vbe_map_rgb): Likewise.
16888 (grub_video_vbe_unmap_color): Likewise.
16890 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
16892 (grub_video_vbe_blit_render_target): Changed to use more optimized
16894 (grub_video_vbe_setup): Added detection for optimized settings.
16895 (grub_video_vbe_create_render_target): Likewise.
16897 * video/i386/pc/vbeblit.c: New file.
16899 * video/i386/pc/vbefill.c: New file.
16901 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
16903 * font/manager.c (grub_font_get_glyph): Removed font fixup from
16906 * util/unifont2pff.rb: ... and moved it to here. Improved argument
16907 parsing to support both hex and dec ranges. If filename was missing
16908 show usage information.
16910 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
16912 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
16913 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
16915 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
16916 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
16917 (video_mod_SOURCES): Added.
16918 (video_mod_CFLAGS): Likewise.
16919 (video_mod_LDFLAGS): Likewise.
16920 (gfxterm_mod_SOURCES): Likewise.
16921 (gfxterm_mod_CFLAGS): Likewise.
16922 (gfxterm_mod_LDFLAGS): Likewise.
16923 (videotest_mod_SOURCES): Likewise.
16924 (videotest_mod_CFLAGS): Likewise.
16925 (videotest_mod_LDFLAGS): Likewise.
16926 (vesafb_mod_SOURCES): Removed.
16927 (vesafb_mod_CFLAGS): Likewise.
16928 (vesafb_mod_LDFLAGS): Likewise.
16929 (vga_mod_SOURCES): Likewise.
16930 (vga_mod_CFLAGS): Likewise.
16931 (vga_mod_LDFLAGS): Likewise.
16933 * commands/videotest.c: New file.
16935 * font/manager.c (fill_with_default_glyph): Modified to use
16937 (grub_font_get_glyph): Likewise.
16938 (fontmanager): Renamed from this...
16939 (font_manager): ... to this.
16941 * include/grub/font.h (grub_font_glyph): Added new structure.
16942 (grub_font_get_glyph): Modified to use grub_font_glyph.
16944 * include/grub/misc.h (grub_abs): Added as inline function.
16946 * include/grub/video.h: New file.
16948 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
16949 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
16950 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
16951 (grub_vbe_get_controller_info): Renamed from this...
16952 (grub_vbe_bios_get_controller_info): ... to this.
16953 (grub_vbe_get_mode_info): Renamed from this...
16954 (grub_vbe_bios_get_mode_info): ... to this.
16955 (grub_vbe_set_mode): Renamed from this...
16956 (grub_vbe_bios_set_mode): ... to this.
16957 (grub_vbe_get_mode): Renamed from this...
16958 (grub_vbe_bios_get_mode): ... to this.
16959 (grub_vbe_set_memory_window): Renamed from this...
16960 (grub_vbe_bios_set_memory_window): ... to this.
16961 (grub_vbe_get_memory_window): Renamed from this...
16962 (grub_vbe_bios_get_memory_window): ... to this.
16963 (grub_vbe_set_scanline_length): Renamed from this...
16964 (grub_vbe_set_scanline_length): ... to this.
16965 (grub_vbe_get_scanline_length): Renamed from this...
16966 (grub_vbe_bios_get_scanline_length): ... to this.
16967 (grub_vbe_set_display_start): Renamed from this...
16968 (grub_vbe_bios_set_display_start): ... to this.
16969 (grub_vbe_get_display_start): Renamed from this...
16970 (grub_vbe_bios_get_display_start): ... to this.
16971 (grub_vbe_set_palette_data): Renamed from this...
16972 (grub_vbe_bios_set_palette_data): ... to this.
16973 (grub_vbe_set_pixel_rgb): Removed.
16974 (grub_vbe_set_pixel_index): Likewise.
16976 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
16978 (grub_vbe_bios_get_controller_info): ... to this.
16979 (grub_vbe_get_mode_info): Renamed from this...
16980 (grub_vbe_bios_get_mode_info): ... to this.
16981 (grub_vbe_set_mode): Renamed from this...
16982 (grub_vbe_bios_set_mode): ... to this.
16983 (grub_vbe_get_mode): Renamed from this...
16984 (grub_vbe_bios_get_mode): ... to this.
16985 (grub_vbe_set_memory_window): Renamed from this...
16986 (grub_vbe_bios_set_memory_window): ... to this.
16987 (grub_vbe_get_memory_window): Renamed from this...
16988 (grub_vbe_bios_get_memory_window): ... to this.
16989 (grub_vbe_set_scanline_length): Renamed from this...
16990 (grub_vbe_set_scanline_length): ... to this.
16991 (grub_vbe_get_scanline_length): Renamed from this...
16992 (grub_vbe_bios_get_scanline_length): ... to this.
16993 (grub_vbe_set_display_start): Renamed from this...
16994 (grub_vbe_bios_set_display_start): ... to this.
16995 (grub_vbe_get_display_start): Renamed from this...
16996 (grub_vbe_bios_get_display_start): ... to this.
16997 (grub_vbe_set_palette_data): Renamed from this...
16998 (grub_vbe_bios_set_palette_data): ... to this.
16999 (grub_vbe_bios_get_controller_info): Fixed problem with registers
17000 getting corrupted after calling it. Added more pushes and pops.
17001 (grub_vbe_bios_set_mode): Likewise.
17002 (grub_vbe_bios_get_mode): Likewise.
17003 (grub_vbe_bios_get_memory_window): Likewise.
17004 (grub_vbe_bios_set_scanline_length): Likewise.
17005 (grub_vbe_bios_get_scanline_length): Likewise.
17006 (grub_vbe_bios_get_display_start): Likewise.
17007 (grub_vbe_bios_set_palette_data): Likewise.
17009 * normal/cmdline.c (cl_set_pos): Refresh the screen.
17010 (cl_insert): Likewise.
17011 (cl_delete): Likewise.
17013 * term/gfxterm.c: New file.
17015 * term/i386/pc/vesafb.c: Removed file.
17017 * video/video.c: New file.
17019 * video/i386/pc/vbe.c (real2pm): Added new function.
17020 (grub_video_vbe_draw_pixel): Likewise.
17021 (grub_video_vbe_get_video_ptr): Likewise.
17022 (grub_video_vbe_get_pixel): Likewise
17023 (grub_video_vbe_init): Likewise.
17024 (grub_video_vbe_fini): Likewise.
17025 (grub_video_vbe_setup): Likewise.
17026 (grub_video_vbe_get_info): Likewise.
17027 (grub_video_vbe_set_palette): Likewise.
17028 (grub_video_vbe_get_palette): Likewise.
17029 (grub_video_vbe_set_viewport): Likewise.
17030 (grub_video_vbe_get_viewport): Likewise.
17031 (grub_video_vbe_map_color): Likewise.
17032 (grub_video_vbe_map_rgb): Likewise.
17033 (grub_video_vbe_map_rgba): Likewise.
17034 (grub_video_vbe_unmap_color): Likewise.
17035 (grub_video_vbe_fill_rect): Likewise.
17036 (grub_video_vbe_blit_glyph): Likewise.
17037 (grub_video_vbe_blit_bitmap): Likewise.
17038 (grub_video_vbe_blit_render_target): Likewise.
17039 (grub_video_vbe_scroll): Likewise.
17040 (grub_video_vbe_swap_buffers): Likewise.
17041 (grub_video_vbe_create_render_target): Likewise.
17042 (grub_video_vbe_delete_render_target): Likewise.
17043 (grub_video_vbe_set_active_render_target): Likewise.
17044 (grub_vbe_set_pixel_rgb): Remove function.
17045 (grub_vbe_set_pixel_index): Likewise.
17046 (index_color_mode): Remove static variable.
17047 (active_mode): Likewise.
17048 (framebuffer): Likewise.
17049 (bytes_per_scan_line): Likewise.
17050 (grub_video_vbe_adapter): Added new static variable.
17051 (framebuffer): Likewise.
17052 (render_target): Likewise.
17053 (initial_mode): Likewise.
17054 (mode_in_use): Likewise.
17055 (mode_list): Likewise.
17057 2006-03-10 Marco Gerards <marco@gnu.org>
17059 * configure.ac (AC_INIT): Bumped to 1.93.
17061 * DISTLIST: Added `include/grub/hfs.h'.
17063 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
17065 * boot/i386/pc/boot.S (general_error): Before looping, try INT
17066 18H, which might help the BIOS falling back to next boot media.
17068 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
17070 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
17071 Poe Chen <poe.poechen@gmail.com>.
17073 2006-01-17 Marco Gerards <marco@gnu.org>
17075 * include/grub/normal.h: Include <grub/script.h>.
17076 (grub_command_list): Removed struct.
17077 (grub_command_list_t): Removed type.
17078 (grub_menu_entry): Remove members `num' and `command_list'. Add
17079 members `commands' and `sourcecode'.
17080 * include/grub/script.h: Add inclusion guards.
17081 (grub_script_cmd_menuentry): New struct.
17082 (grub_script_execute_menuentry): New prototype.
17083 (grub_script_lexer_record_start): Likewise.
17084 (grub_script_lexer_record_stop): Likewise.
17085 * normal/execute.c (grub_script_execute_menuentry): New function.
17086 * normal/lexer.c (record, recording, recordpos, recordlen): New
17088 (grub_script_lexer_record_start): New function.
17089 (grub_script_lexer_record_stop): Likewise.
17090 (recordchar): Likewise.
17091 (nextchar): Likewise.
17092 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
17093 2048 as the buffer size. Add the tokens `menuentry' and `@'.
17094 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
17095 (current_menu): New variable.
17096 (free_menu): Mainly rewritten.
17097 (grub_normal_menu_addentry): New function.
17098 (read_config_file): Rewritten.
17099 * normal/menu.c (run_menu_entry): Mainly rewritten.
17100 * normal/menu_entry.c (make_screen): Rewritten the code to insert
17102 (run): Mainly rewritten.
17103 * normal/parser.y (menu_entry): New variable.
17104 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
17105 (menuentry): New rule.
17106 (command): Add `menuentry'.
17107 (if_statement): Allow additional returns before `fi'.
17108 * normal/script.c (grub_script_create_cmdmenu): New function.
17110 2006-01-03 Marco Gerards <marco@gnu.org>
17112 * INSTALL: GNU Bison is required.
17113 * configure.ac: Rewritten the test to detect Bison.
17114 * Makefile.in (YACC): New variable. Reported by Xun Sun
17115 <xun.sun.cn@gmail.com>.
17117 2006-01-03 Marco Gerards <marco@gnu.org>
17119 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
17120 the HFS+ filesystem to filesystem blocks.
17121 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
17122 GCC warning is silenced.
17124 2006-01-03 Marco Gerards <marco@gnu.org>
17126 * partmap/apple.c (apple_partition_map_iterate): Convert the data
17127 read from disk from big endian to host byte order.
17129 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
17131 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
17133 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
17134 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
17135 embedded HFS+ filesystem.
17136 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
17137 (grub_hfs_sblock): Move from here...
17138 * include/grub/hfs.h: To here... New file.
17139 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
17141 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
17143 (grub_hfsplus_volheader): Change type of member `magic' to
17145 (grub_hfsplus_data): Add new member `embedded_offset'.
17146 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
17148 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
17149 Calculate the offset.
17151 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
17153 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
17155 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
17157 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
17159 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
17160 ENV->NAME is NULL after allocating ENV->VALUE.
17162 2005-12-25 Marco Gerards <marco@gnu.org>
17164 * kern/env.c (grub_env_set): Rewritten the error handling code.
17166 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
17168 * geninit.sh: Made more robust, and more portable.
17170 2005-12-25 Marco Gerards <marco@gnu.org>
17172 Add support for Apple HFS+ filesystems.
17174 * fs/hfsplus.c: New file.
17176 * DISTLIST: Added `fs/hfsplus.c'.
17178 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
17179 (hfsplus_mod_SOURCES): New variable.
17180 (hfsplus_mod_CFLAGS): Likewise.
17181 (hfsplus_mod_LDFLAGS): Likewise.
17182 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
17183 (grub_setup_SOURCES): Likewise.
17184 (grub_mkdevicemap_SOURCES): Likewise.
17185 (grub_emu_SOURCES): Likewise.
17186 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17188 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
17190 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
17192 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
17194 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
17195 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
17196 include/grub/parser.h, include/grub/script.h, kern/parser.c,
17197 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
17198 normal/lexer.c, normal/parser.y, normal/script.c, and
17200 Removed kern/sparc64/cache.c.
17202 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
17203 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
17206 * configure.ac (AC_INIT): Bumped to 1.92.
17208 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
17210 * kern/err.c (grub_error_push): Added new function to support error
17212 (grub_error_pop): Likewise.
17213 (grub_error_stack_items): New local variable to support error stacks.
17214 (grub_error_stack_pos): Likewise.
17215 (grub_error_stack_assert): Likewise.
17216 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
17218 (grub_print_error): Added support to print errors from error stack.
17220 * include/grub/err.h (grub_error_push): Added function prototype.
17221 (grub_error_pop): Likewise.
17223 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
17225 * configure.ac: Accept `powerpc64' as host_cpu.
17226 (amd64): Rename to `biarch32'.
17228 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
17229 non-cacheline-aligned addresses.
17231 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
17232 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
17233 if `size' is non-zero.
17235 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
17237 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
17238 and `cd' to make sure the filename is not prefixed with a
17240 (pkgdata_MODULES): Add `gpt.mod'.
17241 (gpt_mod_SOURCES): New variable.
17242 (gpt_mod_CFLAGS): Likewise.
17243 (gpt_mod_LDFLAGS): Likewise.
17245 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
17247 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
17250 * partmap/gpt.c: New file.
17252 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
17253 GPT partition map is detected.
17255 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
17257 * commands/i386/pc/play.c: New file.
17258 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
17259 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
17262 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
17264 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
17265 ((unused))' to silence gcc warning.
17267 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
17269 * configure.ac: Correct `AC_PROG_YACC' test.
17271 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
17273 * util/powerpc/ieee1275/grub-install.in: Run the mount point
17274 check before installing files.
17276 2005-11-22 Mike Small <smallm@panix.com>
17278 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
17279 number regex so multidigit numbers are recognized correctly.
17281 2005-11-22 Mike Small <smallm@panix.com>
17283 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
17284 debugging message before attempting to claim memory.
17285 (grub_rescue_cmd_initrd): Add a claim debugging message and try
17286 multiple addresses in case of failure.
17288 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
17290 * term/tparm.c (get_space): Remove empty `if' statement.
17292 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
17294 * kern/parser.c (check_varstate): Rename `state' to 's'.
17296 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
17298 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
17299 variable definitions to the beginning of each function. Sort stack
17301 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
17302 `buf' argument to `char *'.
17304 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
17306 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
17307 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
17308 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
17309 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
17310 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
17311 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
17312 configfile.mod, search.mod, gzio.mod and test.mod.
17313 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
17314 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
17315 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
17316 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
17317 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
17318 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
17319 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
17320 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
17321 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
17322 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
17323 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
17324 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
17325 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
17326 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
17327 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
17328 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
17329 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
17330 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
17331 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
17332 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
17333 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
17334 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
17335 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
17337 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
17339 (pkgdata_MODULES): Add test.mod.
17341 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17343 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
17344 appending to variables with "+=".
17345 (PModule): Use full pathname to generate *.lst filenames.
17347 * Makefile.in: Fixed list rules moved from genmk.rb.
17348 (.DELETE_ON_ERROR): New special target.
17349 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
17351 * conf/i386-pc.rmk: Include conf/common.mk.
17352 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
17353 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
17354 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
17355 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
17356 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
17357 configfile.mod, search.mod, gzio.mod and test.mod.
17358 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
17359 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
17360 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
17361 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
17362 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
17363 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
17364 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
17365 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
17366 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
17367 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
17368 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
17369 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
17370 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
17371 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
17372 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
17373 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
17374 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
17375 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
17376 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
17377 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
17378 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
17379 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
17380 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
17382 * conf/common.rmk: ... to here. New file.
17384 * conf/common.mk: New file.
17386 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
17388 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
17389 (grub_script.tab.c): ... here.
17391 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
17392 (grub_script.tab.c): ... here.
17394 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
17395 (grub_script.tab.c): ... here.
17397 * normal/command.c (grub_command_find): Fixed a memory leak of
17398 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
17400 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17402 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
17403 "@" which marks the start of a comment on ARM.
17404 (VARIABLE): Likewise.
17406 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17408 Add support for Linux/ADFS partition tables.
17410 * partmap/acorn.c: New file.
17412 * include/grub/acorn_filecore.h: Likewise.
17414 * DISTLIST: Added `partmap/acorn.c' and
17415 `include/grub/acorn_filecore.h'.
17417 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17419 (pkgdata_MODULES): Add `acorn.mod'.
17420 (acorn_mod_SOURCES): New variable.
17421 (acorn_mod_CFLAGS): Likewise.
17423 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
17425 (pkgdata_MODULES): Add `acorn.mod'.
17426 (acorn_mod_SOURCES): New variable.
17427 (acorn_mod_CFLAGS): Likewise.
17429 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
17430 (pkgdata_MODULES): Add `acorn.mod'.
17431 (acorn_mod_SOURCES): New variable.
17432 (acorn_mod_CFLAGS): Likewise.
17433 (acorn_mod_LDFLAGS): Likewise.
17435 * include/types.h (grub_disk_addr_t): New typedef.
17437 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
17439 * geninit.sh: New file.
17441 * geninitheader.sh: Likewise.
17443 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
17444 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
17445 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
17446 * commands/configfile.c (grub_configfile_init)
17447 (grub_configfile_fini): Likewise.
17448 * commands/default.c (grub_default_init, grub_default_fini):
17450 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
17451 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
17452 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
17453 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
17455 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
17456 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
17458 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
17459 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
17461 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
17463 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
17465 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
17466 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
17467 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
17468 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
17469 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
17470 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
17471 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
17472 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
17473 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
17474 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
17475 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
17476 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
17477 * partmap/amiga.c (grub_amiga_partition_map_init)
17478 (grub_amiga_partition_map_fini): Likewise.
17479 * partmap/apple.c (grub_apple_partition_map_init)
17480 (grub_apple_partition_map_fini): Likewise.
17481 * partmap/pc.c (grub_pc_partition_map_init)
17482 (grub_pc_partition_map_fini): Likewise.
17483 * partmap/sun.c (grub_sun_partition_map_init,
17484 grub_sun_partition_map_fini): Likewise.
17485 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
17488 * util/grub-emu.c: Include <grub_modules_init.h>.
17489 (main): Don't initialize and de-initialize any modules directly,
17490 use `grub_init_all' and `grub_fini_all' instead.
17492 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
17493 `grub_vesafb_mod_init'.
17494 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
17496 * term/i386/pc/vga.c (grub_vga_init): Renamed to
17497 `grub_vga_mod_init'. Updated all users.
17498 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
17500 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
17501 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
17504 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
17505 Generate a function to initialize the module in utilities.
17506 Updated all callers.
17507 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
17508 initialize the module in utilities. Updated all callers.
17510 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
17512 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
17513 escape sequence and a literal ^L to clear the screen.
17515 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
17516 when returning from Open Firmware.
17518 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
17520 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
17521 (grub_ofconsole_height): Likewise.
17522 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
17523 manually insert a '\n'.
17524 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
17525 `grub_ofconsole_height'. Return early if these are already set.
17527 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
17529 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
17530 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
17531 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
17532 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
17533 and `normal/script.c'.
17534 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
17535 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
17536 (test_mod_SOURCES): New variable.
17537 (test_mod_CFLAGS): Likewise.
17538 (test_mod_LDFLAGS): Likewise.
17539 (pkgdata_MODULES): Add `test.mod'.
17540 (grub_script.tab.c): New rule.
17541 (grub_script.tab.h): Likewise.
17543 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
17545 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17546 `commands/test.c', `normal/execute.c', `normal/lexer.c',
17547 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
17548 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
17549 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
17550 (test_mod_SOURCES): New variable.
17551 (test_mod_CFLAGS): Likewise.
17552 (pkgdata_MODULES): Add `test.mod'.
17553 (grub_script.tab.c): New rule.
17554 (grub_script.tab.h): Likewise.
17556 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
17558 Add initial scripting support.
17560 * commands/test.c: New file.
17561 * include/grub/script.h: Likewise.
17562 * normal/execute.c: Likewise.
17563 * normal/function.c: Likewise.
17564 * normal/lexer.c: Likewise.
17565 * normal/parser.y: Likewise.
17566 * normal/script.c: Likewise.
17568 * configure.ac: Add `AC_PROG_YACC' test.
17570 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
17571 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
17572 `normal/function.c' and `normal/script.c'.
17573 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
17574 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
17575 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
17577 (pkgdata_MODULES): Add `test.mod'.
17578 (grub_script.tab.c): New rule.
17579 (grub_script.tab.h): Likewise.
17581 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
17583 * include/grub/normal.h (grub_test_init): New prototype.
17584 (grub_test_fini): Likewise.
17586 * normal/command.c: Include <grub/script.h>.
17587 (grub_command_execute): Rewritten.
17589 * util/grub-emu.c (main): Call `grub_test_init' and
17592 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
17594 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
17596 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
17597 there are no pending characters.
17599 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
17601 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
17602 `grub_strndup' to drop device arguments. Replace unnecessary
17603 `grub_strndup' with `grub_strdup'.
17605 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
17607 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
17608 `debug' environment variable has been set.
17610 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
17612 * Makefile.in (install-local): Use $(DATA).
17613 (uninstall): Likewise.
17614 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
17615 (sbin_UTILITIES): ... to here.
17616 (sbin_SCRIPTS): New variable.
17617 (grub_install_SOURCES): New variable.
17618 * util/powerpc/ieee1275/grub-install.in: New file.
17619 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
17621 (add_segments): Call `grub_util_get_path'.
17623 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
17625 From Timothy Baldwin:
17626 * commands/ls.c (grub_ls_list_files): Close FILE with
17628 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
17630 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
17632 * include/grub/parser.h: New file.
17634 * kern/parser.c: Likewise.
17636 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
17637 (grub_setup_SOURCES): Likewise.
17638 (grub_probefs_SOURCES): Likewise.
17639 (grub_emu_SOURCES): Likewise.
17640 (kernel_img_HEADERS): Add `parser.h'.
17642 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
17643 (grub_emu_SOURCES): Add `kern/parser.c'.
17644 (grubof_SOURCES): Likewise.
17646 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
17647 (grubof_SOURCES): Add `kern/parser.c'.
17649 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
17651 * kern/misc.c (grub_split_cmdline): Removed function.
17653 * kern/rescue.c: Include <grub/parser.h>.
17654 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
17655 of `grub_split_cmdline'.
17657 * normal/command.c: Include <grub/parser.h>.
17658 (grub_command_execute): Use `grub_parser_split_cmdline' instead
17659 of `grub_split_cmdline'.
17661 * normal/completion.c: Include <grub/parser.h>.
17662 (cmdline_state): New variable.
17663 (iterate_dir): End the filename with a quote depending on the
17664 command line state.
17665 (get_state): new function.
17666 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
17667 split the arguments and determine the current argument. When the
17668 argument string is not quoted, escape all spaces.
17670 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
17672 * normal/sparc64/setjmp.S: New file.
17674 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
17676 * include/grub/sparc64/libgcc.h: New file.
17677 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
17678 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
17679 normal/sparc64/setjmp.c.
17681 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
17683 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
17684 * kern/sparc64/cache.S: New file.
17685 * kern/sparc64/cache.c: Removed.
17686 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
17687 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
17689 (COMMON_LDFLAGS): Add -melf64_sparc.
17690 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
17691 (grubof_SOURCES): Use cache.S instead of cache.c.
17692 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
17693 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
17694 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
17696 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
17697 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
17698 (linux_mod_CFLAGS): Commented out.
17699 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
17700 out because module isn't built.
17701 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
17702 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
17703 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
17704 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
17705 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
17706 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
17707 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
17708 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
17709 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
17710 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
17711 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
17712 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
17713 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
17714 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
17716 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
17718 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
17719 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
17720 longer, because HFS should not be used on PC.
17722 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17724 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
17725 consistently within the loop.
17727 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
17729 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
17730 directory can not be read.
17732 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
17734 * configure.ac (AC_INIT): Increase the version number to 1.91.
17736 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
17737 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
17738 term/i386/pc/serial.c.
17740 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
17742 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
17743 file size must be permitted.
17745 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
17746 between %ah and %al.
17748 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
17750 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
17752 Call the hook with a NUL-terminated filename.
17753 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
17756 * kern/term.c (cursor_state): New variable.
17757 (grub_term_set_current): Reset the cursor state on a new
17759 (grub_setcursor): Rewritten to use CURSOR_STATE.
17760 (grub_getcursor): New function.
17762 * include/grub/term.h (grub_getcursor): New prototype.
17764 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
17765 integers on ARM. Reported by Timothy Baldwin
17766 <T.E.Baldwin99@members.leeds.ac.uk>.
17768 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
17770 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
17772 (grub_sfs_dir): Likewise.
17774 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
17776 Add support for the SFS filesystem.
17778 * fs/sfs.c: New file.
17780 * DISTLIST: Added `fs/sfs.c'.
17782 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
17783 (grub_probefs_SOURCES): Likewise.
17784 (grub_emu_SOURCES): Likewise.
17785 (pkgdata_MODULES): Add `sfs.mod'.
17786 (sfs_mod_SOURCES): New variable.
17787 (sfs_mod_CFLAGS): Likewise.
17788 (sfs_mod_LDFLAGS): Likewise.
17790 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
17791 (pkgdata_MODULES): Add `sfs.mod'.
17792 (sfs_mod_SOURCES): New variable.
17793 (sfs_mod_CFLAGS): Likewise.
17795 * util/grub-emu.c (main): Call `grub_sfs_init' and
17798 * include/grub/fs.h (grub_sfs_init): New prototype.
17799 (grub_sfs_fini): Likewise.
17801 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
17803 Add support for the AFFS filesystem.
17805 * fs/affs.c: New file.
17807 * DISTLIST: Added `fs/affs.c'.
17809 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
17810 (grub_probefs_SOURCES): Likewise.
17811 (grub_emu_SOURCES): Likewise.
17812 (pkgdata_MODULES): Add `affs.mod'.
17813 (affs_mod_SOURCES): New variable.
17814 (affs_mod_CFLAGS): Likewise.
17815 (affs_mod_LDFLAGS): Likewise.
17817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
17818 (pkgdata_MODULES): Add `affs.mod'.
17819 (affs_mod_SOURCES): New variable.
17820 (affs_mod_CFLAGS): Likewise.
17822 * util/grub-emu.c (main): Call `grub_affs_init' and
17825 * include/grub/fs.h (grub_affs_init): New prototype.
17826 (grub_affs_fini): Likewise.
17828 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
17830 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
17832 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
17834 * configure.ac: Accept `x86_64' as host_cpu. In that case add
17837 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
17840 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
17841 (COMMON_LDFLAGS): New variable.
17842 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
17843 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
17844 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
17845 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
17846 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
17847 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
17848 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
17849 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
17850 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
17851 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
17852 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
17853 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
17854 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
17855 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
17856 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
17858 (normal_mod_ASFLAGS): Add `-m32'.
17860 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
17861 (grub_host_size_t, grub_host_ssize_t): New types.
17862 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
17863 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
17864 `GRUB_HOST_SIZEOF_VOID_P'.
17866 * include/grub/kernel.h (struct grub_module_header): Type of
17867 member offset changed to `grub_host_off_t'. Type of member size
17868 changed to `grub_host_size_t'.
17869 (struct grub_module_info): Type of member offset changed to
17870 `grub_host_off_t'. Type of member size changed to
17871 `grub_host_size_t'.
17873 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
17875 Make GRUB's kernel compliant to Multiboot Specification.
17877 * kern/i386/pc/startup.S (multiboot_header): New label.
17878 (multiboot_entry): Likewise.
17879 (multiboot_trampoline): Likewise.
17881 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17882 Increased to 0x4A0.
17884 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
17885 put parentheses after a question mark.
17886 [!GRUB_UTIL] (my_mod): New variable.
17888 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
17890 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
17892 Adds support for the XFS filesystem. Btrees are not supported
17895 * fs/xfs.c: New file.
17897 * DISTLIST: Added `fs/xfs.c'.
17899 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
17900 (grub_probefs_SOURCES): Likewise.
17901 (grub_emu_SOURCES): Likewise.
17902 (pkgdata_MODULES): Add `xfs.mod'.
17903 (xfs_mod_SOURCES): New variable.
17904 (xfs_mod_CFLAGS): Likewise.
17906 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
17907 (pkgdata_MODULES): Add `xfs.mod'.
17908 (xfs_mod_SOURCES): New variable.
17909 (xfs_mod_CFLAGS): Likewise.
17911 * util/grub-emu.c (main): Call `grub_xfs_init' and
17914 * include/grub/fs.h (grub_xfs_init): New prototype.
17915 (grub_xfs_fini): Likewise.
17918 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
17920 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
17921 color modes, allow greater than 16 colors to be configured as
17924 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
17926 * normal/completion.c (complete_arguments): Add the qualifier
17927 const into OPTIONS.
17929 From Omniflux <omniflux+lists@omniflux.com>:
17930 * include/grub/terminfo.h: New file.
17931 * include/grub/tparm.h: Likewise.
17932 * include/grub/i386/pc/serial.h: Likewise.
17933 * term/terminfo.c: Likewise.
17934 * term/tparm.c: Likewise.
17935 * term/i386/pc/serial.c: Likewise.
17936 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
17938 (terminfo_mod_SOURCES): New variable.
17939 (terminfo_mod_CFLAGS): Likewise.
17940 (serial_mod_SOURCES): Likewise.
17941 (serial_mod_CFLAGS): Likewise.
17943 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
17945 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
17946 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
17947 and kern/powerpc/ieee1275/cmain.c, respectively.
17949 * boot/powerpc/ieee1275/crt0.S: Moved to ...
17950 * kern/powerpc/ieee1275/crt0.S: ... here.
17952 * boot/powerpc/ieee1275/cmain.c: Moved to ...
17953 * kern/powerpc/ieee1275/cmain.c: ... here.
17955 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
17956 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
17957 instead of boot/powerpc/ieee1275/crt0.S and
17958 boot/powerpc/ieee1275/cmain.c, respectively.
17960 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
17961 sectors. It was not used anyway.
17963 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
17965 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
17966 `unused parameter' warning.
17968 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
17970 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
17972 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
17975 2005-08-28 Marco Gerards <metgerards@student.han.nl>
17977 * include/grub/normal.h (enum grub_completion_type): Added
17978 `GRUB_COMPLETION_TYPE_ARGUMENT'.
17980 * normal/cmdline.c (print_completion): Handle
17981 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
17982 * normal/menu_entry.c (store_completion): Likewise.
17984 * normal/completion.c (complete_arguments): New function.
17985 (grub_normal_do_completion): Call `complete_arguments' when the
17986 current words start with a dash.
17988 2005-08-27 Marco Gerards <metgerards@student.han.nl>
17990 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
17991 `gzio.mod' instead of `io.mod').
17993 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
17995 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
17996 (DISTDIRS): Added io and video.
17997 Rewrite the search routine to make an output consistently.
17999 * DISTLIST: Added conf/sparc64-ieee1275.mk,
18000 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
18001 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
18002 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
18003 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
18004 util/powerpc/ieee1275/misc.c.
18006 * include/grub/gzio.h: New file.
18007 * io/gzio.c: Likewise.
18009 * kern/file.c (grub_file_close): Call grub_device_close only if
18010 FILE->DEVICE is not NULL.
18012 * include/grub/mm.h [!NULL] (NULL): New macro.
18014 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
18016 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
18017 (pkgdata_MODULES): Added gzio.mod.
18018 (gzio_mod_SOURCES): New variable.
18019 (gzio_mod_CFLAGS): Likewise.
18021 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
18022 (pkgdata_MODULES): Added gzio.mod.
18023 (gzio_mod_SOURCES): New variable.
18024 (gzio_mod_CFLAGS): Likewise.
18026 * commands/cat.c: Include grub/gzio.h.
18027 (grub_cmd_cat): Use grub_gzfile_open instead of
18030 * commands/cmp.c: Include grub/gzio.h.
18031 (grub_cmd_cmp): Use grub_gzfile_open instead of
18034 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
18035 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
18037 (grub_rescue_cmd_module): Likewise.
18039 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
18041 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
18042 kern/sparc64/ieee1275/init.c because it contains _start.
18043 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
18045 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
18047 * configure.ac: Add support for sparc64 host with ieee1275
18049 * configure: Generated from configure.ac.
18050 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
18052 (grub_ofdisk_read): Likewise.
18053 (grub_ofdisk_open): Use %p to print pointer values, and cast the
18054 pointers as (void *) to remove a warning.
18055 (grub_ofdisk_close): Likewise.
18056 (grub_ofdisk_read): Likewise.
18057 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
18058 returns, so make it return void to remove a warning.
18059 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
18060 Corresponding prototype change.
18061 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
18062 values, and cast the pointers as (void *) to remove a warning.
18063 (grub_mm_dump): Likewise.
18064 * conf/sparc64-ieee1275.mk: New file.
18065 * conf/sparc64-ieee1275.rmk: Likewise.
18066 * include/grub/sparc64/setjmp.h: Likewise.
18067 * include/grub/sparc64/types.h: Likewise.
18068 * include/grub/sparc64/ieee1275/console.h: Likewise.
18069 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
18070 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
18071 * include/grub/sparc64/ieee1275/time.h: Likewise.
18072 * kern/sparc64/cache.c: Likewise.
18073 * kern/sparc64/dl.c: Likewise.
18074 * kern/sparc64/ieee1275/init.c: Likewise.
18075 * kern/sparc64/ieee1275/openfw.c: Likewise.
18077 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
18079 * util/console.c (grub_ncurses_putchar): If C is greater than
18080 0x7f, set C to a question mark.
18081 (grub_ncurses_getcharwidth): New function.
18082 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
18085 * normal/menu.c (print_entry): Made aware of Unicode. First,
18086 convert TITLE to UCS-4, and predict the cursor position by
18089 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
18091 * kern/misc.c (grub_utf16_to_utf8): Likewise.
18093 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
18095 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
18096 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
18099 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
18100 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
18101 grub_strcpy and grub_strlen. Take it into account that a space
18102 character is inserted as a delimiter.
18104 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
18106 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
18107 invalid magic in the error.
18109 * commands/search.c: New file.
18111 * util/grub-emu.c (main): Call grub_search_init and
18114 * kern/rescue.c (grub_rescue_print_disks): Removed.
18115 (grub_rescue_print_devices): New function.
18116 (grub_rescue_cmd_ls): Use grub_device_iterate with
18117 grub_rescue_print_devices instead of grub_disk_dev_iterate with
18118 grub_rescue_print_disks.
18120 * kern/partition.c (grub_partition_iterate): Return the result of
18121 PARTMAP->ITERATE instead of GRUB_ERRNO.
18123 * kern/device.c: Include grub/partition.h.
18124 (grub_device_iterate): New function.
18126 * include/grub/partition.h (grub_partition_iterate): Return int
18127 instead of grub_err_t.
18129 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
18131 [GRUB_UTIL] (grub_search_fini): Likewise.
18133 * include/grub/device.h (grub_device_iterate): New prototype.
18135 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18137 (pkgdata_MODULES): Added search.mod.
18138 (search_mod_SOURCES): New variable.
18139 (search_mod_CFLAGS): Likewise.
18141 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
18142 (pkgdata_MODULES): Added search.mod.
18143 (search_mod_SOURCES): New variable.
18144 (search_mod_CFLAGS): Likewise.
18146 * commands/ls.c (grub_ls_list_disks): Renamed to ...
18147 (grub_ls_list_devices): ... this, and use grub_device_iterate.
18148 All callers changed.
18150 * DISTLIST: Added commands/search.c.
18152 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
18154 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
18156 (grub_getcharwidth): New function.
18158 * kern/misc.c (grub_utf8_to_ucs4): New function.
18160 * include/grub/term.h (struct grub_term): Added a new member
18162 (grub_getcharwidth): New prototype.
18164 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
18166 * term/i386/pc/console.c (map_char): New function. Segregated from
18167 grub_console_putchar.
18168 (grub_console_putchar): Use map_char.
18169 (grub_console_getcharwidth): New function.
18170 (grub_console_term): Specified grub_console_getcharwidth as
18173 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
18174 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
18176 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
18178 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
18179 on grub_strtoul completely.
18180 (write_char): Declare local variables in the beginning of the
18182 (grub_vesafb_getcharwidth): New function.
18183 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
18186 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
18188 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
18189 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
18190 commands/i386/pc/vbetest.c.
18192 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
18193 call grub_vbe_get_controller_info again, because the returned
18194 information is volatile.
18195 (grub_vbe_set_video_mode): Mostly rewritten.
18196 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
18197 grub_vbe_status_t correctly.
18198 (grub_vbe_get_video_mode_info): Likewise.
18199 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
18200 several if statements.
18202 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
18203 * commands/i386/pc/vbeinfo.c: ... this.
18205 * commands/i386/pc/vbe_test.c: Renamed to ...
18206 * commands/i386/pc/vbetest.c: ... this.
18208 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
18210 (grub_cmd_vbeinfo): ... this. Save video modes before
18211 iterating. Skip a video mode, if it is not available, not enough
18212 information is given or it is monochrome. Show the memory
18213 model. Leave the interpretation of MODEVAR to grub_strtoul
18215 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
18216 (GRUB_MOD_FINI): Likewise.
18218 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
18219 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
18220 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
18221 duplicated grub_env_get. Leave the interpretation of MODEVAR to
18222 grub_strtoul completely.
18223 (real2pm): Removed.
18224 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
18225 (GRUB_MOD_FINI): Likewise.
18227 * normal/misc.c: Include grub/mm.h.
18229 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
18230 vbe_list_modes with vbetest.mod and vbeinfo.mod.
18231 (vbe_list_modes_mod_SOURCES): Removed.
18232 (vbe_list_modes_mod_CFLAGS): Likewise.
18233 (vbe_test_mod_SOURCES): Likewise.
18234 (vbe_test_mod_CFLAGS): Likewise.
18235 (vbeinfo_mod_SOURCES): New variable.
18236 (vbeinfo_mod_CFLAGS): Likewise.
18237 (vbetest_mod_SOURCES): Likewise.
18238 (vbetest_mod_CFLAGS): Likewise.
18240 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
18242 * normal/misc.c: New file.
18244 * DISTLIST: Added normal/misc.c.
18246 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
18247 DISK to HOOK. Call HOOK with DISK.
18248 * partmap/apple.c (apple_partition_map_iterate): Likewise.
18249 * partmap/pc.c (pc_partition_map_iterate): Likewise.
18250 * partmap/sun.c (sun_partition_map_iterate): Likewise.
18252 * normal/menu_entry.c (struct screen): Added a new member
18253 "completion_shown".
18254 (completion_buffer): New global variable.
18255 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
18256 (store_completion): New function.
18257 (complete): Likewise.
18258 (clear_completions): Likewise.
18259 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
18260 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
18261 a tab, call complete.
18263 * normal/completion.c (disk_dev): Removed.
18264 (print_simple_completion): Likewise.
18265 (print_partition_completion): Likewise.
18266 (print_func): New global variable.
18267 (add_completion): Do not take the arguments WHAT or PRINT any
18268 longer. Added a new argument TYPE. Instead of printing directly,
18269 call PRINT_FUNC if not NULL.
18270 All callers changed.
18271 (complete_device): Use a local variable DEV instead of
18272 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
18273 (grub_normal_do_completion): Take a new argument HOOK. Do not
18274 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
18275 empty string, return NULL instead.
18276 All callers changed.
18278 * normal/cmdline.c (print_completion): New function.
18280 * kern/partition.c (grub_partition_iterate): Add an argument DISK
18282 All callers changed.
18284 * kern/disk.c (grub_print_partinfo): Removed.
18286 * include/grub/partition.h (struct grub_partition_map): Add a new
18287 argument DISK into HOOK of ITERATE.
18288 (grub_partition_iterate): Add a new argument DISK to HOOK.
18290 * include/grub/normal.h (enum grub_completion_type): New enum.
18291 (grub_completion_type_t): New type.
18292 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
18293 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
18294 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
18295 (GRUB_COMPLETION_TYPE_FILE): Likewise.
18296 (grub_normal_do_completion): Added a new argument HOOK.
18297 (grub_normal_print_device_info): New prototype.
18299 * include/grub/disk.h (grub_print_partinfo): Removed.
18301 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
18302 (normal_mod_SOURCES): Likewise.
18303 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18304 (normal_mod_SOURCES): Likewise.
18306 * commands/ls.c (grub_ls_list_disks): Use
18307 grub_normal_print_device_info instead of grub_print_partinfo. Free
18309 (grub_ls_list_files): Use grub_normal_print_device_info instead of
18310 duplicating the code.
18312 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
18314 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
18315 follow GCS more precisely.
18316 * commands/i386/pc/vbe_test.c: Likewise.
18317 * include/grub/i386/pc/vbe.h: Likewise.
18318 * term/i386/pc/vesafb.c: Likewise.
18319 * video/i386/pc/vbe.c: Likewise.
18321 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
18323 * DISTLIST: Added term/i386/pc/vesafb.c
18324 DISTLIST: Added video/i386/pc/vbe.c
18325 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
18326 DISTLIST: Added commands/i386/pc/vbe_test.c.
18327 * commands/i386/pc/vbe_list_modes.c: New file.
18328 * commands/i386/pc/vbe_test.c: Likewise.
18329 * term/i386/pc/vesafb.c: Likewise.
18330 * video/i386/pc/vbe.c: Likewise.
18331 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
18332 (grub_vbe_probe) Added prototype.
18333 (grub_vbe_set_video_mode) Likewise.
18334 (grub_vbe_get_video_mode) Likewise.
18335 (grub_vbe_get_video_mode_info) Likewise.
18336 (grub_vbe_set_pixel_rgb) Likewise.
18337 (grub_vbe_set_pixel_index) Likewise.
18338 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
18339 (pkgdata_MODULES): Added vesafb.mod.
18340 (pkgdata_MODULES): Added vbe_list_modes.mod.
18341 (pkgdata_MODULES): Added vbe_test.mod.
18342 (vbe_mod_SOURCES): Added.
18343 (vbe_mod_CFLAGS): Likewise.
18344 (vesafb_mod_SOURCES): Likewise.
18345 (vesafb_mod_CFLAGS): Likewise.
18346 (vbe_list_modes_mod_SOURCES): Likewise.
18347 (vbe_list_modes_mod_CFLAGS): Likewise.
18348 (vbe_test_mod_SOURCES): Likewise.
18349 (vbe_test_mod_CFLAGS): Likewise.
18351 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
18353 * normal/command.c (grub_command_execute): If INTERACTIVE is
18354 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
18355 CMDLINE. Disable the pager if INTERACTIVE is true.
18356 All callers are changed.
18358 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
18359 before reading a config file.
18360 * normal/main.c (read_config_file): Even if a command is not
18361 found, register it if it is within an entry.
18363 * util/grub-emu.c: Include sys/types.h and unistd.h.
18364 (options): Added --hold.
18365 (struct arguments): Added a new member "hold".
18366 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
18368 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
18369 cleared by a debugger, if it is not zero.
18371 * include/grub/normal.h (grub_command_execute): Add an argument
18374 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
18376 * DISTLIST: Added include/grub/i386/pc/vbe.h.
18378 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
18380 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
18381 program with another one, because the old one didn't detect a bug
18382 in gcc-3.4. Always use regparm 2, because the new test is still
18383 not enough for gcc-4.0. Someone must investigate a simple test
18384 case which detects a bug in gcc-4.0.
18386 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
18388 * DISTLIST: Added normal/completion.c.
18390 * normal/completion.c: New file.
18392 * term/i386/pc/console.c (grub_console_getwh): New function.
18393 (grub_console_term): Assign grub_console_getwh to getwh.
18395 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
18396 function is defined in normal/completion.c as
18397 grub_normal_do_completion.
18398 (grub_cmdline_get): Use grub_normal_do_completion instead of
18401 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
18402 returns non-zero, otherwise return 0.
18403 (grub_partition_iterate): First, probe the partition map. Then,
18404 call ITERATE only for this partition map.
18406 * kern/misc.c (grub_strncmp): Rewritten.
18408 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
18409 returns non-zero. Otherwise return 0.
18411 * include/grub/partition.h (grub_partition_map_iterate): Return
18412 int instead of void.
18414 * include/grub/normal.h (grub_normal_do_completion): New prototype.
18416 * include/grub/misc.h (grub_strncmp): Change the type of N to
18419 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
18422 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
18423 unsigned explicitly before comparing it with I.
18425 * kern/main.c (grub_env_write_root): Add the attribute unused into
18428 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18429 normal/completion.c.
18430 (normal_mod_SOURCES): Likewise.
18431 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18432 (normal_mod_SOURCES): Likewise.
18434 * normal/command.c (grub_iterate_commands): If ITERATE returns
18435 non-zero, return one immediately.
18437 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
18439 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
18440 * kern/i386/pc/startup.S: Updated Global Descriptor table's
18442 (grub_vbe_get_controller_info): New function.
18443 (grub_vbe_get_mode_info): Likewise.
18444 (grub_vbe_set_mode): Likewise.
18445 (grub_vbe_get_mode): Likewise.
18446 (grub_vbe_set_memory_window): Likewise.
18447 (grub_vbe_get_memory_window): Likewise.
18448 (grub_vbe_set_scanline_length): Likewise.
18449 (grub_vbe_get_scanline_length): Likewise.
18450 (grub_vbe_set_display_start): Likewise.
18451 (grub_vbe_get_display_start): Likewise.
18452 (grub_vbe_set_palette_data): Likewise.
18453 * include/grub/i386/pc/vbe.h: New file.
18455 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
18457 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
18458 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
18459 * DISTLIST: Likewise.
18460 * kern/ieee1275/of.c: Moved to ...
18461 * kern/ieee1275/ieee1275.c: ... here.
18463 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
18465 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
18466 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
18467 Pass 0 as `end' parameter to grub_strtoul().
18469 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
18471 * include/grub/powerpc/ieee1275/console.h: Do not include
18472 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
18474 (grub_console_cur_color): Remove i386-specific prototype.
18475 (grub_console_real_putchar): Likewise.
18476 (grub_console_checkkey): Likewise.
18477 (grub_console_getkey): Likewise.
18478 (grub_console_getxy): Likewise.
18479 (grub_console_gotoxy): Likewise.
18480 (grub_console_cls): Likewise.
18481 (grub_console_setcursor): Likewise.
18482 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
18483 Include <grub/machine/console.h>.
18484 * term/ieee1275/ofconsole.c: Likewise.
18486 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
18488 * Makefile.in (LIBLZO): New variable.
18490 * configure.ac: Check for LZO version 2.
18492 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
18493 lzo/lzo1x.h instead of lzo1x.h.
18495 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
18498 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
18499 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
18501 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
18502 copying the data from PARTITION to P.
18504 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
18506 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
18507 negative, unload the module.
18509 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
18510 map is "pc_partition_map" but not "pc".
18511 (usage): Fix the description. The options are --boot-image and
18512 --core-image but not --boot-file or --core-file.
18513 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
18514 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
18517 * util/i386/pc/grub-install.in: Do not specify --boot-file or
18518 --core-file. Specify INSTALL_DEVICE as an argument.
18520 * util/console.c: Include config.h.
18521 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
18522 [HAVE_NCURSES_H]: Include ncurses.h.
18523 [HAVE_CURSES_H]: Include curses.h.
18524 [!A_NORMAL] (A_NORMAL): Defined as zero.
18525 [!A_STANDOUT] (A_STANDOUT): Likewise.
18527 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
18529 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
18531 * configure.ac: Check for curses libraries and headers.
18533 * Makefile.in (LIBCURSES): New variable.
18535 * genmk.rb (Script::rule): Set the executable bits.
18537 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
18538 name of the PC partition map is "pc_partition_map" but not "pc".
18540 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
18542 * util/i386/pc/grub-install.in (grub_probefs): New variable.
18543 (modules): Likewise.
18544 (usage): Added descriptions for --modules and --grub-probefs.
18545 Handle --modules and --grub-probefs. Save the arguments in MODULES
18546 and GRUB_PROBEFS, respectively.
18547 Auto-detect a filesystem module against GRUBDIR. If the result is
18548 empty and modules are not specified explicitly, abort the
18549 installation. Add the result to MODULES.
18551 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
18552 disk/powerpc/ieee1275/ofdisk.c,
18553 include/grub/powerpc/ieee1275/init.h and
18554 term/powerpc/ieee1275/ofconsole.c.
18555 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
18556 term/ieee1275/ofconsole.c.
18558 * include/grub/powerpc/ieee1275/console.h: Resurrected.
18560 * COPYING: Upgraded to the latest version. Only the address of the
18561 FSF office has changed.
18563 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
18565 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
18566 kern/ieee1275.c with kern/ieee1275/of.c.
18568 * kern/ieee1275.c: Moved to ...
18569 * kern/ieee1275/of.c: ... here.
18571 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
18573 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
18576 * config.guess: Updated to the latest version from gnulib.
18577 * config.sub: Likewise.
18578 * install.sh: Likewise.
18579 * mkinstalldirs: Likewise.
18581 * include/grub/console.h: Removed. This file is arch-specific. Do
18582 not put this in include/grub.
18584 * include/grub/i386/pc/console.h: Resurrected.
18586 * util/console.c: Include grub/machine/console.h instead of
18588 * util/grub-emu.c: Likewise.
18590 2005-08-04 Marco Gerards <metgerards@student.han.nl>
18592 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
18595 From Vincent Pelletier <subdino2004@yahoo.fr>
18596 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
18597 Redefined to use grub_getwh.
18598 (grub_term): New member named getwh.
18599 (grub_getwh): New prototype.
18600 * kern/term.c (grub_getwh): New function.
18601 * term/i386/pc/console.c (grub_console_getwh): New function.
18602 (grub_console_term): New member `getwh'.
18603 * term/i386/pc/vga.c (grub_vga_getwh): New function.
18604 (grub_vga_term): New member `getwh'.
18605 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
18607 (grub_ofconsole_getw): New function.
18608 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
18609 (grub_ofconsole_term): New field named getwh and new initial
18612 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
18614 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
18615 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
18616 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
18617 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
18618 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
18619 of <grub/machine/ieee1275.h>.
18620 * commands/ieee1275/reboot.c: Likewise.
18621 * boot/powerpc/ieee1275/ieee1275.c: Move ...
18622 * kern/ieee1275.c: ... to here. All users updated. Change all
18623 parameter structs to use new type `grub_ieee1275_cell_t'.
18624 * term/powerpc/ieee1275/ofconsole.c: Move ...
18625 * term/ieee1275/ofconsole.c: ... to here. All users updated.
18626 * disk/powerpc/ieee1275/ofdisk.c: Move ...
18627 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
18628 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
18630 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
18631 Remove unused prototypes. All users updated.
18632 * include/grub/powerpc/ieee1275/console.h: Removed.
18633 * include/grub/powerpc/ieee1275/ieee1275.h: Define
18634 `grub_ieee1275_cell_t'.
18635 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
18636 Cast comparisons with -1 to the correct type.
18637 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
18638 type to match `grub_ieee1275_entry_fn'.
18640 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
18642 * DISTLIST: Added util/i386/pc/grub-probefs.c.
18644 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
18645 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
18647 (grub_probefs_SOURCES): New variable.
18649 * util/i386/pc/grub-probefs.c: New file.
18651 * util/i386/pc/grub-setup.c (main): Call
18652 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
18653 grub_hfs_init and grub_jfs_init to initialize the system. Call
18654 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
18655 grub_pc_partition_map_fini to finish the system.
18657 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
18659 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
18661 (grub_multiboot_load_elf32): Likewise.
18662 (grub_multiboot_is_elf64): Likewise.
18663 (grub_multiboot_load_elf64): Likewise.
18664 (grub_multiboot_load_elf): Likewise.
18665 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
18666 an ELF32 or ELF64 file.
18667 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
18669 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
18670 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
18671 NULL before calling FS->LABEL.
18672 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
18673 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
18674 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
18675 before calling FS->LABEL.
18677 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
18679 * util/i386/pc/grub-install.in (datadir): New variable.
18681 (pkgdatadir): New variable.
18682 (pkglibdir): Removed.
18684 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
18686 * DISTLIST: Added util/i386/pc/grub-install.in.
18688 * util/i386/pc/grub-install.in: New file.
18690 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
18691 (grub_install_SOURCES): Likewise.
18693 * genmk.rb: Added support for scripts.
18694 (Script): New class.
18695 (scripts): New variable.
18697 * Makefile.in (install-local): Install sbin_SCRIPTS by
18699 (uninstall): Remove sbin_SCRIPTS.
18701 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
18702 device, try to get a GRUB device by
18703 grub_util_biosdisk_get_grub_dev.
18706 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
18707 description for --device-map.
18709 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
18711 Change the semantics of variable hooks. They now return strings
18712 instead of error values.
18714 * util/i386/pc/grub-setup.c: Include grub/env.h.
18715 (setup): Use grub_device_set_root instead of grub_env_set.
18717 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
18718 grub_env_get instead of grub_device_set_root and
18719 grub_device_get_root, respectively.
18721 * kern/main.c (grub_env_write_root): New function.
18722 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
18723 grub_env_set instead of grub_device_set_root.
18725 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
18727 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
18728 rather than calling ENV->WRITE_HOOK afterwards.
18729 (grub_env_get): Return the result of ENV->READ_HOOK rather than
18730 passing a pointer of a pointer.
18731 (grub_register_variable_hook): Change the types of "read_hook" and
18732 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
18734 Allocate the default empty string on the heap, because this string
18735 may be freed later.
18737 * kern/device.c: Include grub/env.h.
18738 (grub_device_set_root): Removed.
18739 (grub_device_get_root): Likewise.
18740 (grub_device_open): Use grub_env_get instead of
18741 grub_device_get_root.
18743 * include/grub/env.h (grub_env_read_hook_t): New type.
18744 (grub_env_write_hook_t): Likewise.
18745 (grub_env_var): Change the types of "read_hook" and "write_hook"
18746 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
18747 (grub_register_variable_hook): Likewise.
18749 * include/grub/device.h (grub_device_set_root): Removed.
18750 (grub_device_set_root): Likewise.
18752 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
18753 make sure that DIRNAME terminates with '/', so that
18754 grub_fat_find_dir will fail if PATH is not a directory.
18756 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
18758 Use the qualifier auto for print_files and print_files_long.
18759 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
18761 Put a newline only if there is no error.
18762 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
18765 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
18767 * kern/partition.c (grub_partition_probe): Initialize PART to
18768 NULL. Otherwise, when no partition map is registered, this returns
18771 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
18773 * partmap/apple.c (apple_partition_map_iterate): Check if POS
18774 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
18777 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
18779 * commands/ls.c (grub_ls_list_disks): Print the filesystem
18780 information on each device, if it does not have partitions. Print
18781 "Device" instead of "Disk", because this function is not specific
18784 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
18785 static to ensure that it is put on the memory rather than a
18788 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
18790 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
18791 (grub_cat_init): Likewise.
18792 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
18793 (options): Likewise.
18794 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
18795 (grub_configfile_init): Likewise.
18796 * font/manager.c (GRUB_MOD_INIT): Likewise.
18797 * commands/help.c (GRUB_MOD_INIT): Likewise.
18798 (grub_help_init): Likewise.
18799 * normal/command.c (grub_command_init): Likewise.
18800 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
18801 * disk/loopback.c (grub_loop_init): Likewise.
18802 (GRUB_MOD_INIT): Likewise.
18803 * commands/ls.c (grub_ls_init): Likewise.
18804 (GRUB_MOD_INIT): Likewise.
18805 (options): Likewise.
18806 * commands/boot.c (grub_boot_init): Likewise.
18807 (GRUB_MOD_INIT): Likewise.
18808 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
18809 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
18810 (GRUB_MOD_INIT): Likewise.
18811 * commands/cmp.c (grub_cmp_init): Likewise.
18812 (GRUB_MOD_INIT): Likewise.
18814 * normal/arg.c: Use <> instead of "" to include header files.
18815 (SHORT_ARG_HELP): New macro.
18816 (SHORT_ARG_USAGE): Likewise.
18817 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
18818 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
18820 (find_short): Check if C is 'h' or 'u' explicitly.
18821 (grub_arg_show_help): Use space characters instead of tabs. Treat
18822 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
18823 are shown with --help and --usage only if they are not used for
18824 the command itself.
18825 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
18828 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
18829 const into "longarg". Change the type of "shortarg" to int.
18831 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
18833 * boot/i386/pc/boot.S (boot_drive_check): New label.
18835 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
18838 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
18839 which do not pass a boot drive correctly. Copied from GRUB Legacy.
18841 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
18843 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
18844 When turning off Gate A20, skip the check and return immediately,
18845 because this is not fatal usually.
18847 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
18849 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
18850 be 0x7C00 instead of 0x8000.
18852 * boot/i386/pc/pxeboot.S: Rewritten.
18854 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
18856 (gate_a20_check_state): Read a byte from 0x108000. Invert the
18859 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
18861 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
18862 robustness. This routine now supports a BIOS call and System
18863 Control Port A to modify the gate A20.
18865 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
18866 Increased to 0x440.
18868 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
18870 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
18871 device path and resulting ihandle.
18872 (grub_ofdisk_close): dprintf the ihandle being closed.
18873 (grub_ofdisk_read): dprintf function parameters.
18874 * kern/mm.c (grub_mm_init_region): Likewise.
18875 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
18876 (grub_linux_boot): dprintf the Linux entry point, initrd address and
18877 size, and boot arguments.
18878 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
18879 before loading into memory.
18880 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
18881 before loading into memory.
18883 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
18885 * kern/mm.c: Added much documentation.
18886 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
18887 8, set to 5 instead of 8.
18889 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
18891 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
18893 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
18894 (grub_mkdevicemap_SOURCES): New variable.
18896 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
18897 lib/device.c of GRUB Legacy.
18899 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
18901 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
18902 instead of PATH is NULL.
18904 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
18906 * commands/cmp.c (BUFFER_SIZE): New macro.
18907 (grub_cmd_cmp): Close the right file at the right time. Compare
18908 only data just read. Don't report files of different size as
18909 identical. Dynamically allocate buffers. Move variable
18910 declarations at the beginning of function.
18912 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
18914 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
18917 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
18919 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
18920 when backspace is pressed at beginning of line.
18922 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
18924 * DISTLIST: Added genfslist.sh.
18926 * normal/main.c (fs_module_list): New variable.
18927 (autoload_fs_module): New function.
18928 (read_fs_list): Likewise.
18929 (grub_normal_execute): Call read_fs_list.
18931 * kern/fs.c (grub_fs_autoload_hook): New variable.
18932 (grub_fs_probe): Added support for auto-loading.
18934 * include/grub/normal.h (struct grub_fs_module_list): New struct.
18935 (grub_fs_module_list_t): New type.
18937 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
18938 (grub_fs_autoload_hook): New prototype.
18940 * genfslist.sh: New file.
18942 * genmk.rb: Added a rule to generate a filesystem list.
18944 2005-06-30 Marco Gerards <metgerards@student.han.nl>
18946 * configure.ac: Fix the test for cross-compiling.
18948 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
18949 define GRUB_UTIL anymore.
18951 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
18952 so this function works on other systems than just big endian.
18953 (load_modules): Likewise.
18954 (add_segments): Likewise.
18956 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
18958 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
18959 contains `l' modifier, get a long from va_arg().
18961 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
18963 * kern/mm.c (grub_free): If the next free block which is being
18964 merged is the first free block, set the first block to the block
18966 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
18968 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
18970 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
18971 `grub_ieee1275_chosen'.
18973 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
18975 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
18976 (grub_ieee1275_chosen): New variable.
18977 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
18979 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
18980 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18981 Rename first argument to `phandle' for consistency.
18982 (grub_ieee1275_get_property_length): Likewise.
18983 (grub_ieee1275_next_property): Likewise. Change type of first argument
18984 to grub_ieee1275_phandle_t.
18985 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
18986 Move export next to declaration.
18987 (grub_ieee1275_chosen): New variable.
18988 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
18989 Correct cosmetic typo.
18990 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
18991 `grub_ieee1275_chosen'.
18992 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
18993 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
18994 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
18995 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
18996 `grub_ieee1275_chosen'.
18998 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
19000 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
19002 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
19003 /chosen/bootargs as "variable=value" pairs.
19005 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
19007 * include/grub/misc.h (grub_dprintf): New macro.
19008 (grub_real_dprintf): New prototype.
19009 (grub_strword): Likewise.
19010 (grub_iswordseparator): Likewise.
19011 * kern/misc.c (grub_real_dprintf): New function.
19012 (grub_strword): Likewise.
19013 (grub_iswordseparator): Likewise.
19015 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
19017 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
19018 (roundup): Remove macro.
19019 (grub_ieee1275_flags): Make static.
19020 (grub_ieee1275_realmode): Remove.
19021 (grub_ieee1275_test_flag): New function.
19022 (grub_ieee1275_set_flag): Likewise.
19023 (find_options): Rename to `grub_ieee1275_find_options'; update
19024 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
19025 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
19026 (cmain): New prototype.
19027 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
19028 `grub_ieee1275_flags' directly.
19029 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
19030 machine/biosdisk.h.
19031 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
19032 Don't include grub/machine/init.h.
19033 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
19034 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
19036 (grub_ieee1275_realmode): Likewise.
19037 (grub_ieee1275_flag): New enum.
19038 (grub_ieee1275_test_flag): New prototype.
19039 (grub_ieee1275_set_flag): New prototype.
19040 * include/grub/powerpc/ieee1275/init.h: Remove file.
19041 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
19042 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
19043 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
19044 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
19046 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
19047 `grub_ieee1275_test_flag'.
19048 (grub_ieee1275_encode_devname): Likewise.
19050 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
19052 * include/grub/powerpc/ieee1275/ieee1275.h
19053 (grub_ieee1275_encode_devname): New prototype.
19054 (grub_ieee1275_get_filename): Likewise.
19055 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
19057 (grub_set_prefix): Likewise.
19058 (grub_machine_init): Call grub_set_prefix.
19059 * kern/powerpc/ieee1275/openfw.c: Fix typos.
19060 (grub_parse_type): New enum.
19061 (grub_ieee1275_get_devargs): New function.
19062 (grub_ieee1275_get_devname): Likewise.
19063 (grub_ieee1275_parse_args): Likewise.
19064 (grub_ieee1275_get_filename): Likewise.
19065 (grub_ieee1275_encode_devname): Likewise.
19067 2005-03-30 Marco Gerards <metgerards@student.han.nl>
19069 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
19070 `grub_loader_unset'.
19072 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
19074 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
19075 instead of grub_ieee1275_interpret.
19076 (grub_halt_init): New function.
19077 (grub_halt_fini): Likewise.
19078 (GRUB_MOD_INIT): Correct message grammar.
19079 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
19080 instead of grub_ieee1275_interpret.
19081 (grub_reboot_init): New function.
19082 (grub_reboot_fini): Likewise.
19083 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
19084 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
19085 util/i386/pc/misc.c with commands/ieee1275/halt.c,
19086 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
19087 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
19089 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
19091 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
19093 (grub_halt): Likewise.
19094 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
19095 (cmain): Remove __attribute__((unused)).
19096 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
19097 (grub_heap_len): Likewise.
19098 (grub_machine_fini): New function.
19099 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
19100 (grub_halt): Likewise.
19101 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
19103 * util/powerpc/ieee1275/misc.c: New file.
19105 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
19107 * DISTLIST: New file.
19108 * gendistlist.sh: Likewise.
19110 * Makefile.in (COMMON_DISTFILES): Removed.
19111 (BOOT_DISTFILES): Likewise.
19112 (CONF_DISTFILES): Likewise.
19113 (DISK_DISTFILES): Likewise.
19114 (FS_DISTFILES): Likewise.
19115 (INCLUDE_DISTFILES): Likewise.
19116 (KERN_DISTFILES): Likewise.
19117 (LOADER_DISTFILES): Likewise.
19118 (TERM_DISTFILES): Likewise.
19119 (UTIL_DISTFILES): Likewise.
19120 (DISTFILES): Likewise.
19121 (uninstall): Uninstall files in $(pkgdata_DATA).
19122 (DISTLIST): New target.
19123 (distdir): Use the contents of the file DISTLIST to get a list of
19126 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
19128 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
19129 descriptor. This is ported from GRUB Legacy.
19131 * gencmdlist.sh: Added an extra semicolon to make it work with
19132 old sed versions. Reported by Robert Bihlmeyer
19133 <robbe@orcus.priv.at>.
19135 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
19137 Automatic loading of commands is supported.
19139 * normal/main.c (read_command_list): New function.
19140 (grub_normal_execute): Call read_command_list.
19142 * normal/command.c (grub_register_command): Return zero or CMD.
19143 Allocate CMD->NAME from the heap.
19144 Initialize CMD->MODULE_NAME to zero.
19145 Find the same name as well. If the same command is found and it is
19146 a dummy command, overwrite members. If it is not a dummy command,
19148 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
19149 (grub_command_find): If a dummy command is found, load a module
19150 and retry to find a command only once.
19152 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
19153 make sure that each command is loaded.
19155 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
19157 (struct grub_command): Remove const from the member `name'.
19158 Add a new member `module_name'.
19159 (grub_register_command): Return grub_command_t.
19161 * commands/help.c (grub_cmd_help): Call grub_command_find to make
19162 sure that each command is loaded.
19164 * genmk.rb (PModule::rule): Specify a module name without the
19165 suffix ".mod" to gencmdlist.sh.
19167 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
19169 * gencmdlist.sh: New file.
19171 * genmk.rb (PModule::rule): Generate a rule for a command list.
19173 Generate command.lst from $(COMMANDFILES).
19175 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
19176 (DATA): Added $(pkgdata_DATA).
19177 (install-local): Install files in $(pkgdata_DATA).
19179 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
19181 * term/i386/pc/vga.c (debug_command): Removed.
19182 (GRUB_MOD_INIT): Do not register the command "debug".
19184 From Hollis Blanchard:
19185 * commands/configfile.c: New file.
19186 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
19187 commands/configfile.c.
19188 (pkgdata_MODULES): Added configfile.mod.
19189 (configfile_mod_SOURCES): New variable.
19190 (configfile_mod_CFLAGS): Likewise.
19191 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
19192 commands/configfile.c.
19193 (pkgdata_MODULES): Added configfile.mod.
19194 (configfile_mod_SOURCES): New variable.
19195 (configfile_mod_CFLAGS): Likewise.
19196 * util/grub-emu.c (main): Call grub_configfile_init and
19197 grub_configfile_fini.
19198 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
19200 [GRUB_UTIL] (grub_configfile_fini): Likewise.
19202 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
19204 * normal/arg.c (grub_arg_show_help): Do not show the bug report
19207 * commands/help.c (grub_cmd_help): Do not print newlines after
19208 the last command in print_command_help.
19210 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
19212 * commands/default.h: New file.
19213 * commands/timeout.h: Likewise.
19214 * normal/context.c: Likewise.
19216 * util/misc.c: Do not include sys/times.h.
19217 Include sys/time.h and grub/machine/time.h.
19218 (grub_get_rtc): Rewritten with gettimeofday.
19220 * util/grub-emu.c (main): Call grub_default_init and
19221 grub_timeout_init before grub_normal_init, and call
19222 grub_timeout_fini and grub_default_fini after grub_main.
19224 * util/console.c (grub_ncurses_checkkey): Return the read
19227 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
19230 * normal/main.c (read_config_file): Push MENU. If this fails,
19231 print an error and wait for a user input.
19232 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
19233 If a menu is empty or an error occurs, pop MENU.
19234 (grub_normal_execute): Pop and free MENU after grub_menu_run
19237 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
19239 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
19241 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
19243 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
19245 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
19248 * include/grub/normal.h (struct grub_menu_list): New struct.
19249 (grub_menu_list_t): New type.
19250 (struct grub_context): New struct.
19251 (grub_context_t): New type.
19252 (grub_register_command): Got rid of EXPORT_FUNC.
19253 (grub_unregister_command): Likewise.
19254 (grub_context_get): New prototype.
19255 (grub_context_get_current_menu): Likewise.
19256 (grub_context_push_menu): Likewise.
19257 (grub_context_pop_menu): Likewise.
19258 [GRUB_UTIL] (grub_default_init): Likewise.
19259 [GRUB_UTIL] (grub_default_fini): Likewise.
19260 [GRUB_UTIL] (grub_timeout_init): Likewise.
19261 [GRUB_UTIL] (grub_timeout_fini): Likewise.
19263 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
19264 commands/timeout.c and normal/context.c.
19265 (pkgdata_MODULES): Added default.mod and timeout.mod.
19266 (normal_mod_SOURCES): Added normal/context.c.
19267 (default_mod_SOURCES): New variable.
19268 (default_mod_CFLAGS): Likewise.
19269 (timeout_mod_SOURCES): Likewise.
19270 (timeout_mod_CFLAGS): Likewise.
19271 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
19273 (pkgdata_MODULES): Added default.mod and timeout.mod.
19274 (normal_mod_SOURCES): Added normal/context.c.
19275 (default_mod_SOURCES): New variable.
19276 (default_mod_CFLAGS): Likewise.
19277 (timeout_mod_SOURCES): Likewise.
19278 (timeout_mod_CFLAGS): Likewise.
19280 * Makefile.in (all-local): Added $(MKFILES).
19282 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
19284 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
19285 (grub_emu_SOURCES): Likewise.
19286 (pkgdata_MODULES): Add `sun.mod'.
19287 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
19288 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
19290 (pkgdata_MODULES): Add `sun.mod'.
19291 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
19292 * include/grub/partition.h (grub_sun_partition_map_init): New
19294 (grub_sun_partition_map_fini): Likewise.
19295 * partmap/sun.c: New file.
19296 * util/grub-emu.c (main): Initialize and de-initialize the sun
19297 partitionmap support.
19299 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
19301 This implements an Emacs-like menu entry editor.
19303 * normal/menu_entry.c: New file.
19305 * util/console.c (grub_ncurses_putchar): Translate some Unicode
19306 characters to ASCII.
19307 (saved_char): New variable.
19308 (grub_ncurses_checkkey): Rewritten completely.
19309 (grub_ncurses_getkey): Likewise.
19310 (grub_ncurses_init): Call raw instead of cbreak.
19312 * normal/menu.c (print_entry): Do not put a space.
19313 (init_page): Renamed to ...
19314 (grub_menu_init_page): ... this. All callers changed.
19315 (edit_menu_entry): Removed.
19316 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
19318 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
19320 * kern/misc.c (grub_vprintf): Call grub_refresh.
19322 * normal/menu.c (DISP_LEFT): Renamed to ...
19323 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
19324 * normal/menu.c (DISP_UP): Renamed to ...
19325 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
19326 * normal/menu.c (DISP_RIGHT): Renamed to ...
19327 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
19328 * normal/menu.c (DISP_DOWN): Renamed to ...
19329 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
19330 * normal/menu.c (DISP_HLINE): Renamed to ...
19331 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
19332 * normal/menu.c (DISP_VLINE): Renamed to ...
19333 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
19334 * normal/menu.c (DISP_UL): Renamed to ...
19335 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
19336 * normal/menu.c (DISP_UR): Renamed to ...
19337 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
19338 * normal/menu.c (DISP_LL): Renamed to ...
19339 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
19340 * normal/menu.c (DISP_LR): Renamed to ...
19341 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
19342 * normal/menu.c (TERM_WIDTH): Renamed to ...
19343 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
19344 * normal/menu.c (TERM_HEIGHT): Renamed to ...
19345 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
19346 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
19347 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
19348 * normal/menu.c (TERM_MARGIN): Renamed to ...
19349 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
19350 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
19351 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
19352 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
19353 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
19354 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
19355 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
19356 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
19357 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
19358 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
19359 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
19360 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
19361 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
19362 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
19363 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
19364 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
19365 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
19366 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
19367 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
19368 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
19369 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
19370 All callers changed.
19372 * include/grub/normal.h: New prototype.
19374 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
19375 normal/menu_entry.c.
19376 (normal_mod_SOURCES): Likewise.
19377 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19378 (normal_mod_SOURCES): Likewise.
19380 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
19382 * include/grub/normal.h (grub_halt_init): New prototype.
19383 (grub_halt_fini): Likewise.
19384 (grub_reboot_init): Likewise.
19385 (grub_reboot_fini): Likewise.
19387 * util/grub-emu.c: Include signal.h.
19388 (main_env): New global variable.
19389 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
19391 (grub_machine_fini): New function.
19392 (main): Call grub_halt_init and grub_reboot_init before
19393 grub_main, and grub_reboot_fini and grub_halt_fini after it.
19394 Call setjmp with MAIN_ENV to go back afterwards.
19395 Call grub_machine_fini right before return.
19397 * include/grub/util/misc.h: Include setjmp.h.
19398 (main_env): New prototype.
19400 * include/grub/kernel.h (grub_machine_fini): New prototype.
19401 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
19402 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
19404 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
19405 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
19406 * term/i386/pc/console.c (grub_console_fini): Likewise.
19408 * util/i386/pc/misc.c: New file.
19410 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
19411 util/i386/pc/misc.c, commands/i386/pc/halt.c and
19412 commands/i386/pc/reboot.c.
19414 2005-02-14 Guillem Jover <guillem@hadrons.org>
19416 * include/grub/dl.h (grub_dl_check_header): New prototype.
19417 (grub_arch_dl_check_header): Change return type to grub_err_t,
19418 remove size parameter and export function. Update all callers.
19419 * kern/dl.c (grub_dl_check_header): New function.
19420 (grub_dl_load_core): Use `grub_dl_check_header' instead of
19421 `grub_arch_dl_check_header'. Check ELF type. Check if sections
19422 are inside the core.
19423 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
19424 independent ELF header checks.
19425 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
19426 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
19427 `grub_dl_check_header' instead of explicit checks. Check for the
19429 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
19430 `grub_dl_check_header' instead of explicit checks. Remove arch
19431 specific ELF header checks.
19433 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
19436 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
19438 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
19439 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
19441 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
19443 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
19444 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
19445 (part_map_iterate): Clear `grub_errno' and return 0 if
19446 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
19447 * partmap/amiga.c (amiga_partition_map_iterate): Return
19448 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
19449 * partmap/apple.c (apple_partition_map_iterate): Likewise.
19451 2005-02-01 Guillem Jover <guillem@hadrons.org>
19453 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
19456 2005-01-31 Marco Gerards <metgerards@student.han.nl>
19458 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
19460 (grub_rescue_cmd_linux): New prototype.
19461 (grub_rescue_cmd_initrd): Likewise.
19462 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
19464 (grub_linux_release_mem): Release the memory for the initrd.
19465 (grub_load_linux): Renamed from this...
19466 (grub_rescue_cmd_linux): ...To this. Changed all callers.
19467 Changed `entry' not to be static. Loop over memory regions to
19468 find another one when the default fails.
19469 (grub_rescue_cmd_initrd): New function.
19470 (grub_linux_init): Remove function.
19471 (grub_linux_fini): Likewise.
19472 (GRUB_MOD_INIT): Register `initrd'.
19473 (GRUB_MOD_FINI): Unregister `initrd'.
19474 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
19476 (grub_linux_normal_fini): Likewise.
19477 (GRUB_MOD_INIT): Register `initrd'.
19478 (GRUB_MOD_FINI): Unregister `initrd'.
19480 2005-01-31 Marco Gerards <metgerards@student.han.nl>
19482 * commands/help.c: New file.
19483 * normal/arg.c (show_help): Renamed to...
19484 (grub_arg_show_help): ... this.
19485 * commands/i386/pc/halt.c: New file.
19486 * commands/i386/pc/reboot.c: Likewise.
19487 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
19488 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
19489 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
19490 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
19492 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
19494 (pkgdata_MODULES): Add `help.mod'.
19495 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
19496 * grub/i386/pc/init.h (grub_reboot): New prototype.
19497 (grub_halt): Likewise.
19498 * include/grub/normal.h (grub_arg_show_help): New prototype.
19499 (grub_help_init): Likewise.
19500 (grub_help_fini): Likewise.
19501 * util/grub-emu.c (main): Initialize and deinitialize the help
19504 * normal/cmdline.c (grub_cmdline_get): Doc fix.
19506 * normal/command.c (grub_command_init): Fixed the description of
19507 the `set' and `unset' commands.
19509 2005-01-31 Marco Gerards <metgerards@student.han.nl>
19511 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
19513 * commands/ieee1275/halt.c: New file.
19514 * commands/ieee1275/reboot.c: Likewise.
19515 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
19516 `__attribute__ ((unused))'. Some GCS related fixed.
19517 (grub_suspend_init) [GRUB_UTIL]: Function removed.
19518 (grub_suspend_fini): Likewise.
19519 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
19521 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
19522 (halt_mod_CFLAGS): New variables.
19523 * include/grub/powerpc/ieee1275/ieee1275.h
19524 (grub_ieee1275_interpret): New prototype.
19526 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
19528 * include/grub/misc.h (memmove): New prototype.
19529 (memcpy): Likewise.
19531 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
19533 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
19534 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
19536 2005-01-22 Marco Gerards <metgerards@student.han.nl>
19538 * kern/misc.c (grub_strndup): Function rewritten.
19540 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
19542 * normal/menu.c (TERM_WIDTH): Macro redefined.
19543 (TERM_TOP_BORDER_Y): Likewise.
19544 (draw_border): Replaced while-loop by a for-loop. Make the number
19545 of lines consistent with the number of lines displayed in
19546 print_entries. Added a margin below the rectangle.
19547 (print_entry): Make the entry fit in the rectangle.
19548 (print_entries): Display the scroll arrows next to the right
19551 2005-01-21 Marco Gerards <metgerards@student.han.nl>
19553 * fs/minix.c (grub_minix_find_file): Reserve more space for
19554 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
19555 `grub_strncpy' to copy `path' into it.
19557 2005-01-21 Marco Gerards <metgerards@student.han.nl>
19559 Add the loopback device, a device via which files can be accessed
19562 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
19563 (pkgdata_MODULES): Add loopback.mod.
19564 (loopback_mod_SOURCES): New variable.
19565 (loopback_mod_CFLAGS): Likewise.
19566 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
19568 (pkgdata_MODULES): Add loopback.mod.
19569 (loopback_mod_SOURCES): New variable.
19570 (loopback_mod_CFLAGS): Likewise.
19571 * disk/loopback.c: new file.
19572 * include/grub/normal.h (grub_loop_init): New prototype.
19573 (grub_loop_fini): New prototype.
19574 * util/grub-emu.c (main): Initialize and de-initialize loopback
19576 * include/grub/disk.h (grub_disk_dev_id): Add
19577 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
19579 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
19581 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
19583 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
19584 (suspend_mod_SOURCES): New variable.
19585 (suspend_mod_CFLAGS): Likewise.
19586 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
19588 * commands/ieee1275/suspend.c: New file.
19590 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
19592 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
19593 ((unused))' to `__attribute__ ((used))'.
19594 (GRUB_MOD_FINI): Likewise.
19595 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
19596 * genmk.rb (PModule): Assign space to common symbols when linking
19599 2005-01-20 Marco Gerards <metgerards@student.han.nl>
19601 * include/grub/mm.h (grub_mm_init_region): Change the type of the
19602 `unsigned' arguments to `grub_size_t'.
19603 (grub_malloc): Likewise.
19604 (grub_realloc): Likewise.
19605 (grub_memalign): Likewise.
19606 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
19607 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
19608 * util/misc.c (grub_malloc): Likewise.
19609 (grub_realloc): Likewise.
19610 * kern/mm.c (get_header_from_pointer): Change the casts to
19611 `unsigned' into a cast to `grub_size_t'.
19613 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
19614 point to `currnode' when `currnode' is changed.
19616 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
19617 Schottelius <nico-linux@schottelius.org>.
19619 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
19621 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
19622 (note_path): Remove variable.
19623 (GRUB_IEEE1275_NOTE_NAME): New macro.
19624 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
19625 (grub_ieee1275_note_hdr): New structure.
19626 (grub_ieee1275_note_desc): Likewise.
19627 (grub_ieee1275_note): Likewise.
19628 (load_note): Remove `dir' argument. All callers updated. Remove
19629 `note_img' and `path'. Do not load a file from `note_path'.
19630 Initialize a struct grub_ieee1275_note and write that to `out'.
19631 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
19633 2005-01-05 Marco Gerards <metgerards@student.han.nl>
19635 * util/misc.c (grub_util_read_image): Revert last change. It
19636 called `grub_util_read_at', which seeks from the beginning of the
19639 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
19641 * TODO: Add note about endianness in grub-mkimage.
19642 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
19644 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
19645 (grub_mkimage_SOURCES): New target.
19646 * include/grub/kernel.h (grub_start_addr): Remove variable.
19647 (grub_end_addr): Likewise.
19648 (grub_total_module_size): Likewise.
19649 (grub_kernel_image_size): Likewise.
19650 (GRUB_MODULE_MAGIC): New constant.
19651 (grub_module_info): New structure.
19652 (grub_arch_modules_addr): New prototype.
19653 (grub_get_end_addr): Remove prototype.
19654 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
19655 * include/grub/powerpc/ieee1275/kernel.h: New file.
19656 * include/grub/util/misc.h (grub_util_get_fp_size): New
19658 (grub_util_read_at): Likewise.
19659 (grub_util_write_image_at): Likewise.
19660 * kern/main.c (grub_get_end_addr): Remove function.
19661 (grub_load_modules): Call grub_arch_modules_addr instead of using
19662 grub_end_addr. Look for a grub_module_info struct in memory. Use
19663 the grub_module_info fields instead of calling grub_get_end_addr
19664 as loop conditions. Move grub_add_unused_region code here.
19665 (grub_add_unused_region): Remove function.
19666 * kern/i386/pc/init.c: Include grub/cache.h.
19667 (grub_machine_init): Remove call to grub_get_end_addr. Remove
19668 one call to add_mem_region.
19669 (grub_arch_modules_addr): New function.
19670 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
19671 (grub_total_module_size): Likewise.
19672 Include grub/machine/kernel.h.
19673 (grub_arch_modules_addr): New function.
19674 * util/grub-emu.c (grub_end_addr): Remove variable.
19675 (grub_total_module_size): Likewise.
19676 (grub_arch_modules_addr): New function.
19677 * util/misc.c: Include unistd.h.
19678 (grub_util_get_fp_size): New function.
19679 (grub_util_read_at): Likewise.
19680 (grub_util_write_image_at): Likewise.
19681 (grub_util_read_image): Call grub_util_read_at.
19682 (grub_util_write_image): Call grub_util_write_image_at.
19683 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
19684 additional memory in kernel_img for a struct grub_module_info.
19685 Fill in that grub_module_info.
19686 * util/powerpc/ieee1275/grub-mkimage.c: New file.
19688 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
19690 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
19692 * include/grub/powerpc/ieee1275/ieee1275.h
19693 (grub_ieee1275_milliseconds): New prototype.
19694 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
19696 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
19697 grub_ieee1275_milliseconds.
19699 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
19701 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
19703 (find_options): New function.
19704 (cmain): Call find_options.
19705 * include/grub/powerpc/ieee1275/ieee1275.h
19706 (grub_ieee1275_realmode): New extern variable.
19707 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
19708 grub_map if grub_ieee1275_realmode is false.
19710 2004-12-29 Marco Gerards <metgerards@student.han.nl>
19712 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
19713 lines are inserted and make it work like readline. Reported by
19714 Vincent Pelletier <subdino2004@yahoo.fr>.
19716 2004-12-28 Marco Gerards <metgerards@student.han.nl>
19718 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
19720 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
19721 `kern/powerpc/cache.S'.
19723 2004-12-27 Marco Gerards <metgerards@student.han.nl>
19725 * genmk.rb: Handle the `Program' class in the main loop. Written
19726 by Johan Rydberg <jrydberg@gnu.org>.
19727 (Program): New class.
19728 (programs): New variable.
19729 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
19730 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
19731 instead of "grub/kernel.h". Include <grub/machine/init.h>.
19732 (help_arch): Function removed.
19733 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
19734 `powerpc/libgcc.h' and `loader.h'.
19735 (pkgdata_PROGRAMS): New variable.
19736 (sbin_UTILITIES): Variable removed.
19737 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
19738 (grubof_SOURCES): Variable re-defined so it only includes the
19739 core functionality.
19740 (grubof_CFLAGS): Remove `-DGRUBOF'.
19741 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
19742 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
19743 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
19744 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
19745 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
19746 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
19747 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
19748 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
19749 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
19750 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
19751 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
19752 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
19753 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
19754 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
19755 (pc_mod_CFLAGS): New variables.
19756 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
19757 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
19758 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
19759 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
19761 * include/grub/i386/pc/init.h (grub_os_area_addr)
19762 (rub_os_area_size): ... to here.
19763 * include/grub/powerpc/ieee1275/ieee1275.h
19764 (grub_ieee1275_entry_fn): Export symbol.
19765 * include/grub/powerpc/ieee1275/init.h: New file.
19766 * include/grub/powerpc/libgcc.h: Likewise.
19767 * include/grub/cache.h: Likewise.
19768 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
19769 <hollis@penguinppc.org>.
19770 * kern/dl.c: Include <grub/cache.h>.
19771 (grub_dl_flush_cache): New function.
19772 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
19774 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
19775 (grub_console_init): Removed prototypes.
19776 (grub_machine_init): Don't initialize the modules anymore.
19777 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
19779 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
19780 Macro undef removed.
19781 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
19782 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
19783 relocation `R_PPC_REL32'. Return an error when the relocation is
19785 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
19786 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
19787 * util/misc.c (grub_arch_sync_caches): Likewise.
19789 2004-12-19 Marco Gerards <metgerards@student.han.nl>
19791 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
19792 `symlist.c', add `grubof_symlist.c'.
19793 (symlist.c): Variable removed.
19794 (grubof_HEADERS): Variable added.
19795 (grubof_symlist.c): New target.
19796 (kernel_syms.lst): Use `grubof_HEADERS' instead of
19797 `kernel_img_HEADERS'.
19798 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
19799 * kern/powerpc/dl.c: New file.
19800 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
19802 (grub_arch_dl_relocate_symbols): Likewise.
19803 (grub_register_exported_symbols): Likewise.
19805 2004-12-13 Marco Gerards <metgerards@student.han.nl>
19807 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
19808 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
19809 to fail instead. Reported by Vincent Pelletier
19810 <subdino2004@yahoo.fr>.
19812 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
19813 it is not allocated. Reported by Vincent Pelletier
19814 <subdino2004@yahoo.fr>.
19816 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
19817 output so the output looks better.
19819 2004-12-04 Marco Gerards <metgerards@student.han.nl>
19821 Modulize the partition map support and add support for the amiga
19824 * commands/ls.c: Include <grub/partition.h> instead of
19825 <grub/machine/partition.h>.
19826 * kern/disk.c: Likewise.
19827 * kern/rescue.c: Likewise.
19828 * loader/i386/pc/chainloader.c: Likewise.
19829 * normal/cmdline.c: Likewise.
19830 * kern/powerpc/ieee1275/init.c: Likewise.
19831 (grub_machine_init): Call `grub_pc_partition_map_init',
19832 `grub_amiga_partition_map_init' and
19833 `grub_apple_partition_map_init'.
19834 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
19835 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
19836 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
19837 `partition.h' and `pc_partition.h'.
19838 (grub_setup_SOURCES): Remove
19839 `disk/i386/pc/partition.c'. Add `kern/partition.c',
19840 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
19841 (grub_emu_SOURCES): Likewise.
19842 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
19843 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
19844 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
19845 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
19846 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
19847 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
19848 (grubof_SOURCES): Likewise.
19849 * disk/i386/pc/partition.c: File removed.
19850 * disk/powerpc/ieee1275/partition.c: Likewise.
19851 * include/grub/powerpc/ieee1275/partition.h: Likewise.
19852 * include/grub/i386/pc/partition.h: Likewise.
19853 * kern/partition.c: New file.
19854 * partmap/amiga.c: Likewise.
19855 * partmap/apple.c: Likewise.
19856 * partmap/pc.c: Likewise.
19857 * include/grub/partition.h: Likewise..
19858 * include/grub/pc_partition.h: Likewise.
19859 * util/grub-emu.c: Include <grub/partition.h> instead of
19860 <grub/machine/partition.h>.
19861 (main): Call `grub_pc_partition_map_init',
19862 `grub_amiga_partition_map_init' and
19863 `grub_apple_partition_map_init' and deinitialize afterwards.
19864 * util/i386/pc/biosdisk.c: Include `#include
19865 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
19866 `<grub/machine/partition.h>'.
19867 * util/i386/pc/grub-setup.c: Likewise.
19868 * util/i386/pc/biosdisk.c: Likewise.
19869 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
19870 partition information in case of a PC partition.
19871 * util/i386/pc/grub-setup.c: Include `#include
19872 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
19873 `<grub/machine/partition.h>'.
19874 (setup): Only access the PC specific partition information in case
19877 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
19879 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
19880 (grub_longjmp): Likewise.
19881 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
19883 * normal/powerpc/setjmp.S: New file.
19884 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
19885 `normal/powerpc/setjmp.S'.
19886 (grubof_CFLAGS): Add `-DGRUBOF'.
19887 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
19888 [GRUB_UTIL && !GRUBOF].
19890 2004-11-16 Marco Gerards <metgerards@student.han.nl>
19892 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
19893 property named `name'. Correctly handle the error returned by
19894 `grub_ieee1275_finddevice' if a device can not be opened.
19896 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
19898 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
19899 `actual' for negativity.
19900 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
19903 2004-11-01 Marco Gerards <metgerards@student.han.nl>
19905 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
19906 (PAGE_OFFSET): New macro.
19907 (CRTC_ADDR_PORT): Likewise.
19908 (CRTC_DATA_PORT): Likewise.
19909 (START_ADDR_HIGH_REGISTER): Likewise.
19910 (START_ADDR_LOW_REGISTER): Likewise.
19911 (GRAPHICS_ADDR_PORT): Likewise.
19912 (GRAPHICS_DATA_PORT): Likewise.
19913 (READ_MAP_REGISTER): Likewise.
19914 (INPUT_STATUS1_REGISTER): Likewise.
19915 (INPUT_STATUS1_VERTR_BIT): Likewise.
19916 (page): New variable.
19917 (wait_vretrace): New function.
19918 (set_read_map): Likewise.
19919 (set_start_address): Likewise.
19920 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
19922 (check_vga_mem): Take the page into account.
19923 (write_char): Likewise.
19924 (write_cursor): Likewise.
19925 (scroll_up): Likewise. Copy the page to the page that is not
19926 shown and switch between both pages.
19927 (grub_vga_putchar): Fix off by one error.
19928 (grub_vga_cls): Wait for the vertical retrace. Take the page into
19931 2004-11-01 Marco Gerards <metgerards@student.han.nl>
19933 Add support for iso9660 (including rockridge).
19935 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
19936 (iso9660_mod_SOURCES): New variable.
19937 (iso9660_mod_CFLAGS): Likewise.
19938 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
19939 * include/grub/fs.h (grub_iso9660_init): New prototype.
19940 * util/grub-emu.c (main): Call `grub_iso9660_init'.
19941 * fs/iso9660.c: New file.
19943 * include/grub/misc.h (grub_strncat): New prototype.
19944 * kern/misc.c (grub_strncat): New function.
19946 * fs/hfs.c (grub_hfs_mount): Translate the error
19947 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
19948 * fs/jfs.c (grub_jfs_mount): Likewise.
19949 * fs/ufs.c (grub_ufs_mount): Likewise.
19951 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
19953 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
19954 which initialized BAT registers.
19955 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
19956 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
19958 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
19959 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
19961 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
19962 (grub_mapclaim): Likewise.
19963 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
19964 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
19967 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
19969 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
19970 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
19971 -ffreestanding and -msoft-float.
19973 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
19975 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
19976 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
19977 set in grub_ieee1275_flags.
19979 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
19981 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
19983 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
19984 grub_console_init first.
19985 Change the memory range used for grub_ieee1275_claim and
19986 grub_mm_init_region.
19987 Print an error message if the claim fails.
19988 Include <grub/misc.h>.
19990 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
19992 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
19993 Call grub_children_iterate for device nodes of type `scsi',
19995 (grub_ofdisk_open): Remove manual device alias resolution.
19996 Fix memory leak when device cannot be opened.
19997 * include/grub/powerpc/ieee1275/ieee1275.h
19998 (grub_children_iterate): New prototype.
19999 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
20001 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
20002 Return -1 if args.size was -1.
20004 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
20006 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
20007 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
20008 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
20009 Open Firmware's memory for it; claim memory from _start to _end.
20010 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
20011 (_end): New extern.
20012 (_start): Zero BSS from __bss_start to _end.
20013 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
20015 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
20017 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
20019 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
20020 -1 if args.base was -1.
20022 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
20024 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
20025 escape sequence instead of a literal ^L. Also call
20026 grub_ofconsole_gotoxy.
20028 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
20030 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
20031 void * arguments to grub_addr_t. All callers updated. Also make
20032 the `result' argument optional.
20033 (grub_ieee1275_release): change void * arguments to grub_addr_t.
20034 All callers updated.
20036 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
20038 * commands/ls.c (grub_ls_list_files): Use the string following the
20039 initial ')', if present, as the filesystem path.
20040 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
20042 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
20044 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
20046 Make the source code of the menu interface more readable.
20048 * normal/menu.c: Include grub/mm.h.
20049 (TERM_WIDTH): New macro.
20050 (TERM_HEIGHT): Likewise.
20051 (TERM_INFO_HEIGHT): Likewise.
20052 (TERM_MARGIN): Likewise.
20053 (TERM_SCROLL_WIDTH): Likewise.
20054 (TERM_TOP_BORDER_Y): Likewise.
20055 (TERM_LEFT_BORDER_X): Likewise.
20056 (TERM_BORDER_WIDTH): Likewise.
20057 (TERM_MESSAGE_HEIGHT): Likewise.
20058 (TERM_BORDER_HEIGHT): Likewise.
20059 (TERM_NUM_ENTRIES): Likewise.
20060 (TERM_FIRST_ENTRY_Y): Likewise.
20061 (TERM_ENTRY_WIDTH): Likewise.
20062 (TERM_CURSOR_X): Likewise.
20063 (draw_border): Use macros instead of magic numbers.
20064 (print_entry): Likewise.
20065 (print_entries): Likewise.
20066 (run_menu): Likewise. Also, handle the key 'e'.
20067 (run_menu_entry): Ignore empty command lines.
20068 (print_message): Added a new argument EDIT. If EDIT is true,
20069 print a different message.
20070 (init_page): Likewise.
20071 (edit_menu_entry): New function. Not implemented yet.
20073 2004-09-17 Marco Gerards <metgerards@student.han.nl>
20075 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
20076 can be loaded from normal mode.
20078 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
20080 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
20081 (multiboot_mod_CFLAGS): New variables.
20082 * loader/i386/pc/linux_normal.c: New file.
20083 * loader/i386/pc/multiboot_normal.c: Likewise.
20085 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
20086 attribute `unused'.
20088 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
20089 `fdiro' to read the mode information from instead of `diro'.
20091 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
20092 looking up a symlink.
20094 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
20096 * normal/command.c (grub_command_execute): Don't parse the
20097 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
20098 flags of the command.
20100 * normal/menu.c (grub_menu_run): Fix typo.
20102 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
20104 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
20106 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
20107 `y + 1' instead of `y - 1'.
20109 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
20111 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
20113 From Hollis Blanchard <hollis@penguinppc.org>:
20114 * kern/misc.c (memmove): New alias for grub_memmove.
20115 (memcmp): New alias for grub_memcmp.
20116 (memset): New alias for grub_memset.
20117 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
20118 Change "int handle" to "grub_ieee1275_phandle_t handle".
20119 * include/grub/powerpc/ieee1275/ieee1275.h
20120 (grub_ieee1275_get_property): Likewise.
20122 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
20124 Added normal mode command `chainloader' as module chain.mod, which
20125 depends on normal.mod and _chain.mod.
20127 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
20128 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
20129 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
20131 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
20132 but arguments parsing moved to ...
20133 (grub_chainloader_cmd): ... here. New function.
20134 * include/grub/i386/pc/chainloader.h: New file.
20135 * loader/i386/pc/chainloader_normal.c: Likewise.
20137 2004-09-11 Marco Gerards <metgerards@student.han.nl>
20139 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
20140 (grub_mkimage_LDFLAGS): Likewise.
20141 (grub_emu_SOURCES): Likewise.
20142 (kernel_img_HEADERS): Added fshelp.h.
20143 * fs/ext2.c: Include <grub/fshelp.h>.
20144 (FILETYPE_REG): New macro.
20145 (FILETYPE_INO_REG): Likewise.
20146 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
20148 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
20150 (grub_fshelp_node): New struct.
20151 (grub_ext2_data): Added member `diropen'. Changed member `inode'
20153 (grub_ext2_get_file_block): Removed function.
20154 (grub_ext2_read_block): New function.
20155 (grub_ext2_read_file): Replaced parameter `data' by `node'.
20156 This function was written.
20157 (grub_ext2_mount): Read the root inode. Create a diropen struct.
20158 (grub_ext2_find_file): Removed function.
20159 (grub_ext2_read_symlink): New function.
20160 (grub_ext2_iterate_dir): Likewise.
20161 (grub_ext2_open): Rewritten.
20162 (grub_ext2_dir): Rewritten.
20163 * include/grub/fshelp.h: New file.
20164 * fs/fshelp.c: Likewise.
20166 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
20168 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
20169 (print_message): Add a missing newline.
20170 (run_menu): Added timeout support.
20171 (run_menu_entry): New local function.
20172 (grub_menu_run): Added support for booting.
20174 * kern/loader.c (grub_loader_is_loaded): New function.
20176 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
20177 (grub_get_rtc): Exported.
20179 * include/grub/i386/pc/time.h: Include grub/symbol.h.
20180 (grub_get_rtc): Exported.
20182 * include/grub/normal.h (struct grub_command_list): Remove
20183 constant from the member `command'.
20185 * include/grub/loader.h (grub_loader_is_loaded): Declared.
20187 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
20189 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
20191 2004-08-28 Marco Gerards <metgerards@student.han.nl>
20193 Add support for the JFS filesystem.
20195 * fs/jfs.c: New file.
20196 * include/grub/fs.h (grub_jfs_init): New prototype.
20197 (grub_jfs_fini): New prototype.
20198 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
20199 (grub_emu_SOURCES): Likewise.
20200 (pkgdata_MODULES): Add jfs.mod.
20201 (jfs_mod_SOURCES): New variable.
20202 (jfs_mod_CFLAGS): Likewise.
20203 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
20204 (grubof_SOURCES): Likewise.
20205 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
20207 * fs/fat.c (grub_fat_find_dir): Convert the filename little
20208 endian to the host endian.
20209 (grub_fat_utf16_to_utf8): Move function from there...
20210 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
20211 the endianness of the source string anymore.
20212 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
20214 2004-08-24 Marco Gerards <metgerards@student.han.nl>
20216 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
20217 (grub_boot_fini) [GRUB_UTIL]: Likewise.
20218 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
20219 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
20221 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
20222 (grub_hfs_iterate_dir): Make the function static. Add prototypes
20223 for `node_found' and `it_dir'.
20224 (grub_hfs_dir): Add prototype for `dir_hook'.
20226 * fs/minix.c (grub_minix_get_file_block): Add prototype for
20227 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
20228 and `indir32' to silence a gcc warning.
20230 * include/grub/fs.h (grub_hfs_init): New prototype.
20231 (grub_hfs_fini): Likewise.
20234 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
20236 Each disk device has its own id now. This is useful to make use
20237 of multiple disk devices.
20239 * include/grub/disk.h (grub_disk_dev_id): New enum.
20240 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
20241 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
20243 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
20244 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
20246 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
20247 GRUB_DISK_DEVICE_OFDISK_ID as an id.
20249 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
20250 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
20252 * include/grub/disk.h (struct grub_disk_dev): Added a new member
20253 "id" which is used by the cache manager.
20255 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
20258 2004-08-18 Marco Gerards <metgerards@student.han.nl>
20260 * fs/hfs.c: New file.
20261 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
20262 (grub_emu_SOURCES): Likewise.
20263 (pkgdata_MODULES): Add hfs.mod.
20264 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
20265 (grubof_SOURCES): Likewise.
20266 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
20268 * include/grub/misc.h (grub_strncasecmp): Add prototype.
20269 * kern/misc.c (grub_strncasecmp): Add function.
20271 2004-08-14 Marco Gerards <metgerards@student.han.nl>
20273 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
20276 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
20277 (grub_ext2_dir): In case the directory entry type is unknown, read
20280 2004-08-02 Peter Bruin <pjbruin@dds.nl>
20282 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
20283 grub_load_linux instead of grub_rescue_cmd_linux as second
20284 argument of grub_rescue_register_command.
20286 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
20288 2004-07-27 Marco Gerards <metgerards@student.han.nl>
20290 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
20292 * commands/boot.c: Remove the check for `GRUB_UTIL'.
20293 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
20294 `loader/powerpc/ieee1275/linux.c',
20295 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
20296 * include/grub/powerpc/ieee1275/ieee1275.h
20297 (grub_ieee1275_release): New prototype.
20298 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
20299 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
20300 normal, boot, linux and linux_normal.
20301 * loader/powerpc/ieee1275/linux.c: New file.
20302 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20304 2004-07-12 Marco Gerards <metgerards@student.han.nl>
20306 * normal/arg.c (grub_arg_parse): Correct error handling after
20307 reallocating the argumentlist (check if `argl' is not null instead
20308 of checking if `args' is not null).
20309 * kern/mm.c (grub_realloc): Return the same pointer when using the
20310 same region, instead of returning the header address.
20312 2004-07-11 Marco Gerards <metgerards@student.han.nl>
20314 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
20315 one block instead of two when looking for the initial partition.
20316 (grub_partition_probe): Initialize the local variable `p' with 0.
20317 Use base 10 for the grub_strtoul call.
20318 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
20319 need for one local variable.
20320 (grub_strtoul): Don't add the new value to `num', instead of that
20323 2004-07-11 Marco Gerards <metgerards@student.han.nl>
20325 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
20326 (pxeboot_img_SOURCES): New variable.
20327 (pxeboot_img_ASFLAGS): Likewise.
20328 (pxeboot_img_LDFLAGS): Likewise.
20329 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
20330 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
20331 <lode_leroy@hotmail.com>.
20333 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
20335 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
20336 there was no input.
20338 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
20340 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
20341 the history buffer logic.
20343 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
20345 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
20346 (FILETYPE_INO_SYMLINK): New macros.
20347 (grub_ext2_find_file): Check if the node is a directory using the
20348 inode stat information instead of using the filetype in the
20349 dirent. Exclude the first character of an absolute symlink.
20350 (grub_ext2_dir): Mask out the filetype part of the mode member of
20353 2004-05-24 Marco Gerards <metgerards@student.han.nl>
20355 Add support for UFS version 1 and 2. Add support for the minix
20356 filesystem version 1 and 2, both the variants with 14 and 30 long
20359 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
20361 (grub_emu_SOURCES): Likewise.
20362 (pkgdata_MODULES): Add ufs.mod and minix.mod.
20363 (ufs_mod_SOURCES): New variable.
20364 (ufs_mod_CFLAGS): Likewise.
20365 (minix_mod_SOURCES): Likewise.
20366 (minix_mod_CFLAGS): Likewise.
20367 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
20369 (grubof_SOURCES): Likewise.
20370 * fs/ufs.c: New file.
20371 * fs/minix.c: New file.
20372 * include/grub/fs.h (grub_ufs_init): New prototype.
20373 (grub_ufs_fini): Likewise.
20374 (grub_minix_init): Likewise.
20375 (grub_minix_fini): Likewise.
20376 * util/grub-emu.c (main): Initialize and deinitialize UFS and
20379 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
20381 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
20382 commands/ls.c, commands/terminal.c, commands/boot.c,
20383 commands/cmp.c and commands/cat.c.
20384 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
20386 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
20389 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
20391 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
20392 and grub_, respectively. Because the conversion is trivial and
20393 mechanical, I omit the details here. Please refer to the CVS
20394 if you need more information.
20396 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
20398 * include/pupa: Renamed to ...
20399 * include/grub: ... this.
20400 * util/i386/pc/pupa-mkimage.c: Renamed to ...
20401 * util/i386/pc/grub-mkimage.c: ... this.
20402 * util/i386/pc/pupa-setup.c: Renamed to ...
20403 * util/i386/pc/grub-setup.c: ... this.
20404 * util/pupa-emu.c: Renamed to ...
20405 * util/grub-emu.c: ... this.
20407 2004-03-29 Marco Gerards <metgerards@student.han.nl>
20409 Add support for the newworld apple macintosh (PPC). This has been
20410 tested on the powerbook 2000 only. It only adds support for
20411 generic ieee1275 functions, console and disk support. This should
20412 be easy to port to other architectures with support for Open
20415 * configure.ac: Accept the powerpc as host_cpu. In the case of
20416 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
20417 specific tests are only executed while building for the i386.
20418 Inverse test for crosscompile.
20419 * genmk.rb (Utility): Allow assembler files.
20420 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
20421 * conf/powerpc-ieee1275.rmk: New file.
20422 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
20423 * disk/powerpc/ieee1275/partition.c: Likewise.
20424 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
20425 * include/pupa/powerpc/ieee1275/console.h: Likewise.
20426 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
20427 * include/pupa/powerpc/ieee1275/time.h: Likewise.
20428 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
20429 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
20430 * include/pupa/powerpc/ieee1275/loader.h
20431 * include/pupa/powerpc/setjmp.h: Likewise.
20432 * include/pupa/powerpc/types.h: Likewise.
20433 * kern/powerpc/ieee1275/init.c: Likewise.
20434 * kern/powerpc/ieee1275/openfw.c: Likewise.
20435 * term/powerpc/ieee1275/ofconsole.c: Likewise.
20437 These files were written by Johan Rydberg
20438 (jrydberg@night.trouble.net) and I only modified them slightly.
20440 * boot/powerpc/ieee1275/cmain.c: New file.
20441 * boot/powerpc/ieee1275/crt0.S: Likewise.
20442 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
20443 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
20445 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
20447 * Makefile.in: Update copyright.
20448 * genmodsrc.sh: Likewise.
20449 * gensymlist.sh: Likewise.
20450 * term/i386/pc/vga.c: Indent correctly.
20452 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
20453 bugreporting address.
20454 * util/i386/pc/pupa-setup.c (usage): Likewise,
20455 (main): Call pupa_ext2_init and pupa_ext2_fini.
20457 * fs/fat.c (log2): Renamed to ...
20458 (fat_log2): ... this.
20459 All callers changed.
20460 * kern/misc.c (memcpy): Alias to pupa_memmove.
20461 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
20463 * util/console.c (pupa_ncurses_fini): Return 0.
20465 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
20466 Move fail label here.
20467 [__GNU__]: Don't warn when using stat.
20468 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
20469 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
20470 long int. Use strtol instead of strtoul.
20472 2004-03-14 Marco Gerards <metgerards@student.han.nl>
20474 * commands/boot.c: New file.
20475 * commands/cat.c: Likewise.
20476 * commands/cmp.c: Likewise.
20477 * commands/ls.c: Likewise.
20478 * commands/terminal.c: Likewise.
20479 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
20480 (pupa_register_command): Changed interface to match the new
20482 (pupa_command_execute): Changed (almost rewritten) so it uses
20483 pupa_split_command. Added support for setting variables using the
20485 (rescue_command): Changed to work with the new argument parser.
20486 (terminal_command): Moved from here to commands/terminal.c.
20487 (set_command): New function.
20488 (unset_command): New function.
20489 (insmod_command): New function.
20490 (rmmod_command): New function.
20491 (lsmod_command): New function.
20492 (pupa_command_init): Don't initialize the command terminal
20493 anymore. Initialize the commands set, unset, insmod, rmmod and
20495 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
20496 (kernel_img_HEADERS): Add arg.h and env.h.
20497 (pupa_mkimage_LDFLAGS): Add kern/env.c.
20498 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
20499 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
20501 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
20503 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
20504 (boot_mod_SOURCES): New variable.
20505 (terminal_mod_SOURCES): Likewise.
20506 (ls_mod_SOURCES): Likewise.
20507 (cmp_mod_SOURCES): Likewise.
20508 (cat_mod_SOURCES): Likewise.
20510 * normal/arg.c: New file.
20511 * kern/env.c: Likewise.
20512 * include/pupa/arg.h: Likewise.
20513 * include/pupa/env.h: Likewise.
20514 * font/manager.c (font_command): Changed to match argument parsing
20516 (PUPA_MOD_INIT): Likewise.
20517 * hello/hello.c (pupa_cmd_hello): Likewise.
20518 (PUPA_MOD_INIT): Likewise.
20519 * include/pupa/disk.h: Include <pupa/device.h>.
20520 (pupa_print_partinfo): New prototype.
20521 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
20522 (pupa_dl_get_prefix): Likewise.
20523 * include/pupa/misc.h: Include <pupa/err.h>.
20524 (pupa_isgraph): New prototype.
20525 (pupa_isdigit): Likewise.
20526 (pupa_split_cmdline): Likewise.
20527 * include/pupa/normal.h: Include <pupa/arg.h>.
20528 (pupa_command): Changed the prototype of the member `func' to
20529 match the argument parsing interface. Added member `options'.
20530 (pupa_register_command): Updated to match function.
20531 (pupa_arg_parse): New prototype.
20532 (pupa_hello_init) [PUPA_UTIL]: New prototype.
20533 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
20534 (pupa_ls_init) [PUPA_UTIL]: Likewise.
20535 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
20536 (pupa_cat_init) [PUPA_UTIL]: Likewise.
20537 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
20538 (pupa_boot_init) [PUPA_UTIL]: Likewise.
20539 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
20540 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
20541 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
20542 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
20543 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
20544 * kern/disk.c: Include <pupa/file.h>.
20545 (pupa_print_partinfo): New function.
20546 * kern/dl.c: Include <pupa/env.h>.
20547 (pupa_dl_dir): Variable removed.
20548 (pupa_dl_load): Use the environment variable `prefix' instead of
20549 the variable pupa_dl_dir.
20550 (pupa_dl_set_prefix): Function removed.
20551 (pupa_dl_get_prefix): Likewise.
20552 * kern/i386/pc/init.c: Include <pupa/env.h>.
20553 (pupa_machine_init): Use the environment variable `prefix' instead of
20554 using pupa_dl_set_prefix to set the prefix.
20555 * kern/main.c: Include <pupa/env.h>.
20556 (pupa_set_root_dev): Use the environment variable `prefix' instead of
20557 using pupa_dl_get_prefix to get the prefix.
20558 * kern/misc.c: Include <pupa/env.h>.
20559 (pupa_isdigit): New function.
20560 (pupa_isgraph): Likewise.
20561 (pupa_ftoa): Likewise.
20562 (pupa_vsprintf): Added support for printing values of the type
20563 `double'. Make it possible to format variable output when using
20564 formatting like `%1.2%f'.
20565 (pupa_split_cmdline): New function.
20566 * kern/rescue.c: Include <pupa/env.h>.
20567 (next_word): Removed function.
20568 (pupa_rescue_cmd_prefix): Likewise.
20569 (pupa_rescue_cmd_set): New function.
20570 (pupa_rescue_cmd_unset): New function.
20571 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
20572 split the command line instead of splitting it here. Added
20573 support for setting variables using the syntax `foo=bar'. Don't
20574 initialize the prefix command anymore. Initialized the set and
20576 * normal/cmdline.c: Include <pupa/env.h>.
20577 (pupa_tab_complete): Added prototypes for print_simple_completion,
20578 print_partition_completion, add_completion, iterate_commands,
20579 iterate_dev, iterate_part and iterate_dir. Moved code to print
20580 partition information from here to kern/disk.c.
20581 (pupa_cmdline_run): Don't check if the function exists anymore.
20582 * normal/main.c: Include <pupa/env.h>.
20583 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
20584 instead of using pupa_dl_get_prefix to get the prefix.
20585 * term/i386/pc/vga.c: Include <pupa/arg.h>.
20586 (check_vga_mem): Cast pointers to `void *' to silence a gcc
20588 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
20589 (pupa_vga_setcolor): Declare unused variables with `__attribute__
20590 ((unused))' to silence a gcc warning.
20591 (pupa_vga_setcolor): Likewise.
20592 (debug_command): Changed to match argument parsing
20594 * util/pupa-emu.c: Include <pupa/env.h>.
20595 (options): Added 0's for unused fields to silence a gcc warning.
20597 (main): Use the environment variable `prefix' instead of using
20598 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
20599 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
20602 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
20603 * util/misc.c: Include <malloc.h>.
20604 (pupa_malloc): Rewritten so errors are correctly reported.
20605 (pupa_realloc): Likewise.
20606 (pupa_memalign): Likewise.
20607 (pupa_mm_init_region): Declare unused variables with
20608 `__attribute__ ((unused))' to silence a gcc warning.
20609 * normal/i386/setjmp.S: Remove tab at the end of the file to
20610 silence a gcc warning.
20611 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
20612 variables with `__attribute__ ((unused))' to silence a gcc
20614 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
20615 local variable i unsigned to silence a gcc warning.
20617 * kern/term.c: Include <pupa/misc.h>.
20618 (pupa_more_lines): New variable.
20619 (pupa_more): Likewise.
20620 (pupa_putcode): When the pager is active pause at the end of every
20622 (pupa_set_more): New function.
20623 * include/pupa/term.h (pupa_set_more): New prototype.
20626 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
20628 Now this project is GRUB 2 rather than PUPA. The location of
20629 the CVS repository was moved to GRUB's.
20631 * configure.ac: Use bug-grub as the reporting address.
20632 Use GRUB instead of PUPA.
20633 Change the version number to 1.90.
20635 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
20637 * genkernsyms.sh: Updated copyright information.
20638 * genmk.rb: Likewise.
20639 * genmodsrc.sh: Likewise.
20640 * gensymlist.sh: Likewise.
20641 * boot/i386/pc/boot.S: Likewise.
20642 * boot/i386/pc/diskboot.S: Likewise.
20643 * disk/i386/pc/biosdisk.c: Likewise.
20644 * disk/i386/pc/partition.c: Likewise.
20645 * font/manager.c: Likewise.
20646 * fs/ext2.c: Likewise.
20647 * fs/fat.c: Likewise.
20648 * include/pupa/boot.h: Likewise.
20649 * include/pupa/device.h: Likewise.
20650 * include/pupa/disk.h: Likewise.
20651 * include/pupa/dl.h: Likewise.
20652 * include/pupa/elf.h: Likewise.
20653 * include/pupa/err.h: Likewise.
20654 * include/pupa/file.h: Likewise.
20655 * include/pupa/font.h: Likewise.
20656 * include/pupa/fs.h: Likewise.
20657 * include/pupa/kernel.h: Likewise.
20658 * include/pupa/loader.h: Likewise.
20659 * include/pupa/misc.h: Likewise.
20660 * include/pupa/mm.h: Likewise.
20661 * include/pupa/net.h: Likewise.
20662 * include/pupa/normal.h: Likewise.
20663 * include/pupa/rescue.h: Likewise.
20664 * include/pupa/setjmp.h: Likewise.
20665 * include/pupa/symbol.h: Likewise.
20666 * include/pupa/term.h: Likewise.
20667 * include/pupa/types.h: Likewise.
20668 * include/pupa/i386/setjmp.h: Likewise.
20669 * include/pupa/i386/types.h: Likewise.
20670 * include/pupa/i386/pc/biosdisk.h: Likewise.
20671 * include/pupa/i386/pc/boot.h: Likewise.
20672 * include/pupa/i386/pc/console.h: Likewise.
20673 * include/pupa/i386/pc/init.h: Likewise.
20674 * include/pupa/i386/pc/kernel.h: Likewise.
20675 * include/pupa/i386/pc/linux.h: Likewise.
20676 * include/pupa/i386/pc/loader.h: Likewise.
20677 * include/pupa/i386/pc/memory.h: Likewise.
20678 * include/pupa/i386/pc/multiboot.h: Likewise.
20679 * include/pupa/i386/pc/partition.h: Likewise.
20680 * include/pupa/i386/pc/time.h: Likewise.
20681 * include/pupa/i386/pc/vga.h: Likewise.
20682 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
20683 * include/pupa/util/getroot.h: Likewise.
20684 * include/pupa/util/misc.h: Likewise.
20685 * include/pupa/util/resolve.h: Likewise.
20686 * kern/device.c: Likewise.
20687 * kern/disk.c: Likewise.
20688 * kern/dl.c: Likewise.
20689 * kern/err.c: Likewise.
20690 * kern/file.c: Likewise.
20691 * kern/fs.c: Likewise.
20692 * kern/loader.c: Likewise.
20693 * kern/main.c: Likewise.
20694 * kern/misc.c: Likewise.
20695 * kern/mm.c: Likewise.
20696 * kern/rescue.c: Likewise.
20697 * kern/term.c: Likewise.
20698 * kern/i386/dl.c: Likewise.
20699 * kern/i386/pc/init.c: Likewise.
20700 * kern/i386/pc/lzo1x.S: Likewise.
20701 * kern/i386/pc/startup.S: Likewise.
20702 * loader/i386/pc/chainloader.c: Likewise.
20703 * loader/i386/pc/linux.c: Likewise.
20704 * loader/i386/pc/multiboot.c: Likewise.
20705 * normal/cmdline.c: Likewise.
20706 * normal/command.c: Likewise.
20707 * normal/main.c: Likewise.
20708 * normal/menu.c: Likewise.
20709 * normal/i386/setjmp.S: Likewise.
20710 * term/i386/pc/console.c: Likewise.
20711 * term/i386/pc/vga.c: Likewise.
20712 * util/console.c: Likewise.
20713 * util/genmoddep.c: Likewise.
20714 * util/misc.c: Likewise.
20715 * util/pupa-emu.c: Likewise.
20716 * util/resolve.c: Likewise.
20717 * util/unifont2pff.rb: Likewise.
20718 * util/i386/pc/biosdisk.c: Likewise.
20719 * util/i386/pc/getroot.c: Likewise.
20720 * util/i386/pc/pupa-mkimage.c: Likewise.
20721 * util/i386/pc/pupa-setup.c: Likewise.
20723 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
20725 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
20726 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
20727 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
20728 reading and reset it after reading.
20729 (pupa_ext2_close): Return PUPA_ERR_NONE.
20731 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
20733 (struct linux_kernel_header): Add kernel_version and
20735 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
20736 pupa_file_read succeeds.
20737 (pupa_rescue_cmd_initrd): Implement.
20739 2003-12-03 Marco Gerards <metgerards@student.han.nl>
20741 * fs/ext2.c (pupa_ext2_label): New function.
20742 (pupa_ext2_fs): Added label.
20743 * fs/fat.c (pupa_fat_label): New function.
20744 (pupa_fat_fs): Added label.
20745 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
20747 * kern/misc.c (pupa_strndup): New function.
20748 * include/pupa/misc.h (pupa_strndup): New prototype.
20750 * include/pupa/normal.h: Include <pupa/err.h>.
20751 (pupa_set_history): New prototype.
20752 (pupa_iterate_commands): New prototype.
20753 * normal/cmdline.c: Include <pupa/machine/partition.h>,
20754 <pupa/disk.h>, <pupa/file.h>.
20755 (hist_size): New variable.
20756 (hist_lines): Likewise.
20757 (hist_end): Likewise.
20758 (hist_used): Likewise.
20759 (pupa_set_history): New function.
20760 (pupa_history_get): Likewise.
20761 (pupa_history_add): Likewise.
20762 (pupa_history_replace): Likewise.
20763 (pupa_tab_complete): Likewise.
20764 (pupa_cmdline_run): Added tab completion and history buffer. Tab
20765 completion shows partitionnames while completing partitions, this
20766 feature was suggested by Jeff Bailey.
20767 * normal/command.c (pupa_iterate_commands): New function.
20768 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
20769 (pupa_normal_init): Initialize history buffer.
20770 (PUPA_MOD_INIT): Likewise.
20771 (pupa_normal_fini): Free the history buffer.
20772 (PUPA_MOD_FINI): Likewise.
20774 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
20777 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
20778 * configure.ac [i386]: Check for regparam bug.
20779 (NESTED_FUNC_ATTR) [! i386]: Defined.
20781 2003-11-17 Marco Gerards <metgerards@student.han.nl>
20783 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
20784 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
20785 (pupa_emu_SOURCES): New variable.
20786 (pupa_emu_LDFLAGS): Likewise.
20787 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
20788 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
20789 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
20790 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
20791 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
20792 (pupa_jmp_buf): New typedef.
20793 (pupa_setjmp) [PUPA_UTIL]: New macro.
20794 (pupa_longjmp) [PUPA_UTIL]: Likewise.
20795 * include/pupa/term.h (struct pupa_term): New member `refresh'.
20796 (pupa_refresh): New prototype.
20797 * include/pupa/util/getroot.h: New file.
20798 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
20800 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
20801 (pupa_rescue_cmd_cat): Likewise.
20802 (pupa_rescue_cmd_ls): Likewise.
20803 (pupa_rescue_cmd_testload): Likewise.
20804 (pupa_rescue_cmd_lsmod): Likewise.
20805 * normal/cmdline.c (pupa_cmdline_get): Likewise.
20806 * normal/menu.c (run_menu): Likewise.
20807 * kern/term.c (pupa_cls): Likewise.
20808 (pupa_refresh): New function.
20809 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
20810 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
20811 * util/console.c: New file.
20813 * util/i386/pc/getroot.c: New file.
20814 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
20815 (pupa_putchar): New function.
20816 (pupa_refresh): Likewise.
20817 (xgetcwd): Function moved to ...
20818 (strip_extra_slashes): Likewise.
20819 (get_prefix): Likewise.
20820 * util/i386/pc/getroot.c: ... here.
20821 (find_root_device): Function moved and renamed to...
20822 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
20823 Changed all callers.
20824 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
20826 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
20827 Changed all callers.
20828 * util/misc.c (pupa_memalign): New function.
20829 (pupa_mm_init_region): Likewise.
20830 (pupa_register_exported_symbols): Likewise.
20831 (pupa_putchar): Function removed.
20832 * util/pupa-emu.c: New file.
20834 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
20836 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
20837 (_multiboot_mod_SOURCES): New variable.
20838 (_multiboot_mod_CFLAGS): Likewise.
20839 * loader/i386/pc/multiboot.c: New file.
20840 * include/pupa/i386/pc/multiboot.h: Likewise.
20841 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
20842 (pupa_multiboot_real_boot): New function.
20843 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
20844 (pupa_multiboot_real_boot): New prototype.
20845 (pupa_rescue_cmd_multiboot): Likewise
20846 (pupa_rescue_cmd_module): Likewise.
20848 * kern/loader.c (pupa_loader_set): Continue when
20849 pupa_loader_unload_func() fails.
20850 (pupa_loader_unset): New function.
20851 * include/pupa/loader.h (pupa_loader_unset): New prototype.
20853 * kern/misc.c (pupa_stpcpy): New function.
20854 * include/pupa/misc.h (pupa_stpcpy): New prototype.
20856 2003-11-12 Marco Gerards <metgerards@student.han.nl>
20858 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
20859 for available extensions.
20861 * include/pupa/i386/pc/time.h: New file.
20862 * kern/disk.c: Include <pupa/machine/time.h>.
20863 (PUPA_CACHE_TIMEOUT): New macro.
20864 (pupa_last_time): New variable.
20865 (pupa_disk_open): Flush the cache when there was a timeout.
20866 (pupa_disk_close): Reset the timer.
20867 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
20869 * util/misc.c: Include <sys/times.h>
20870 (pupa_get_rtc): New function.
20872 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
20874 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
20876 (pupa_ext2_get_file_block): Use blocks member.
20878 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
20879 first block. Return -1 instead of pupa_errno on error.
20881 2003-10-27 Marco Gerards <metgerards@student.han.nl>
20883 * README: In the pupa-mkimage example use _chain instead of chain
20884 and ext2 instead of fat.
20885 * TODO: Replace ext2fs with jfs as an example. Add an item for
20886 adding journal playback for ext2fs.
20887 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
20888 (pkgdata_MODULES): Added ext2.mod.
20889 (ext2_mod_SOURCES): New variable.
20890 (ext2_mod_CFLAGS): Likewise.
20891 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
20892 * include/pupa/misc.h (pupa_strncpy): New prototype.
20893 (pupa_strcat): Likewise.
20894 (pupa_strncmp): Likewise.
20895 * kern/misc.c (pupa_strcat): Enable function.
20896 (pupa_strncpy): New function.
20897 (pupa_strncmp): Likewise.
20898 * fs/ext2.c: New file.
20900 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
20901 when the read failed before retrying.
20902 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
20903 (_FILE_OFFSET_BITS): Likewise.
20904 * configure.ac: Added AC_SYS_LARGEFILE.
20906 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
20908 * genmk.rb (PModule#rule): Make sure to get only symbol names
20909 from the output of nm.
20910 Reported by Robert Millan <zeratul2@wanadoo.es>.
20912 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
20914 I forgot to check in these changes for a long time. This adds
20915 incomplete support for VGA console, and this is still very
20916 buggy. Also, a lot of consideration is required for I18N,
20917 UNICODE, and VGA font issues. Therefore, assume that this is
20918 such that "better than nothing".
20920 * font/manager.c: New file.
20921 * include/pupa/font.h: Likewise.
20922 * include/pupa/i386/pc/vga.h: Likewise.
20923 * term/i386/pc/vga.c: Likewise.
20924 * util/unifont2pff.rb: Likewise.
20926 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
20927 (pkgdata_MODULES): Added vga.mod and font.mod.
20928 (vga_mod_SOURCES): New variables.
20929 (vga_mod_CFLAGS): Likewise.
20930 (font_mod_SOURCES): Likewise.
20931 (font_mod_CFLAGS): Likewise.
20933 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
20935 * include/pupa/term.h: Include pupa/err.h.
20936 (struct pupa_term): Added init and fini.
20937 Changed the argument of putchar to pupa_uint32_t.
20939 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
20940 (pupa_console_real_putchar): New prototype.
20941 (pupa_console_putchar): Removed.
20942 (pupa_console_checkkey): Exported.
20943 (pupa_console_getkey): Likewise.
20945 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
20948 * kern/term.c (pupa_term_set_current): Rewritten.
20949 (pupa_putchar): Likewise.
20950 (pupa_putcode): New function.
20952 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
20953 (pupa_console_real_putchar): ... this.
20954 (pupa_vga_set_mode): New function.
20955 (pupa_vga_get_font): Likewise.
20957 * normal/command.c: Include pupa/term.h.
20958 (terminal_command): New function.
20959 (pupa_command_init): Register the command "terminal".
20961 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
20962 (DISP_UP): Likewise.
20963 (DISP_RIGHT): Likewise.
20964 (DISP_DOWN): Likewise.
20965 (DISP_HLINE): Likewise.
20966 (DISP_VLINE): Likewise.
20967 (DISP_UL): Likewise.
20968 (DISP_UR): Likewise.
20969 (DISP_LL): Likewise.
20970 (DISP_LR): Likewise.
20972 * term/i386/pc/console.c (pupa_console_putchar): New function.
20974 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
20976 * util/resolve.c (pupa_util_resolve_dependencies): BUG
20977 FIX. Reverse the path_list.
20979 * include/pupa/normal.h: Export pupa_register_command and
20980 pupa_unregister_command.
20982 * hello/hello.c (pupa_cmd_hello): New module.
20983 * conf/i386-pc.rmk: Added hello.mod.
20985 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
20987 * kern/i386/pc/lzo1x.S: New file.
20989 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
20990 (compress_kernel): New variable.
20991 (generate_image): Heavily modified to support compressing a
20992 large part of the core image.
20994 * util/misc.c (pupa_util_read_image): Fix a file descriptor
20996 (pupa_util_load_image): New function.
20998 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
20999 (pupa_compressed_size): New variable.
21000 (codestart): Enable Gate A20 here.
21001 Decompress the compressed part of the core image.
21002 Rearrange the code to put functions and variables which are
21003 required for initialization in the non-compressed part.
21006 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
21009 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
21011 * include/pupa/i386/pc/kernel.h
21012 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
21013 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
21014 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
21015 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
21016 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
21018 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
21020 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
21021 (Utility#rule): Likewise.
21023 * configure.ac: Check if LZO is available.
21025 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
21027 * include/pupa/normal.h: New file.
21028 * include/pupa/setjmp.h: Likewise.
21029 * include/pupa/i386/setjmp.h: Likewise.
21030 * normal/cmdline.c: Likewise.
21031 * normal/command.c: Likewise.
21032 * normal/main.c: Likewise.
21033 * normal/menu.c: Likewise.
21034 * normal/i386/setjmp.S: Likewise.
21036 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
21037 (pupa_rescue_cmd_initrd): Likewise.
21039 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
21042 * kern/i386/pc/startup.S (translation_table): New variable.
21043 (translate_keycode): New function.
21044 (pupa_console_getkey): Call translate_keycode.
21046 * kern/rescue.c (attempt_normal_mode): New function.
21047 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
21048 it failed, print a message.
21050 * kern/mm.c (pupa_real_malloc): Print more information when a
21051 free magic is broken.
21052 (pupa_free): If the first free header is not free actually, set
21055 * kern/main.c (pupa_load_normal_mode): Just load the module
21057 (pupa_main): Don't print the message
21058 "Entering into rescue mode..." here.
21060 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
21062 (pupa_rescue_cmd_initrd): Likewise.
21063 (pupa_rescue_cmd_initrd): Likewise.
21065 * include/pupa/symbol.h (FUNCTION): Specify the type.
21066 (VARIABLE): Likewise.
21068 * include/pupa/err.h (pupa_err_t): Added
21069 PUPA_ERR_UNKNOWN_COMMAND.
21071 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
21072 (pupa_dl_get_prefix): Likewise.
21074 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
21075 Added _chain.mod and _linux.mod instead of chain.mod and
21077 (chain_mod_SOURCES): Renamed to ...
21078 (_chain_mod_SOURCES): ... this.
21079 (chain_mod_CFLAGS): Renamed to ...
21080 (_chain_mod_CFLAGS): ... this.
21081 (linux_mod_SOURCES): Renamed to ...
21082 (_linux_mod_SOURCES): ... this.
21083 (linux_mod_CFLAGS): Renamed to ...
21084 (_linux_mod_CFLAGS): ... this.
21085 (normal_mod_SOURCES): New variable.
21086 (normal_mod_CFLAGS): Likewise.
21087 (normal_mod_ASFLAGS): Likewise.
21089 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
21091 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
21094 * kern/dl.c (pupa_dl_ref): Refer depending modules
21096 (pupa_dl_unref): Unrefer depending modules recursively.
21097 Don't call pupa_dl_unload implicitly, because PUPA can crash if
21098 a module is unloaded before one depending on that module is
21100 (pupa_dl_unload): Unload depending modules explicitly,
21103 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
21105 * include/pupa/i386/pc/linux.h: New file.
21106 * loader/i386/pc/linux.c: Likewise.
21108 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
21110 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
21111 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
21112 of PUPA_CHAINLOADER_BOOT_SECTOR.
21114 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
21115 (pupa_linux_prot_size): New variable.
21116 (pupa_linux_tmp_addr): Likewise.
21117 (pupa_linux_real_addr): Likewise.
21118 (pupa_linux_boot_zimage): New function.
21119 (pupa_linux_boot_bzimage): Likewise.
21121 * kern/i386/pc/init.c (struct mem_region): New structure.
21122 (MAX_REGIONS): New macro.
21123 (mem_regions): New variable.
21124 (num_regions): Likewise.
21125 (pupa_os_area_addr): Likewise.
21126 (pupa_os_area_size): Likewise.
21127 (pupa_lower_mem): Likewise.
21128 (pupa_upper_mem): Likewise.
21129 (add_mem_region): New function.
21130 (compact_mem_regions): Likewise.
21131 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
21132 the size of the conventional memory and that of so-called upper
21133 memory (before the first memory hole).
21134 Instead of adding each found region to free memory, use
21135 add_mem_region and add them after removing overlaps.
21136 Also, add only 1/4 of the upper memory to free memory. The rest
21137 is used for loading OS images. Maybe this is ad hoc, but this
21138 makes it much easier to relocate OS images when booting.
21140 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
21141 (pupa_enter_rescue_mode): Don't register initrd and module.
21143 * kern/mm.c: Include pupa/dl.h.
21145 * kern/main.c: Include pupa/file.h and pupa/device.h.
21147 * kern/loader.c (pupa_loader_load_module_func): Removed.
21148 (pupa_loader_load_module): Likewise.
21150 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
21153 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
21154 (pupa_linux_tmp_addr): Likewise.
21155 (pupa_linux_real_addr): Likewise.
21156 (pupa_linux_boot_zimage): Likewise.
21157 (pupa_linux_boot_bzimage): Likewise.
21159 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
21160 (pupa_upper_mem): Likewise.
21161 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
21162 module is too dangerous.
21164 * include/pupa/loader.h (pupa_os_area_addr): Declared.
21165 (pupa_os_area_size): Likewise.
21166 (pupa_loader_set): Remove the first argument. Loader doesn't
21167 manage modules or initrd any longer.
21168 (pupa_loader_load_module): Removed.
21170 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
21171 (linux_mod_SOURCES): New variable.
21172 (linux_mod_CFLAGS): Likewise.
21174 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
21176 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
21177 the length of a blocklist correctly.
21179 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
21180 Use ioctl only if the OS file is a block device.
21181 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
21182 not very useful for normal files.
21184 * kern/main.c (pupa_set_root_dev): New function.
21185 (pupa_load_normal_mode): Likewise.
21186 (pupa_main): Call those above.
21188 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
21191 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
21193 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
21195 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
21196 (setup): Configure the installed partition information and the
21199 * loader/i386/pc/chainloader.c (my_mod): New variable.
21200 (pupa_chainloader_unload): New function.
21201 (pupa_rescue_cmd_chainloader): Refer itself.
21202 (PUPA_MOD_INIT): Save its own module in MY_MOD.
21204 * kern/i386/pc/startup.S (install_partition): Removed.
21205 (version_string): Likewise.
21206 (config_file): Likewise.
21207 (pupa_install_dos_part): New variable.
21208 (pupa_install_bsd_part): Likewise.
21209 (pupa_prefix): Likewise.
21210 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
21212 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
21214 (make_install_device): New function.
21215 (pupa_machine_init): Set the dl prefix.
21217 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
21218 (buf): Renamed to ...
21219 (linebuf): ... this.
21220 (pupa_rescue_cmd_prefix): New function.
21221 (pupa_rescue_cmd_insmod): Likewise.
21222 (pupa_rescue_cmd_rmmod): Likewise.
21223 (pupa_rescue_cmd_lsmod): Likewise.
21224 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
21227 * kern/mm.c (pupa_memalign): If failed even after invalidating
21228 disk caches, unload unneeded modules and retry.
21230 * kern/misc.c (pupa_memmove): New function.
21231 (pupa_memcpy): Removed.
21232 (pupa_strcpy): New function.
21233 (pupa_itoa): Made static.
21235 * kern/dl.c (pupa_dl_iterate): New function.
21236 (pupa_dl_ref): Likewise.
21237 (pupa_dl_unref): Likewise.
21238 (pupa_dl_unload): Return if succeeded or not.
21239 (pupa_dl_unload_unneeded): New function.
21240 (pupa_dl_unload_all): Likewise.
21241 (pupa_dl_init): Renamed to ...
21242 (pupa_dl_set_prefix): ... this.
21243 (pupa_dl_get_prefix): New function.
21245 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
21246 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
21247 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
21248 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
21249 (pupa_install_dos_part): Declared.
21250 (pupa_install_bsd_part): Likewise.
21251 (pupa_prefix): Likewise.
21252 (pupa_boot_drive): Likewise.
21254 * include/pupa/types.h: Fix a typo.
21256 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
21258 (pupa_memmove): Declared.
21259 (pupa_strcpy): Likewise.
21261 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
21262 pupa_mod_init takes one argument, its own module.
21263 (pupa_dl_unload_unneeded): Declared.
21264 (pupa_dl_unload_all): Likewise.
21265 (pupa_dl_ref): Likewise.
21266 (pupa_dl_unref): Likewise.
21267 (pupa_dl_iterate): Likewise.
21268 (pupa_dl_init): Renamed to ...
21269 (pupa_dl_set_prefix): ... this.
21270 (pupa_dl_get_prefix): Declared.
21272 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
21273 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
21275 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
21276 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
21278 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
21279 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
21281 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
21283 * util/i386/pc/pupa-setup.c (setup): Define the internal
21284 function find_first_partition_start at the top level, because GCC
21285 3.0.x cannot compile internal functions in deeper scopes
21287 (find_root_device): Use lstat instead of stat.
21288 Don't follow symbolic links.
21289 Fix the path-constructing code.
21291 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
21292 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
21293 by a BLKGETSIZE ioctl first, because block devices don't fill
21294 the member st_mode of the structure stat on Linux.
21295 [__linux__] (linux_find_partition): Use a temporary buffer
21296 REAL_DEV for the working space. Copy it to DEV before returning.
21297 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
21298 buffer cache consistent.
21299 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
21300 strncmp. The previous value was merely wrong.
21301 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
21303 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
21304 FAT size is 12. The previous value was merely wrong.
21306 * kern/main.c (pupa_main): Don't split the starting message from
21309 * kern/term.c (pupa_putchar): Put CR after LF instead of before
21310 LF, because BIOS goes crazy about character attributes in this
21313 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
21315 * include/i386/pc/util/biosdisk.h: New file.
21316 * util/i386/pc/biosdisk.c: Likewise.
21317 * util/i386/pc/pupa-setup.c: Likewise.
21319 * Makefile.in (INCLUDE_DISTFILES): Added
21320 include/pupa/i386/pc/util/biosdisk.h.
21321 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
21322 directory util/i386/pc.
21323 (install-local): Added a rule for sbin_UTILITIES.
21324 (uninstall): Likewise.
21326 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
21328 * util/misc.c (xrealloc): New function.
21329 (pupa_malloc): Likewise.
21330 (pupa_free): Likewise.
21331 (pupa_realloc): Likewise.
21332 (pupa_stop): Likewise.
21333 (pupa_putchar): Likewise.
21335 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
21337 * include/pupa/util/misc.h (xrealloc): Declared.
21339 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
21341 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
21342 (PUPA_BOOT_MACHINE_BPB_END): ... this.
21344 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
21345 [PUPA_UTIL] (pupa_fat_fini): Likewise.
21347 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
21348 way should be implemented.
21349 [PUPA_UTIL] (pupa_fat_fini): Likewise.
21351 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
21352 the size of NAME for safety.
21353 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
21356 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
21357 (pupa_setup_SOURCES): Likewise.
21359 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
21361 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
21363 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
21364 bunch of pushl's from pusha, because this destroys the return
21367 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
21369 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
21370 This means that any missing prototypes could be fatal. Also, you
21371 must take care when writing assembly code. See the comments at
21372 the beginning of startup.S, for more details.
21374 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
21375 compilation mechanism.
21376 (pupa_chainloader_real_boot): Likewise.
21377 (pupa_biosdisk_rw_int13_extensions): Likewise.
21378 (pupa_biosdisk_rw_standard): Likewise.
21379 (pupa_biosdisk_check_int13_extensions): Likewise.
21380 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
21381 (pupa_biosdisk_get_diskinfo_standard): Likewise.
21382 (pupa_get_memsize): Likewise.
21383 (pupa_get_mmap_entry): Likewise.
21384 (pupa_console_putchar): Likewise.
21385 (pupa_console_setcursor): Likewise.
21386 (pupa_getrtsecs): Use pushl instead of push.
21388 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
21389 memory instead of the stack for a mmap entry, because some
21390 BIOSes may ignore the maximum size and overflow.
21392 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
21394 * genmk.rb (PModule#rule): Compile automatically generated
21395 sources with module-specific CFLAGS as well as other sources.
21397 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
21399 * configure.ac: Check ld.
21400 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
21401 respectively, before checking endianness and sizes.
21403 * Makefile.in (LD): New variable.
21405 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
21407 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
21409 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
21411 * Changelog: New file.