1 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
3 * util/hostdisk.c: Include `<grub/i18n.h>'.
4 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
5 (make_device_name): Rewrite using asprintf.
6 (convert_system_partition_to_system_disk): Replace 0 with NULL.
7 (find_system_device): If a device is not found, generate one just
8 by reusing the OS path name.
9 (read_device_map): Make it permissible for device.map not to exist.
11 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
13 * script/sh/execute.c: Move from here ...
14 * script/execute.c: ... to here. Update all users.
15 * script/sh/function.c: Move from here ...
16 * script/function.c: ... to here. Update all users.
17 * script/sh/lexer.c: Move from here ...
18 * script/lexer.c: ... to here. Update all users.
19 * script/sh/main.c: Move from here ...
20 * script/main.c: ... to here. Update all users.
21 * script/sh/parser.y: Move from here ...
22 * script/parser.y: ... to here. Update all users.
23 * script/sh/script.c: Move from here ...
24 * script/script.c: ... to here. Update all users.
26 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28 * configure.ac: Detect all `emu' platforms. Define
29 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
30 --enable-grub-emu logic. Disable include/grub/machine
31 symlink on `emu' platforms.
33 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34 * gensymlist.sh.in: Likewise.
36 * include/grub/i386/coreboot/machine.h: Remove file.
37 * include/grub/i386/efi/machine.h: Likewise.
38 * include/grub/i386/ieee1275/machine.h: Likewise.
39 * include/grub/i386/pc/machine.h: Likewise.
40 * include/grub/i386/qemu/machine.h: Likewise.
41 * include/grub/powerpc/ieee1275/machine.h: Likewise.
42 * include/grub/sparc64/ieee1275/machine.h: Likewise.
43 * include/grub/x86_64/efi/machine.h: Likewise.
45 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
46 * commands/halt.c: Likewise.
47 * commands/reboot.c: Likewise.
48 * include/grub/autoefi.h: Likewise.
49 * include/grub/i386/at_keyboard.h: Likewise.
50 * include/grub/i386/kernel.h: Likewise.
51 * include/grub/i386/loader.h: Likewise.
52 * include/grub/i386/pc/memory.h: Likewise.
53 * kern/dl.c: Likewise.
54 * kern/i386/coreboot/init.c: Likewise.
55 * loader/i386/bsd.c: Likewise.
56 * loader/i386/linux.c: Likewise.
57 * loader/multiboot_loader.c: Likewise.
58 * term/i386/pc/serial.c: Likewise.
59 * term/usb_keyboard.c: Likewise.
61 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
62 `<grub/machine/machine.h>'
63 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
64 * util/misc.c: Remove `<grub/machine/machine.h>' and
65 `<grub/machine/time.h>'.
67 * Makefile.in (enable_grub_emu): Remove variable.
68 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
70 * conf/any-emu.rmk: New file.
71 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
72 (grub_emu_init.c): Move from here ...
73 * conf/any-emu.rmk: ... to here.
75 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
76 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
77 * conf/any-emu.rmk: ... to here.
79 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
81 * include/grub/parser.h (grub_parser_register): Document need
83 * normal/main.c (grub_normal_read_line): Simplify prompt string.
84 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
87 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
89 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
91 * include/grub/i18n.h (N_): New macro.
92 * util/mkisofs/mkisofs.h: Likewise.
93 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
95 (usage): Use gettext() to translate help strings when printing them.
97 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
99 Based on patch from Bean
100 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
102 * video/efi_fb.c: New file.
103 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
104 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
106 * conf/x86_64-efi.rmk: Likewise.
108 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
110 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
111 * util/i386/pc/grub-setup.c: Likewise.
113 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
115 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
117 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
118 file_get_storage_info to implement grub_guess_root_device.
120 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
122 * Makefile.in (target): Use make's builtin $(shell) function
123 instead of calling directly $(SHELL) to create the locale directories,
124 inside the $(foreach) function.
126 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
128 * util/grub-mkrescue.in: Print an error and usage if output option
131 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
133 Patch from Loïc Minier <loic.minier@ubuntu.com>.
134 * util/grub.d/30_os-prober.in: Cope with Linux entries where
135 root and /boot are on different devices.
137 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
139 Fix build for srcdir != objdir.
141 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
142 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
144 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
145 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
148 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
150 * util/grub-mkrescue.in: Use source directory direcly (without copiing
151 or hardlinking it). Remove -J option, Joliet is not compatible with
152 multiple source directories.
154 2009-11-21 Carles Pina i Estany <carles@pina.cat>
155 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
157 * util/grub-mkrescue.in: Recognize `--override-directory' option.
158 (process_input_dir): New function. Process an arbitrary input
160 Misc adjustments to support both "override mode" and system-wide mode.
162 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
164 * configure.ac (UNIFONT_BDF): Rename to ...
165 (FONT_SOURCE): ... this. Update all users.
167 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
169 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
170 to the list of unifont files to look for.
172 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
174 Patch from Joe Auricchio <jauricchio@gmail.com>
175 * commands/minicmd.c (grub_mini_cmd_clear): New function.
176 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
177 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
179 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
181 * Makefile.in (install-local): Add a missing backslash.
183 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
185 * include/grub/x86_64/io.h: New file.
187 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
189 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
190 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
191 Include `"progname.h"'.
192 (main): Initialize gettext.
193 * util/i386/pc/grub-setup.c: Gettexttize.
194 * util/i386/pc/grub-mkimage.c: Likewise.
196 * Makefile.in (po/*.po): Redefine as ...
197 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
199 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
201 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
203 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
204 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
205 (program_name): Remove.
206 (main): Initialize gettext support.
207 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
208 Include `<libintl.h>'.
211 * util/mkisofs/eltorito.c: Gettexttize.
212 * util/mkisofs/joliet.c: Likewise.
213 * util/mkisofs/mkisofs.c: Likewise.
214 * util/mkisofs/multi.c: Likewise.
215 * util/mkisofs/rock.c: Likewise.
216 * util/mkisofs/tree.c: Likewise.
217 * util/mkisofs/write.c: Likewise.
219 * po/POTFILES: Update with new files.
221 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
223 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
224 * util/mkisofs/iso9660.h: Likewise.
225 * util/mkisofs/joliet.c: Likewise.
226 * util/mkisofs/mkisofs.c: Likewise.
227 * util/mkisofs/mkisofs.h: Likewise.
228 * util/mkisofs/rock.c: Likewise.
229 * util/mkisofs/tree.c: Likewise.
230 * util/mkisofs/write.c: Likewise.
232 * util/mkisofs/eltorito.c (rcsid): Remove.
233 * util/mkisofs/hash.c: Likewise.
234 * util/mkisofs/joliet.c: Likewise.
235 * util/mkisofs/name.c: Likewise.
236 * util/mkisofs/rock.c: Likewise.
237 * util/mkisofs/tree.c: Likewise.
238 * util/mkisofs/write.c: Likewise.
240 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
242 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
243 instead of static allocation.
244 * util/mkisofs/match.h: Likewise.
246 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
248 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
249 and `util/grub.d/10_linux.in'.
250 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
251 translatable Shell files.
253 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
255 * Makefile.in ($(srcdir)/aclocal.m4): New target.
257 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
259 * INSTALL: Document Automake is needed for bootstrap.
260 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
261 * util/grub.d/10_kfreebsd.in (bindir): New variable.
262 Add gettext initialization.
263 (kfreebsd_entry): Make menuentry output translatable.
265 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
267 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
268 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
269 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
270 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
271 (LINGUAS): Auto-generate using `po/LINGUAS'.
272 * po/LINGUAS: New file.
274 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
276 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
278 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
279 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
280 bindtextdomain() calls for gettext initialization.
282 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
284 * gnulib/progname.c: New file (imported from Gnulib).
285 * gnulib/progname.h: Likewise.
286 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
287 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
288 (usage): Replace `progname' with `program_name'.
289 (main): Use set_program_name() for program name initialization.
291 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
293 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
295 * Makefile.in (CPPFLAGS): ... to here.
297 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
299 * aclocal.m4: Move from here ...
300 * acinclude.m4: ... to here.
301 * autogen.sh: Add call to `aclocal'.
302 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
304 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
306 * Makefile.in (CLEANFILES): Add `po/*.mo'.
307 (LINGUAS): New variable.
308 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
309 (install-local): Install MO files.
310 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
311 * include/grub/i18n.h: New file.
312 * po/POTFILES: New file.
313 * po/ca.po: New file.
314 * util/grub.d/10_linux.in (bindir): New variable.
315 Add gettext initialization.
316 (linux_entry): Make menuentry output translatable.
317 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
318 (usage): Make --help output translatable.
319 (main): Initialize gettext.
321 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
323 * import_gcry.py: New file (written by Vladimir with minor
325 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
327 * INSTALL: Document that Python is required for bootstrap.
329 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
331 Import ciphers from libgcrypt 1.4.4.
333 * lib/libgcrypt/cipher/ChangeLog
334 * lib/libgcrypt/cipher/ac.c
335 * lib/libgcrypt/cipher/arcfour.c
336 * lib/libgcrypt/cipher/bithelp.h
337 * lib/libgcrypt/cipher/blowfish.c
338 * lib/libgcrypt/cipher/camellia-glue.c
339 * lib/libgcrypt/cipher/camellia.c
340 * lib/libgcrypt/cipher/camellia.h
341 * lib/libgcrypt/cipher/cast5.c
342 * lib/libgcrypt/cipher/cipher.c
343 * lib/libgcrypt/cipher/crc.c
344 * lib/libgcrypt/cipher/des.c
345 * lib/libgcrypt/cipher/dsa.c
346 * lib/libgcrypt/cipher/ecc.c
347 * lib/libgcrypt/cipher/elgamal.c
348 * lib/libgcrypt/cipher/hash-common.c
349 * lib/libgcrypt/cipher/hash-common.h
350 * lib/libgcrypt/cipher/hmac-tests.c
351 * lib/libgcrypt/cipher/md.c
352 * lib/libgcrypt/cipher/md4.c
353 * lib/libgcrypt/cipher/md5.c
354 * lib/libgcrypt/cipher/primegen.c
355 * lib/libgcrypt/cipher/pubkey.c
356 * lib/libgcrypt/cipher/rfc2268.c
357 * lib/libgcrypt/cipher/rijndael-tables.h
358 * lib/libgcrypt/cipher/rijndael.c
359 * lib/libgcrypt/cipher/rmd.h
360 * lib/libgcrypt/cipher/rmd160.c
361 * lib/libgcrypt/cipher/rsa.c
362 * lib/libgcrypt/cipher/seed.c
363 * lib/libgcrypt/cipher/serpent.c
364 * lib/libgcrypt/cipher/sha1.c
365 * lib/libgcrypt/cipher/sha256.c
366 * lib/libgcrypt/cipher/sha512.c
367 * lib/libgcrypt/cipher/tiger.c
368 * lib/libgcrypt/cipher/twofish.c
369 * lib/libgcrypt/cipher/whirlpool.c
371 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
373 Fix build for systems without error().
375 * gnulib/error.c: New file (imported from Gnulib).
376 * gnulib/error.h: Likewise.
377 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
378 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
379 (this variable is now used by error()).
381 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
383 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
384 instead of relying that char is signed.
386 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
388 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
389 blocksize different from specified.
390 (grub_pxefs_read): Likewise.
392 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
394 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
396 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
397 (grub_ata_readwrite): Likewise. Update 2 format strings.
398 (grub_atapi_read): Likewise.
400 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
401 * conf/i386.rmk (pkglib_MODULES): ... to here ...
402 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
403 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
404 (ata_mod_LDFLAGS): Move from here ...
405 * conf/i386.rmk: ... to here ...
406 * conf/x86_64-efi.rmk: ... and here.
407 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
408 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
410 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
412 Relicense multiboot.h, with RMS' blessing.
414 * include/multiboot.h: Change to X11 license.
416 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
418 Support --version in grub-mkisofs.
420 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
421 (OPTION_VERSION): New macro.
422 (ld_options): Recognize --version.
423 (usage): Move `program_name' from here ...
424 (program_name): ... to here. Add `static' qualifier.
425 (main): Recognize `OPTION_VERSION'.
427 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
429 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
430 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
432 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
434 Fix help2man generation for mkisofs.
436 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
437 (usage): Send output to stdout (rather than stderr).
439 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
441 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
442 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
443 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
444 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
445 (bin_SCRIPTS): Add `grub-mkfloppy'.
446 (grub_mkfloppy_SOURCES): New variable.
448 * util/grub-mkrescue.in: New file.
449 * util/i386/pc/grub-mkfloppy.in: New file.
451 * util/i386/coreboot/grub-mkrescue.in: Remove.
452 * util/i386/pc/grub-mkrescue.in: Remove.
454 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
456 * include/grub/multiboot.h (struct grub_multiboot_header): Move
458 * include/multiboot.h (struct multiboot_header): ... to here. Update
460 * include/grub/multiboot.h (struct grub_multiboot_info): Move
462 * include/multiboot.h (struct multiboot_info): ... to here. Update
464 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
466 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
468 * include/grub/multiboot.h (struct grub_mod_list): Move
470 * include/multiboot.h (struct multiboot_mod_list): ... to here.
473 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
475 * include/multiboot2.h (multiboot_word): Rename from this ...
476 (multiboot2_word): ... to this. Update all users.
477 (multiboot_header): Rename from this ...
478 (multiboot2_header): ... to this. Update all users.
479 (multiboot_tag_header): Rename from this ...
480 (multiboot2_tag_header): ... to this. Update all users.
481 (multiboot_tag_start): Rename from this ...
482 (multiboot2_tag_start): ... to this. Update all users.
483 (multiboot_tag_name): Rename from this ...
484 (multiboot2_tag_name): ... to this. Update all users.
485 (multiboot_tag_module): Rename from this ...
486 (multiboot2_tag_module): ... to this. Update all users.
487 (multiboot_tag_memory): Rename from this ...
488 (multiboot2_tag_memory): ... to this. Update all users.
489 (multiboot_tag_unused): Rename from this ...
490 (multiboot2_tag_unused): ... to this. Update all users.
491 (multiboot_tag_end): Rename from this ...
492 (multiboot2_tag_end): ... to this. Update all users.
494 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
496 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
497 this platform we should support Multiboot1 first.
499 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
500 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
501 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
503 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
505 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
506 of write calls (converting them to fwrite() if they aren't already).
507 (get_torito_desc): Likewise.
508 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
510 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
512 * util/i386/pc/grub-install.in: Move from here ...
513 * util/grub-install.in: ... to here. Update all users.
515 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
517 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
519 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
521 Support for El Torito without floppy emulation.
523 * util/mkisofs/eltorito.c: Include `<errno.h>'.
524 (init_boot_catalog): Improve error handling.
525 (get_torito_desc): Don't use floppy emulation unless requested by
526 user. Patch boot information table when requested via
528 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
529 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
530 (use_boot_info_table): New variables.
531 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
532 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
533 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
534 `--eltorito-emul-floppy'.
535 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
536 and `OPTION_ELTORITO_EMUL_FLOPPY'.
537 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
538 (use_boot_info_table, get_731): New prototypes.
539 * util/mkisofs/write.c (get_731): New function.
541 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
543 Fix the generation of the man page.
545 * util/pc/i386/grub-install.in: Source
546 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
548 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
550 Large file support for grub-mkisofs.
552 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
553 * util/mkisofs/mkisofs.c (next_extent, last_extent)
554 (session_start): Upgrade type to `uint64_t'. Update all users.
555 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
556 (struct directory_entry): Upgrade type of `starting_block' and
557 `size' to `uint64_t'. Update all users.
558 (struct deferred): Remove unused structure.
559 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
561 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
562 file is larger than `UINT32_MAX'.
563 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
564 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
566 (struct deferred_write): Upgrade type of `extent' and `size' to
567 `uint64_t'. Update all users.
568 (last_extent_written): Upgrade type to `uint64_t'. Update all
570 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
571 Update all users. Upgrade type of `remain' to `int64_t' and
572 `use' to `size_t'. Use error() to handle fread() errors.
573 (write_files): Rely on write_one_file() rather than calling
576 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
578 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
580 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
582 * util/mkisofs/fnmatch.c: Remove.
583 * util/mkisofs/getopt1.c: Likewise.
584 * util/mkisofs/getopt.c: Likewise.
585 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
586 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
587 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
588 `gnulib/getopt1.c' and `gnulib/getopt.c'.
589 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
591 * configure.ac: Detect `mingw32msvc' host_os.
592 Check for lstat(), getuid() and getgid().
594 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
595 instances of `u_char' with `uint8_t'.
597 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
598 [!HAVE_GETUID] (getuid): New function (stub).
599 [!HAVE_GETGID] (getgid): Likewise.
600 [!HAVE_LSTAT] (lstat): Likewise.
601 [!S_IROTH] (S_IROTH): New macro (dummy).
602 [!S_IRGRP] (S_IRGRP): Likewise.
604 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
606 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
607 conditional expression).
609 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
613 * gnulib/fnmatch.c: New file.
614 * gnulib/fnmatch.h: Likewise.
615 * gnulib/fnmatch_loop.c: Likewise.
616 * gnulib/getopt.c: Likewise.
617 * gnulib/getopt.h: Likewise.
618 * gnulib/getopt1.c: Likewise.
619 * gnulib/getopt_int.h: Likewise.
620 * gnulib/gettext.h: Likewise.
622 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
624 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
625 * normal/handler.c (read_handler_list): Likewise.
627 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
631 * kern/command.c (grub_register_command_prio): Use
632 grub_zalloc() instead of explicitly zeroing data.
633 * kern/list.c: Include `<grub/mm.h>'.
634 (grub_named_list_find): Replace `0' with `NULL'.
635 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
636 (fs_module_list): Change type to `grub_named_list_t'. Update all
638 * normal/dyncmd.c (read_command_list): Add space between function
639 call and parenthesis.
640 * normal/handler.c (read_handler_list): Likewise.
642 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
644 * normal/auth.c (punishment_delay): Moved from here ...
645 (grub_auth_strcmp): ... to here (inside function).
647 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
649 * include/grub/list.h (struct grub_named_list): Remove `const'
650 qualifier from `name'.
651 (struct grub_prio_list): Likewise.
653 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
655 * normal/auth.c: Include `<grub/time.h>'.
656 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
658 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
660 * normal/auth.c (punishment_delay): New variable.
661 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
662 (grub_auth_check_authentication): Punish failed login attempts with
663 an incremental (2^N) delay.
665 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
667 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
670 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
672 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
674 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
676 * util/i386/coreboot/grub-mkrescue.in: New file.
677 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
680 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
681 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
682 * configure.ac: Add header and function checks to satisfy grub-mkisofs
684 * util/mkisofs/defaults.h: New file.
685 * util/mkisofs/eltorito.c: Likewise.
686 * util/mkisofs/exclude.h: Likewise.
687 * util/mkisofs/fnmatch.c: Likewise.
688 * util/mkisofs/getopt.c: Likewise.
689 * util/mkisofs/getopt1.c: Likewise.
690 * util/mkisofs/hash.c: Likewise.
691 * util/mkisofs/include/fctldefs.h: Likewise.
692 * util/mkisofs/include/mconfig.h: Likewise.
693 * util/mkisofs/include/prototyp.h: Likewise.
694 * util/mkisofs/include/statdefs.h: Likewise.
695 * util/mkisofs/iso9660.h: Likewise.
696 * util/mkisofs/joliet.c: Likewise.
697 * util/mkisofs/match.c: Likewise.
698 * util/mkisofs/match.h: Likewise.
699 * util/mkisofs/mkisofs.c: Likewise.
700 * util/mkisofs/mkisofs.h: Likewise.
701 * util/mkisofs/multi.c: Likewise.
702 * util/mkisofs/name.c: Likewise.
703 * util/mkisofs/rock.c: Likewise.
704 * util/mkisofs/tree.c: Likewise.
705 * util/mkisofs/write.c: Likewise.
707 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
709 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
712 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
714 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
715 `grub-mkimage' (and use $0 when possible).
717 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
719 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
720 error message for excessively large memory map.
722 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
724 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
727 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
729 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
730 message for coreboot users.
732 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
734 Fix build with GNU gold.
736 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
737 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
738 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
740 * aclocal.m4: Likewise.
742 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
744 * configure.ac (AC_PREREQ): Bump to 2.59d.
745 * INSTALL: Make it more clear when Autoconf and Ruby are
746 needed and when to run `./autogen.sh'.
748 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
750 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
753 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
755 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
757 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
759 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
760 giving it to GNU Mach.
762 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
764 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
765 GNU partition number to get internal GRUB partition number.
767 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
769 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
770 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
772 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
774 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
775 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
778 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
780 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
782 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
786 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
787 `-isystem=$(srcdir)/include'.
789 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
791 * util/i386/pc/grub-install.in: Remove hint that device.map should be
792 checked (grub-install doesn't currently rely on it).
794 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
798 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
799 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
800 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
801 * conf/i386-ieee1275.rmk: Likewise.
802 * conf/i386-pc.rmk: Likewise.
803 * conf/powerpc-ieee1275.rmk: Likewise.
804 * conf/sparc64-ieee1275.rmk: Likewise.
805 * conf/x86_64-efi.rmk: Likewise.
807 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
809 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
811 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
813 * include/grub/misc.h: Stop checking for APPLE_CC.
815 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
817 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
818 doesn't cause an infinite call loop.
820 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
822 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
825 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
827 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
829 * Makefile.in: Likewise.
831 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
833 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
835 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
837 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
839 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
841 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
843 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
845 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
847 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
849 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
851 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
852 in $(MAKEINFO) invocation. This makes it clear in output that
853 errors are being ignored.
855 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
857 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
859 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
860 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
861 * conf/i386-ieee1275.rmk: Likewise.
862 * conf/i386-pc.rmk: Likewise.
863 * conf/powerpc-ieee1275.rmk: Likewise.
864 * conf/sparc64-ieee1275.rmk: Likewise.
865 * conf/x86_64-efi.rmk: Likewise.
867 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
869 * util/grub-editenv.c (main): If only a command is given, use
870 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
871 (usage): FILENAME is now optional and has a default.
873 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
875 Improve grub-mkconfig performance when there are several menu
876 entries on a single filesystem.
878 * util/grub.d/10_linux.in (linux_entry): Cache the output of
879 prepare_grub_to_access_device.
880 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
881 * util/grub.d/30_os-prober.in: Likewise.
883 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
885 * util/grub.d/10_freebsd.in: Remove.
886 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
887 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
889 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
891 * docs/grub.cfg: Fix example usage of *BSD loaders.
893 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
895 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
896 grub_util_error() call.
898 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
900 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
901 `reserved_first_sector' member.
902 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
903 `reserved_first_sector' to 1.
904 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
905 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
906 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
907 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
908 filesystems which begin at first sector.
909 (options): New option --skip-fs-probe.
910 (main): Handle --skip-fs-probe and pass it to setup().
912 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
914 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
915 (memset): Fix function prototype.
917 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
918 2009-10-25 Vasily Averin <vvs@parallels.com>
920 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
921 `dirent.direntlen == 0'.
923 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
925 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
927 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
929 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
931 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
932 `__trampoline_setup' and `__ucmpdi2'.
933 * include/grub/powerpc/libgcc.h: Only export symbols for functions
934 that libgcc provides.
936 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
938 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
939 * include/grub/sparc64/libgcc.h (memset): Likewise.
940 * include/grub/misc.h (memset, memcmp): New function prototypes.
942 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
944 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
946 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
948 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
950 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
951 * docs/grub.cfg: Compensate for recent change in multiboot
952 loader (since 2009-08-14 it won't pass filename to payload).
953 * util/grub.d/10_hurd.in: Likewise.
955 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
957 * config.guess: Update to latest version from config git
959 * config.sub: Likewise.
961 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
963 Fix build on sparc64.
965 * configure.ac: Perform checks for libgcc symbols before
966 adding `-nostdlib' to LDFLAGS.
968 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
970 Let user specify OpenBSD root device.
972 * loader/i386/bsd.c (openbsd_root): New variable.
973 (openbsd_opts): New option 'root'.
974 (OPENBSD_ROOT_ARG): New macro.
975 (grub_openbsd_boot): Use 'openbsd_root'.
976 (grub_cmd_openbsd): Fill 'openbsd_root'.
978 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
980 * NEWS: Misc adjustments.
982 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
984 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
986 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
988 * configure.ac: Bump version to 1.97.
990 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
992 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
993 -mno-3dnow on x86 architectures. Some toolchains enable these
994 features by default, but they rely on registers that aren't enabled
995 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
997 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
999 Make entry text a bit more readable.
1001 * util/grub.d/10_linux.in: Add `with' before `Linux'.
1003 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1005 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
1007 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1009 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
1012 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1014 * configure.ac: Add missing dollar.
1016 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1018 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
1020 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
1021 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
1023 * include/grub/sparc64/libgcc.h: Likewise. Use
1024 preprocessor conditionals.
1026 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
1028 * conf/common.rmk (grub-dumpbios): Remove rule.
1029 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
1030 * util/grub-dumpbios.in: Remove file.
1032 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
1034 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
1035 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
1037 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
1038 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
1041 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
1042 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
1043 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
1044 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
1047 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
1049 * term/tparm.c: Switch to GPLv3.
1051 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
1053 * include/grub/i386/cpuid.h: Add header protection.
1055 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
1057 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
1059 * include/grub/i386/cpuid.h: New file.
1060 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
1061 (has_longmode): Rename to ...
1062 (grub_cpuid_has_longmode): ... this. Update all users. Remove
1064 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
1065 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
1066 on a CPU that doesn't implement AMD64 instruction set.
1068 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
1070 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
1071 that version.texi is rebuilt on version number changes.
1073 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
1075 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
1078 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
1080 * util/i386/pc/grub-install.in: Source
1081 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
1082 that the --grub-probe option will work.
1083 * util/sparc64/ieee1275/grub-install.in: Likewise.
1085 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
1087 * configure.ac: Bump version to 1.97~beta4.
1089 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
1091 Resync grub-mkdevicemap in x86_64-efi.
1093 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
1094 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
1097 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
1099 * util/grub-editenv.c (create_envblk_file): Write new block with a
1100 .new suffix and then rename it into place, to ensure atomic
1103 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
1105 Do not automatically install headers.
1107 * Makefile.in (include_DATA): Remove. Update all users.
1109 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
1111 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
1112 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
1114 * util/osdetect.lua: Remove.
1115 * script/lua/lauxlib.c: Likewise.
1116 * script/lua/ldebug.c: Likewise.
1117 * script/lua/grub_main.c: Likewise.
1118 * script/lua/lauxlib.h: Likewise.
1119 * script/lua/ldebug.h: Likewise.
1120 * script/lua/ltablib.c: Likewise.
1121 * script/lua/liolib.c: Likewise.
1122 * script/lua/lstrlib.c: Likewise.
1123 * script/lua/lualib.h: Likewise.
1124 * script/lua/ldo.c: Likewise.
1125 * script/lua/ldump.c: Likewise.
1126 * script/lua/ldo.h: Likewise.
1127 * script/lua/loslib.c: Likewise.
1128 * script/lua/lundump.c: Likewise.
1129 * script/lua/grub_lib.c: Likewise.
1130 * script/lua/ldblib.c: Likewise.
1131 * script/lua/lundump.h: Likewise.
1132 * script/lua/lmem.c: Likewise.
1133 * script/lua/grub_lib.h: Likewise.
1134 * script/lua/lmathlib.c: Likewise.
1135 * script/lua/lstate.c: Likewise.
1136 * script/lua/ltm.c: Likewise.
1137 * script/lua/lvm.c: Likewise.
1138 * script/lua/lmem.h: Likewise.
1139 * script/lua/lstate.h: Likewise.
1140 * script/lua/ltm.h: Likewise.
1141 * script/lua/ltable.c: Likewise.
1142 * script/lua/lvm.h: Likewise.
1143 * script/lua/llex.c: Likewise.
1144 * script/lua/lgc.c: Likewise.
1145 * script/lua/grub_lua.h: Likewise.
1146 * script/lua/loadlib.c: Likewise.
1147 * script/lua/lfunc.c: Likewise.
1148 * script/lua/lopcodes.c: Likewise.
1149 * script/lua/lparser.c: Likewise.
1150 * script/lua/ltable.h: Likewise.
1151 * script/lua/llex.h: Likewise.
1152 * script/lua/lgc.h: Likewise.
1153 * script/lua/lfunc.h: Likewise.
1154 * script/lua/lbaselib.c: Likewise.
1155 * script/lua/lopcodes.h: Likewise.
1156 * script/lua/lparser.h: Likewise.
1157 * script/lua/lzio.c: Likewise.
1158 * script/lua/linit.c: Likewise.
1159 * script/lua/lobject.c: Likewise.
1160 * script/lua/llimits.h: Likewise.
1161 * script/lua/lstring.c: Likewise.
1162 * script/lua/lzio.h: Likewise.
1163 * script/lua/lapi.c: Likewise.
1164 * script/lua/lcode.c: Likewise.
1165 * script/lua/lua.h: Likewise.
1166 * script/lua/lobject.h: Likewise.
1167 * script/lua/lstring.h: Likewise.
1168 * script/lua/lapi.h: Likewise.
1169 * script/lua/lcode.h: Likewise.
1170 * script/lua/luaconf.h: Likewise.
1172 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
1174 * docs/grub.texi (Command-line and menu entry commands): Document
1175 date and echo commands.
1177 2009-09-24 Pavel Roskin <proski@gnu.org>
1179 * include/grub/kernel.h (struct grub_module_header): Remove
1180 `grub_module_header_types'. Make `type' unsigned. Make `size'
1181 32-bit on all platforms.
1182 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
1183 8-bit field. Use grub_host_to_target32() for `size'.
1184 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
1185 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
1186 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
1188 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
1190 Fix "lost keypress" bug in at_keyboard.
1192 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
1193 Checks for readyness of input buffer (without flushing it).
1194 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
1195 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
1197 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
1199 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
1200 size check within GRUB_MACHINE_PCBIOS section.
1202 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
1204 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
1206 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
1207 KEYBOARD_ISREADY check.
1208 (grub_at_keyboard_checkkey): Rename to ...
1209 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
1210 Remove gratuitous cast.
1212 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
1214 * configure.ac: Call AC_PROG_MKDIR_P.
1215 * Makefile.in (docs/stamp-vti): Create docs directory. Create
1216 version.texi in $(builddir) rather than $(srcdir).
1217 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
1218 to makeinfo's @include search path.
1220 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
1222 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
1224 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
1226 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
1229 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
1231 Build info documentation. Some code borrowed from Automake.
1233 * configure.ac: Check for makeinfo.
1234 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
1235 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
1237 (MOSTLYCLEANFILES): Add vti.tmp.
1238 (docs/version.texi, docs/stamp-vti): Update automatically.
1239 (docs/grub.info): Build info documentation. Use --force and ignore
1241 (all-local): Add $(INFOS).
1242 (install-local): Install info files.
1243 (uninstall): Uninstall info files.
1244 * docs/version.texi: Remove from revision control. This file is
1245 automatically generated on build now.
1246 * gendistlist.sh: Add `*.info'.
1248 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
1250 * kern/term.c: Fix indentation.
1252 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
1254 * util/hostdisk.c: Fix a comment.
1256 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
1258 Fix regression introduced in r2539.
1260 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
1263 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
1265 * util/grub.d/30_os-prober.in: Don't throw away stderr from
1266 os-prober. Under normal operation, it does not print anything to
1267 stderr; if it does, we need to debug it, and throwing away stderr
1268 makes that excessively difficult.
1270 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
1272 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
1274 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
1276 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
1277 AC_LANG_PROGRAM from autoconf.
1278 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
1279 prototypes (fixes warning).
1281 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
1282 `--disable-werror' was used.
1284 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
1286 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
1287 uninitialized `lastaddr'.
1289 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1291 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
1293 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
1295 * commands/test.c (get_fileinfo): Return immediately if
1296 grub_fs_probe fails.
1298 2009-09-14 José Martínez <xosemp@gmail.com>
1300 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
1302 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
1304 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
1307 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
1309 * configure.ac: Remove --enable-grub-pe2elf. Only build
1310 grub-pe2elf when needed by the build system itself.
1311 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
1313 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
1315 * configure.ac: Bump version to 1.97~beta3.
1316 * docs/version.texi: Likewise.
1318 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
1320 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
1321 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
1323 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
1324 (grub_linux_setup_video): ... to here (with some adjustments).
1326 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
1328 Fix memory corruption issue (spotted by Colin Watson).
1330 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
1331 causing returned size to be stored in an incorrect memory location.
1332 Fix use of uninitialized value when storing the returned size.
1334 2009-09-12 Yves Blusseau <blusseau@zetam.org>
1336 Change clean rules to properly remove files
1338 * genmk.rb: add new clean rules
1339 * Makefile.in (clean): add the new targets
1340 (mostlyclean): likewise
1342 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
1344 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
1346 * fs/ntfs.c (init_file): Understand 64-bit sizes for
1349 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
1351 * configure.ac: Don't look for help2man when cross-compiling. Fixes
1354 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
1356 * util/grub-mkconfig.in: Make the created config mode 400 and
1357 print a warning if it fails.
1359 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
1361 * util/grub.d/40_custom.in: Ask user to type custom entries below
1362 comment, rather than below 'exec tail' line.
1364 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
1366 * util/grub.d/40_custom.in: Make sure that the explanatory text is
1367 visible in grub.cfg.
1369 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
1371 * util/grub.d/40_custom.in: Make it a little clearer how to use this
1374 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
1376 * docs/grub.cfg: Add an example menu entry for memtest86+.
1378 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
1380 * config.guess: Update to latest version from config git.
1381 * config.sub: Likewise.
1383 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
1385 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
1386 unknown-command case. Fixes bug #27320.
1388 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
1390 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
1391 `help' if the command exists.
1393 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
1395 * INSTALL: Require GCC 4.1.3 or later.
1397 2009-09-06 Yves Blusseau <blusseau@zetam.org>
1399 * Makefile.in (RMKFILES): add i386-qemu.rmk
1400 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
1401 $(srcdir)/stamp-h.in
1403 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
1405 * util/grub-probe.c (probe): Comment out buggy codepath, which
1406 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
1407 should be re-enabled after 1.97.
1409 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
1411 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
1414 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
1416 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
1417 unnecessary calls to grub_error.
1419 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
1421 * NEWS: Mention `keystatus' and Unicode fonts.
1423 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
1425 * configure.ac: Bump version to 1.97~beta2.
1426 * docs/version.texi: Likewise.
1428 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
1430 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
1431 containing unwind information in some cases where it previously did
1432 not. Use -fno-dwarf2-cfi-asm if available to restore the old
1433 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
1436 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
1438 Embedding loadenv module into grub-emu
1440 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
1442 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
1443 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
1444 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
1445 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
1446 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
1447 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
1449 2009-09-03 Magnus Granberg <zorry@ume.nu>
1451 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
1452 include -fPIE in the default specs.
1453 * configure.ac: Check if pie_possible is yes and add -fno-PIE
1456 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
1458 * INSTALL: Note that GNU Bison 2.3 or later is required.
1460 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
1462 * kern/i386/pc/startup.S: Fix typo.
1464 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1466 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
1469 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
1471 * docs/grub.texi (Naming convention): Describe one-based partition
1473 (Device syntax): Likewise.
1474 (File name syntax): Likewise.
1475 (Block list syntax): Likewise.
1476 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
1478 (File name syntax): Likewise.
1479 (Command-line and menu entry commands): Document acpi, blocklist,
1480 crc, export, insmod, keystatus, ls, set, and unset commands.
1482 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
1484 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
1485 to avoid implying that only one of --shift, --ctrl, or --alt may be
1488 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
1490 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
1491 rather than comparing against S_IFREG, which will almost never work.
1493 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
1495 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
1496 (write_blocklists): Likewise.
1498 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
1500 * script/lua/grub_lua.h (fputs): Supply a format string as the first
1501 argument to grub_printf.
1503 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
1505 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
1508 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
1510 * kern/file.c (grub_file_read): Spelling fix
1512 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
1514 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
1515 loading of headers in some cases.
1517 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
1519 * configure.ac: Bump version to 1.97~beta1.
1520 * docs/version.texi: Likewise.
1522 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
1524 * include/grub/i386/xnu.h: Add license header.
1525 include grub/err.h explicitly.
1527 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
1529 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
1530 to `ufs' in the vfs.root.mountfrom kernel parameter.
1532 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
1534 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
1536 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
1537 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
1539 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
1542 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1544 * kern/file.c (grub_file_read): Check offset.
1545 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
1546 * fs/jfs.c (grub_jfs_read_file): Likewise.
1547 * fs/ntfs.c (grub_ntfs_read): Likewise.
1548 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
1549 * fs/minix.c (grub_minix_read_file): Correct offset check.
1550 * fs/ufs.c (grub_ufs_read_file): Likewise.
1552 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
1554 * term/i386/pc/console.c (bios_data_area): Cast
1555 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
1557 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1559 1-bit optimised blitters.
1561 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
1563 (grub_video_fbblit_replace_24bit_1bit): Likewise.
1564 (grub_video_fbblit_replace_16bit_1bit): Likewise.
1565 (grub_video_fbblit_replace_8bit_1bit): Likewise.
1566 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
1567 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
1568 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
1569 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
1571 (grub_video_fbblit_replace_24bit_1bit): Likewise.
1572 (grub_video_fbblit_replace_16bit_1bit): Likewise.
1573 (grub_video_fbblit_replace_8bit_1bit): Likewise.
1574 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
1575 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
1576 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
1577 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
1579 * video/video.c (grub_video_get_blit_format): Return
1580 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
1582 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
1584 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
1585 the first argument to grub_printf.
1587 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
1588 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
1590 Add `getkeystatus' terminal method. Add a new `keystatus' command
1593 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
1594 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
1595 modifier key bitmasks.
1596 (struct grub_term_input): Add `getkeystatus' member.
1597 (grub_getkeystatus): Add prototype.
1598 * kern/term.c (grub_getkeystatus): New function.
1600 * include/grub/i386/pc/memory.h
1601 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
1602 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
1604 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
1605 (grub_console_term_input): Set `getkeystatus' member.
1606 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
1608 (grub_usb_keyboard_getreport): Likewise.
1609 (grub_usb_keyboard_checkkey): Likewise.
1610 (grub_usb_keyboard_getkeystatus): New function.
1611 (grub_usb_keyboard_term): Set `getkeystatus' member.
1613 * commands/keystatus.c: New file.
1614 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
1615 (keystatus_mod_SOURCES): New variable.
1616 (keystatus_mod_CFLAGS): Likewise.
1617 (keystatus_mod_LDFLAGS): Likewise.
1618 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
1619 commands/keystatus.c.
1620 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1621 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1622 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1623 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1624 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1625 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
1627 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1629 Split befs.mod and afs.mod into *_be.mod and *.mod
1631 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
1632 (grub_fstest_SOURCES): Likewise.
1633 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
1634 (afs_be_mod_SOURCES): New variable.
1635 (afs_be_mod_CFLAGS): Likewise.
1636 (afs_be_mod_LDFLAGS): Likewise.
1637 (befs_be_mod_SOURCES): Likewise.
1638 (befs_be_mod_CFLAGS): Likewise.
1639 (befs_be_mod_LDFLAGS): Likewise.
1640 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
1641 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1642 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1643 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
1644 (grub_emu_SOURCES): Likewise.
1645 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1646 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1647 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
1648 * fs/afs_be.c: New file.
1649 * fs/befs_be.c: New file.
1650 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
1651 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
1652 (U16): Replaced with ...
1653 (grub_afs_to_cpu16): ...this. All users updated.
1654 (U32): Replaced with ...
1655 (grub_afs_to_cpu32): ...this. All users updated.
1656 (U64): Replaced with ...
1657 (grub_afs_to_cpu64): ...this. All users updated.
1658 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
1659 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
1660 (grub_afs_validate_sblock): Check only one endianness.
1661 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
1662 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
1663 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
1664 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
1665 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
1666 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
1667 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
1668 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
1670 2009-08-26 Bean <bean123ch@gmail.com>
1672 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
1674 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
1675 (grub_xfs_inode_block): Change return type to grub_uint64_t.
1676 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
1678 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1680 NetBSD memory map support.
1682 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
1683 (grub_netbsd_btinfo_mmap_header): New structure.
1684 (grub_netbsd_btinfo_mmap_entry): Likewise.
1685 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
1687 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1689 Enable bsd.mod on coreboot.
1691 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
1692 (bsd_mod_SOURCES): New variable.
1693 (bsd_mod_CFLAGS): Likewise.
1694 (bsd_mod_LDFLAGS): Likewise.
1695 (bsd_mod_ASFLAGS): Likewise.
1696 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
1697 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
1699 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1701 Cleanup NetBSD root support.
1703 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
1704 grub_bsd_get_device.
1707 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
1709 * util/grub.d/00_header.in: Move check for the video backend of
1710 gfxterm from here ...
1711 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
1712 a suitable video backend.
1714 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1716 Fix breakage in grub-setup.
1718 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
1719 "msdos_partition_map".
1721 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1723 Fix breakage in normal/auth.c.
1725 * normal/auth.c (grub_iswordseparator): New function.
1727 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1729 Authentication support.
1731 * commands/password.c: New file.
1732 * conf/common.rmk (pkglib_MODULES): Add password.mod.
1733 (password_mod_SOURCES): New variable.
1734 (password_mod_CFLAGS): Likewise.
1735 (password_mod_LDFLAGS): Likewise.
1736 (normal_mod_SOURCES): Add normal/auth.c.
1737 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
1739 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1740 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1741 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1742 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1743 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1744 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
1745 * include/grub/auth.h: New file.
1746 * include/grub/err.h (grub_err_t): New enum value
1747 GRUB_ERR_ACCESS_DENIED.
1748 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
1750 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
1751 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
1753 * normal/auth.c: New file.
1754 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
1755 (grub_cmdline_run): Don't allow to go to command line without
1757 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
1758 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
1759 menuentry without superuser rights.
1760 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
1761 user isn't a superuser.
1763 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1765 Save space by inlining misc.c functions.
1767 * kern/misc.c (grub_iswordseparator): Made static.
1768 * kern/misc.c (grub_strcat): Moved from here ...
1769 * include/grub/misc.h (grub_strcat): ... here. Inlined.
1770 * kern/misc.c (grub_strncat): Moved from here ...
1771 * include/grub/misc.h (grub_strncat): ... here. Inlined.
1772 * kern/misc.c (grub_strcasecmp): Moved from here ...
1773 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
1774 * kern/misc.c (grub_strncasecmp): Moved from here ...
1775 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
1776 * kern/misc.c (grub_isalpha): Moved from here ...
1777 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
1778 * kern/misc.c (grub_isdigit): Moved from here ...
1779 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
1780 * kern/misc.c (grub_isgraph): Moved from here ...
1781 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
1782 * kern/misc.c (grub_tolower): Moved from here ...
1783 * include/grub/misc.h (grub_tolower): ... here. Inlined.
1785 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1787 * script/sh/function.c (grub_script_function_find): Cut error message
1788 not to flood terminal.
1789 * script/sh/lexer.c (grub_script_yylex): Remove command line length
1791 * script/sh/script.c (grub_script_arg_add): Duplicate string.
1793 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
1795 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
1796 `report' grub_uint8_t *.
1797 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
1798 Use a 50-millisecond timeout rather than just repeating
1799 grub_usb_keyboard_getreport 50 times.
1800 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
1802 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1804 Rename *_partition_map to part_*
1806 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
1807 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
1808 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
1809 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
1811 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
1813 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
1814 * util/grub-probe.c (probe_partmap): Don't transform partition name
1817 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1819 Fix OpenBSD and NetBSD support.
1821 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
1822 memory address conflict.
1823 (OPENBSD_MMAP_ACPI): New definition.
1824 (OPENBSD_MMAP_NVS): Likewise.
1825 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
1826 and OPENBSD_MMAP_NVS.
1827 Add memory map terminator
1828 Explicit cast when calling grub_unix_real_boot.
1829 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
1831 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1833 Let user specify NetBSD root device.
1835 * loader/i386/bsd.c (netbsd_root): New variable.
1836 (netbsd_opts): New option 'root'.
1837 (NETBSD_ROOT_ARG): New macro.
1838 (grub_netbsd_boot): Use 'netbsd_root'.
1839 (grub_bsd_unload): Free 'netbsd_root'.
1840 (grub_cmd_netbsd): Fill 'netbsd_root'.
1842 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1844 Support for 64-bit NetBSD.
1846 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
1847 point when booting non-FreeBSD.
1849 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1851 Support --no-smp and --no-acpi for NetBSD.
1853 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
1854 (NETBSD_AB_NOACPI): Likewise.
1855 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
1856 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
1858 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1860 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
1862 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
1863 errors. Call grub_error when needed.
1865 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1867 * commands/search.c (search_fs): Try searching without autoload first.
1868 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
1869 filesystem module explicitly for faster booting.
1871 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1873 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
1875 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1877 * util/grub.d/30_os-prober.in: Disable os-prober if
1878 `GRUB_DISABLE_OS_PROBER' was set to true.
1880 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
1882 * partmap/pc.c: Rename to ...
1883 * partmap/msdos.c: ... this. Update all users.
1884 (grub_pc_partition_map): Rename to ...
1885 (grub_msdos_partition_map): ... this. Update all users.
1887 * parttool/pcpart.c: Rename to ...
1888 * parttool/msdospart.c: ... this. Update all users.
1890 * include/grub/pc_partition.h: Rename to ...
1891 * include/grub/msdos_partition.h: ... this. Update all users.
1892 (grub_pc_partition_bsd_entry): Rename to ...
1893 (grub_msdos_partition_bsd_entry): ... this. Update all users.
1894 (grub_pc_partition_disk_label): Rename to ...
1895 (grub_msdos_partition_disk_label): ... this. Update all users.
1896 (grub_pc_partition_entry): Rename to ...
1897 (grub_msdos_partition_entry): ... this. Update all users.
1898 (grub_pc_partition_mbr): Rename to ...
1899 (grub_msdos_partition_mbr): ... this. Update all users.
1900 (grub_pc_partition): Rename to ...
1901 (grub_msdos_partition): ... this. Update all users.
1902 (grub_pc_partition_is_empty): Rename to ...
1903 (grub_msdos_partition_is_empty): ... this. Update all users.
1904 (grub_pc_partition_is_extended): Rename to ...
1905 (grub_msdos_partition_is_extended): ... this. Update all users.
1906 (grub_pc_partition_is_bsd): Rename to ...
1907 (grub_msdos_partition_is_bsd): ... this. Update all users.
1909 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
1910 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
1911 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
1912 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
1913 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
1914 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
1915 (gpt_mod_LDFLAGS): Rename to ...
1916 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
1917 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
1918 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
1919 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
1920 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
1921 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
1922 (part_gpt_mod_LDFLAGS): ... this.
1923 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
1924 `pcpart.mod' to `msdospart.mod'.
1925 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
1927 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
1928 (msdospart_mod_LDFLAGS): ... this.
1930 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1932 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
1933 (openbsd_opts): Likewise.
1934 (netbsd_opts): Likewise.
1935 (freebsd_flags): Added 0 terminator.
1936 (openbsd_flags): Likewise.
1937 (netbsd_flags): Likewise.
1938 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
1939 (grub_cmd_freebsd): Transformed into extended command.
1940 (grub_cmd_openbsd): Likewise.
1941 (grub_cmd_netbsd): Likewise.
1942 (cmd_freebsd): Changed type to grub_extcmd_t.
1943 (cmd_openbsd): Likewise.
1944 (cmd_netbsd): Likewise.
1945 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
1946 grub_cmd_openbsd as extended commands.
1947 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
1948 cmd_netbsd and cmd_openbsd
1950 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1952 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
1954 2009-08-21 Pavel Roskin <proski@gnu.org>
1956 * Makefile.in (install-local): When checking if a file is in the
1957 build directory, use "test -e" to detect symlinks.
1959 * Makefile.in (install-local): Remove all files in
1960 $(DESTDIR)$(pkglibdir) before installing new files there.
1962 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1964 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
1967 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1969 * util/grub-mkconfig.in: Don't use gfxterm by default if not
1970 explicitly specified by the user.
1972 2009-08-18 Pavel Roskin <proski@gnu.org>
1974 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
1975 grub_uint8_t pointer for data.
1976 * include/grub/fbutil.h (struct grub_video_fbblit_info):
1978 * video/fb/fbutil.c: Remove unnecessary casts.
1980 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1984 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
1985 (grub_vbe_set_video_mode): Save active mode info
1986 only after setting the mode.
1987 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
1990 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1992 Rename variables for clarity.
1994 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
1995 (active_vbe_mode_info): ... this. All users updated.
1996 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
1998 (initial_mode): Rename to ...
1999 (initial_vbe_mode): ... this. All users updated.
2000 (mode_in_use): Rename to ..
2001 (vbe_mode_in_use): ... this. All users updated.
2002 (mode_list): Rename to ..
2003 (vbe_mode_list): ... this. All users updated.
2004 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
2005 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
2006 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
2007 'mode_list_size' to 'vbe_mode_list_size'.
2008 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
2009 'best_mode_info' to 'best_vbe_mode_info' and
2010 'best_mode' to 'best_vbe_mode'
2012 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
2014 Remove duplicate grub_video_fb_get_video_ptr.
2016 * include/grub/fbutil.h (get_data_ptr): Rename to ...
2017 (grub_video_fb_get_video_ptr): ... this.
2018 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
2019 * video/fb/fbutil.c: Add comment about addressing.
2020 (get_data_ptr): Rename to ...
2021 (grub_video_fb_get_video_ptr): ... this. All users updated.
2022 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
2024 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
2026 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
2027 grub_dprintf() that was just added.
2029 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
2031 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
2032 (DEFAULT_VIDEO_MODE): Remove macros.
2033 (grub_linux_boot): Remove assumption that Linux has FB support,
2034 and use "text" as default video mode.
2036 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
2038 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
2040 * fs/fat.c (grub_fat_read_data): Likewise.
2042 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2044 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
2046 (grub_module): Likewise.
2048 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2050 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
2051 mbi->cmdline but free playground.
2053 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2055 Handle group offset on UFS1.
2057 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
2058 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
2060 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2062 Split ufs.mod into ufs1.mod and ufs2.mod.
2064 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
2065 (grub_fstest_SOURCES): Likewise.
2066 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
2067 (ufs_mod_SOURCES): Remove.
2068 (ufs_mod_CFLAGS): Likewise.
2069 (ufs_mod_LDFLAGS): Likewise.
2070 (ufs1_mod_SOURCES): New variable.
2071 (ufs1_mod_CFLAGS): Likewise.
2072 (ufs1_mod_LDFLAGS): Likewise.
2073 (ufs2_mod_SOURCES): New variable.
2074 (ufs2_mod_CFLAGS): Likewise.
2075 (ufs2_mod_LDFLAGS): Likewise.
2076 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
2077 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
2079 (grub_emu_SOURCES): Likewise.
2080 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2081 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
2082 (grub_setup_SOURCES): Likewise.
2083 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2084 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
2085 (grub_setup_SOURCES): Likewise.
2086 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
2088 * fs/ufs2.c: New file.
2089 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
2091 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2095 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
2096 subsystem at the end.
2097 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
2098 (video_fb_mod_SOURCES): New variable.
2099 (video_fb_mod_CFLAGS): Likewise.
2100 (video_fb_mod_LDFLAGS): Likewise.
2101 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
2102 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
2103 * video/i386/pc/vbeblit.c: Moved from here ...
2104 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
2105 * video/i386/pc/vbefill.c: Moved from here ...
2106 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
2107 * video/i386/pc/vbeutil.c: Moved from here ...
2108 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
2109 * include/grub/i386/pc/vbeblit.h: Moved from here ...
2110 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
2111 * include/grub/i386/pc/vbefill.h: Moved from here ...
2112 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
2113 * include/grub/i386/pc/vbeutil.h: Moved from here ...
2114 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
2115 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
2116 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
2117 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
2118 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
2119 (grub_video_adapter): Added 'get_info_and_fini'.
2120 (grub_video_get_info_and_fini): New prototype.
2121 (grub_video_set_mode): make modestring const char *.
2122 * loader/i386/linux.c (grub_linux_setup_video): Use
2123 grub_video_get_info_and_fini.
2124 (grub_linux_boot): Move modesetting just before booting.
2125 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
2126 grub_video_get_info_and_fini.
2127 * video/i386/pc/vbe.c: Moved framebuffer part ...
2128 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
2129 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
2130 grub_video_fbstd_colors and grub_video_fb_set_palette.
2131 (grub_video_vbe_init): Clear 'framebuffer' variable and use
2133 (grub_video_vbe_fini): Use grub_video_fb_fini.
2134 (grub_video_vbe_setup): Use framebuffer.render_target instead of
2135 render_target and use grub_video_fb_set_active_render_target and
2136 grub_video_fb_set_palette.
2137 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
2138 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
2139 (grub_video_vbe_adapter): Use framebuffer.
2140 * video/video.c (grub_video_get_info_and_fini): New function.
2141 (grub_video_set_mode): Make modestring const char *.
2142 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
2143 values are already initialised.
2145 2009-08-14 Pavel Roskin <proski@gnu.org>
2147 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
2149 * boot/i386/pc/diskboot.S: Likewise.
2150 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
2151 sectors allow compilation on MacOSX.
2152 * conf/i386-pc.rmk: Enable unconditional compilation of
2155 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
2157 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
2158 * util/grub.d/00_header.in: Enter interruptible sleep if
2159 GRUB_HIDDEN_TIMEOUT is set.
2161 2009-08-13 Yves Blusseau <blusseau@zetam.org>
2163 * include/grub/symbol.h: Add the LOCAL macro.
2164 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
2167 2009-08-13 Pavel Roskin <proski@gnu.org>
2169 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
2170 any modern compilers we support.
2172 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
2173 Use local labels starting with "L_" so that Apple assembler
2174 knows they are local.
2176 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
2178 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
2179 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
2180 (bsd_kernel_types): ... this enum.
2182 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
2183 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
2184 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
2186 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
2187 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
2188 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
2191 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
2193 * util/grub-dumpdevtree: Moved from here ...
2194 * util/i386/efi/grub-dumpdevtree: ... to here.
2195 (hexify): New function. Converts a string to its hex version.
2196 Generate hex versions of "efi" and "device-properties" by calling
2197 hexify() on the ASCII strings rather than by hardcoding numbers.
2199 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
2201 * fs/jfs.c: Update copyright year.
2203 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
2205 * util/grub.d/00_header.in: Fix a comment.
2206 * util/grub.d/10_linux.in: Likewise.
2207 * util/grub.d/10_windows.in: Likewise.
2208 * util/grub.d/10_hurd.in: Likewise.
2210 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
2212 * util/grub-mkconfig.in: Allow the user to specify the used font
2215 2009-08-08 Pavel Roskin <proski@gnu.org>
2217 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
2218 available, xfs.mod needs it now.
2220 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
2221 the "g" modifier in sed when the intention is to strip something
2222 once. This fixes comparison of kernels with multiple dashes.
2224 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
2225 on it. Add missing space before closing bracket. Fix
2226 misleading formatting.
2228 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2230 * docs/grub.texi: Major overhaul. Remove all sections that are
2231 specific to GRUB Legacy, or mostly composed of Legacy-specific
2234 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2236 * docs/version.texi: New file. Provides version information for
2239 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2241 * docs/grub.texi: Update CVS information to SVN.
2242 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
2244 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
2246 * util/grub-mkconfig.in: Remove a wrong `fi'.
2248 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
2250 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
2251 (grub_jfs_uuid): New function.
2252 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
2254 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
2256 * util/grub-mkconfig_lib.in (font_path): Move the functionality
2258 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
2259 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
2261 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2263 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
2264 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
2267 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
2268 not just "vmlinu[zx]".
2270 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
2273 * util/grub.d/10_linux.in (find_latest): Moved from here ...
2274 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
2277 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2279 * util/grub.d/10_freebsd.in: Use an absolute device path for
2280 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
2282 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
2284 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
2285 handling of multiple abstraction modules.
2287 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
2289 Fix a bug resulting in black screen when loading Linux using a
2292 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
2295 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
2296 (grub_vbe_bios_getset_dac_palette_width): New function.
2297 (grub_vbe_bios_get_dac_palette_width)
2298 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
2299 grub_vbe_bios_getset_dac_palette_width()).
2301 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
2302 check for return status.
2303 (grub_vbe_get_video_mode_info): When getting information for a packed
2304 mode (<= 8 bpp), obtain DAC palette width using
2305 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
2306 {red,green,blue}_mark_size.
2308 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
2310 * commands/search.c (options): Fix help output to match actual code.
2312 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2314 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
2317 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
2319 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
2322 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
2324 Support Apple partition map with sector size different from 512 bytes.
2326 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
2327 (apple_partition_map_iterate): Respect 'aheader.blocksize'
2328 and 'apart.partmap_size'.
2330 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
2331 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
2335 * commands/i386/cpuid.c (options): New variable.
2336 (grub_cmd_cpuid): Return real error.
2337 (GRUB_MOD_INIT(cpuid)): Declare options.
2339 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
2341 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
2344 2009-07-31 Bean <bean123ch@gmail.com>
2346 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
2348 (grub_fshelp_node): Move inode field to the end.
2349 (grub_xfs_data): Remove inode field.
2350 (grub_xfs_inode_block): Calculate inode size using sblock.
2351 (grub_xfs_inode_offset): Likewise.
2352 (grub_xfs_read_inode): Calculate inode size using sblock.
2353 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
2354 (grub_xfs_iterate_dir): Calculate inode size using sblock.
2355 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
2356 to match inode size.
2357 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
2358 not accessible when data is null.
2359 (grub_xfs_open): Likewise.
2361 2009-07-31 Bean <bean123ch@gmail.com>
2363 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
2364 Don't change pv->disk if it's already set.
2366 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
2367 (grub_raid_register): ... here.
2368 (grub_raid_rescan): Removed.
2370 * include/grub/raid.h (grub_raid_rescan): Removed.
2372 * util/grub-fstest.c: Remove include file <grub/raid.h>.
2373 (fstest): Replace grub_raid_rescan with module fini function followed
2376 * util/grub-probe.c: Add include file <grub/raid.h>.
2377 (probe_raid_level): New function.
2378 (probe): Detect abstraction by walking the disk device, support two
2379 level of abstraction (LVM on RAID) when detecting partition map.
2381 2009-07-31 Pavel Roskin <proski@gnu.org>
2383 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
2384 to grub_zalloc(), it was erroneous.
2385 Reported by Bean <bean123ch@gmail.com>
2387 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
2389 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
2390 embedding zone, not only the first one.
2392 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
2394 * term/gfxterm.c (clear_char): New function.
2395 (grub_virtual_screen_setup): Use clear_char.
2396 (scroll_up): Likewise.
2397 (grub_virtual_screen_cls): Likewise.
2399 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
2401 * util/deviceiter.c (get_acceleraid_disk_name): New static
2403 (grub_util_iterate_devices): Handle Accelraid devices.
2404 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
2406 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
2408 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
2409 separator for the suggested gfxpayload string (';' collides with the
2410 parser and needs escaping).
2412 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
2414 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
2415 Clear direction flag before jumping to OS.
2416 (grub_multiboot2_real_boot): Likewise.
2418 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
2420 * util/i386/pc/grub-install: Fix parsing of --disk-module
2423 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
2425 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
2428 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
2430 * util/grub-mkconfig.in (package_version): New variable.
2431 Use it do display the version.
2433 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
2435 * kern/file.c (grub_file_open): Revert to previous check with
2438 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2440 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
2441 from help line. It's out of sync with code.
2443 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2445 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
2446 entries on failed boot.
2448 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
2450 * kern/file.c (grub_file_open): Fix an error check.
2452 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
2454 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
2455 partition map couldn't be identified.
2457 2009-07-23 Pavel Roskin <proski@gnu.org>
2459 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
2460 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
2461 case of little endian words becomes just an optimization.
2462 Respect const modifier.
2463 (md5_final): Use code that doesn't depend on endianness.
2465 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
2466 to avoid loss of upper bits if align is unsigned and shorter
2469 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
2471 UUID support for UFS
2473 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
2474 (grub_ufs_uuid): New function.
2475 (grub_ufs_fs): add .uuid
2477 2009-07-21 Pavel Roskin <proski@gnu.org>
2479 * kern/dl.c (grub_dl_check_header): Make static.
2481 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
2483 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
2484 add drivemap for Vista. It breaks Windows 7.
2486 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
2488 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
2491 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2495 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
2496 (grub_fstest_SOURCES): Likewise.
2497 (pkglib_MODULES): Add befs.mod.
2498 (befs_mod_SOURCES): New variable.
2499 (befs_mod_CFLAGS): Likewise.
2500 (befs_mod_LDFLAGS): Likewise.
2501 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
2502 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
2503 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2504 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
2505 (grub_setup_SOURCES): Likewise.
2506 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2507 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2508 (grub_setup_SOURCES): Likewise.
2509 * fs/befs.c: New file.
2510 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
2511 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
2512 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
2513 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
2514 (B_KEY_INDEX_ALIGN): New declaration.
2515 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
2516 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
2517 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
2518 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
2519 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
2520 (grub_afs_mount) [MODE_BFS]: Likewise.
2521 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
2522 (grub_afs_fs): Use GRUB_AFS_FSNAME
2523 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
2524 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
2525 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
2526 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
2528 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
2530 * util/getroot.c (find_root_device): Add support for MacOSX.
2531 * util/hostdisk.c: Likewise.
2533 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2535 * font/font.c (find_glyph): Check whether a font is present to avoid
2538 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
2540 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
2542 2009-07-20 Pavel Roskin <proski@gnu.org>
2544 * configure.ac: Trim excessively wordy excuses.
2546 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2548 Add symlink, mtime and label support to AtheFS.
2550 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
2551 (grub_afs_iterate_dir): Handle symlinks.
2552 (grub_afs_open): Use grub_afs_read_symlink.
2553 (grub_afs_dir): Likewise.
2555 (grub_afs_label): New function.
2556 (grub_afs_fs): Add grub_afs_label.
2557 (grub_afs_read_symlink): New function.
2559 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2563 * fs/afs.c: Fix comments style.
2564 (grub_afs_blockrun): Declare as packed.
2565 (grub_afs_datastream): Likewise.
2566 (grub_afs_bnode): Likewise.
2567 (grub_afs_btree): Likewise.
2568 (grub_afs_sblock): Likewise.
2569 Declare `name' as char.
2570 (grub_afs_inode): Declare as packed.
2571 Change void *vnode to grub_uint32_t unused.
2572 (grub_afs_iterate_dir): Check that key_size is positive.
2573 (grub_afs_mount): Don't read superblock twice.
2574 (grub_afs_dir): Don't free node in case of error,
2575 grub_fshelp_find_file already handles this.
2576 (grub_afs_open): Likewise.
2578 2009-07-19 Pavel Roskin <proski@gnu.org>
2580 * Makefile.in: Remove LIBLZO and enable_lzo.
2581 * conf/i386-pc.rmk: Remove lzo support.
2582 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
2583 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
2585 * kern/i386/pc/lzo1x.S: Remove.
2586 * kern/i386/pc/startup.S: Remove lzo support.
2587 * util/i386/pc/grub-mkimage.c: Likewise.
2589 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
2591 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
2592 * fs/xfs.c (grub_xfs_dir): Likewise.
2593 * fs/afs.c (grub_afs_dir): Likewise.
2594 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
2595 (grub_iso9660_open): Likewise.
2596 * fs/jfs.c (grub_jfs_open): Likewise.
2597 * fs/ext2.c (grub_ext2_dir): Likewise.
2598 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
2599 * script/sh/lexer.c (grub_script_yylex): Likewise.
2601 2009-07-16 Pavel Roskin <proski@gnu.org>
2603 * configure.ac: Never add "-c" to CFLAGS.
2605 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
2607 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
2608 grub_cv_cc_efiemu should be used.
2610 * configure.ac: Typo fixes.
2612 * kern/mm.c (grub_zalloc): New function.
2613 (grub_debug_zalloc): Likewise.
2614 * include/grub/mm.h: Declare grub_zalloc() and
2615 grub_debug_zalloc().
2616 * util/misc.c (grub_zalloc): New function.
2617 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
2618 instead of grub_malloc(), remove unneeded initializations.
2619 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
2620 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
2621 * commands/parttool.c (grub_cmd_parttool): Likewise.
2622 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
2623 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
2624 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
2625 * disk/usbms.c (grub_usbms_finddevs): Likewise.
2626 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
2627 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
2628 (grub_cmd_efiemu_pnvram): Likewise.
2629 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
2630 * fs/iso9660.c (grub_iso9660_mount): Likewise.
2631 (grub_iso9660_iterate_dir): Likewise.
2632 * fs/jfs.c (grub_jfs_opendir): Likewise.
2633 * fs/ntfs.c (list_file): Likewise.
2634 (grub_ntfs_mount): Likewise.
2635 * kern/disk.c (grub_disk_open): Likewise.
2636 * kern/dl.c (grub_dl_load_core): Likewise.
2637 * kern/elf.c (grub_elf_file): Likewise.
2638 * kern/env.c (grub_env_context_open): Likewise.
2639 (grub_env_set): Likewise.
2640 (grub_env_set_data_slot): Likewise.
2641 * kern/file.c (grub_file_open): Likewise.
2642 * kern/fs.c (grub_fs_blocklist_open): Likewise.
2643 * loader/i386/multiboot.c (grub_module): Likewise.
2644 * loader/xnu.c (grub_xnu_create_key): Likewise.
2645 (grub_xnu_create_value): Likewise.
2646 * normal/main.c (grub_normal_add_menu_entry): Likewise.
2647 (read_config_file): Likewise.
2648 * normal/menu_entry.c (make_screen): Likewise.
2649 * partmap/sun.c (sun_partition_map_iterate): Likewise.
2650 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
2651 * script/sh/script.c (grub_script_parse): Likewise.
2652 * video/bitmap.c (grub_video_bitmap_create): Likewise.
2653 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
2654 * video/readers/png.c (grub_png_output_byte): Likewise.
2655 (grub_video_reader_png): Likewise.
2657 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2659 Enable all targets that can be built by default
2661 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
2662 grub-mkfont and grub-fstest if they can be built
2664 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2666 Fix hang and segmentation fault in grub-emu-usb
2668 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
2669 * util/usb.c (grub_libusb_devices): likewise
2670 (grub_libusb_init): rename to ...
2671 (GRUB_MOD_INIT (libusb)):...this
2672 (grub_libusb_fini): rename to ..
2673 (GRUB_MOD_FINI (libusb)):...this
2674 * disk/usbms.c (grub_usbms_transfer): fix retry logic
2675 * include/grub/disk.h (grub_raid_init): removed, it's useless
2676 (grub_raid_fini): likewise
2677 (grub_lvm_init): likewise
2678 (grub_lvm_fini): likewise
2679 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
2682 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2686 * Makefile.in (LIBUSB): new macro
2687 * genmk.rb (Utility/print_tail): new method
2688 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
2689 (top level): call util.print_tail at the end.
2691 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2693 Make FreeBSD accept zpool.cache
2695 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
2696 type is /boot/zfs/zpool.cache
2698 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2702 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
2703 correct wrong typedef
2704 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
2706 2009-07-15 Pavel Roskin <proski@gnu.org>
2708 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
2709 * kern/disk.c (struct grub_disk_cache): Likewise.
2711 * commands/probe.c (options): Typo fix.
2713 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
2714 Increase to 0x5a to accommodate FAT32. Adjust other offsets
2716 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
2718 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
2719 the end of "Error" to make the message more readable.
2721 * boot/i386/pc/boot.S (kernel_segment): Remove.
2722 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
2725 * boot/i386/pc/boot.S (boot_version): Remove.
2726 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
2729 * include/grub/i386/pc/boot.h: Sort all offsets.
2730 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
2731 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
2732 * boot/i386/pc/boot.S: Assert location of every offset listed in
2733 include/grub/i386/pc/boot.h.
2735 2009-07-13 Pavel Roskin <proski@gnu.org>
2737 * include/grub/i386/coreboot/machine.h: Rename
2738 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
2739 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
2740 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
2742 * kern/dl.c: Force native word size to suppress warnings when
2745 * kern/device.c (grub_device_iterate): Change struct part_ent to
2746 hold the name, not a pointer to it. Use one grub_malloc() per
2747 partition, not two. Free partition_name if grub_malloc() fails.
2748 Set ents to NULL only before grub_partition_iterate() is called.
2750 2009-07-11 Bean <bean123ch@gmail.com>
2752 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
2755 2009-07-10 Bean <bean123ch@gmail.com>
2756 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
2758 * kern/ieee1275/openfw.c (grub_children_iterate)
2759 (grub_devalias_iterate): Fix size evaluation for property or path
2760 strings, which was broken since r2132.
2762 2009-07-07 Pavel Roskin <proski@gnu.org>
2764 * commands/search.c (search_file): Merge into ...
2765 (search_fs): ... this. Accept search type as argument.
2766 (grub_cmd_search): Pass search type to search_fs().
2768 * include/grub/util/console.h: New file.
2769 * util/console.c: Use it instead of grub/machine/console.h.
2770 * util/grub-emu.c: Likewise.
2772 * lib/arg.c (find_long_option): Remove.
2773 (find_long): Add `len' argument, make `s' const char *.
2774 (grub_arg_parse): Parse long options in place, not in a
2777 2009-07-06 Pavel Roskin <proski@gnu.org>
2779 * commands/search.c (search_fs): Fix potential NULL pointer
2782 * commands/search.c (search_fs): Replace QUID macro with quid_fn
2785 2009-07-06 Daniel Mierswa <impulze@impulze.org>
2787 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
2790 2009-07-05 Pavel Roskin <proski@gnu.org>
2792 * include/grub/i386/linux.h (struct linux_kernel_params):
2793 Restore padding3, it's still needed.
2795 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
2797 * util/osdetect.lua: Likewise.
2799 2009-07-05 Bean <bean123ch@gmail.com>
2801 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
2803 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
2804 (grub_lua_getenv): Likewise.
2805 (grub_lua_setenv): Likewise.
2806 (save_errno): New function.
2807 (push_result): Likewise.
2808 (grub_lua_enum_device): Likewise.
2809 (grub_lua_enum_file): Likewise.
2810 (grub_lua_file_open): Likewise.
2811 (grub_lua_file_close): Likewise.
2812 (grub_lua_file_seek): Likewise.
2813 (grub_lua_file_read): Likewise.
2814 (grub_lua_file_getline): Likewise.
2815 (grub_lua_file_getsize): Likewise.
2816 (grub_lua_file_getpos): Likewise.
2817 (grub_lua_file_eof): Likewise.
2818 (grub_lua_file_exist): Likewise.
2819 (grub_lua_add_menu): Likewise.
2821 * script/lua/grub_lua.h (isupper): New inline function.
2822 (islower): Likewise.
2823 (ispunct): Likewise.
2824 (isxdigit): Likewise.
2825 (strcspn): Change to normal function.
2826 (strpbkr): New function declaration.
2829 * script/lua/grub_main.c (scan_str): New function.
2830 (strcspn): Likewise.
2831 (strpbrk): Likewise.
2834 * script/lua/linit.c (lualibs): Enable the string library.
2836 * util/osdetect.lua: New file.
2838 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
2840 * include/grub/i386/linux.h (struct linux_kernel_params): Add
2841 `capabilities' member.
2843 2009-07-02 Pavel Roskin <proski@gnu.org>
2845 * genparttoollist.sh: Add missing newline at the end.
2847 2009-07-01 Pavel Roskin <proski@gnu.org>
2849 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
2851 * util/hostdisk.c (open_device): Remove `const' from
2852 `sysctl_size', as sysctlbyname() can change it (in this case it
2853 doesn't actually happen).
2855 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
2856 using signed long int constants.
2858 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
2859 constant to avoid a warning on FreeBSD.
2861 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
2864 * Makefile.in: Install include/grub/machine symlink.
2866 * Makefile.in: When installing symlinks, use "cp -fR", which
2867 works on FreeBSD and MacOSX.
2868 From Yves Blusseau <cl7m42e02@sneakemail.com>
2870 * kern/dl.c (grub_dl_resolve_symbol): Make static.
2871 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
2873 * util/misc.c: Move grub_reboot() and grub_halt() ...
2874 * util/grub-emu.c: ... here. Make main_env static.
2875 * include/grub/util/misc.h: Remove main_env.
2877 * kern/mm.c: Use correct format to print size_t.
2879 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
2880 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
2881 * kern/powerpc/dl.c: Likewise.
2882 * kern/sparc64/dl.c: Likewise.
2883 * kern/x86_64/dl.c: Likewise.
2885 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2887 Fix grub-emu build on sparc64-ieee1275.
2889 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
2890 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
2892 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2894 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
2895 (grub_reboot, grub_halt): New functions.
2897 * util/i386/pc/misc.c: Delete. Update all users.
2898 * util/sparc64/ieee1275/misc.c: Likewise.
2899 * util/powerpc/ieee1275/misc.c: Likewise.
2901 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2903 * conf/i386.rmk (setjmp_mod_SOURCES)
2904 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
2905 * conf/common.rmk (setjmp_mod_SOURCES)
2906 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
2907 to use $(target_cpu).
2908 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
2909 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
2910 * conf/powerpc-ieee1275.rmk: Likewise.
2911 * conf/sparc64-ieee1275.rmk: Likewise.
2913 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
2914 $(target_cpu) for kern/$(target_cpu)/dl.c.
2915 * conf/i386-efi.rmk: Likewise.
2916 * conf/i386-ieee1275.rmk: Likewise.
2917 * conf/x86_64-efi.rmk: Likewise.
2918 * conf/i386-coreboot.rmk: Likewise.
2919 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
2920 $(target_cpu) for kern/$(target_cpu)/dl.c and for
2921 kern/$(target_cpu)/cache.S.
2922 * conf/sparc64-ieee1275.rmk: Likewise.
2924 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2926 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
2927 type to `grub_uint8_t', and adjust `padding9' accordingly.
2929 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2931 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
2933 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
2934 assembly in final jump, using register constraints.
2936 (grub_linux_boot): For text mode, initialize `have_vga' using
2937 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
2939 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
2940 right before the final jump.
2942 Set `video_mode' to 0x3.
2944 Document initialization of `video_page', `video_mode' and
2947 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2949 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
2950 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
2951 and set GRUB_LINUX_FLAG_QUIET appropriately.
2953 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2955 Fix build on Debian / sparc.
2957 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
2959 2009-06-28 Pavel Roskin <proski@gnu.org>
2961 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
2964 * util/grub.d/10_linux.in: Match SUSE style initrd names.
2966 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2968 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
2971 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2975 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
2976 file can't be opened. grub_file_open() is already supposed to set
2977 grub_errno / grub_errmsg appropriately.
2978 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2980 2009-06-27 Pavel Roskin <proski@gnu.org>
2981 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2983 * include/grub/dl.h: Include grub/elf.h.
2984 (struct grub_dl): Add symtab field.
2985 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
2986 GRUB_MODULES_MACHINE_READONLY.
2987 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
2988 of the header for read-only modules.
2989 (grub_dl_unload): Free mod->symtab for read-only modules.
2990 * kern/i386/dl.c: Use mod->symtab.
2991 * kern/powerpc/dl.c: Likewise.
2992 * kern/sparc64/dl.c: Likewise.
2993 * kern/x86_64/dl.c: Likewise.
2995 * conf/i386-qemu.rmk: New file.
2996 * kern/i386/qemu/startup.S: Likewise.
2997 * kern/i386/qemu/mmap.c: Likewise.
2998 * boot/i386/qemu/boot.S: Likewise.
2999 * include/grub/i386/qemu/time.h: Likewise.
3000 * include/grub/i386/qemu/serial.h: Likewise.
3001 * include/grub/i386/qemu/kernel.h: Likewise.
3002 * include/grub/i386/qemu/console.h: Likewise.
3003 * include/grub/i386/qemu/boot.h: Likewise.
3004 * include/grub/i386/qemu/init.h: Likewise.
3005 * include/grub/i386/qemu/machine.h: Likewise.
3006 * include/grub/i386/qemu/loader.h: Likewise.
3007 * include/grub/i386/qemu/memory.h: Likewise.
3009 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
3010 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
3011 [qemu] (pkglib_IMAGES): Add `boot.img'.
3012 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
3013 [qemu] (boot_img_FORMAT): New variables.
3014 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
3015 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
3016 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
3017 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3018 [qemu] (kernel_img_FORMAT): New variables.
3020 * configure.ac: Recognise `i386-qemu'.
3022 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
3023 (for no compression).
3024 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
3025 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
3026 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
3027 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
3030 2009-06-27 Pavel Roskin <proski@gnu.org>
3032 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
3034 * efiemu/prepare32.c: Likewise.
3035 * efiemu/prepare64.c: Likewise.
3037 2009-06-26 Pavel Roskin <proski@gnu.org>
3039 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
3040 * include/grub/elf.h: Define symbols without "32" or "64" based
3041 on GRUB_TARGET_WORDSIZE.
3042 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
3043 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
3045 * efiemu/loadcore64.c: Likewise.
3046 * loader/i386/bsd32.c: Likewise.
3047 * loader/i386/bsd64.c: Likewise.
3048 * kern/dl.c: Remove own ELF definitions.
3049 * util/i386/efi/grub-mkimage.c: Likewise.
3051 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
3053 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
3054 segment 0x0 unconditionally, because the reference generated by
3055 GAS is an absolute address.
3057 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3059 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
3060 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
3062 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3064 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
3065 indexes. Check for -f explicitly.
3066 (search_file): Improve error message.
3067 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
3069 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3071 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
3072 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
3074 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3076 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
3077 * conf/i386-ieee1275.rmk: Likewise.
3078 * conf/i386-coreboot.rmk: Likewise.
3080 * kern/i386/pc/startup.S (grub_stop): Remove function.
3081 * kern/i386/ieee1275/startup.S: Likewise.
3082 * kern/i386/coreboot/startup.S: Likewise.
3083 * kern/i386/misc.S (grub_stop): New function.
3085 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3087 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
3088 * kern/i386/realmode.S (real_to_prot): ... to here.
3090 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3092 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
3094 (kernel_elf_SOURCES): Rename to ...
3095 (kernel_img_SOURCES): ... this.
3096 (kernel_elf_HEADERS): Rename to ...
3097 (kernel_img_HEADERS): ... this. Update all users.
3098 (kernel_elf_ASFLAGS): Rename to ...
3099 (kernel_img_ASFLAGS): ... this.
3100 (kernel_elf_CFLAGS): Rename to ...
3101 (kernel_img_CFLAGS): ... this.
3102 (kernel_elf_LDFLAGS): Rename to ...
3103 (kernel_img_LDFLAGS): ... this.
3104 * conf/i386-coreboot.rmk: Likewise.
3105 * conf/powerpc-ieee1275.rmk: Likewise.
3107 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
3110 2009-06-21 Pavel Roskin <proski@gnu.org>
3112 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
3113 to match nested functions.
3114 * loader/sparc64/ieee1275/linux.c: Likewise.
3116 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
3118 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
3120 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
3123 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
3125 Fix asm file handling on ELF, and remove workarounds.
3127 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
3128 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
3129 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
3130 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
3132 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3134 Load BSD ELF modules
3136 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
3137 and loader/i386/bsd64.c
3138 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
3139 (FREEBSD_MODTYPE_ELF_MODULE): New definition
3140 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
3141 (grub_freebsd_load_elfmodule32): New declaration
3142 (grub_freebsd_load_elfmoduleobj64): Likewise
3143 (grub_freebsd_load_elf_meta32): Likewise
3144 (grub_freebsd_load_elf_meta64): Likewise
3145 (grub_freebsd_add_meta): Likewise
3146 (grub_freebsd_add_meta_module): Likewise
3147 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
3148 (grub_freebsd_add_meta_module): Likewise and move module-specific
3149 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
3150 (grub_cmd_freebsd): Add elf-kernel specific parts
3151 based on grub_freebsd_add_meta_module
3152 (grub_cmd_freebsd_module): Add type parsing moved from
3153 grub_freebsd_add_meta_module
3154 (grub_cmd_freebsd_module_elf): New function
3155 (cmd_freebsd_module_elf): New variable
3156 (GRUB_MOD_INIT): Register freebsd_module_elf
3157 * loader/i386/bsd32.c: New file
3158 * loader/i386/bsd64.c: Likewise
3159 * loader/i386/bsdXX.c: Likewise
3160 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
3161 (grub_elf64_load): Likewise
3162 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
3164 (grub_elf64_load_hook_t): Likewise
3166 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
3168 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
3170 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
3171 don't write a menu entry for recovery mode.
3173 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
3175 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
3176 after it's no longer needed.
3178 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
3180 * include/grub/i386/loader.h (grub_linux_prot_size)
3181 (grub_linux_tmp_addr, grub_linux_real_addr)
3182 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
3183 GRUB_MACHINE_PCBIOS.
3184 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
3185 common grub_util_info() call to ...
3186 (generate_image): ... here.
3187 Fix use of uninitialized memory, comparison of signed with
3188 unsigned integers and memory leak.
3189 Remove bogus module address message.
3191 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3193 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
3195 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
3197 2009-06-19 Pavel Roskin <proski@gnu.org>
3199 * configure.ac: Remove stray AC_MSG_CHECKING.
3201 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3203 * disk/scsi.c (grub_scsi_open): use continue instead of big if
3205 2009-06-18 Pavel Roskin <proski@gnu.org>
3207 * conf/common.rmk: Add fs_file.mod.
3208 * disk/fs_file.c: New file.
3209 * include/grub/disk.h (enum grub_disk_dev_id): Add
3210 GRUB_DISK_DEVICE_FILE_ID.
3212 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3214 Fix build with Apple's toolchain. Part 2
3216 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
3219 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3221 Fix build with Apple's toolchain. Part 1
3223 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
3225 * configure.ac: remove a leftover AC_MSG_RESULT
3226 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
3229 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3233 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
3234 (decomp_block): initialize ch
3235 use grub_memcpy instead of memcpy
3237 2009-06-17 Pavel Roskin <proski@gnu.org>
3239 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
3240 version, use declarations needed to use vga_text as the startup
3243 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
3244 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
3246 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
3247 and grub_at_keyboard_fini(), it's done on module load and
3250 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
3252 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
3253 file can't be found.
3254 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
3256 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
3258 Fix newline handling
3260 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
3261 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
3262 (grub_script_yylex): don't segfault on unterminated script
3263 newline terminates command and variable
3265 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
3267 avoid double grub_adjust_range call. Bug reported by David Simner
3269 * kern/disk.c (grub_disk_write): change to raw disk access before
3272 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
3274 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
3275 spaces, for the benefit of help2man.
3276 * util/i386/efi/grub-mkimage.c (usage): Likewise.
3278 2009-06-16 Pavel Roskin <proski@gnu.org>
3280 * kern/i386/halt.c: Include grub/machine/init.h.
3281 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
3283 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
3285 * util/grub.d/30_os-prober.in: Use ${root} in the generated
3288 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
3290 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
3293 2009-06-16 Pavel Roskin <proski@gnu.org>
3295 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
3296 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
3297 save %dx, we only need %dl and we never change it.
3298 * boot/i386/pc/cdboot.S: Don't set the root drive.
3299 * boot/i386/pc/pxeboot.S: Likewise.
3300 * include/grub/i386/pc/boot.h: Remove
3301 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
3302 GRUB_BOOT_MACHINE_DRIVE_CHECK.
3303 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
3304 * kern/i386/pc/init.c (make_install_device): Remove references
3306 * kern/i386/pc/startup.S: Likewise.
3307 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
3309 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3313 * commands/xnu_uuid.c: new file
3314 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
3315 (xnu_uuid_mod_SOURCES): new variable
3316 (xnu_uuid_mod_CFLAGS): likewise
3317 (xnu_uuid_mod_LDFLAGS): likewise
3318 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
3319 * conf/i386-ieee1275.rmk: likewise
3320 * conf/i386-pc.rmk: likewise
3321 * conf/powerpc-ieee1275.rmk: likewise
3322 * conf/sparc64-ieee1275.rmk: likewise
3323 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
3325 2009-06-16 Pavel Roskin <proski@gnu.org>
3327 * configure.ac: Avoid '==' in test command, it's not portable.
3329 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3333 * commands/probe.c: new file
3334 * conf/common.rmk (pkglib_MODULES): add probe.mod
3335 (probe_mod_SOURCES): new variable
3336 (probe_mod_CFLAGS): likewise
3337 (probe_mod_LDFLAGS): likewise
3338 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
3339 * conf/i386-ieee1275.rmk: likewise
3340 * conf/i386-pc.rmk: likewise
3341 * conf/powerpc-ieee1275.rmk: likewise
3342 * conf/sparc64-ieee1275.rmk: likewise
3344 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3346 Fix handling of string like \"hello\" and "a
3349 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
3350 (grub_script_yylex): fix parsing of quoting, escaping and newline
3352 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3354 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
3357 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
3359 * util/grub-mkconfig.in: Fix parsing of --output option.
3361 2009-06-12 Pavel Roskin <proski@gnu.org>
3363 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
3364 genmk.rb don't need to be generated or installed.
3366 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
3368 * commands/i386/pc/drivemap_int13h.S: add more comments
3370 2009-06-11 Pavel Roskin <proski@gnu.org>
3372 * Makefile.in (uninstall): Uninstall manuals.
3374 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
3375 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
3376 and update-grub_lib in two places.
3377 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
3379 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
3382 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
3383 `entry_lo' to fix variable shadowing.
3385 2009-06-11 Christian Franke <franke@computer.org>
3387 * kern/misc.c (__enable_execute_stack): Add missing return type
3388 to prevent gcc warning.
3390 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
3392 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
3394 2009-06-11 Pavel Roskin <proski@gnu.org>
3396 * Makefile.in: Don't rely on any scripts being executable.
3397 Always use $(SHELL) to run shell scripts.
3399 * configure.ac: Always define ___main if using -nostdlib. This
3400 fixes tests on Cygwin.
3402 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
3406 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
3407 is in bytes and not in blocks
3409 2009-06-11 Pavel Roskin <proski@gnu.org>
3411 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
3414 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
3416 * util/grub.d/30_os-prober.in: Fix a comment. Source
3417 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
3418 to set the root device. Place drivemap command in the generated
3421 2009-06-11 Pavel Roskin <proski@gnu.org>
3423 * configure.ac: Remove host_m32. Issues with 64-bit utilities
3424 have long been resolved.
3426 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
3428 * util/grub.d/10_linux.in: Capitalise "Linux".
3430 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
3432 2009-06-11 Pavel Roskin <proski@gnu.org>
3434 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
3435 fix a gcc warning and ensure that the function won't ever exit.
3437 * kern/i386/ieee1275/init.c: Add missing prototype for
3440 * loader/ieee1275/multiboot2.c [__i386__]: Include
3441 grub/cpu/multiboot.h.
3443 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
3444 casts to short - they are not portable and cause warnings. Fix
3445 use of uninitialized values in input_buf. Use ARRAY_SIZE.
3447 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
3451 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
3453 (grub_get_root_biosnumber_saved): new variable
3454 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
3455 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
3456 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
3457 %dx after the call if necessary
3458 * conf/common.rmk (pkglib_MODULES): remove boot.mod
3459 (boot_mod_SOURCES): remove
3460 (boot_mod_CFLAGS): remove
3461 (boot_mod_LDFLAGS): remove
3462 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
3463 (boot_mod_SOURCES): new variable
3464 (boot_mod_CFLAGS): likewise
3465 (boot_mod_LDFLAGS): likewise
3466 * conf/i386-efi.rmk: likewise
3467 * conf/i386-ieee1275.rmk: likewise
3468 * conf/i386-pc.rmk: likewise
3469 * conf/powerpc-ieee1275.rmk: likewise
3470 * conf/sparc64-ieee1275.rmk: likewise
3471 * conf/x86_64-efi.rmk: likewise
3472 * include/grub/i386/pc/biosnum.h: new file
3473 * lib/i386/pc/biosnum.c: likewise
3474 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
3475 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
3476 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
3478 2009-06-10 Pavel Roskin <proski@gnu.org>
3480 * io/gzio.c (test_header): Don't reuse one buffer for all data.
3481 Use separate variables. Read only the file size at the end, but
3482 not the checksum that we don't use.
3484 * kern/file.c (grub_file_read): Use void pointer for the buffer.
3487 * kern/ieee1275/openfw.c: Remove libc includes.
3488 * kern/ieee1275/cmain.c: Likewise.
3489 * include/grub/ieee1275/ieee1275.h: Likewise.
3491 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
3494 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
3496 * Makefile.in: Remove all trailing whitespace.
3497 * conf/i386-pc.rmk: Likewise.
3498 * conf/powerpc-ieee1275.rmk: Likewise.
3499 * conf/sparc64-ieee1275.rmk: Likewise.
3500 * docs/grub.texi: Likewise.
3501 * docs/texinfo.tex: Likewise.
3502 * disk/fs_uuid.c: Likewise.
3503 * disk/lvm.c: Likewise.
3504 * disk/scsi.c: Likewise.
3505 * disk/ata.c: Likewise.
3506 * disk/ieee1275/ofdisk.c: Likewise.
3507 * disk/i386/pc/biosdisk.c: Likewise.
3508 * disk/host.c: Likewise.
3509 * disk/raid.c: Likewise.
3510 * disk/efi/efidisk.c: Likewise.
3511 * disk/usbms.c: Likewise.
3512 * disk/memdisk.c: Likewise.
3513 * disk/loopback.c: Likewise.
3514 * kern/powerpc/dl.c: Likewise.
3515 * kern/device.c: Likewise.
3516 * kern/dl.c: Likewise.
3517 * kern/sparc64/dl.c: Likewise.
3518 * kern/ieee1275/ieee1275.c: Likewise.
3519 * kern/term.c: Likewise.
3520 * kern/fs.c: Likewise.
3521 * kern/i386/dl.c: Likewise.
3522 * kern/i386/pc/startup.S: Likewise.
3523 * kern/i386/pc/init.c: Likewise.
3524 * kern/i386/pc/mmap.c: Likewise.
3525 * kern/i386/pc/lzo1x.S: Likewise.
3526 * kern/i386/ieee1275/init.c: Likewise.
3527 * kern/i386/realmode.S: Likewise.
3528 * kern/i386/tsc.c: Likewise.
3529 * kern/partition.c: Likewise.
3530 * kern/corecmd.c: Likewise.
3531 * kern/file.c: Likewise.
3532 * kern/efi/efi.c: Likewise.
3533 * kern/efi/init.c: Likewise.
3534 * kern/efi/mm.c: Likewise.
3535 * kern/main.c: Likewise.
3536 * kern/err.c: Likewise.
3537 * kern/env.c: Likewise.
3538 * kern/disk.c: Likewise.
3539 * kern/generic/millisleep.c: Likewise.
3540 * kern/generic/rtc_get_time_ms.c: Likewise.
3541 * kern/misc.c: Likewise.
3542 * kern/parser.c: Likewise.
3543 * genmk.rb: Likewise.
3544 * configure.ac: Likewise.
3545 * boot/i386/pc/diskboot.S: Likewise.
3546 * boot/i386/pc/pxeboot.S: Likewise.
3547 * boot/i386/pc/boot.S: Likewise.
3548 * boot/i386/pc/lnxboot.S: Likewise.
3549 * boot/i386/pc/cdboot.S: Likewise.
3550 * parttool/pcpart.c: Likewise.
3551 * video/readers/tga.c: Likewise.
3552 * video/video.c: Likewise.
3553 * video/bitmap.c: Likewise.
3554 * lib/envblk.c: Likewise.
3555 * lib/i386/setjmp.S: Likewise.
3556 * fs/xfs.c: Likewise.
3557 * fs/afs.c: Likewise.
3558 * fs/fat.c: Likewise.
3559 * fs/ntfs.c: Likewise.
3560 * fs/udf.c: Likewise.
3561 * fs/affs.c: Likewise.
3562 * fs/iso9660.c: Likewise.
3563 * fs/hfs.c: Likewise.
3564 * fs/fshelp.c: Likewise.
3565 * fs/ext2.c: Likewise.
3566 * fs/jfs.c: Likewise.
3567 * fs/reiserfs.c: Likewise.
3568 * fs/hfsplus.c: Likewise.
3569 * fs/minix.c: Likewise.
3570 * fs/cpio.c: Likewise.
3571 * fs/sfs.c: Likewise.
3572 * fs/ufs.c: Likewise.
3573 * efiemu/prepare.c: Likewise.
3574 * efiemu/loadcore_common.c: Likewise.
3575 * efiemu/runtime/efiemu.sh: Likewise.
3576 * efiemu/runtime/efiemu.S: Likewise.
3577 * efiemu/runtime/efiemu.c: Likewise.
3578 * efiemu/pnvram.c: Likewise.
3579 * efiemu/main.c: Likewise.
3580 * efiemu/i386/pc/cfgtables.c: Likewise.
3581 * efiemu/i386/loadcore64.c: Likewise.
3582 * efiemu/i386/loadcore32.c: Likewise.
3583 * efiemu/loadcore.c: Likewise.
3584 * efiemu/symbols.c: Likewise.
3585 * efiemu/mm.c: Likewise.
3586 * include/grub/autoefi.h: Likewise.
3587 * include/grub/datetime.h: Likewise.
3588 * include/grub/term.h: Likewise.
3589 * include/grub/hfs.h: Likewise.
3590 * include/grub/lvm.h: Likewise.
3591 * include/grub/i386/tsc.h: Likewise.
3592 * include/grub/i386/linux.h: Likewise.
3593 * include/grub/i386/xnu.h: Likewise.
3594 * include/grub/i386/efiemu.h: Likewise.
3595 * include/grub/i386/pc/biosdisk.h: Likewise.
3596 * include/grub/i386/pc/memory.h: Likewise.
3597 * include/grub/i386/pc/vbe.h: Likewise.
3598 * include/grub/parttool.h: Likewise.
3599 * include/grub/video.h: Likewise.
3600 * include/grub/memory.h: Likewise.
3601 * include/grub/fs.h: Likewise.
3602 * include/grub/partition.h: Likewise.
3603 * include/grub/xnu.h: Likewise.
3604 * include/grub/efi/api.h: Likewise.
3605 * include/grub/efi/pe32.h: Likewise.
3606 * include/grub/efi/memory.h: Likewise.
3607 * include/grub/multiboot.h: Likewise.
3608 * include/grub/usbdesc.h: Likewise.
3609 * include/grub/multiboot2.h: Likewise.
3610 * include/grub/acpi.h: Likewise.
3611 * include/grub/efiemu/efiemu.h: Likewise.
3612 * include/grub/disk.h: Likewise.
3613 * include/grub/ieee1275/ieee1275.h: Likewise.
3614 * include/grub/net.h: Likewise.
3615 * include/grub/machoload.h: Likewise.
3616 * include/grub/macho.h: Likewise.
3617 * include/multiboot.h: Likewise.
3618 * genmoddep.awk: Likewise.
3619 * normal/main.c: Likewise.
3620 * normal/menu_entry.c: Likewise.
3621 * normal/menu_viewer.c: Likewise.
3622 * normal/completion.c: Likewise.
3623 * normal/cmdline.c: Likewise.
3624 * normal/misc.c: Likewise.
3625 * normal/datetime.c: Likewise.
3626 * bus/usb/usbtrans.c: Likewise.
3627 * bus/usb/ohci.c: Likewise.
3628 * bus/usb/uhci.c: Likewise.
3629 * bus/usb/usb.c: Likewise.
3630 * mmap/efi/mmap.c: Likewise.
3631 * mmap/i386/pc/mmap_helper.S: Likewise.
3632 * mmap/i386/pc/mmap.c: Likewise.
3633 * mmap/i386/mmap.c: Likewise.
3634 * mmap/i386/uppermem.c: Likewise.
3635 * mmap/mmap.c: Likewise.
3636 * commands/acpi.c: Likewise.
3637 * commands/echo.c: Likewise.
3638 * commands/blocklist.c: Likewise.
3639 * commands/loadenv.c: Likewise.
3640 * commands/usbtest.c: Likewise.
3641 * commands/boot.c: Likewise.
3642 * commands/parttool.c: Likewise.
3643 * commands/search.c: Likewise.
3644 * commands/cat.c: Likewise.
3645 * commands/i386/pc/play.c: Likewise.
3646 * commands/i386/pc/drivemap.c: Likewise.
3647 * commands/i386/pc/vbeinfo.c: Likewise.
3648 * commands/i386/pc/acpi.c: Likewise.
3649 * commands/i386/pc/vbetest.c: Likewise.
3650 * commands/ls.c: Likewise.
3651 * commands/cmp.c: Likewise.
3652 * commands/test.c: Likewise.
3653 * commands/efi/acpi.c: Likewise.
3654 * commands/gptsync.c: Likewise.
3655 * commands/help.c: Likewise.
3656 * partmap/amiga.c: Likewise.
3657 * partmap/apple.c: Likewise.
3658 * partmap/acorn.c: Likewise.
3659 * partmap/pc.c: Likewise.
3660 * partmap/sun.c: Likewise.
3661 * partmap/gpt.c: Likewise.
3662 * script/sh/lexer.c: Likewise.
3663 * script/sh/function.c: Likewise.
3664 * font/font.c: Likewise.
3665 * font/font_cmd.c: Likewise.
3666 * loader/powerpc/ieee1275/linux.c: Likewise.
3667 * loader/efi/chainloader.c: Likewise.
3668 * loader/multiboot_loader.c: Likewise.
3669 * loader/macho.c: Likewise.
3670 * loader/i386/multiboot.c: Likewise.
3671 * loader/i386/linux.c: Likewise.
3672 * loader/i386/pc/linux.c: Likewise.
3673 * loader/i386/pc/multiboot2.c: Likewise.
3674 * loader/i386/pc/chainloader.c: Likewise.
3675 * loader/i386/pc/xnu.c: Likewise.
3676 * loader/i386/bsd_trampoline.S: Likewise.
3677 * loader/i386/efi/linux.c: Likewise.
3678 * loader/i386/multiboot_elfxx.c: Likewise.
3679 * loader/i386/bsd_helper.S: Likewise.
3680 * loader/i386/bsd.c: Likewise.
3681 * loader/i386/linux_trampoline.S: Likewise.
3682 * loader/i386/xnu_helper.S: Likewise.
3683 * loader/i386/xnu.c: Likewise.
3684 * loader/i386/bsd_pagetable.c: Likewise.
3685 * loader/i386/multiboot_helper.S: Likewise.
3686 * loader/xnu.c: Likewise.
3687 * loader/xnu_resume.c: Likewise.
3688 * io/gzio.c: Likewise.
3689 * term/efi/console.c: Likewise.
3690 * term/terminfo.c: Likewise.
3691 * term/ieee1275/ofconsole.c: Likewise.
3692 * term/i386/pc/serial.c: Likewise.
3693 * term/i386/pc/vesafb.c: Likewise.
3694 * term/i386/pc/vga.c: Likewise.
3695 * term/usb_keyboard.c: Likewise.
3696 * term/gfxterm.c: Likewise.
3697 * aclocal.m4: Likewise.
3698 * util/lvm.c: Likewise.
3699 * util/grub.d/30_os-prober.in: Likewise.
3700 * util/grub.d/10_hurd.in: Likewise.
3701 * util/console.c: Likewise.
3702 * util/grub-macho2img.c: Likewise.
3703 * util/grub-probe.c: Likewise.
3704 * util/hostfs.c: Likewise.
3705 * util/i386/pc/grub-mkimage.c: Likewise.
3706 * util/i386/pc/grub-setup.c: Likewise.
3707 * util/i386/efi/grub-mkimage.c: Likewise.
3708 * util/grub-mkconfig.in: Likewise.
3709 * util/raid.c: Likewise.
3710 * util/resolve.c: Likewise.
3711 * util/grub-mkdevicemap.c: Likewise.
3712 * util/grub-emu.c: Likewise.
3713 * util/getroot.c: Likewise.
3714 * util/hostdisk.c: Likewise.
3715 * util/usb.c: Likewise.
3716 * util/grub-editenv.c: Likewise.
3717 * util/misc.c: Likewise.
3719 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
3721 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
3722 `genparttoollist.sh'.
3723 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
3724 Add `*.sh' to the list find searches for and change `mdate.sh'
3727 2009-06-10 Pavel Roskin <proski@gnu.org>
3729 * include/grub/multiboot2.h: Provide compatibility defines for
3731 * include/multiboot2.h: Include stdint.h only if needed, using
3733 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
3735 * loader/ieee1275/multiboot2.c: Likewise.
3736 * loader/multiboot2.c: Likewise.
3737 * loader/multiboot_loader.c: Likewise.
3739 * configure.ac: Use -nostdlib when probing for the target. It
3740 should not be required to have libc for the target.
3742 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
3743 they fail without libc headers for the target.
3744 * include/grub/powerpc/libgcc.h: Use weak attribute for all
3746 * include/grub/sparc64/libgcc.h: Likewise. Don't use
3747 preprocessor conditionals.
3749 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
3750 build system doesn't need to be aware of the tar.c internals.
3752 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
3754 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
3756 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
3758 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
3759 disk limit to 26 for IDE, Virtio, Xen and SCSI.
3761 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
3763 * util/i386/pc/grub-install.in: Change the error message if UUIDs
3764 aren't available if ata.mod gets used.
3766 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
3768 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
3769 initialising controller.
3770 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3772 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3774 * util/i386/pc/grub-install.in: Add a parameter --disk-module
3775 to choose between ata and biosdisk module on i386-pc.
3777 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
3779 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
3780 Subclass and Programming Interface fields in terms of the 3 byte
3781 Class Code register.
3782 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3784 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
3785 interface is OHCI. Add grub_dprintf for symmetry with
3787 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
3788 interface is UHCI. Add interf variable for programming
3789 interface. Print interface with class/subclass.
3791 * bus/usb/ohci.c: Set interf with correct field.
3793 * bus/usb/uhci.c: Remove unneeded doubled lines.
3794 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
3795 Remove whitespace inside comment.
3797 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
3799 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
3800 as fallback an equivalent option without depth.
3802 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3804 Not fail if unable to retrieve C/H/S on LBA disks
3806 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
3807 if unable to retrieve C/H/S on LBA disks
3809 2009-06-08 Pavel Roskin <proski@gnu.org>
3811 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
3814 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3816 * Makefile.in (uninstall): Remove all $lib_DATA files.
3818 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3820 Bugfix: install on partitionless device
3822 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
3825 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3827 * Makefile.in (uninstall): Remove all $include_DATA files.
3829 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3831 * commands/true.c: New file. Implement the true and false commands.
3832 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
3833 (true_mod_SOURCES): New variable.
3834 (true_mod_CFLAGS): Likewise.
3835 (true_mod_LDFLAGS): Likewise.
3837 2009-06-05 Colin D Bennett <colin@gibibit.com>
3839 Optimized font character lookup using binary search instead of linear
3840 search. Fonts now are required to have the character index ordered by
3843 * font/font.c (load_font_index): Verify that fonts have ordered
3845 (find_glyph): Use binary search instead of linear search to find a
3846 character in a font.
3848 2009-06-05 Michael Scherer <misc@mandriva.org>
3850 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
3851 uses case sensitive btree.
3852 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
3853 only for case insensitive filesystems.
3855 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3857 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
3858 * conf/common.rmk (search_mod_CFLAGS): likewise
3860 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3862 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
3863 compensate a compiler bug
3865 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3867 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
3870 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3872 Definitions for creating asm symbols with Apple's CC
3874 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
3875 [APPLE_CC] (VARIABLE): likewise
3877 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3879 Disable lnxboot.img when compiled
3882 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
3883 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
3884 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
3885 [! APPLE_CC] (CODE_LENG): skip
3886 [! APPLE_CC] (setup_sects): likewise
3887 [! APPLE_CC]: skip filling
3889 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3891 Address in trampolines based on 32-bit registers when compiled
3894 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
3896 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
3898 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3900 Avoid aliases when compiling with Apple's CC for PCBIOS machine
3902 * kern/misc.c [APPLE_CC] (memcpy): new function
3903 [APPLE_CC] (memmove): likewise
3904 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
3905 (memcpy): define alias conditionally on !APPLE_CC
3908 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
3909 APPLE_CC are defined
3910 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
3911 (grub_assert_fail): make prototype conditional
3913 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3915 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
3917 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
3919 (CLEANFILES): add grub-macho2img
3920 (grub_macho2img_SOURCES): new variable
3921 * kern/i386/pc/startup.S (bss_start): new variable
3923 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
3924 * util/grub-macho2img.c: new file
3926 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3928 Use objconv when compiling with Apple's CC
3930 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
3931 (efiemu64.o): likewise
3932 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
3933 when compiling with Apple's CC
3934 (efiemu64_s.o): likewise
3935 * configure.ac: check for objconv when compiling with Apple's CC
3936 * genmk.rb: use objconv for modules when compiled with Apple's CC
3938 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3940 Define segment as well as section when compiling with
3943 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
3944 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
3945 (efiemu_convert_pointer): likewise
3946 (efiemu_set_virtual_address_map): likewise
3947 (efiemu_convert_pointer): likewise
3948 (efiemu_getcrc32): likewise
3949 (init_crc32_table): likewise
3951 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
3952 (GRUB_MOD_DEP): likewise
3954 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3956 Allow a compilation without -mcmodel=large
3958 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
3959 when compiled without -mcmodel=large
3960 (filter_memory_map): remove memory post 4 GiB when compiled
3961 without -mcmodel=large
3962 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
3963 TARGET_CFLAGS when -mcmodel=large isn't supported
3965 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3967 Remove nested functions in efiemu core
3969 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
3971 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3973 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
3975 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
3977 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
3979 (grub_cpu_is_tsc_supported): likewise
3980 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
3982 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3984 Absolute addressing through constant with Apple's cc
3986 * kern/i386/pc/startup.S: Define necessary constants
3987 and address through it when using ABS with Apple's CC
3988 * boot/i386/pc/diskboot.S: likewise
3989 * boot/i386/pc/boot.S: likewise
3990 * boot/i386/pc/lnxboot.S: likewise
3991 * boot/i386/pc/cdboot.S: likewise
3992 * mmap/i386/pc/mmap_helper.S: likewise
3993 * commands/i386/pc/drivemap_int13h.S: likewise
3995 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3997 Check if compiler is apple cc
3999 * Makefile.in (ASFLAGS): new variable
4000 (TARGET_ASFLAGS): likewise
4001 (TARGET_MODULE_FORMAT): likewise
4002 (TARGET_APPLE_CC): likewise
4004 (TARGET_IMG_CFLAGS): likewise
4005 (TARGET_CPPFLAGS): add includedir
4006 * configure.ac: call grub_apple_cc and grub_apple_target_cc
4007 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
4008 Check for linker script only if compiler isn't Apple's CC
4009 (TARGET_MODULE_FORMAT): set
4010 (TARGET_APPLE_CC): likewise
4011 (TARGET_ASFLAGS): likewise
4013 Check for objcopy only if compiler isn't Apple's CC
4014 Check for BSS symbol only if compiler isn't Apple's CC
4015 * genmk.rb: adapt nm options if we use Apple's utils
4016 * aclocal.m4 (grub_apple_cc): new test
4017 (grub_apple_target_cc): likewise
4019 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4021 Simplify sed expressions and improve awk
4023 * Makefile.in (install-local): simplify sed expression
4024 * gencmdlist.sh: likewise
4025 * genmoddep.awk: avoid adding module as a dependency of itself
4027 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4029 Add missing start symbols
4031 * boot/i386/pc/boot.S: add start
4032 * boot/i386/pc/pxeboot.S: likewise
4034 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4036 Fix wrong assumptions with grub-mkimage on EFI
4038 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
4039 (relocate_addresses): consider both r_addend and value at offset
4040 (make_mods_section): zerofill modinfo and header
4041 (convert_elf): write prefix here
4043 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4045 Use .asciz instead of .string
4047 * i386/pc/diskboot.S: use .asciz instead of .string
4048 * i386/pc/boot.S: likewise
4049 * include/grub/dl.h (GRUB_MOD_DEP): likewise
4050 (GRUB_MOD_NAME): likewise
4052 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4056 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
4057 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
4058 (grub_video_setup): remove
4059 (grub_video_set_mode): new prototype
4060 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
4062 (linux_vesafb_res): compile only on PCBIOS
4063 (grub_linux_boot): support gfxpayload
4064 * loader/i386/pc/xnu.c (video_hook): new function
4065 (grub_xnu_set_video): support gfxpayload
4066 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
4067 (DEFAULT_VIDEO_HEIGHT): likewise
4068 (DEFAULT_VIDEO_FLAGS): likewise
4069 (DEFAULT_VIDEO_MODE): new definition
4070 (video_hook): new function
4071 (grub_gfxterm_init): use grub_video_set_mode
4072 * util/grub.d/30_os-prober.in: remove explicit modesetting before
4074 * video/video.c (grub_video_setup): removed
4075 (grub_video_set_mode): new function based on grub_gfxterm_init and
4078 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4080 Avoid calling biosdisk in drivemap
4082 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
4083 (revparse_biosdisk): likewise
4084 (list_mappings): derive name from id directly
4085 (grub_cmd_drivemap): use tryparse_diskstring
4087 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4091 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
4092 (grub_lexer_param): add tokenonhold
4093 (grub_script_create_cmdline): remove cmdline. All callers updated
4094 (grub_script_function_create): make functionname
4095 grub_script_arg. All callers updated
4096 (grub_script_execute_argument_to_string): new prototype
4097 * kern/parser.c (state_transitions): reorder
4098 (grub_parser_cmdline_state): fix a bug and make more compact
4099 * script/sh/execute.c (grub_script_execute_argument_to_string):
4101 (grub_script_execute_cmdline): use new format
4102 * script/sh/function.c (grub_script_function_create): make functionname
4103 grub_script_arg. All callers updated
4104 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
4105 (grub_script_yylex): remove
4106 (grub_script_yylex2): renamed to ...
4107 (grub_script_yylex): ...renamed
4108 parse the expressions like a${b}c
4109 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
4110 (GRUB_PARSER_TOKEN_VAR): remove
4111 (GRUB_PARSER_TOKEN_NAME): likewise
4112 ("if"): declare as typeless
4114 ("function"): likewise
4119 (argument): likewise
4120 (script): accept empty scripts and make exit on error
4121 (arguments): use GRUB_PARSER_TOKEN_ARG
4122 (function): likewise
4123 (command): move error handling to script
4124 (menuentry): move grub_script_lexer_ref before
4125 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
4126 argument. All callers updated
4128 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
4130 Prevent GRUB from probing floppies during boot.
4132 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
4133 * commands/search.c (options): Add --no-floppy.
4134 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
4135 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
4136 --no-floppy when searching for UUIDs.
4138 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
4140 Simplify the code duplication in commands/search.c.
4142 * commands/search.c (search_label, search_fs_uuid): Merge into ...
4143 (search_fs): ... this. Update all users.
4145 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
4147 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
4149 2009-05-28 Pavel Roskin <proski@gnu.org>
4151 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
4152 Remove the original symlink explicitly.
4154 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
4155 just one slash. That's how grub_fshelp_find_file() does it.
4157 2009-05-26 Pavel Roskin <proski@gnu.org>
4159 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
4162 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
4165 2009-05-25 Christian Franke <franke@computer.org>
4167 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
4169 (grub_atapi_identify): Add wait after drive select.
4170 (grub_ata_identify): Do more strict status register check before
4171 calling grub_atapi_identify (). Suppress error message if status
4172 register is 0x00 after command failure. Add status register
4173 check after PIO read to avoid bogus identify due to stuck DRQ.
4174 Thanks to Pavel Roskin for testing.
4175 (grub_device_initialize): Remove unsafe status register check.
4176 Thanks to 'phcoder' for problem report and patch.
4177 Prevent sign extension in debug message.
4179 2009-05-23 Colin D Bennett <colin@gibibit.com>
4181 Cleaned up `include/grub/normal.h'. Grouped prototypes by
4182 definition file, and functions defined in `normal/menu.c' have had
4183 their prototypes moved to `include/grub/menu.h' for consistency.
4185 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
4187 (grub_menu_get_entry): Likewise.
4188 (grub_menu_get_timeout): Likewise.
4189 (grub_menu_set_timeout): Likewise.
4190 (grub_menu_execute_entry): Likewise.
4191 (grub_menu_execute_with_fallback): Likewise.
4192 (grub_menu_entry_run): Likewise.
4194 * include/grub/normal.h: Re-ordered and grouped function
4195 prototypes by file that the function is defined in.
4196 (grub_menu_execute_callback): Removed; moved to menu.h.
4197 (grub_menu_get_entry): Likewise.
4198 (grub_menu_get_timeout): Likewise.
4199 (grub_menu_set_timeout): Likewise.
4200 (grub_menu_execute_entry): Likewise.
4201 (grub_menu_execute_with_fallback): Likewise.
4202 (grub_menu_entry_run): Likewise.
4203 (grub_menu_addentry): Renamed from this ...
4204 (grub_normal_add_menu_entry): ... to this.
4206 * normal/main.c (grub_menu_addentry): Renamed from this ...
4207 (grub_normal_add_menu_entry): ... to this.
4209 * script/sh/execute.c (grub_script_execute_menuentry): Update
4210 reference to renamed grub_menu_addentry function.
4212 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
4214 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
4216 2009-05-22 Pavel Roskin <proski@gnu.org>
4218 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
4219 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
4220 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
4221 compiling for the i386 targets, but not for the utilities.
4223 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
4225 (grub_root_drive): Likewise.
4226 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
4228 (grub_root_drive): Change size to byte.
4229 (grub_start_addr): Remove.
4230 (grub_end_addr): Likewise.
4231 (grub_apm_bios_info): Likewise.
4233 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
4235 * normal/i386: Remove.
4236 * normal/powerpc: Likewise.
4237 * normal/sparc64: Likewise.
4238 * normal/x86_64: Likewise.
4240 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
4242 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
4243 * loader/i386/linux_trampoline.S: Fix indentation
4244 * loader/i386/xnu_helper.S: Likewise
4246 2009-05-18 Colin D Bennett <colin@gibibit.com>
4248 Display error messages when parsing a Lua statement fails.
4249 Previously, executing a syntactically invalid statement like
4250 ")foo" or "bar;" would silently fail.
4252 * script/lua/grub_main.c (handle_lua_error): New function.
4253 (grub_lua_parse_line): Improved reporting of Lua parser and
4256 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4258 Remove -Werror which causes build to fail on some systems
4260 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
4261 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
4262 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
4264 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4266 trampoline for linux on 64-bit platform
4268 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
4269 loader/i386/efi/linux_trampoline.S
4270 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
4272 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
4274 * loader/i386/linux_trampoline.S: moved here
4275 * loader/i386/efi/linux.c (allocate_pages): reserve space for
4277 (jumpvector): removed
4278 (grub_linux_trampoline_start): new declaration
4279 (grub_linux_trampoline_end): likewise
4280 (grub_linux_boot): use trampoline when on 64-bit platform
4281 * loader/i386/linux.c: likewise
4283 2009-05-16 Pavel Roskin <proski@gnu.org>
4285 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
4286 const to avoid a warning.
4287 (grub_lua_setenv): Likewise.
4288 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
4289 lmsg to fix a warning.
4291 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
4293 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
4294 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
4295 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
4296 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
4297 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
4298 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
4299 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
4300 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
4302 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
4304 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
4306 2009-05-16 Bean <bean123ch@gmail.com>
4308 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
4309 (lua_mod_SOURCES): New variable.
4310 (lua_mod_CFLAGS): Likewise.
4311 (lua_mod_LDFLAGS): Likewise.
4313 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
4314 (setjmp_mod_SOURCES): New variable.
4315 (setjmp_mod_CFLAGS): Likewise.
4316 (setjmp_LDFLAGS): Likewise.
4318 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
4319 (setjmp_mod_SOURCES): New variable.
4320 (setjmp_mod_CFLAGS): Likewise.
4321 (setjmp_LDFLAGS): Likewise.
4323 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
4324 (setjmp_mod_SOURCES): New variable.
4325 (setjmp_mod_CFLAGS): Likewise.
4326 (setjmp_LDFLAGS): Likewise.
4328 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
4329 (setjmp_mod_SOURCES): New variable.
4330 (setjmp_mod_CFLAGS): Likewise.
4331 (setjmp_LDFLAGS): Likewise.
4333 * normal/i386/setjmp.S: Moved from here ...
4334 * lib/i386/setjmp.S: ... Moved here
4335 * normal/x86_64/setjmp.S: Moved from here ...
4336 * lib/x86_64/setjmp.S: ... Moved here
4337 * normal/powerpc/setjmp.S: Moved from here ...
4338 * lib/powerpc/setjmp.S: ... Moved here
4339 * normal/sparc64/setjmp.S: Moved from here ...
4340 * lib/sparc64/setjmp.S: ... Moved here
4342 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
4343 returns_twice in mingw.
4345 * script/lua/grub_lib.c: New file.
4346 * script/lua/grub_lib.h: Likewise.
4347 * script/lua/grub_lua.h: Likewise.
4348 * script/lua/grub_main.c: Likewise.
4349 * script/lua/lapi.c: Likewise.
4350 * script/lua/lapi.h: Likewise.
4351 * script/lua/lauxlib.c: Likewise.
4352 * script/lua/lauxlib.h: Likewise.
4353 * script/lua/lbaselib.c: Likewise.
4354 * script/lua/lcode.c: Likewise.
4355 * script/lua/lcode.h: Likewise.
4356 * script/lua/ldblib.c: Likewise.
4357 * script/lua/ldebug.c: Likewise.
4358 * script/lua/ldebug.h: Likewise.
4359 * script/lua/ldo.c: Likewise.
4360 * script/lua/ldo.h: Likewise.
4361 * script/lua/ldump.c: Likewise.
4362 * script/lua/lfunc.c: Likewise.
4363 * script/lua/lfunc.h: Likewise.
4364 * script/lua/lgc.c: Likewise.
4365 * script/lua/lgc.h: Likewise.
4366 * script/lua/linit.c: Likewise.
4367 * script/lua/liolib.c: Likewise.
4368 * script/lua/llex.c: Likewise.
4369 * script/lua/llex.h: Likewise.
4370 * script/lua/llimits.h: Likewise.
4371 * script/lua/lmathlib.c: Likewise.
4372 * script/lua/lmem.c: Likewise.
4373 * script/lua/lmem.h: Likewise.
4374 * script/lua/loadlib.c: Likewise.
4375 * script/lua/lobject.c: Likewise.
4376 * script/lua/lobject.h: Likewise.
4377 * script/lua/lopcodes.c: Likewise.
4378 * script/lua/lopcodes.h: Likewise.
4379 * script/lua/loslib.c: Likewise.
4380 * script/lua/lparser.c: Likewise.
4381 * script/lua/lparser.h: Likewise.
4382 * script/lua/lstate.c: Likewise.
4383 * script/lua/lstate.h: Likewise.
4384 * script/lua/lstring.c: Likewise.
4385 * script/lua/lstring.h: Likewise.
4386 * script/lua/lstrlib.c: Likewise.
4387 * script/lua/ltable.c: Likewise.
4388 * script/lua/ltable.h: Likewise.
4389 * script/lua/ltablib.c: Likewise.
4390 * script/lua/ltm.c: Likewise.
4391 * script/lua/ltm.h: Likewise.
4392 * script/lua/lua.h: Likewise.
4393 * script/lua/luaconf.h: Likewise.
4394 * script/lua/lualib.h: Likewise.
4395 * script/lua/lundump.c: Likewise.
4396 * script/lua/lundump.h: Likewise.
4397 * script/lua/lvm.c: Likewise.
4398 * script/lua/lvm.h: Likewise.
4399 * script/lua/lzio.c: Likewise.
4400 * script/lua/lzio.h: Likewise.
4402 2009-05-16 Bean <bean123ch@gmail.com>
4404 * include/grub/kernel.h (grub_module_header_types): Add type
4407 * kern/main.c (grub_load_config): New function.
4408 (grub_main): Call grub_load_config to read boot config.
4410 * grub-mkimage (generate_image): New parameter config_path.
4411 (options): New option --config.
4412 (main): Parse --config option, and pass it to generate_image.
4414 2009-05-14 Christian Franke <franke@computer.org>
4416 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
4417 This fixes build on Cygwin.
4419 2009-05-14 Pavel Roskin <proski@gnu.org>
4421 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
4422 jump. This saves two bytes, so the typical case of 2 swapped
4423 drives would fit 32 bytes.
4425 2009-05-13 Pavel Roskin <proski@gnu.org>
4427 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
4428 grub_uint32_t to avoid a warning.
4430 * loader/i386/linux.c (allocate_pages): When assigning
4431 real_mode_mem, cast through grub_size_t to fix a warning. The
4432 code already makes sure that the value would fit a pointer.
4433 (grub_linux_setup_video): Cast render_target->data to
4434 grub_size_t to fix a warning.
4436 2009-05-13 Javier Martín <lordhabbit@gmail.com>
4438 * commands/i386/pc/drivemap.c: New file - implement drivemap
4440 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
4441 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
4443 2009-05-13 Pavel Roskin <proski@gnu.org>
4445 * util/i386/pc/grub-setup.c (setup): Remove unused variable
4446 embedding_area_exists.
4448 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
4450 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
4451 it easier to understand / work with.
4452 Improve warning messages for cases where there's no embedding area,
4453 or when it is too small (or core.img too large).
4455 2009-05-13 Pavel Roskin <proski@gnu.org>
4457 * loader/i386/pc/multiboot2.c: Add necessary includes for
4458 grub_multiboot2_real_boot().
4460 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
4461 PX record is always little-endian. We only need the lower 2
4464 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
4465 facilitate code reuse.
4466 (grub_cpio_mount): Use "struct head", not a char buffer. This
4467 fixes a warning reported by gcc 4.4.
4469 * kernel/disk.c (grub_disk_read): Use void pointer for the
4471 (grub_disk_write): Use const void pointer for the buffer.
4472 Adjust all callers. Remove unnecessary casts.
4474 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
4476 * util/i386/pc/grub-install.in: Update copyright year.
4478 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4482 * commands/gptsync.c: new file
4483 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
4484 (gptsync_mod_SOURCES): new variable
4485 (gptsync_mod_CFLAGS): likewise
4486 (gptsync_mod_LDFLAGS): likewise
4487 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
4489 (GRUB_PC_PARTITION_TYPE_HFS): likewise
4490 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
4491 * conf/i386-ieee1275.rmk: likewise
4492 * conf/i386-pc.rmk: likewise
4493 * conf/powerpc-ieee1275.rmk: likewise
4495 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4499 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
4500 (grub_dl_ref): likewise
4502 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
4504 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
4505 split in two functions (one for msdos and one for gpt).
4507 2009-05-08 Pavel Roskin <proski@gnu.org>
4509 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
4512 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
4513 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
4514 Initialize them with -1. Add sanity check for bad1. Eliminate
4517 2009-05-08 David S. Miller <davem@davemloft.net>
4519 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
4521 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
4523 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
4526 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
4528 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
4529 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
4531 2009-05-05 David S. Miller <davem@davemloft.net>
4533 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
4535 2009-05-05 Pavel Roskin <proski@gnu.org>
4537 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
4538 of grub_dl_ref() and grub_dl_unref().
4539 * commands/parttool.c: Remove preprocessor conditionals around
4540 grub_dl_ref() and grub_dl_unref().
4541 * fs/affs.c: Likewise.
4542 * fs/afs.c: Likewise.
4543 * fs/cpio.c: Likewise.
4544 * fs/ext2.c: Likewise.
4545 * fs/fat.c: Likewise.
4546 * fs/hfs.c: Likewise.
4547 * fs/hfsplus.c: Likewise.
4548 * fs/iso9660.c: Likewise.
4549 * fs/jfs.c: Likewise.
4550 * fs/minix.c: Likewise.
4551 * fs/ntfs.c: Likewise.
4552 * fs/reiserfs.c: Likewise.
4553 * fs/sfs.c: Likewise.
4554 * fs/udf.c: Likewise.
4555 * fs/ufs.c: Likewise.
4556 * fs/xfs.c: Likewise.
4557 * include/grub/dl.h: Likewise.
4558 * loader/xnu.c: Likewise.
4560 2009-05-04 Pavel Roskin <proski@gnu.org>
4562 * commands/acpi.c: Remove unused variable my_mod.
4563 * partmap/amiga.c: Likewise.
4564 * partmap/apple.c: Likewise.
4565 * partmap/gpt.c: Likewise.
4566 * partmap/pc.c: Likewise.
4567 * partmap/sun.c: Likewise.
4568 * term/gfxterm.c: Likewise.
4569 * term/i386/pc/vesafb.c: Likewise.
4570 * term/i386/pc/vga.c: Likewise.
4572 2009-05-04 David S. Miller <davem@davemloft.net>
4574 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
4575 pointer args to grub_ieee1275_get_property().
4577 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
4579 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
4580 devices, and do not traverse down under controller nodes.
4582 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
4583 (grub_ofdisk_open): Use it to un-escape "," characters.
4584 * kern/disk.c (find_part_sep): New.
4585 (grub_disk_open): Use it to find the first non-escaped ','
4586 character in the disk name.
4587 * util/ieee1275/devicemap.c (escape_of_path): New.
4588 (grub_util_emit_devicemap_entry): Use it.
4589 * util/sparc64/ieee1275/grub-install.in: Update script to
4590 strip partition specifiers properly by not triggering on
4591 '\' escaped ',' characters.
4593 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4595 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
4597 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
4599 (linux_vesafb_modes): Add a lot of additional modes to the list (based
4600 on documentation from Wikipedia).
4602 2009-05-04 Pavel Roskin <proski@gnu.org>
4604 * disk/ata.c: Spelling fixes.
4605 * disk/raid.c: Likewise.
4606 * disk/usbms.c: Likewise.
4607 * disk/dmraid_nvidia.c: Likewise.
4608 * kern/ieee1275/openfw.c: Likewise.
4609 * kern/ieee1275/init.c: Likewise.
4610 * kern/ieee1275/cmain.c: Likewise.
4611 * boot/i386/pc/cdboot.S: Likewise.
4612 * video/readers/png.c: Likewise.
4613 * video/i386/pc/vbe.c: Likewise.
4614 * fs/udf.c: Likewise.
4615 * fs/hfs.c: Likewise.
4616 * fs/reiserfs.c: Likewise.
4617 * efiemu/runtime/efiemu.c: Likewise.
4618 * efiemu/main.c: Likewise.
4619 * efiemu/mm.c: Likewise.
4620 * include/grub/elf.h: Likewise.
4621 * include/grub/xnu.h: Likewise.
4622 * include/grub/usbdesc.h: Likewise.
4623 * include/grub/usb.h: Likewise.
4624 * include/grub/script_sh.h: Likewise.
4625 * include/grub/lib/LzmaEnc.h: Likewise.
4626 * include/grub/efiemu/efiemu.h: Likewise.
4627 * include/grub/command.h: Likewise.
4628 * normal/menu.c: Likewise.
4629 * normal/main.c: Likewise.
4630 * normal/datetime.c: Likewise.
4631 * bus/usb/uhci.c: Likewise.
4632 * mmap/i386/uppermem.c: Likewise.
4633 * mmap/mmap.c: Likewise.
4634 * commands/acpi.c: Likewise.
4635 * commands/test.c: Likewise.
4636 * partmap/apple.c: Likewise.
4637 * font/font.c: Likewise.
4638 * loader/sparc64/ieee1275/linux.c: Likewise.
4639 * loader/macho.c: Likewise.
4640 * loader/i386/bsd_trampoline.S: Likewise.
4641 * loader/i386/bsd.c: Likewise.
4642 * loader/xnu.c: Likewise.
4643 * term/i386/pc/vesafb.c: Likewise.
4644 * term/usb_keyboard.c: Likewise.
4645 * util/resolve.c: Likewise.
4646 * util/getroot.c: Likewise.
4648 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
4650 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
4652 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4654 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
4657 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4659 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
4660 parameter only available on BIOS.
4662 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4664 Removed wrong semicolon in declaration
4666 * grub/misc.h (grub_dprintf): remove semicolon
4668 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4670 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
4671 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
4672 is done by grub_cmd_linux() now).
4673 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
4674 restore video to text mode.
4675 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
4676 indicates lack of "vga=" parameter. "vga=0" is mapped to
4677 `GRUB_LINUX_VID_MODE_NORMAL'.
4679 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
4681 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
4682 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
4683 and `normal/script.c'. Add `kern/rescue_reader.c',
4684 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
4685 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
4686 `grub_script.tab.c'.
4688 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4689 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4690 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4691 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
4692 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4694 * Makefile.in: Remove duplicated 2008 in Copyright line.
4696 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4698 * util/misc.c (grub_util_warn): New function. Emits a warning
4700 * include/grub/util/misc.h (grub_util_warn): New declaration.
4702 * util/i386/pc/grub-install.in: Understand --force and pass it down
4705 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
4707 (setup): Improve error messages and add warnings when requested to
4708 install in odd layouts. Refuse to install using blocklists unless
4711 2009-05-04 martin f. krafft <madduck@madduck.net>
4713 * disk/raid.c (grub_raid_scan_device): Improve debug message.
4715 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4717 Updated copyright year
4719 * fs/hfsplus.c: updated copyright year
4721 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4725 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
4726 in the space previously used by unused3
4727 (grub_hfsplus_uuid): new function
4728 (grub_hfsplus_fs): added uuid field
4730 2009-05-03 Pavel Roskin <proski@gnu.org>
4732 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
4733 suppress warnings. It's no longer needed.
4734 * disk/host.c: Likewise.
4735 * disk/ata_pthru.c: Likewise.
4736 * disk/loopback.c: Likewise.
4737 * hook/datehook.c: Likewise.
4738 * parttool/pcpart.c: Likewise.
4739 * fs/i386/pc/pxe.c: Likewise.
4740 * fs/ntfscomp.c: Likewise.
4741 * efiemu/main.c: Likewise.
4742 * mmap/mmap.c: Likewise.
4743 * commands/crc.c: Likewise.
4744 * commands/hexdump.c: Likewise.
4745 * commands/hdparm.c: Likewise.
4746 * commands/acpi.c: Likewise.
4747 * commands/echo.c: Likewise.
4748 * commands/minicmd.c: Likewise.
4749 * commands/blocklist.c: Likewise.
4750 * commands/memrw.c: Likewise.
4751 * commands/loadenv.c: Likewise.
4752 * commands/usbtest.c: Likewise.
4753 * commands/lsmmap.c: Likewise.
4754 * commands/boot.c: Likewise.
4755 * commands/parttool.c: Likewise.
4756 * commands/configfile.c: Likewise.
4757 * commands/search.c: Likewise.
4758 * commands/ieee1275/suspend.c: Likewise.
4759 * commands/cat.c: Likewise.
4760 * commands/i386/pc/pxecmd.c: Likewise.
4761 * commands/i386/pc/play.c: Likewise.
4762 * commands/i386/pc/halt.c: Likewise.
4763 * commands/i386/pc/vbeinfo.c: Likewise.
4764 * commands/i386/pc/vbetest.c: Likewise.
4765 * commands/lspci.c: Likewise.
4766 * commands/date.c: Likewise.
4767 * commands/handler.c: Likewise.
4768 * commands/ls.c: Likewise.
4769 * commands/test.c: Likewise.
4770 * commands/cmp.c: Likewise.
4771 * commands/efi/loadbios.c: Likewise.
4772 * commands/efi/fixvideo.c: Likewise.
4773 * commands/halt.c: Likewise.
4774 * commands/help.c: Likewise.
4775 * commands/reboot.c: Likewise.
4776 * hello/hello.c: Likewise.
4777 * script/sh/main.c: Likewise.
4778 * loader/xnu.c: Likewise.
4779 * term/terminfo.c: Likewise.
4780 * term/i386/pc/serial.c: Likewise.
4781 * term/usb_keyboard.c: Likewise.
4783 2009-05-03 David S. Miller <davem@davemloft.net>
4785 * normal/menu.c: Include grub/parser.h
4787 2009-05-03 Pavel Roskin <proski@gnu.org>
4789 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
4791 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
4792 Suggested by Javier Martín <lordhabbit@gmail.com>
4794 * util/i386/pc/grub-mkrescue.in: Allow for the case when
4795 efiemu??.o doesn't exist.
4796 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
4799 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
4801 FreeBSD 64-bit support
4803 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
4804 and loader/i386/bsd_trampoline.S
4805 (bsd_mod_ASFLAGS): new variable
4806 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
4807 (FREEBSD_MODTYPE_KERNEL64): likewise
4808 (grub_bsd64_trampoline_start): likewise
4809 (grub_bsd64_trampoline_end): likewise
4810 (grub_bsd64_trampoline_selfjump): likewise
4811 (grub_bsd64_trampoline_gdt): likewise
4812 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
4813 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
4814 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
4815 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
4816 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4818 * loader/i386/bsd_pagetable.c: new file
4819 * loader/i386/bsd_trampoline.S: likewise
4820 * loader/i386/bsd.c (ALIGN_QWORD): new macro
4821 (ALIGN_VAR): likewise
4822 (entry_hi): new variable
4823 (kern_end_mdofs): likewise
4824 (is_64bit): likewise
4825 (grub_freebsd_add_meta): use ALIGN_VAR
4826 (grub_e820_mmap): new declaration
4827 (grub_freebsd_add_mmap): new function
4828 (grub_freebsd_add_meta_module): support 64 bit kernels
4829 (grub_freebsd_list_modules): use ALIGN_VAR
4830 (gdt_descriptor): new declaration
4831 (grub_freebsd_boot): support 64 bit kernels
4832 (grub_bsd_elf64_hook): new function
4833 (grub_bsd_load_elf): support elf64
4835 2009-05-03 Bean <bean123ch@gmail.com>
4837 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
4838 after we get the result of if statement.
4840 2009-05-03 Bean <bean123ch@gmail.com>
4842 * Makefile.in (enable_efiemu): New variable.
4844 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
4846 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
4848 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
4849 path, add -mno-red-zone option.
4850 (efiemu64_s.o): Likewise.
4851 (efiemu64.o): Use macro $^ for source file.
4853 * configure.ac (--enable-efiemu): New option.
4855 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4859 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
4860 (pkglib_MODULES): add xnu.mod
4861 (xnu_mod_SOURCES): new variable
4862 (xnu_mod_CFLAGS): likewise
4863 (xnu_mod_LDFLAGS): likewise
4864 (xnu_mod_ASFLAGS): likewise
4865 * conf/i386-pc.rmk: likewise
4866 * conf/x86_64-efi.rmk: likewise
4867 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
4869 * include/grub/i386/macho.h: new file
4870 * include/grub/i386/xnu.h: likewise
4871 * include/grub/macho.h: likewise
4872 * include/grub/machoload.h: likewise
4873 * include/grub/x86_64/macho.h: likewise
4874 * include/grub/x86_64/xnu.h: likewise
4875 * include/grub/xnu.h: likewise
4876 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
4877 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
4878 * loader/i386/efi/xnu.c: new file
4879 * loader/i386/pc/xnu.c: likewise
4880 * loader/i386/xnu.c: likewise
4881 * loader/i386/xnu_helper.S: likewise
4882 * loader/macho.c: likewise
4883 * loader/xnu.c: likewise
4884 * loader/xnu_resume.c: likewise
4885 * util/grub-dumpdevtree: likewise
4886 * include/grub/i386/pit.h: include grub/err.h
4887 (grub_pit_wait): export
4888 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
4890 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4894 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
4895 _linux_efi, linux_efi.
4896 new files in grub-emu
4897 new targets efiemu32.o and efiemu64.o
4898 * loader/linux_normal_efiemu.c: likewise
4899 * loader/i386/efi/linux.c: added preliminary efiemu support
4900 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
4902 * include/grub/autoefi.h: new file
4903 * include/grub/i386/efiemu.h: likewise
4904 * include/grub/i386/pc/efiemu.h: likewise
4905 * include/grub/efi/api.h: add LL suffix when necessary
4906 new definitions relating to tables
4907 * include/grub/efiemu/efiemu.h: new file
4908 * include/grub/efiemu/runtime.h: likewise
4909 * efiemu/prepare.c: likewise
4910 * efiemu/loadcore_common.c: likewise
4911 * efiemu/loadcore64.c: likewise
4912 * efiemu/runtime/efiemu.sh: likewise
4913 * efiemu/runtime/efiemu.S: likewise
4914 * efiemu/runtime/efiemu.c: likewise
4915 * efiemu/runtime/config.h: likewise
4916 * efiemu/prepare32.c: likewise
4917 * efiemu/main.c: likewise
4918 * efiemu/modules/pnvram.c: likewise
4919 * efiemu/modules/i386: likewise
4920 * efiemu/modules/i386/pc: likewise
4921 * efiemu/modules/acpi.c: likewise
4922 * efiemu/i386/pc/cfgtables.c: likewise
4923 * efiemu/i386/loadcore64.c: likewise
4924 * efiemu/i386/loadcore32.c: likewise
4925 * efiemu/prepare64.c: likewise
4926 * efiemu/loadcore.c: likewise
4927 * efiemu/symbols.c: likewise
4928 * efiemu/mm.c: likewise
4929 * efiemu/loadcore32.c: likewise
4931 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4935 * commands/acpi.c: new file
4936 * commands/i386/pc/acpi.c: likewise
4937 * commands/efi/acpi.c: likewise
4938 * include/grub/acpi.h: likewise
4939 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
4940 (acpi_mod_SOURCES): new variable
4941 (acpi_mod_CFLAGS): likewise
4942 (acpi_mod_LDFLAGS): likewise
4943 * conf/i386-efi.rmk: likewise
4944 * conf/x86_64-efi.rmk: likewise
4946 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4948 Missing part from mmap patch
4950 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
4951 (grub_mmap_unregister)
4952 (grub_mmap_free_and_unregister): use grub_mmap_register
4954 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4958 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
4959 * loader/i386/linux.c (find_mmap_size): likewise
4960 (allocate_pages): likewise
4961 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
4962 (grub_fill_multiboot_mmap): likewise
4963 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
4964 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
4965 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
4966 (OPENBSD_MMAP_RESERVED): likewise
4967 * include/grub/i386/pc/memory.h: include grub/memory.h
4968 (grub_lower_mem): removed
4969 (grub_upper_mem): likewise
4970 (GRUB_MACHINE_MEMORY_ACPI): new definition
4971 (GRUB_MACHINE_MEMORY_NVS): likewise
4972 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
4973 (GRUB_MACHINE_MEMORY_HOLE): likewise
4974 (grub_machine_mmap_register): likewise
4975 (grub_machine_mmap_unregister): likewise
4976 (grub_machine_get_upper): likewise
4977 (grub_machine_get_lower): likewise
4978 (grub_machine_get_post64): likewise
4979 * include/grub/i386/efi/memory.h: new file
4980 * include/grub/x86_64/efi/memory.h: likewise
4981 * include/grub/efi/memory.h: likewise
4982 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
4983 (mmap_mod_SOURCES): new variable
4984 (mmap_mod_LDFLAGS): likewise
4985 (mmap_mod_ASFLAGS): likewise
4986 * conf/i386-coreboot.rmk: likewise
4987 * conf/i386-ieee1275.rmk: likewise
4988 * conf/i386-efi.rmk: likewise
4989 * conf/x86_64-efi.rmk: likewise
4990 * include/grub/types.h (UINT_TO_PTR): new macro
4991 (PTR_TO_UINT32): likewise
4992 (PTR_TO_UINT64): likewise
4993 * include/grub/memory.h: new file
4994 * mmap/i386/pc/mmap.c: likewise
4995 * mmap/i386/pc/mmap_helper.S: likewise
4996 * mmap/i386/uppermem.c: likewise
4997 * mmap/mmap.c: likewise
4998 * mmap/efi/mmap.c: likewise
4999 * kern/i386/coreboot/init.c (grub_machine_init): don't use
5001 * kern/i386/pc/init.c (grub_lower_mem): removed variable
5002 (grub_upper_mem): likewise
5003 (grub_machine_init): don't use grub_upper_mem,
5004 make grub_lower_mem local
5005 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
5006 grub_mmap_iterate and grub_mmap_get_upper
5007 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
5009 2009-05-02 Bean <bean123ch@gmail.com>
5011 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
5013 (pkglib_MODULES): Add normal.mod and sh.mod.
5014 (normal_SOURCES): New variable.
5015 (normal_mod_CFLAGS): Likewise.
5016 (normal_mod_LDFLAGS): Likewise.
5017 (sh_mod_SOURCES): Likewise.
5018 (sh_mod_CFLAGS): Likewise.
5019 (sh_mod_LDFLAGS): Likewise.
5021 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
5022 script/sh/lexer.c_DEPENDENCIES.
5023 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
5024 kern/rescue_reader.c and kern/rescue_parser.c.
5025 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
5026 (grub_emu_SOURCES): Change source files.
5027 (pkglib_MODULES): Remove normal.mod.
5028 (normal_SOURCES): Removed.
5029 (normal_mod_CFLAGS): Likewise.
5030 (normal_mod_LDFLAGS): Likewise.
5031 * conf/i386-coreboot.rmk: Likewise.
5032 * conf/i386-efi.rmk: Likewise.
5033 * conf/i386-ieee1276.rmk: Likewise.
5034 * conf/powerpc-ieee1275.rmk: Likewise.
5035 * conf/sparc64-ieee1275.rmk: Likewise.
5036 * conf/x86_64-efi.rmk: Likewise.
5038 * include/grub/command.h (grub_command_execute): New inline function.
5040 * include/grub/menu.h (grub_menu_entry): Removed commands field.
5042 * include/grub/normal.h: Remove <grub/setjmp.h>.
5043 (grub_fs_module_list): Moved to normal/autofs.c.
5044 (grub_exit_env): Removed.
5045 (grub_command_execute): Likewise.
5046 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
5048 (read_command_list): New function declaration.
5049 (read_fs_list): Likewise.
5051 * include/parser.h: Include <grub/reader.h>.
5052 (grub_parser_split_cmdline): Change type of getline parameter.
5053 (grub_parser): New structure.
5054 (grub_parser_class): New variable.
5055 (grub_parser_execute): New function declaration.
5056 (grub_register_rescue_parser): Likewise.
5057 (grub_parser_register): New inline function.
5058 (grub_parser_unregister): Likewise.
5059 (grub_parser_get_current): Likewise.
5060 (grub_parser_set_current): Likewise.
5062 * include/grub/reader.h: New file.
5063 * kern/reader.c: Likewise.
5064 * kern/rescue_parser.c: Likewise.
5065 * kern/rescue_reader.c: Likewise.
5066 * normal/autofs.c: Likewise.
5067 * normal/dyncmd.c: Likewise.
5069 * include/grub/rescue.h: Removed.
5070 * normal/command.h: Likewise.
5072 * include/grub/script.h: Moved to ...
5073 * include/grub/script_sh.h: ... Moved here.
5074 * normal/execute.c: Moved to ...
5075 * script/sh/execute.c: ... Moved here.
5076 * normal/function.c: Moved to ...
5077 * script/sh/function.c: ... Moved here.
5078 * normal/lexer.c: Moved to ...
5079 * script/sh/lexer.c: ... Moved here.
5080 * normal/parser.y: Moved to ...
5081 * script/sh/parser.y: ... Moved here.
5082 * normal/script.c: Moved to ...
5083 * script/sh/script.c: ... Moved here.
5085 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
5087 (grub_exit_env): Removed.
5088 (fs_module_list): Moved to normal/autofs.c.
5089 (grub_file_getline): Don't handle comment here.
5090 (free_menu): Skip removed field entry->commands.
5091 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
5093 (read_config_file): Removed nested parameter, change getline function.
5094 (grub_enter_normal_mode): Removed.
5095 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
5096 (read_command_list): Likewise.
5097 (autoload_fs_module): Moved to normal/autofs.c.
5098 (read_fs_list): Likewise.
5099 (reader_nested): New variable.
5100 (grub_normal_execute): Run parser.sh to switch to sh parser.
5101 (grub_cmd_rescue): Removed.
5102 (cmd_normal): Removed.
5103 (grub_cmd_normal): Unregister itself at the beginning. Don't register
5105 (grub_cmdline_run): New function.
5106 (grub_normal_reader_init): Likewise.
5107 (grub_normal_read_line): Likewise.
5108 (grub_env_write_pager): Likewise.
5109 (cmdline): New variable.
5110 (grub_normal_reader): Likewise.
5111 (GRUB_MOD_INIT): Register normal reader and set as current, register
5112 pager hook, register normal command with grub_register_command_prio,
5113 so that it won't show up in command.lst.
5114 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
5115 grub_fs_autoload_hook.
5117 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
5118 (grub_menu_execute_entry): Replace grub_script_execute with
5119 grub_parser_execute, change parameter to grub_command_execute.
5121 * normal/menu_text.c: Remove <grub/script.h>.
5123 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
5124 and <grub/parser.h>.
5125 (run): Change editor_getline to use new parser interface. Change
5126 parameter to grub_command_execute.
5128 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
5129 <grub/reader.h> and <grub/parser.h>.
5130 (grub_load_normal_mode): Execute normal command.
5131 (grub_main): Call grub_register_core_commands,
5132 grub_register_rescue_parser and grub_register_rescue_reader, use
5133 grub_reader_loop to enter input loop.
5135 * kern/parser.c (grub_parser_split_cmdline): Change type of
5137 (grub_parser_class): New variable.
5138 (grub_parser_execute): New function.
5140 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
5141 * loader/multiboot2.c: Likewise.
5142 * loader/sparc64/ieee1275/linux.c: Likewise.
5144 * util/grub-emu.c (read_command_list): New dummy function.
5146 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
5148 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
5149 count to 16 for CCISS and IDA.
5151 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
5153 * normal/menu_text.c (grub_wait_after_message): Print a newline
5154 after waiting for user input.
5156 * loader/i386/linux.c: Include `<grub/normal.h>'.
5157 (grub_cmd_linux): Improve the error message about `ask' mode, by
5158 waiting for user input so it's not missed (we can do this, since
5159 user requested interaction).
5161 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5163 Added missing lst to grub-mkrescue
5165 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
5166 and ${input_dir}/parttool.lst
5168 2009-04-30 David S. Miller <davem@davemloft.net>
5170 * util/hostdisk.c (device_is_wholedisk): New function.
5171 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
5172 zero only if device_is_wholedisk() returns true.
5174 * util/hostdisk.c (convert_system_partition_to_system_disk):
5175 Handle virtual disk devices named /dev/vdiskX as found on sparc
5178 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
5179 lettered partition specifier is found, convert to numbered.
5181 2009-04-29 David S. Miller <davem@davemloft.net>
5183 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
5184 * include/grub/sparc64/ieee1275/memory.h: Likewise.
5186 * normal/command.c: Add missing newline at end of file.
5188 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
5190 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
5191 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
5192 grub_ofdisk_read): Likewise, and deal similarly with the fact that
5193 ihandles have a 32-bit type but need to be stored in a "void *".
5195 2009-04-28 Pavel Roskin <proski@gnu.org>
5197 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
5198 not disk. Adjust all dependencies.
5199 (grub_fs_uuid_close): Use grub_device_close(), not
5202 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
5203 parent's partition, don't copy it by reference, as it gets freed
5206 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5208 Preboot hooks support
5210 * commands/boot.c (struct grub_preboot_t): new declaration
5211 (preboots_head): new variable
5212 (preboots_tail): likewise
5213 (grub_loader_register_preboot_hook): new function
5214 (grub_loader_unregister_preboot_hook): likewise
5215 (grub_loader_set): launch preboot hooks
5216 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
5217 (grub_loader_register_preboot_hook): new declaration
5218 (grub_loader_unregister_preboot_hook): likewise
5220 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5224 * disk/scsi.c (grub_scsi_open): added missing cast when
5225 calling grub_dprintf
5227 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5229 Bug and warning fixes
5231 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
5233 * commands/test.c (test_parse): fixed bug with file tests and corrected
5234 declaration of find_file
5236 2009-04-26 Pavel Roskin <proski@gnu.org>
5238 * Makefile.in: Don't install empty manual pages if help2man is
5239 missing. Use help2man option for output, not shell redirection.
5241 2009-04-26 David S. Miller <davem@davemloft.net>
5243 * util/grub-mkdevicemap.c (make_device_map): Add missing
5244 NESTED_FUNC_ATTR to process_device().
5246 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5250 * commands/test.c: rewritten to use bash-like test
5252 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5254 Parttool autoloading and improvements
5256 * Makefile.in (pkglib_DATA): add parttool.lst
5257 (parttool.lst): new target
5258 * genmk.rb: generate parttool-*
5259 (CLEANFILES): add #{parttool}
5260 (PARTTOOLFILES): new variable
5261 * genparttoollist.sh: new file
5262 * parttool/pcpart.c (grub_pcpart_boot): more feedback
5263 (grub_pcpart_type): likewise
5264 * commands/parttool.c (helpmsg): new variable
5265 (grub_cmd_parttool): output help if not enough arguments are supplied
5267 (GRUB_MOD_INIT(parttool)): use helpmsg
5269 2009-04-24 David S. Miller <davem@davemloft.net>
5271 Avoiding opening same device multiple times in device iterator.
5273 * kern/device.c: (grub_device_iterate): Define struct part_ent,
5274 and use it to build a list of partitions in iterate_disk() and
5275 iterate_partition().
5277 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
5280 * disk/ieee1275/nand.c (grub_nand_iterate): Return
5281 grub_devalias_iterate() result instead of unconditional 0.
5282 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
5283 Also, capture hook return value, either directly or via
5284 grub_children_iterate(), and propagate to caller.
5285 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
5286 grub_children_iterate): Return value is now 'int' instead of
5288 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
5289 like a proper iterator, stopping when hooks return non-zero.
5290 (grub_devalias_iterate): Likewise.
5292 2009-04-23 David S. Miller <davem@davemloft.net>
5294 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
5296 2009-04-22 David S. Miller <davem@davemloft.net>
5298 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
5299 is larger than address_cells, use that value for address_cells too.
5301 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
5302 IEEE1275_MAX_PATH_LEN): Define.
5303 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
5304 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
5305 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
5306 'devtype'. Explicitly NULL terminate devalias expansion.
5308 * util/sparc64/ieee1275/misc.c: New file.
5309 * util/sparc64/ieee1275/grub-setup.c: New file.
5310 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
5311 * util/sparc64/ieee1275/grub-mkimage.c: New file.
5312 * util/sparc64/ieee1275/grub-install.in: New file.
5313 * util/ieee1275/ofpath.c: New file.
5314 * util/ieee1275/devicemap.c: New file.
5315 * util/devicemap.c: New file.
5316 * util/deviceiter.c: New file.
5317 * kern/sparc64/ieee1275/init.c: New file.
5318 * include/grub/util/ofpath.h: New file.
5319 * include/grub/util/deviceiter.h: New file.
5320 * util/grub-mkdevicemap.c: Include deviceiter.h.
5321 Implement using grub_util_emit_devicemap_entry and
5322 grub_util_iterate_devices.
5323 * conf/i386-corebook.rmk: Build util/deviceiter.c and
5324 util/devicemap.c into grub-mkdevicemap
5325 * conf/i386-efi.rmk: Likewise.
5326 * conf/i386-ieee1275.rmk: Likewise.
5327 * conf/i386-pc.rmk: Likewise.
5328 * conf/powerpc-ieee1275.rmk: Likewise.
5329 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
5330 images and installation utilities. Build kernel as image
5331 instead of as elf binary. Use common rules as much as possible.
5333 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5335 Correct GPT definition
5337 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
5340 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
5342 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
5344 2009-04-19 David S. Miller <davem@davemloft.net>
5346 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
5347 (grub_rescue_cmd_linux): Rename to...
5348 (grub_cmd_linux): and fix prototype.
5349 (grub_rescue_cmd_initrd): Rename to...
5350 (grub_cmd_initrd): and fix prototype.
5351 (cmd_linux, cmd_initrd): New.
5352 (GRUB_MOD_INIT(linux)): Use grub_register_command().
5353 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
5355 2009-04-17 Pavel Roskin <proski@gnu.org>
5357 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
5359 (grub_ohci_transfer): Likewise.
5361 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
5363 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
5364 return without a value. Fix inconsistent indentation.
5366 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
5367 match struct grub_fs.
5369 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
5370 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
5371 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
5372 * commands/lspci.c (grub_lspci_iter): Likewise.
5374 2009-04-16 Bean <bean123ch@gmail.com>
5376 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
5379 2009-04-15 Pavel Roskin <proski@gnu.org>
5381 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
5382 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
5383 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
5386 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
5388 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
5389 that no multiple data or metadata areas are supported and `Unknown
5392 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5394 Move loader out of the kernel
5396 * kern/loader.c: moved to ...
5397 * commands/boot.c: ... moved here
5398 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
5399 * commands/boot.c (grub_cmd_boot): moved here. All users updated
5400 * include/grub/kernel.h (grub_machine_fini): export
5401 * include/grub/loader.h (grub_loader_is_loaded): update declaration
5402 (grub_loader_set): likewise
5403 (grub_loader_unset): likewise
5404 (grub_loader_boot): likewise
5405 * conf/common.rmk: new module boot.mod
5406 (pkglib_MODULES): add boot.mod
5407 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
5408 (grub_emu_SOURCES): likewise
5409 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
5410 (grub_emu_SOURCES): likewise
5411 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
5412 (grub_emu_SOURCES): likewise
5413 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
5414 (grub_emu_SOURCES): likewise
5415 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
5416 (grub_emu_SOURCES): likewise
5417 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
5418 (grub_emu_SOURCES): likewise
5419 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
5420 (grub_emu_SOURCES): likewise
5422 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5424 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
5426 * kern/misc.c (grub_itoa): Removed function
5427 (grub_ltoa): likewise
5428 (grub_vsprintf): use grub_lltoa
5430 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5434 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
5435 * conf/i386-coreboot.rmk: likewise
5436 * conf/i386-ieee1275.rmk: likewise
5437 * conf/powerpc-ieee1275.rmk: likewise
5439 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
5441 * INSTALL: Add that `./autogen.sh' needs to be run before
5444 2009-04-14 Bean <bean123ch@gmail.com>
5446 * Makefile.in (pkglib_DATA): Add handler.lst.
5447 (handler.lst): New rule.
5449 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
5450 * conf/i386-coreboot.rmk: Likewise.
5451 * conf/i386-ieee1275.rmk: Likewise.
5452 * conf/i386-efi.rmk: Likewise.
5453 * conf/x86_64-efi.rmk: Likewise.
5454 * conf/powerpc-ieee1275.rmk: Likewise.
5455 * conf/sparc64-ieee1275.rmk: Likewise.
5457 * genhandlerlist.sh: New file.
5459 * genmk.rb: Add rules to generate handler.lst.
5461 * include/grub/normal.h (grub_file_getline): New function definition.
5462 (read_handler_list): Likewise.
5463 (free_handler_list): Likewise.
5465 * include/grub/term.h (grub_term_register_input): Add name parameter
5466 for auto generation of handler.lst.
5467 (grub_term_register_output): Likewise.
5469 * normal/handler.c: New file.
5471 * normal/main.c (get_line): Renamed to grub_file_getline.
5472 (read_config_file): Use the newly renamed grub_file_getline.
5473 (read_command_list): Likewise.
5474 (read_fs_list): Likewise.
5475 (grub_normal_execute): Call read_handler_list to parse handler.lst.
5476 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
5478 * term/efi/console.c (grub_console_init): Add name parameter for auto
5479 generation of handler.lst.
5480 * term/gfxterm.c: Likewise.
5481 * term/i386/pc/at_keyboard.c: Likewise.
5482 * term/i386/pc/console.c: Likewise.
5483 * term/i386/pc/serial.c: Likewise.
5484 * term/i386/pc/vesafb.c: Likewise.
5485 * term/i386/pc/vga.c: Likewise.
5486 * term/i386/pc/vga_text.c: Likewise.
5487 * term/ieee1275/ofconsole.c: Likewise.
5488 * term/usb_keyboard.c: Likewise.
5490 2009-04-14 Bean <bean123ch@gmail.com>
5492 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
5493 properly with null character.
5495 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
5497 * configure: Remove.
5498 * config.h.in: Likewise.
5499 * stamp-h.in: Likewise.
5500 * DISTLIST: Likewise.
5501 * conf/common.mk: Likewise.
5502 * conf/i386-coreboot.mk: Likewise.
5503 * conf/i386-efi.mk: Likewise.
5504 * conf/i386-ieee1275.mk: Likewise.
5505 * conf/i386.mk: Likewise.
5506 * conf/i386-pc.mk: Likewise.
5507 * conf/powerpc-ieee1275.mk: Likewise.
5508 * conf/sparc64-ieee1275.mk: Likewise.
5509 * conf/x86_64-efi.mk: Likewise.
5511 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
5514 2009-04-14 John Stanley <jpsinthemix@verizon.net>
5515 David S. Miller <davem@davemloft.net>
5517 * util/hostdisk.c (make_device_name): Fix buffer length
5520 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
5522 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
5523 <sys/param.h> and <sys/sysctl.h>.
5524 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
5525 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
5526 opening the device and reset them afterwards.
5528 2009-04-13 Pavel Roskin <proski@gnu.org>
5530 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
5531 Reported by John Stanley <jpsinthemix@verizon.net>
5533 2009-04-13 Robert Millan <rmh@aybabtu.com>
5535 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
5536 that name for menuentries when appropriate.
5538 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
5540 * util/grub.d/10_freebsd.in: Add a missing `fi'.
5542 2009-04-13 Robert Millan <rmh@aybabtu.com>
5544 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
5545 to Linux, simply abort telling the user it's no longer supported.
5547 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
5549 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
5550 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
5551 `freebsd_loadenv' only when devices.hints exist.
5553 2009-04-13 Pavel Roskin <proski@gnu.org>
5555 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
5557 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
5559 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
5561 (grub_drive): Likewise.
5563 2009-04-13 David S. Miller <davem@davemloft.net>
5565 * kern/sparc64/ieee1275/ieee1275.c: New file.
5566 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
5567 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
5568 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
5569 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
5570 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
5571 grub_ieee1275_alloc_physmem): Declare new exported functions.
5573 * include/grub/sparc64/ieee1275/loader.h: New file.
5574 * include/grub/sparc64/ieee1275/memory.h: Likewise.
5575 * include/grub/sparc64/kernel.h: Likewise.
5576 * loader/sparc64/ieee1275/linux.c: Likewise.
5578 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
5579 (grub_fstest_SOURCES): Likewise.
5581 * util/hostdisk.c (make_device_name): Do not make any assumptions
5582 about the length of drive names.
5584 * kern/dl.c (grub_dl_load_file): Close file immediately when
5585 we are done using it.
5587 2009-04-12 David S. Miller <davem@davemloft.net>
5589 * kern/misc.c (grub_ltoa): Fix cast when handling negative
5590 values. Noticed by Pavel Roskin.
5592 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
5595 * genmk.rb: Add more flexible image type specification, also
5596 pass --strip-unneeded to objcopy.
5597 * conf/i386-pc.rmk: Use *_FORMAT.
5598 * conf/i386-pc.mk: Rebuilt.
5600 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
5601 (OFDISK_HASH_SZ): Define.
5602 (ofdisk_hash): New hash table.
5603 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
5604 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
5605 instead of device phandle which is not unique.
5607 * kern/sparc64/ieee1275/init.c: Delete, replace with...
5608 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
5609 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
5610 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
5611 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
5612 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
5613 GRUB_KERNEL_MACHINE_DATA_END): Define.
5614 (grub_kernel_image_size, grub_total_module_size): Declare.
5616 2009-04-12 Pavel Roskin <proski@gnu.org>
5618 * configure.ac: Change the logic when we check for target tools.
5619 Do it when the target is specified and it's different from the
5620 specified value of the host.
5622 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
5624 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
5625 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
5626 GNU/kFreeBSD. Check if a device is a character device. Use
5627 DIOCGMEDIASIZE to get the size.
5628 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
5629 support for GNU/kFreeBSD.
5630 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
5631 is a character device instead of a block device. Add support for
5632 FreeBSD device names.
5634 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
5635 is a character device instead of a block device.
5637 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
5638 is a character device instead of a block device.
5640 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
5642 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
5643 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
5644 FreeBSD. Check if a device is a character device. Use
5645 DIOCGMEDIASIZE to get the size.
5646 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
5647 support for FreeBSD.
5648 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
5649 is a character device instead of a block device. Add support for
5650 FreeBSD device names.
5652 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
5653 a character device instead of a block device.
5654 (grub_util_check_char_device): New function.
5656 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
5657 a character device instead of a block device.
5659 * include/grub/util/getroot.h (grub_util_check_char_device): New
5662 2009-04-11 David S. Miller <davem@davemloft.net>
5664 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
5666 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
5667 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
5668 function, if present.
5669 (__bswapdi2): Likewise.
5671 * include/grub/sparc64/ieee1275/boot.h: New file.
5672 * boot/sparc64/ieee1275/boot.S: Likewise.
5673 * boot/sparc64/ieee1275/diskboot.S: Likewise.
5675 * kern/misc.c (grub_ltoa): New function.
5676 (grub_vsprintf): Use it to format 'long' integers.
5678 2009-04-10 David S. Miller <davem@davemloft.net>
5680 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
5681 slots are of type grub_ieee1275_cell_t.
5682 (grub_nand_read): Likewise.
5683 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
5684 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
5685 macros are used to compare values in arg/ret block of the call.
5686 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
5687 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
5688 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
5689 grub_ieee1275_instance_to_path, grub_ieee1275_write,
5690 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
5691 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
5692 grub_ieee1275_close, grub_ieee1275_set_property,
5693 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
5694 grub_ieee1275_cell_t.
5695 * kern/ieee1275/openfw.c (grub_map): Likewise.
5696 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
5697 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
5699 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
5700 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
5701 (grub_devalias_iterate): Likewise.
5703 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5707 * fs/ufs.c (INODE_NBLOCKS): new definition
5708 (struct grub_ufs_dirent): added fields for non-BSD dirents
5709 (grub_ufs_get_file_block): fixed double indirect handling
5710 (grub_ufs_lookup_symlink): use more robust way to determine whether
5712 (grub_ufs_find_file): support for non-BSD dirents
5713 (grub_ufs_dir): support for non-BSD dirents
5715 2009-04-10 Bean <bean123ch@gnail.com>
5717 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
5718 attribute, otherwise the size would be wrong for i386 platform.
5720 * include/grub/pci.h (grub_pci_read_word): New inline function.
5721 (grub_pci_read_byte): Likewise.
5722 (grub_pci_write): Likewise.
5723 (grub_pci_write_word): Likewise.
5724 (grub_pci_write_byte): Likewise.
5726 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
5728 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
5729 (find_framebuf): Scan pci to locate the frame buffer address.
5731 * commands/efi/fixvideo.c: New file.
5733 * commands/efi/loadbios.c: Likewise.
5735 * commands/memrw.c: Likewise.
5737 * util/grub-dumpbios.in: Likewise.
5739 * conf/common.rmk (grub-dumpbios): New utility.
5740 (pkglib_MODULES): New module memrw.mod.
5741 (memrw_mod_SOURCE): New macro.
5742 (memrw_mod_CFLAGS): Likewise.
5743 (memrw_mod_LDFLAGS): Likewise.
5745 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
5747 (loadbios_mod_SOURCE): New macro.
5748 (loadbios_mod_CFLAGS): Likewise.
5749 (loadbios_mod_LDFLAGS): Likewise.
5750 (fixvideo_mod_SOURCE): Likewise.
5751 (fixvideo_mod_CFLAGS): Likewise.
5752 (fixvideo_mod_LDFLAGS): Likewise.
5754 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
5756 (loadbios_mod_SOURCE): New macro.
5757 (loadbios_mod_CFLAGS): Likewise.
5758 (loadbios_mod_LDFLAGS): Likewise.
5759 (fixvideo_mod_SOURCE): Likewise.
5760 (fixvideo_mod_CFLAGS): Likewise.
5761 (fixvideo_mod_LDFLAGS): Likewise.
5763 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
5765 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
5767 2009-04-07 David S. Miller <davem@davemloft.net>
5769 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
5770 support for R_SPARC_OLO10 relocations. Fix compile warning for
5771 R_SPARC_WDISP30 case.
5772 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
5774 2009-04-06 Pavel Roskin <proski@gnu.org>
5776 * include/grub/misc.h (ARRAY_SIZE): New macro.
5777 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
5779 * loader/i386/linux.c (allocate_pages): Use free_pages().
5780 (grub_linux_unload): Don't use free_pages().
5781 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
5782 wrong index. Treat all other modes as text modes.
5783 (grub_cmd_linux): Initialize vid_mode unconditionally to
5784 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
5786 * commands/help.c (print_command_help): Use cmd->prio, not
5787 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
5789 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5793 * parttool/pcpart.c: new file
5794 * commands/parttool.c: likewise
5795 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
5796 (parttool_mod_SOURCES): new variable
5797 (parttool_mod_CFLAGS): likewise
5798 (parttool_mod_LDFLAGS): likewise
5799 (pcpart_mod_SOURCES): likewise
5800 (pcpart_mod_CFLAGS): likewise
5801 (pcpart_mod_LDFLAGS): likewise
5802 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
5803 and parttool/pcpart.c
5804 * conf/i386-efi.rmk: likewise
5805 * conf/i386-ieee1275.rmk: likewise
5806 * conf/i386-pc.rmk: likewise
5807 * conf/powerpc-ieee1275.rmk: likewise
5808 * conf/sparc64-ieee1275.rmk: likewise
5809 * conf/x86_64-ieee1275.rmk: likewise
5811 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5813 Support for mtime and further expandability of dir command
5815 * include/grub/lib/datetime.h: moved to ...
5816 * include/grub/datetime.h: ... moved here and added
5817 declaration of grub_unixtime2datetime. All users updated
5818 * include/grub/fs.h: new syntax for dir and mtime functions in
5820 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
5821 and GRUB_FSHELP_FLAGS_MASK
5822 * commands/ls.c (grub_ls_list_files): Write mtime in long format
5823 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
5824 (grub_ext2_mtime): new function
5825 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
5826 (grub_hfsplus_mtime): new function
5827 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
5828 (GRUB_UFS_ATTR_FILE): likewise
5829 (GRUB_UFS_ATTR_LNK): likewise
5830 (struct grub_ufs_sblock): new fields mtime
5831 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
5833 (grub_ufs_dir): mtime support
5834 (grub_ufs_mtime): new function
5835 * fs/affs.c (grub_affs_dir): use new dir syntax
5836 * fs/afs.c (grub_afs_dir): likewise
5837 * fs/cpio.c (grub_cpio_dir): likewise
5838 * fs/fat.c (grub_fat_find_dir): likewise
5839 * fs/hfs.c (grub_hfs_dir): likewise
5840 * fs/iso9660.c (grub_iso9660_dir): likewise
5841 * fs/jfs.c (grub_jfs_dir): likewise
5842 * fs/minix.c (grub_minix_dir): likewise
5843 * fs/ntfs.c (grub_ntfs_dir): likewise
5844 * fs/reiserfs.c (grub_reiserfs_dir): likewise
5845 * fs/sfs.c (grub_sfs_dir): likewise
5846 * fs/xfs.c (grub_xfs_dir): likewise
5847 * util/hostfs.c (grub_hostfs_dir): likewise
5848 * lib/datetime.c: moved to ...
5849 * normal/datetime.c: ... moved here
5850 (grub_unixtime2datetime): new function
5851 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
5852 * normal/completion.c (iterate_dir): use new dir syntax
5853 * normal/misc.c (grub_normal_print_device_info): tell the
5854 last modification time of a volume
5855 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
5856 * conf/common.rmk: added lib/datetime.c to ls.mod
5857 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
5858 (normal_mod_SOURCES): likewise
5859 (datetime_mod_SOURCES): Removed lib/datetime.c
5860 * conf/i386-efi.rmk: likewise
5861 * conf/i386-ieee1275.rmk: likewise
5862 * conf/i386-pc.rmk: likewise
5863 * conf/powerpc-ieee1275.rmk: likewise
5864 * conf/sparc64-ieee1275.rmk: likewise
5865 * conf/x86_64-efi.rmk: likewise
5867 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5869 Trim trailing spaces in FAT label and support mtools-like labels
5871 * fs/fat.c (grub_fat_iterate_dir): New function based
5872 on grub_fat_find_dir
5873 (grub_fat_find_dir): use grub_fat_iterate_dir
5874 (grub_fat_label): likewise
5876 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5878 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
5880 remove extraneous kernel_elf_HEADERS
5882 2009-04-04 Bean <bean123ch@gnail.com>
5884 * include/grub/util/misc.h: Add dummy function fsync for mingw.
5886 * util/misc.c: Likewise.
5888 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
5890 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
5891 instead of grub_printf.
5893 2009-04-03 Robert Millan <rmh@aybabtu.com>
5895 * loader/i386/linux.c (grub_linux_setup_video): Fill
5896 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
5897 values from `mode info' structure instead of hardcoded
5900 2009-04-01 Pavel Roskin <proski@gnu.org>
5902 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
5904 * genmk.rb: Likewise.
5905 * configure.ac: Likewise.
5907 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
5909 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
5910 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
5912 2009-04-01 David S. Miller <davem@davemloft.net>
5914 * normal/sparc64/setjmp.S: Fix setjmp implementation.
5915 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5916 (grub_setjmp): Mark with 'returns_twice' attribute.
5917 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
5918 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
5919 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
5921 2009-04-01 Robert Millan <rmh@aybabtu.com>
5923 Reapply fix from 2008-07-28 which was accidentally reverted; also
5924 perform the same fix to a similar check in same function.
5926 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
5927 with the same number are found, just use issue a warning with
5928 grub_dprintf(), as this error has been reported to be non-fatal.
5930 2009-03-31 Pavel Roskin <proski@gnu.org>
5932 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
5933 for cross-compilation.
5935 2009-03-30 Robert Millan <rmh@aybabtu.com>
5937 Fix i386-ieee1275 build.
5939 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
5942 2009-03-30 Pavel Roskin <proski@gnu.org>
5944 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
5945 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
5946 zero-terminated, rely only on the strlen value. Fix comparison
5947 of strings differing in length.
5949 2009-03-30 Robert Millan <rmh@aybabtu.com>
5951 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
5952 checking for abi version. Improve error messages on BIOS to notify
5953 user about `linux16' command.
5955 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5959 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
5960 in case of collision
5961 * disk/scsi.c (grub_scsi_open): free scsi in case of error
5963 2009-03-29 Robert Millan <rmh@aybabtu.com>
5965 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
5966 set `vid_mode' accordingly.
5967 (grub_linux_boot): Process `vid_mode' and set video mode.
5969 2009-03-29 Robert Millan <rmh@aybabtu.com>
5971 * util/grub.d/10_linux.in (linux_entry): New function.
5972 Factorize generation of Linux boot entries.
5974 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
5976 Make the format of Environment Block plain text. The boot loader
5977 part is not tested well yet.
5979 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
5982 (usage): Remove "info" and "clear". Add "unset". Update the
5983 description of "set", as this does not delete variables any
5985 (create_envblk_file): Complete rewrite.
5986 (open_envblk_file): Likewise.
5987 (cmd_info): Removed.
5988 (cmd_list): Likewise.
5989 (cmd_set): Likewise.
5990 (cmd_clear): Likewise.
5991 (list_variables): New function.
5992 (write_envblk): Likewise.
5993 (set_variables): Likewise.
5994 (unset_variables): Likewise.
5995 (main): Complete rewrite.
5997 * commands/loadenv.c (buffer): Removed.
5999 (open_envblk_file): New function.
6000 (read_envblk_file): Complete rewrite.
6001 (grub_cmd_load_env): Likewise.
6002 (grub_cmd_list_env): Likewise.
6003 (struct blocklist): New struct.
6004 (free_blocklists): New function.
6005 (check_blocklists): Likewise.
6006 (write_blocklists): Likewise.
6007 (grub_cmd_save_env): Complete rewrite.
6009 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
6010 a plain text signature.
6011 (GRUB_ENVBLK_MAXLEN): Removed.
6012 (struct grub_envblk): Complete rewrite.
6013 (grub_envblk_find): Removed.
6014 (grub_envblk_insert): Likewise.
6015 (grub_envblk_open): New prototype.
6016 (grub_envblk_set): Likewise.
6017 (grub_envblk_delete): Put const to VALUE.
6018 (grub_envblk_iterate): Put const to NAME and VALUE.
6019 (grub_envblk_close): New prototype.
6020 (grub_envblk_buffer): New inline function.
6021 (grub_envblk_size): Likewise.
6023 * lib/envblk.c: Include grub/mm.h.
6024 (grub_env_find): Removed.
6025 (grub_envblk_open): New function.
6026 (grub_envblk_close): Likewise.
6027 (escaped_value_len): Likewise.
6028 (find_next_line): Likewise.
6029 (grub_envblk_insert): Removed.
6030 (grub_envblk_set): New function.
6031 (grub_envblk_delete): Complete rewrite.
6032 (grub_envblk_iterate): Likewise.
6034 2009-03-28 Robert Millan <rmh@aybabtu.com>
6036 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
6037 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
6038 variables. Use 16-bit loader.
6039 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
6041 * kern/i386/loader.S (grub_linux_boot): Rename to ...
6042 (grub_linux16_boot): ... this. Update all users.
6043 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
6044 (grub_linux_boot): ... this. Update all users.
6046 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
6047 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
6048 commands to `linux16' and `initrd16'.
6049 (GRUB_MOD_FINI(linux)): Rename to ...
6050 (GRUB_MOD_FINI(linux16)): ... this.
6052 2009-03-24 Pavel Roskin <proski@gnu.org>
6054 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
6055 not just for compilation.
6057 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6059 Move multiboot helper out of kernel
6061 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
6062 `loader/i386/multiboot_helper.S'.
6063 * conf/i386-coreboot.rmk: Likewise
6064 * conf/i386-ieee1275.rmk: Likewise
6066 * kern/i386/loader.S: Move multiboot helpers from here...
6067 * loader/i386/multiboot_helper.S: ...moved here
6068 * include/grub/i386/loader.h: Move declarations of multiboot
6069 helpers from here...
6070 * include/grub/i386/multiboot.h: ...moved here
6071 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
6073 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
6075 * kern/env.c (grub_env_context_open): Added an argument to specify
6076 whether a new context inherits exported variables from current
6077 one. This is useful when making a sandbox to interpret a config
6079 All callers updated.
6081 * include/grub/env.h (grub_env_context_open): Updated the prototype.
6083 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
6085 * kern/env.c (grub_env_context_close): Fix memory leaks.
6087 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
6089 * normal/main.c (grub_normal_execute): Added an argument
6090 BATCH to specify if an interactive interface should be provided
6091 after reading a config file.
6092 All callers updated.
6093 (read_command_list): Prevent being executed twice.
6094 (read_fs_list): Likewise.
6096 * include/grub/normal.h (grub_normal_execute): Updated the
6099 2009-03-22 Pavel Roskin <proski@gno.org>
6101 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
6103 * kern/i386/pc/startup.S: Likewise.
6104 * kern/i386/efi/startup.S: Likewise.
6105 * kern/i386/ieee1275/startup.S: Likewise.
6106 * kern/i386/coreboot/startup.S: Likewise.
6107 * kern/x86_64/efi/startup.S: Likewise.
6109 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
6110 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
6111 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
6113 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
6115 Bugfixes in multiboot for bugs uncovered by solaris kernel.
6117 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
6119 Use vaddr of correct segment for entry_point.
6121 2009-03-21 Bean <bean123ch@gmail.com>
6123 * commands/blocklist.c: Add include file <grub/command.h>, remove
6124 <grub/normal.h> and <grub/arg.h>.
6125 (grub_cmd_blocklist): Use the new command interface.
6126 (GRUB_MOD_INIT): Likewise.
6127 (GRUB_MOD_FINI): Likewise.
6128 * commands/boot.c: Likewise.
6129 * commands/cat.c: Likewise.
6130 * commands/cmp.c: Likewise.
6131 * commands/configfile.c: Likewise.
6132 * commands/crc.c: Likewise.
6133 * commands/echo.c: Likewise.
6134 * commands/halt.c: Likewise.
6135 * commands/handler.c: Likewise.
6136 * commands/hdparm.c: Likewise.
6137 * commands/help.c: Likewise.
6138 * commands/hexdump.c: Likewise.
6139 * commands/loadenv.c: Likewise.
6140 * commands/ls.c: Likewise.
6141 * commands/lsmmap.c: Likewise.
6142 * commands/lspci.c: Likewise.
6143 * commands/loadenv.c: Likewise.
6144 * commands/read.c: Likewise.
6145 * commands/reboot.c: Likewise.
6146 * commands/search.c: Likewise.
6147 * commands/sleep.c: Likewise.
6148 * commands/test.c: Likewise.
6149 * commands/usbtest.c: Likewise.
6150 * commands/videotest.c: Likewise.
6151 * commands/i386/cpuid.c: Likewise.
6152 * commands/i386/pc/halt.c: Likewise.
6153 * commands/i386/pc/play.c: Likewise.
6154 * commands/i386/pc/pxecmd.c: Likewise.
6155 * commands/i386/pc/vbeinfo.c: Likewise.
6156 * commands/i386/pc/vbetest.c: Likewise.
6157 * commands/ieee1275/suspend.c: Likewise.
6158 * disk/loopback.c: Likewise.
6159 * font/font_cmd.c: Likewise.
6160 * hello/hello.c: Likewise.
6161 * loader/efi/appleloader.c: Likewise.
6162 * loader/efi/chainloader.c: Likewise.
6163 * loader/i386/bsd.c: Likewise.
6164 * loader/i386/efi/linux.c: Likewise.
6165 * loader/i386/ieee1275/linux.c: Likewise.
6166 * loader/i386/linux.c: Likewise.
6167 * loader/i386/pc/chainloader.c: Likewise.
6168 * loader/i386/pc/linux.c: Likewise.
6169 * loader/powerpc/ieee1275/linux.c: Likewise.
6170 * loader/multiboot_loader.c: Likewise.
6171 * term/gfxterm.c: Likewise.
6172 * term/i386/pc/serial.c: Likewise.
6173 * term/terminfo.c: Likewise.
6175 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
6176 * term/i386/pc/vga.c: Likewise.
6177 * video/readers/jpeg.c: Likewise.
6178 * video/readers/png.c: Likewise.
6179 * video/readers/tga.c: Likewise.
6181 * util/grub-fstest (cmd_loopback): Removed.
6182 (cmd_blocklist): Likewise.
6184 (grub_register_command): Likewise.
6185 (grub_unregister_command): Likewise.
6186 (execute_command): Use grub_command_find to locate command and execute
6189 * include/grub/efi/chainloader.h: Removed.
6190 * loader/efi/chainloader_normal.c: Likewise.
6191 * loader/i386/bsd_normal.c: Likewise.
6192 * loader/i386/pc/chainloader_normal.c: Likewise.
6193 * loader/i386/pc/multiboot_normal.c: Likewise.
6194 * loader/linux_normal.c: Likewise.
6195 * loader/multiboot_loader_normal.c: Likewise.
6196 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
6198 * gencmdlist.sh: Scan new registration command grub_register_extcmd
6199 and grub_register_command_p1.
6201 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
6202 kern/command.c, lib/arg.c and commands/extcmd.c.
6203 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
6204 (minicmd_mod_SOURCES): New variable.
6205 (minicmd_mod_CFLAGS): Likewise.
6206 (minicmd_mod_LDFLAGS): Likewise.
6207 (extcmd_mod_SOURCES): Likewise.
6208 (extcmd_mod_CFLAGS): Likewise.
6209 (extcmd_mod_LDFLAGS): Likewise.
6210 (boot_mod_SOURCES): Removed.
6211 (boot_mod_CFLAGS): Likewise.
6212 (boot_mod_LDFLAGS): Likewise.
6214 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
6216 (kernel_img_HEADERS): Add command.h.
6217 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
6218 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
6220 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
6221 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
6222 remove the corresponding normal mode command.
6223 (normal_mod_SOURCES): Remove normal/arg.c.
6224 * conf/i386-coreboot.rmk: Likewise.
6225 * conf/i386-efi.rmk: Likewise.
6226 * conf/i386-ieee1275.rmk: Likewise.
6227 * conf/powerpc-ieee1275.rmk: Likewise.
6228 * conf/x86_64-efi.rmk: Likewise.
6230 * include/grub/arg.h: Move from here ...
6231 * include/grub/lib/arg.h: ... to here.
6233 * normal/arg.c: Move from here ...
6234 * lib/arg.c: ... to here.
6236 * commands/extcmd.c: New file.
6237 * commands/minicmd.c: Likewise.
6238 * include/grub/command.h: Likewise.
6239 * include/grub/extcmd.h: Likewise.
6240 * kern/command.c: Likewise.
6241 * kern/corecmd.c: Likewise.
6243 * kern/list.c (grub_list_iterate): Return int instead of void.
6244 (grub_list_insert): New function.
6245 (grub_prio_list_insert): Likewise.
6247 * kern/rescue.c (grub_rescue_command): Removed.
6248 (grub_rescue_command_list): Likewise.
6249 (grub_rescue_register_command): Likewise.
6250 (grub_rescue_unregister_command): Likewise.
6251 (grub_rescue_cmd_boot): Move to minicmd.c
6252 (grub_rescue_cmd_help): Likewise.
6253 (grub_rescue_cmd_info): Likewise.
6254 (grub_rescue_cmd_boot): Likewise.
6255 (grub_rescue_cmd_testload): Likewise.
6256 (grub_rescue_cmd_dump): Likewise.
6257 (grub_rescue_cmd_rmmod): Likewise.
6258 (grub_rescue_cmd_lsmod): Likewise.
6259 (grub_rescue_cmd_exit): Likewise.
6260 (grub_rescue_print_devices): Moved to corecmd.c.
6261 (grub_rescue_print_files): Likewise.
6262 (grub_rescue_cmd_ls): Likewise.
6263 (grub_rescue_cmd_insmod): Likewise.
6264 (grub_rescue_cmd_set): Likewise.
6265 (grub_rescue_cmd_unset): Likewise.
6266 (attempt_normal_mode): Use grub_command_find to get normal module.
6267 (grub_enter_rescue_mode): Use grub_register_core_commands to register
6268 commands, remove grub_rescue_register_command calls.
6270 * normal/command.c (grub_register_command): Removed.
6271 (grub_unregister_command): Likewise.
6272 (grub_command_find): Likewise.
6273 (grub_iterate_commands): Likewise.
6274 (rescue_command): Likewise.
6275 (export_command): Moved to corecmd.c.
6276 (set_command): Removed.
6277 (unset_command): Likewise.
6278 (insmod_command): Likewise.
6279 (rmmod_command): Likewise.
6280 (lsmod_command): Likewise.
6281 (grub_command_init): Likewise.
6283 * normal/completion.c (iterate_command): Use cmd->prio to check for
6285 (complete_arguments): Use grub_extcmd_t structure to find options.
6286 (grub_normal_do_completion): Change function grub_iterate_commands to
6287 grub_command_iterate.
6289 * normal/execute.c (grub_script_execute_cmd): No need to parse
6292 * normal/main.c (grub_dyncmd_dispatcher): New function.
6293 (read_command_list): Register unload commands as dyncmd.
6294 (grub_cmd_normal): Use new command interface, register rescue,
6295 unregister normal at entry, register normal, unregister rescue at exit.
6297 * include/grub/list.h (grub_list_test_t): New type.
6298 (grub_list_iterate): Return int instead of void.
6299 (grub_list_insert): New function.
6300 (GRUB_AS_NAMED_LIST_P): New macro.
6301 (GRUB_AS_PRIO_LIST): Likewise.
6302 (GRUB_AS_PRIO_LIST_P): Likewise.
6303 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
6304 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
6305 (grub_prio_list): New structure.
6306 (grub_prio_list_insert): New function.
6307 (grub_prio_list_remove): New inline function.
6309 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
6310 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
6311 (GRUB_COMMAND_FLAG_MENU): Likewise.
6312 (GRUB_COMMAND_FLAG_BOTH): Likewise.
6313 (GRUB_COMMAND_FLAG_TITLE): Likewise.
6314 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
6315 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
6316 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
6317 (grub_command): Likewise.
6318 (grub_register_command): Likewise.
6319 (grub_command_find): Likewise.
6320 (grub_iterate_commands): Likewise.
6321 (grub_command_init): Likewise.
6322 (grub_arg_parse): Likewise.
6323 (grub_arg_show_help): Likewise.
6325 * include/grub/rescue.h (grub_rescue_register_command): Removed.
6326 (grub_rescue_unregister_command): Likewise.
6328 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
6329 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
6330 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
6332 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
6333 grub_rescue_cmd_initrd.
6334 * include/grub/i386/loader.h: Likewise.
6335 * include/grub/x86_64/loader.h: Likewise.
6337 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
6339 2009-03-21 Bean <bean123ch@gmail.com>
6341 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
6342 instead of stat in mingw environment.
6344 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
6346 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
6348 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
6351 2009-03-21 Bean <bean123ch@gmail.com>
6353 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
6356 2009-03-18 Michel Dänzer <michel@daenzer.net>
6358 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
6359 checking inode flags for EXT4_EXTENTS_FLAG.
6361 2009-03-18 Robert Millan <rmh@aybabtu.com>
6363 * loader/i386/linux.c: Include `<grub/video.h>' and
6364 `<grub/i386/pc/vbe.h>'..
6365 (grub_linux_setup_video): New function. Loosely based on the EFI one.
6366 (grub_linux32_boot): Attempt to configure video settings with
6367 grub_linux_setup_video().
6368 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
6369 to avoid grub_console_fini() which would step out of graphical mode
6372 2009-03-14 Robert Millan <rmh@aybabtu.com>
6374 Fix build on powerpc.
6375 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
6377 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
6379 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
6380 background image command.
6382 2009-03-12 Colin D Bennett <colin@gibibit.com>
6384 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
6385 (grub_gfxterm_putchar): Extract pairs of identical calls to
6386 draw_cursor out of conditional blocks.
6388 2009-03-11 Pavel Roskin <proski@gnu.org>
6390 * fs/hfs.c (grub_hfs_strncasecmp): New function.
6391 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
6393 2009-03-11 Robert Millan <rmh@aybabtu.com>
6395 * loader/i386/multiboot_elfxx.c
6396 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
6398 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
6400 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
6403 2009-03-11 Robert Millan <rmh@aybabtu.com>
6405 * loader/i386/multiboot.c (code_size): New variable.
6406 (grub_multiboot): Define offsets by adding to `code_size' rather
6407 than subtracting from `grub_multiboot_payload_size'. Provide
6408 4-byte alignment to MBI and others by increasing
6409 `boot_loader_name_length' appropriately.
6411 * loader/i386/multiboot_elfxx.c
6412 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
6414 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
6416 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
6419 2009-03-08 Robert Millan <rmh@aybabtu.com>
6421 Make loader/i386/linux.c usable on i386-pc again.
6423 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
6425 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
6428 2009-03-07 Bean <bean123ch@gmail.com>
6430 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
6433 2009-03-06 Robert Millan <rmh@aybabtu.com>
6435 Fix display issue on terminals with screen size other than 80x25
6436 (e.g. gfxterm with resolution higher than 640x480).
6438 * normal/main.c (grub_normal_init_page): Display title text in a
6439 position relative to the center of the terminal instead of relying
6440 on a hardcoded offset.
6442 2009-03-04 Robert Millan <rmh@aybabtu.com>
6444 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
6447 * Makefile.in (host_kernel): New variable.
6448 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
6449 scripts instead of just the windows one.
6450 * configure.ac: Initialize and AC_SUBST `host_kernel'.
6452 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
6454 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
6456 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6457 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6458 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6459 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6460 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6461 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6463 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
6465 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
6466 or if there's no space for the disk label and print the partition number on a
6469 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
6471 * util/misc.c: Include <time.h>.
6472 (grub_millisleep): New function.
6474 2009-03-04 Bean <bean123ch@gmail.com>
6476 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
6477 another option -mno-red-zone.
6479 * commands/handler.c: Change module description.
6481 * kern/handler.c: Add missing space at the end of description line.
6483 * kern/list.c: Likewise.
6485 2009-03-03 Robert Millan <rmh@aybabtu.com>
6487 Move more components to the relocation area, and fix mbi pointer
6488 handling to use the destination rather than the origin (thanks to
6489 Vladimir Serbinenko for spotting).
6491 * loader/i386/multiboot.c (mbi_dest): New variable.
6492 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
6493 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
6496 2009-03-01 Bean <bean123ch@gmail.com>
6498 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
6499 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
6500 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
6501 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
6503 * loader/i386/efi/linux.c (acpi_guid): New variable.
6504 (acpi_guid): Likewise.
6505 (EBDA_SEG_ADDR): New constant.
6506 (LOW_MEM_ADDR): Likewise.
6507 (FAKE_EBDA_SEG): Likewise.
6508 (fake_bios_data): New function.
6509 (grub_linux_boot): Call fake_bios_data.
6511 2009-03-01 Bean <bean123ch@gmail.com>
6513 * commands/terminal.c: Removed.
6515 * commands/handler.c: New file.
6517 * include/grub/list.h: Likewise.
6519 * include/grub/handler.h: Likewise.
6521 * kern/list.c: Likewise.
6523 * kern/handler.c: Likewise.
6525 * kern/term.h: Include header file <grub/handler.h>.
6526 (grub_term_input): Move next field to the beginning.
6527 (grub_term_output): Likewise.
6528 (grub_term_input_class): New variable.
6529 (grub_term_output_class): Likewise.
6530 (grub_term_register_input): Changed to inline function.
6531 (grub_term_register_output): Likewise.
6532 (grub_term_unregister_input): Likewise.
6533 (grub_term_unregister_output): Likewise.
6534 (grub_term_set_current_input): Likewise.
6535 (grub_term_set_current_output): Likewise.
6536 (grub_term_get_current_input): Likewise.
6537 (grub_term_get_current_output): Likewise.
6538 (grub_term_iterate_input): Removed.
6539 (grub_term_iterate_output): Likewise.
6541 * kern/term.c (grub_term_list_input): Removed.
6542 (grub_term_list_output): Likewise.
6543 (grub_term_input_class): New variable.
6544 (grub_term_output_class): Likewise.
6545 (grub_cur_term_input): Change variable as macro.
6546 (grub_cur_term_output): Likewise.
6547 (grub_term_register_input): Removed.
6548 (grub_term_register_output): Likewise.
6549 (grub_term_unregister_input): Likewise.
6550 (grub_term_unregister_output): Likewise.
6551 (grub_term_set_current_input): Likewise.
6552 (grub_term_set_current_output): Likewise.
6553 (grub_term_iterate_input): Likewise.
6554 (grub_term_iterate_output): Likewise.
6555 (grub_term_get_current_input): Likewise.
6556 (grub_term_get_current_output): Likewise.
6558 * util/grub-editenv.c: Include header file <grub/handler.h>.
6559 (grub_term_get_current_input): Removed.
6560 (grub_term_get_current_output): Likewise.
6561 (grub_term_input_class): New variable.
6562 (grub_term_output_class): Likewise.
6564 * util/grub-fstest.c (grub_term_get_current_input): Removed.
6565 (grub_term_get_current_output): Likewise.
6566 (grub_term_input_class): New variable.
6567 (grub_term_output_class): Likewise.
6569 * util/grub-probe.c (grub_term_get_current_input): Removed.
6570 (grub_term_get_current_output): Likewise.
6571 (grub_term_input_class): New variable.
6572 (grub_term_output_class): Likewise.
6574 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
6575 (grub_term_get_current_output): Likewise.
6576 (grub_term_input_class): New variable.
6577 (grub_term_output_class): Likewise.
6579 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
6580 (terminal_mod_SOURCES): Likewise.
6581 (terminal_mod_CFLAGS): Likewise.
6582 (terminal_mod_LDFLAGS): Likewise.
6584 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
6586 (kernel_img_SOURCES): Add list.c and handler.c.
6587 (kernel_img_HEADERS): Add list.h and handler.h.
6589 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
6591 (kernel_mod_SOURCES): Add list.c and handler.c.
6592 (kernel_mod_HEADERS): Add list.h and handler.h.
6594 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
6596 (kernel_elf_SOURCES): Add list.c and handler.c.
6597 (kernel_elf_HEADERS): Add list.h and handler.h.
6599 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
6601 (kernel_elf_SOURCES): Add list.c and handler.c.
6602 (kernel_elf_HEADERS): Add list.h and handler.h.
6604 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
6606 (kernel_mod_SOURCES): Add list.c and handler.c.
6607 (kernel_mod_HEADERS): Add list.h and handler.h.
6609 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
6611 (kernel_elf_SOURCES): Add list.c and handler.c.
6612 (kernel_elf_HEADERS): Add list.h and handler.h.
6614 2009-02-27 Robert Millan <rmh@aybabtu.com>
6616 Factorize elf32 / elf64 code in Multiboot loader. This will
6617 prevent it from getting out of sync again.
6619 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
6620 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
6621 grub_multiboot_load_elf64): Move from here ...
6622 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
6623 grub_multiboot_load_elf): ... to here (new file).
6625 2009-02-27 Robert Millan <rmh@aybabtu.com>
6627 * util/grub.d/10_linux.in: Rename "single-user mode" to
6630 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6632 Don't leak in SCSI code.
6633 * disk/scsi.c (grub_scsi_close): free `scsi'.
6635 2009-02-27 Robert Millan <rmh@aybabtu.com>
6637 * loader/i386/pc/multiboot.c: Move from here ...
6638 * loader/i386/multiboot.c: ... to here. Update all users.
6640 2009-02-27 Robert Millan <rmh@aybabtu.com>
6642 Patch from Alexandre Bique <bique.alexandre@gmail.com>
6643 * util/i386/pc/grub-setup.c (setup): Fix directory path.
6645 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
6647 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
6650 2009-02-27 Robert Millan <rmh@aybabtu.com>
6652 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
6653 `0x' qualifier as 0 when base is specified as parameter).
6655 2009-02-24 Bean <bean123ch@gmail.com>
6657 * configure.ac: Check for -mcmodel=large in x86_64 target.
6659 * include/grub/efi/api.h (efi_call_10): New macro.
6660 (efi_wrap_10): New function.
6662 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
6663 (GRUB_PE32_REL_BASED_HIGH): Likewise.
6664 (GRUB_PE32_REL_BASED_LOW): Likewise.
6665 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
6666 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
6667 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
6668 (GRUB_PE32_REL_BASED_SECTION): Likewise.
6669 (GRUB_PE32_REL_BASED_REL): Likewise.
6670 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
6671 (GRUB_PE32_REL_BASED_DIR64): Likewise.
6672 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
6674 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
6677 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
6678 (efi_wrap_10): New function.
6680 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
6682 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
6683 MB/MBP model (NV chipset).
6684 (devdata_devs): Add devpath_5 to the list.
6686 * load/i386/efi/linux.c (video_base): Remove variable.
6687 (RGB_MASK): New macro.
6688 (RGB_MAGIC): Likewise.
6689 (LINE_MIN): Likewise.
6690 (LINE_MAX): Likewise.
6691 (FBTEST_STEP): Likewise.
6692 (FBTEST_COUNT): Likewise.
6693 (fb_list): New variable.
6694 (grub_find_video_card): Remove function.
6695 (find_framebuf): New function.
6696 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
6699 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
6702 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
6704 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
6706 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
6709 2009-02-22 Robert Millan <rmh@aybabtu.com>
6711 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
6712 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
6713 in our relocation, instead of using it directly from heap. Also
6714 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
6716 2009-02-21 Robert Millan <rmh@aybabtu.com>
6718 Implement USB keyboard support (based on patch by Marco Gerards)
6720 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
6721 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
6722 (usb_keyboard_mod_LDFLAGS): New variables.
6724 * term/usb_keyboard.c: New file.
6726 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
6728 Corrected wrong declaration
6730 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
6732 2009-02-14 Christian Franke <franke@computer.org>
6734 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
6735 (grub_lspci_iter): Print class code and programming interface byte.
6737 2009-02-14 Christian Franke <franke@computer.org>
6739 * gendistlist.sh: Ignore `.svn' directories.
6741 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
6743 * fs/fat.c: Add 2009 to Copyright line.
6745 2009-02-14 Christian Franke <franke@computer.org>
6747 * commands/hdparm.c: New file. Provides `hdparm' command
6748 which sends ATA commands via grub_disk_ata_pass_through ().
6750 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
6752 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
6753 and <grub/cpu/io.h> to include/grub/ata.h.
6754 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
6755 (GRUB_CDROM_SECTOR_SIZE): Remove.
6756 (GRUB_ATA_*): Move to include/grub/ata.h.
6757 (GRUB_ATAPI_*): Likewise.
6758 (enum grub_ata_commands): Likewise.
6759 (enum grub_ata_timeout_milliseconds): Likewise.
6760 (struct grub_ata_device): Likewise.
6761 (grub_ata_regset): Likewise.
6762 (grub_ata_regget): Likewise.
6763 (grub_ata_regset2): Likewise.
6764 (grub_ata_regget2): Likewise.
6765 (grub_ata_check_ready): Likewise.
6766 (grub_ata_wait_not_busy): Remove static, exported in
6768 (grub_ata_wait_drq): Likewise.
6769 (grub_ata_pio_read): Likewise.
6771 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
6772 function for hdparm.mod.
6774 * include/grub/ata.h: New file, contains declarations from
6776 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
6778 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
6779 (grub_disk_ata_pass_through): New exported variable.
6781 * kern/disk.c (grub_disk_ata_pass_through): New variable.
6783 2009-02-13 Colin D Bennett <colin@gibibit.com>
6785 Support multiple fallback entries, and provide an API to support
6786 executing default+fallback menu entries. Renamed the `terminal' menu
6789 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
6790 variable declaration.
6791 (grub_menu_execute_callback): New structure declaration.
6792 (grub_menu_execute_callback_t): New typedef.
6793 (grub_menu_execute_with_fallback): New function declaration.
6794 (grub_menu_get_entry): Likewise.
6795 (grub_menu_get_timeout): Likewise.
6796 (grub_menu_set_timeout): Likewise.
6798 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
6800 * normal/menu.c (grub_wait_after_message): Moved to
6801 `normal/menu_text.c'.
6802 (draw_border): Likewise.
6803 (print_message): Likewise.
6804 (print_entry): Likewise.
6805 (print_entries): Likewise.
6806 (grub_menu_init_page): Likewise.
6807 (get_entry_number): Likewise.
6808 (print_timeout): Likewise.
6809 (run_menu): Likewise.
6810 (grub_menu_execute_entry): Likewise.
6811 (show_text_menu): Likewise.
6812 (get_and_remove_first_entry_number): New function.
6813 (grub_menu_execute_with_fallback): Likewise.
6814 (get_entry): Renamed to ...
6815 (grub_menu_get_entry): .. this and made it global.
6816 (get_timeout): Renamed to ...
6817 (grub_menu_get_timeout): ... this and made it global.
6818 (set_timeout): Renamed to ...
6819 (grub_menu_set_timeout): ... this and made it global.
6820 (grub_normal_terminal_menu_viewer): Renamed to ...
6821 (grub_normal_text_menu_viewer): ... this.
6823 * normal/menu_text.c: New file. Extracted text-menu-specific code
6826 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
6827 (normal_mod_SOURCES): Likewise.
6829 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6830 (normal_mod_SOURCES): Likewise.
6832 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6833 (normal_mod_SOURCES): Likewise.
6835 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
6836 (normal_mod_SOURCES): Likewise.
6838 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6839 (normal_mod_SOURCES): Likewise.
6841 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6842 (normal_mod_SOURCES): Likewise.
6844 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6845 (normal_mod_SOURCES): Likewise.
6847 2009-02-11 Robert Millan <rmh@aybabtu.com>
6849 * util/grub.d/00_header.in: Update old reference to `font' command.
6851 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
6853 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
6855 Based on patch from Javier Martín.
6857 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6859 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
6860 to avoid false positives with FAT.
6861 (grub_fstest_SOURCES): Likewise.
6862 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6863 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6864 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6865 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6866 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6867 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6869 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6871 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6872 bpb.version_specific.fat12_or_fat16.fstype and
6873 bpb.version_specific.fat32.fstype.
6875 2009-02-08 Robert Millan <rmh@aybabtu.com>
6877 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
6879 2009-02-08 Robert Millan <rmh@aybabtu.com>
6881 * Makefile.in (host_os, host_cpu): New variables.
6882 (target_os): Remove. Update all users.
6884 2009-02-08 Marco Gerards <marco@gnu.org>
6886 * Makefile.in (enable_grub_emu_usb): New variable.
6887 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
6888 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
6889 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
6890 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
6891 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
6892 `usbtest.mod' and `usbms.mod'.
6893 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
6894 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
6895 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
6896 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
6897 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
6900 * disk/usbms.c: New file.
6902 * include/grub/usb.h: Likewise.
6904 * include/grub/usbtrans.h: Likewise.
6906 * include/grub/usbdesc.h: Likewise.
6908 * bus/usb/usbtrans.c: Likewise.
6910 * bus/usb/ohci.c: Likewise.
6912 * bus/usb/uhci.c: Likewise.
6914 * bus/usb/usbhub.c: Likewise.
6916 * bus/usb/usb.c: Likewise.
6918 * commands/usbtest.c: Likewise.
6920 * util/usb.c: Likewise.
6922 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
6924 * configure.ac: Test for libusb presence.
6926 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
6928 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
6930 * kern/mm.c: Add more comments.
6932 2009-02-08 Robert Millan <rmh@aybabtu.com>
6934 Patch from Javier Martín.
6935 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
6936 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
6938 2009-02-08 Robert Millan <rmh@aybabtu.com>
6940 * fs/cpio.c: Split tar functionality to ...
6941 * fs/tar.c: ... here (new file). Update all users.
6943 2009-02-07 Robert Millan <rmh@aybabtu.com>
6945 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
6946 backward-incompatible features.
6948 Based on patch from Javier Martín, with some adjustments.
6950 2009-02-07 Michael Scherer <misc@mandriva.org>
6952 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
6954 2009-02-07 Robert Millan <rmh@aybabtu.com>
6956 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
6957 position of `disk/lvm.c' to ensure grub_init_all() always picks it
6958 after the RAID stuff.
6960 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
6962 Fixes problem when running vbetest command as reported by
6963 Vladimir Serbinenko <phcoder@gmail.com>.
6965 * (grub_vbe_set_video_mode): Fixed problem with text modes.
6967 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
6969 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
6970 /dev/md/NpN style mdraid devices.
6972 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6974 * util/unifont2pff.rb: Remove.
6976 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6978 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
6981 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6983 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
6984 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6985 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6986 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6988 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6989 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6991 2009-02-02 Christian Franke <franke@computer.org>
6993 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
6995 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
6997 * INSTALL: Note that we now require at least autoconf 2.59 and
6998 that LZO is optional.
7000 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
7002 Base on patch on bug #24154 created by Tomas Tintera
7005 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
7007 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
7009 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
7010 <bero@arklinux.org>.
7012 * normal/parser.y (script_init): Add missing semicolon.
7014 2009-01-31 Colin D Bennett <colin@gibibit.com>
7016 * normal/main.c: Add include to grub/menu_viewer.h.
7017 (free_menu_entry_classes): Added.
7018 (grub_normal_menu_addentry): Added class property handling.
7019 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
7020 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
7022 * normal/menu_viewer.c: New file.
7024 * normal/menu.c (run_menu_entry): Renamed to ...
7025 (grub_menu_execute_entry): ... this and made it as global.
7026 (grub_menu_run): Renamed to ...
7027 (show_text_menu): ... this and made it local.
7028 (show_text_menu): Adapt to new function names.
7029 (grub_normal_terminal_menu_viewer): New global variable.
7031 * include/grub/menu.h: New file.
7033 * include/grub/menu_viewer.h: New file.
7035 * include/grub/normal.h: Added include to grub/menu.h.
7036 (grub_menu_entry): Moved to include/grub/menu.h.
7037 (grub_menu_entry_t): Likewise.
7038 (grub_menu): Likewise.
7039 (grub_menu_t): Likewise.
7040 (grub_normal_terminal_menu_viewer): Added.
7041 (grub_menu_execute_entry): Likewise.
7042 (grub_menu_run): Removed.
7044 * DISTLIST: Added include/grub/menu.h.
7045 Added include/grub/menu_viewer.h.
7046 Added normal/menu_viewer.c.
7048 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
7050 * normal/execute.c (grub_script_execute_menuentry): Changed to use
7051 arglist for menutitle arguments.
7053 * normal/main.c (grub_normal_menu_addentry): Likewise.
7055 * normal/parser.y (menuentry): Likewise.
7057 * normal/script.c (grub_script_create_cmdmenu): Likewise.
7059 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
7060 (grub_script_create_cmdmenu): Likewise.
7062 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
7064 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
7067 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
7069 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
7071 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
7073 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
7075 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
7077 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
7079 2009-01-30 Christian Franke <franke@computer.org>
7081 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
7082 in option help text.
7084 2009-01-27 Pavel Roskin <proski@gnu.org>
7086 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
7088 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
7090 * commands/lsmmap.c: Add include to grub/machine/memory.h.
7092 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
7094 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
7095 unregister function.
7097 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
7099 * disk/scsi.c (grub_scsi_read): Fix sign problem.
7101 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
7103 * util/grub-mkfont.c (usage): Fix typo.
7105 * util/elf/grub-mkimage.c (load_modules): Fix warning.
7107 2009-01-26 Daniel Mierswa <impulze@impulze.org>
7109 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
7111 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
7113 * kern/misc.c (grub_strcasecmp): New function.
7114 (grub_strcasecmp): Use grub_size_t instead of int for length.
7116 * include/grub/misc.h: Update function prototypes.
7118 2009-01-26 Robert Millan <rmh@aybabtu.com>
7120 * configure.ac: Fix cross-compilation check.
7122 2009-01-22 Christian Franke <franke@computer.org>
7124 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
7125 (precision) digit string. Allow `.format2' without `format1' (width).
7126 Limit input chars for `%s' output to `format2' if specified. This is
7127 compatible with standard printf ().
7129 2009-01-22 Christian Franke <franke@computer.org>
7131 * disk/ata.c (grub_ata_wait_status): Replace by ...
7132 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
7133 other status bits may be invalid while BSY is asserted.
7134 (grub_ata_check_ready): New function.
7135 (grub_ata_cmd): Removed.
7136 (grub_ata_wait_drq): New function.
7137 (grub_ata_strncpy): Remove inline.
7138 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
7139 and error check now done by grub_ata_wait_drq ().
7140 (grub_ata_pio_write): Likewise.
7141 (grub_atapi_identify): Set DEV before check for !BSY. Use
7142 grub_ata_wait_drq () to wait for data.
7143 (grub_ata_device_initialize): Add status register check to
7144 detect missing SATA slave devices. Add debug messages.
7145 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
7146 (grub_atapi_packet): Set DEV before check for !BSY. Replace
7147 transfer loop by grub_ata_pio_write ().
7148 (grub_ata_identify): Set DEV before check for !BSY. Use
7149 grub_ata_wait_drq () to wait for data.
7150 (grub_ata_setaddress): Set DEV before check for !BSY.
7151 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
7152 read/write in one loop. Fix invalid command on write. Fix incomplete
7153 command on (size % batch) == 0. Add missing error check after write of
7154 last block. Add debug messages.
7155 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
7157 2009-01-19 Christian Franke <franke@computer.org>
7159 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
7160 (GRUB_ATAPI_IREASON_*): Likewise.
7161 (grub_ata_pio_write): Fix timeout error return.
7162 (grub_atapi_identify): Add grub_ata_wait () after cmd.
7163 (grub_atapi_wait_drq): New function.
7164 (grub_atapi_packet): New parameter `size'.
7165 Use grub_atapi_wait_drq () and direct write instead of
7166 grub_ata_pio_write ().
7167 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
7168 reads the number of bytes requested by the device for each DRQ
7170 (grub_atapi_write): Remove old implementation, return not
7171 implemented instead.
7173 2009-01-19 Christian Franke <franke@computer.org>
7175 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
7176 of 512 to calculate data size.
7177 (grub_scsi_read12): Likewise.
7178 (grub_scsi_write10): Likewise.
7179 (grub_scsi_write12): Likewise.
7180 (grub_scsi_read): Adjust size according to blocksize.
7181 Add checks for invalid blocksize and unaligned transfer.
7183 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
7185 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
7187 * term/gfxterm.c (write_char): Fix background rendering for wide
7190 2009-01-19 Robert Millan <rmh@aybabtu.com>
7192 * config.guess: Update to latest version from config git.
7193 * config.sub: Likewise.
7195 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
7197 * Makefile.in: Change font compilation to use new grub-mkfont instead
7200 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
7201 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
7202 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
7203 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
7204 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
7205 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
7206 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
7207 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
7208 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
7210 2009-01-16 Christian Franke <franke@computer.org>
7212 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
7213 (enum grub_ata_timeout_milliseconds): New enum.
7214 (grub_ata_wait_status): Add parameter milliseconds.
7215 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
7216 recovery from timed-out commands.
7217 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
7218 return grub_errno instead of REG_ERROR.
7219 (grub_ata_pio_write): Add parameter milliseconds.
7220 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
7221 Pass milliseconds to grub_ata_wait_status () and
7222 grub_ata_pio_read ().
7223 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
7224 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
7225 grub_ata_wait_status (). Fix IDENTIFY timeout check.
7226 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
7227 It is not suitable for device detection, because DEV bit is ignored,
7228 the command may run too long, and not all devices set the signature
7230 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
7231 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
7232 Fix device selection, DEV bit must be set first to address the registers
7233 of the correct device.
7234 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
7235 grub_ata_pio_read/write ().
7236 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
7237 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
7239 2009-01-13 Carles Pina i Estany <carles@pina.cat>
7241 * util/grub-editenv.c (main): Use fseeko(), not fseek().
7243 2009-01-13 Bean <bean123ch@gmail.com>
7245 * util/grub-mkfont.c (write_font): forget to remove some debug code.
7247 2009-01-13 Bean <bean123ch@gmail.com>
7249 * Makefile.in: (enable_grub_mkfont): New variable.
7250 (freetype_cflags): Likewise.
7251 (freetype_libs): Likewise.
7253 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
7254 (grub_mkfont_SOURCES): New variable.
7255 (grub_mkfont_CFLAGS): Likewise.
7256 (grub_mkfont_LDFLAGS): Likewise.
7258 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
7259 library if `--enable-grub-mkfont' is requested.
7260 (enable_grub_mkfont): New variable.
7261 (freetype_cflags): Likewise.
7262 (freetype_libs): Likewise.
7264 * util/grub-mkfont.c: New file.
7266 2009-01-12 Christian Franke <franke@computer.org>
7268 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
7269 mode check. Fix setting of compat_use[].
7271 2009-01-10 Robert Millan <rmh@aybabtu.com>
7273 Update a few copyright years which we forgot to do in 2008 (only for
7274 files whose changes made in 2008 were copyright-significant)
7276 * Makefile.in: Add 2008 to Copyright line.
7277 * disk/ieee1275/ofdisk.c: Likewise.
7278 * disk/efi/efidisk.c: Likewise.
7279 * kern/dl.c: Likewise.
7280 * kern/sparc64/ieee1275/init.c: Likewise.
7281 * kern/mm.c: Likewise.
7282 * kern/efi/mm.c: Likewise.
7283 * boot/i386/pc/boot.S: Likewise.
7284 * genfslist.sh: Likewise.
7285 * fs/iso9660.c: Likewise.
7286 * fs/hfs.c: Likewise.
7287 * fs/jfs.c: Likewise.
7288 * fs/minix.c: Likewise.
7289 * fs/ufs.c: Likewise.
7290 * gensymlist.sh.in: Likewise.
7291 * genkernsyms.sh.in: Likewise.
7292 * include/grub/misc.h: Likewise.
7293 * include/grub/types.h: Likewise.
7294 * include/grub/symbol.h: Likewise.
7295 * include/grub/elf.h: Likewise.
7296 * include/grub/kernel.h: Likewise.
7297 * include/grub/disk.h: Likewise.
7298 * include/grub/dl.h: Likewise.
7299 * include/grub/i386/linux.h: Likewise.
7300 * include/grub/i386/pc/biosdisk.h: Likewise.
7301 * include/grub/efi/api.h: Likewise.
7302 * include/grub/efi/pe32.h: Likewise.
7303 * include/grub/util/misc.h: Likewise.
7304 * normal/execute.c: Likewise.
7305 * normal/arg.c: Likewise.
7306 * normal/completion.c: Likewise.
7307 * normal/lexer.c: Likewise.
7308 * normal/parser.y: Likewise.
7309 * normal/misc.c: Likewise.
7310 * commands/i386/pc/vbeinfo.c: Likewise.
7311 * commands/hexdump.c: Likewise.
7312 * commands/terminal.c: Likewise.
7313 * commands/ls.c: Likewise.
7314 * commands/help.c: Likewise.
7315 * partmap/pc.c: Likewise.
7316 * loader/efi/chainloader.c: Likewise.
7317 * loader/multiboot_loader.c: Likewise.
7318 * loader/i386/pc/multiboot2.c: Likewise.
7319 * term/efi/console.c: Likewise.
7320 * term/i386/pc/serial.c: Likewise.
7321 * util/lvm.c: Likewise.
7322 * util/console.c: Likewise.
7323 * util/i386/efi/grub-mkimage.c: Likewise.
7324 * util/raid.c: Likewise.
7326 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
7328 * commands/videotest.c: Removed include to grub/machine/memory.h.
7330 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
7331 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
7332 (video_mod_SOURCES): Removed.
7333 (video_mod_CFLAGS): Likewise.
7334 (video_mod_LDFLAGS): Likewise.
7335 (gfxterm_mod_SOURCES): Likewise.
7336 (gfxterm_mod_CFLAGS): Likewise.
7337 (gfxterm_mod_LDFLAGS): Likewise.
7338 (videotest_mod_SOURCES): Likewise.
7339 (videotest_mod_CFLAGS): Likewise.
7340 (videotest_mod_LDFLAGS): Likewise.
7341 (bitmap_mod_SOURCES): Likewise.
7342 (bitmap_mod_CFLAGS): Likewise.
7343 (bitmap_mod_LDFLAGS): Likewise.
7344 (tga_mod_SOURCES): Likewise.
7345 (tga_mod_CFLAGS): Likewise.
7346 (tga_mod_LDFLAGS): Likewise.
7347 (jpeg_mod_SOURCES): Likewise.
7348 (jpeg_mod_CFLAGS): Likewise.
7349 (jpeg_mod_LDFLAGS): Likewise.
7350 (png_mod_SOURCES): Likewise.
7351 (png_mod_CFLAGS): Likewise.
7352 (png_mod_LDFLAGS): Likewise.
7354 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
7355 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
7356 (video_mod_SOURCES): Added.
7357 (video_mod_CFLAGS): Likewise.
7358 (video_mod_LDFLAGS): Likewise.
7359 (videotest_mod_SOURCES): Likewise.
7360 (videotest_mod_CFLAGS): Likewise.
7361 (videotest_mod_LDFLAGS): Likewise.
7362 (bitmap_mod_SOURCES): Likewise.
7363 (bitmap_mod_CFLAGS): Likewise.
7364 (bitmap_mod_LDFLAGS): Likewise.
7365 (tga_mod_SOURCES): Likewise.
7366 (tga_mod_CFLAGS): Likewise.
7367 (tga_mod_LDFLAGS): Likewise.
7368 (jpeg_mod_SOURCES): Likewise.
7369 (jpeg_mod_CFLAGS): Likewise.
7370 (jpeg_mod_LDFLAGS): Likewise.
7371 (png_mod_SOURCES): Likewise.
7372 (png_mod_CFLAGS): Likewise.
7373 (png_mod_LDFLAGS): Likewise.
7374 (gfxterm_mod_SOURCES): Likewise.
7375 (gfxterm_mod_CFLAGS): Likewise.
7376 (gfxterm_mod_LDFLAGS): Likewise.
7378 * term/gfxterm.c: Removed include to grub/machine/memory.h,
7379 grub/machine/console.h.
7381 2009-01-04 Jerone Young <jerone@gmail.com>
7383 Make on screen instructions clearer
7385 Based on patch created by Jidanni <jidanni@jidanni.org>
7387 * normal/menu.c: print clearer instructions on the screen
7389 2009-01-02 Colin D Bennett <colin@gibibit.com>
7393 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
7394 build system and fixed gfxterm.c to work with different sized fonts.
7396 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
7398 * configure: Re-generated.
7400 * DISTLIST: Removed font/manager.c.
7402 Added font/font_cmd.c.
7404 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
7407 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
7409 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
7411 * kern/term.c: Changed users of grub_utf8_to_ucs4.
7413 * normal/menu.c: Likewise.
7415 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
7416 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
7418 * include/grub/font.h: Replaced with new file.
7420 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
7421 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
7422 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
7423 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
7424 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
7425 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
7426 fg_red, fg_green, fg_blue, fg_alpha.
7427 (grub_video_adapter): Removed blit_glyph.
7428 (grub_video_blit_glyph): Removed.
7430 * font/manager.c: Removed file.
7432 * font/font.c: New file.
7434 * font/font_cmd.c: Likewise.
7436 * video/video.c (grub_video_blit_glyph): Removed.
7438 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
7439 (grub_video_vbe_map_rgba): Likewise.
7440 (grub_video_vbe_unmap_color_int): Likewise.
7441 (grub_video_vbe_blit_glyph): Removed.
7442 (grub_video_vbe_adapter): Removed blit_glyph.
7444 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
7445 (get_pixel): Likewise.
7446 (set_pixel): Likewise.
7448 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
7450 * term/gfxterm.c: Adapted to new font engine.
7452 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
7454 * term/i386/pc/vga.c: Likewise.
7456 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
7458 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
7460 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
7462 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
7464 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
7466 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
7468 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
7470 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
7472 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
7474 * util/grub.d/00_header.in: Changed to use new loadfont command.
7476 * util/grub-mkconfig_lib.in: Changed font extension.
7478 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
7480 * util/getroot.c (grub_util_get_grub_dev): Add support for
7481 /dev/md/dNNpNN style partitionable mdraid devices.
7483 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
7485 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
7486 at a time limit of the PXE TFTP API correctly.
7487 (grub_pxefs_close): Likewise.
7489 2008-11-29 Robert Millan <rmh@aybabtu.com>
7491 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7492 grub_ata_device_initialize() calls.
7494 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
7496 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
7498 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
7500 2008-11-28 Robert Millan <rmh@aybabtu.com>
7502 Fix build on powerpc-ieee1275. Based on patch created by
7503 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
7504 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7505 `kern/ieee1275/mmap.c'.
7506 * include/grub/powerpc/ieee1275/memory.h: New file.
7508 Provide grub-install on coreboot.
7509 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
7510 (grub_install_SOURCES): New variable.
7511 * util/i386/pc/grub-install.in: Add a few condition checks to make it
7514 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
7516 * util/grub-fstest.c (grub_term_get_current_input): Change return type
7517 to `grub_term_input_t'.
7518 (grub_term_get_current_output): Change return type to
7519 `grub_term_output_t'.
7521 2008-11-22 Robert Millan <rmh@aybabtu.com>
7523 Fix breakage on coreboot due to declaration mismatch.
7524 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
7525 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
7526 grub_vga_text_cls().
7528 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
7529 comments. Avoid copying one more byte than necessary (just in case).
7531 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
7532 to 0x200000 (avoids trouble with some OFW implementations, and matches
7533 with the one in Yaboot).
7534 Reported by Manoel Abranches
7536 2008-11-20 Robert Millan <rmh@aybabtu.com>
7538 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
7539 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
7541 * util/grub-mkconfig_lib.in (grub_warn): New function.
7542 (convert_system_path_to_grub_path): Use grub_warn() when issuing
7543 warnings, to obtain consistent formatting.
7544 * util/grub.d/00_header.in: Likewise.
7545 * util/update-grub_lib.in: Likewise.
7547 * loader/i386/linux.c (allocate_pages): Fix a warning.
7548 Move comment text to `#error' stanza.
7550 Harmonize ieee1275's grub_available_iterate() with the generic
7551 grub_machine_mmap_iterate() interface (fixes a recently-introduced
7552 build problem on i386-ieee1275):
7553 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
7554 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
7555 parameter `type'. Update all users of this function.
7556 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
7557 `kern/ieee1275/mmap.c'.
7558 * kern/ieee1275/init.c
7559 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
7561 (grub_machine_mmap_iterate): ... this.
7562 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
7563 return type to `grub_err_t'. Update all implementations of this
7565 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
7568 Add `lsmmap' command (lists firmware-provided memory map):
7569 * commands/lsmmap.c: New file.
7570 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
7571 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
7573 * conf/powerpc-ieee1275.rmk: Likewise.
7574 * conf/i386-coreboot.rmk: Likewise.
7575 * conf/i386-ieee1275.rmk: Likewise.
7577 2008-11-19 Robert Millan <rmh@aybabtu.com>
7579 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
7580 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
7581 constraints to initrd allocation (based on code from
7582 loader/i386/pc/linux.c). Without them, initrd was allocated too high
7583 for Linux to find it.
7585 2008-11-14 Robert Millan <rmh@aybabtu.com>
7587 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
7588 order to cope with duplicate slashes.
7590 2008-11-14 Robert Millan <rmh@aybabtu.com>
7592 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
7593 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
7594 don't want to mess with lower memory, because it is used in the Linux
7597 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
7598 an appropriate place in lower memory, between 0x10000 and 0x90000,
7599 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
7600 is in our heap (probably as a result of it being corrupted during
7601 decompression). Add #error instance with comment to explain why this
7602 loader isn't currently usable on PC/BIOS.
7604 2008-11-14 Robert Millan <rmh@aybabtu.com>
7606 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
7607 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
7609 2008-11-12 Robert Millan <rmh@aybabtu.com>
7611 Make loader/i386/linux.c buildable on i386-pc (although disabled).
7613 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
7614 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
7616 * include/grub/i386/pc/memory.h: ... to here.
7618 2008-11-12 Robert Millan <rmh@aybabtu.com>
7620 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
7623 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
7624 (grub_console_cur_color, grub_console_real_putchar)
7625 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
7626 (grub_console_setcolorstate, grub_console_setcolor)
7627 (grub_console_getcolor): Move from here ...
7628 * include/grub/i386/vga_common.h: ... to here (new file).
7630 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
7631 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
7633 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
7634 `<grub/i386/vga_common.h>'.
7636 2008-11-12 Robert Millan <rmh@aybabtu.com>
7638 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
7639 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
7640 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
7642 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
7643 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
7645 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
7646 grub_console_init() with call to grub_vga_text_init().
7647 (grub_machine_fini): Replace call to
7648 grub_console_fini() with call to grub_vga_text_fini() and
7649 grub_at_keyboard_fini().
7651 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
7652 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
7653 (grub_console_setcolorstate, grub_console_setcolor)
7654 (grub_console_getcolor): New function prototypes.
7656 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
7657 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
7658 (grub_vga_text_setcursor): Static-ize.
7659 (grub_vga_text_term): New structure.
7660 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
7662 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
7663 (grub_console_cur_color, grub_console_standard_color)
7664 (grub_console_normal_color, grub_console_highlight_color)
7665 (map_char, grub_console_putchar, grub_console_getcharwidth)
7666 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
7667 (grub_console_getcolor): Move from here ...
7668 * term/i386/vga_common.c: ... to here (same function names).
7670 2008-11-12 Robert Millan <rmh@aybabtu.com>
7672 Use newly-added Multiboot support in coreboot.
7674 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
7675 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
7677 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
7678 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
7679 (codestart): Store the MBI in `startup_multiboot_info' when we're
7680 being loaded using Multiboot.
7682 * kern/i386/coreboot/init.c (grub_machine_init): Move
7683 grub_at_keyboard_init() call to beginning of function (useful for
7684 debugging). Call grub_machine_mmap_init() before attempting to use
7685 grub_machine_mmap_iterate().
7686 (grub_lower_mem, grub_upper_mem): Move from here ...
7687 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
7690 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
7693 2008-11-12 Robert Millan <rmh@aybabtu.com>
7695 Fix a regression introduced by the at_keyboard.mod split. Because
7696 some terminals are default on some platforms and non-default on
7697 others, the first terminal being registered determines which is
7698 going to be default.
7700 * kern/term.c (grub_term_register_input): If this is the first
7701 terminal being registered, set it as the current one.
7702 (grub_term_register_output): Likewise.
7704 * term/efi/console.c (grub_console_init): Do not call
7705 grub_term_set_current_output() or grub_term_set_current_input().
7706 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
7707 * term/i386/pc/console.c (grub_console_init): Likewise.
7708 (grub_console_fini): Do not call grub_term_set_current_input()
7709 (but leave grub_term_set_current_output() to restore text mode).
7711 2008-11-10 Robert Millan <rmh@aybabtu.com>
7713 * util/grub.d/00_header.in: Add backward compatibility check for
7714 versions of terminal.mod that don't understand `terminal_input' or
7717 2008-11-09 Robert Millan <rmh@aybabtu.com>
7719 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
7720 `terminal_input' / `terminal_output', not `terminal'.
7722 2008-11-08 Robert Millan <rmh@aybabtu.com>
7724 * Makefile.in (include_DATA): Fix srcdir=. assumption.
7725 (DISTCLEANFILES): Add `build_env.mk'.
7727 2008-11-08 Robert Millan <rmh@aybabtu.com>
7729 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
7730 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7731 members. Update all users.
7732 * util/console.c (grub_ncurses_term): Split in ...
7733 (grub_ncurses_term_input): ... this, and ...
7734 (grub_ncurses_term_output): ... this. Update all users.
7735 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
7737 2008-11-08 Robert Millan <rmh@aybabtu.com>
7739 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
7740 (PKGDATA): Add $(pkgdata_SRCDIR).
7741 (pkglib_BUILDDIR): New variable.
7742 (pkgdata_SRCDIR): New variable.
7743 (build_env.mk): New target.
7744 (include_DATA): New variable.
7745 (install-local): Install $(include_DATA) files in $(includedir).
7747 2008-11-07 Pavel Roskin <proski@gnu.org>
7749 * gendistlist.sh: Use C locale for sorting to ensure consistent
7750 output on all systems.
7752 * util/grub.d/00_header.in: Remove incorrect space before
7755 2008-11-07 Robert Millan <rmh@aybabtu.com>
7757 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
7759 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
7760 * loader/multiboot_loader.c (find_multi_boot2_header): New function
7761 (based on find_multi_boot1_header).
7762 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
7763 using find_multi_boot2_header(), and abort if neither Multiboot or
7764 Multiboot headers were found.
7766 2008-11-07 Robert Millan <rmh@aybabtu.com>
7768 Modularize at_keyboard.mod:
7770 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
7771 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
7772 (at_keyboard_mod_LDFLAGS): New variables.
7774 Actual terminal split:
7776 * include/grub/term.h (struct grub_term): Split in ...
7777 (struct grub_term_input): ... this, and ...
7778 (struct grub_term_output): ... this. Update all users.
7779 (grub_term_set_current): Split in ...
7780 (grub_term_set_current_input): ... this, and ...
7781 (grub_term_set_current_output): ... this.
7782 (grub_term_get_current): Split in ...
7783 (grub_term_get_current_input): ... this, and ...
7784 (grub_term_get_current_output): ... this.
7785 (grub_term_register): Split in ...
7786 (grub_term_register_input): ... this, and ...
7787 (grub_term_register_output): ... this.
7788 (grub_term_unregister): Split in ...
7789 (grub_term_unregister_input): ... this, and ...
7790 (grub_term_unregister_output): ... this.
7791 (grub_term_iterate): Split in ...
7792 (grub_term_iterate_input): ... this, and ...
7793 (grub_term_iterate_output): ... this.
7795 * kern/term.c (grub_term_list): Split in ...
7796 (grub_term_list_input): ... this, and ...
7797 (grub_term_list_output): ... this. Update all users.
7798 (grub_cur_term): Split in ...
7799 (grub_cur_term_input): ... this, and ...
7800 (grub_cur_term_output): ... this. Update all users.
7801 (grub_term_set_current): Split in ...
7802 (grub_term_set_current_input): ... this, and ...
7803 (grub_term_set_current_output): ... this.
7804 (grub_term_get_current): Split in ...
7805 (grub_term_get_current_input): ... this, and ...
7806 (grub_term_get_current_output): ... this.
7807 (grub_term_register): Split in ...
7808 (grub_term_register_input): ... this, and ...
7809 (grub_term_register_output): ... this.
7810 (grub_term_unregister): Split in ...
7811 (grub_term_unregister_input): ... this, and ...
7812 (grub_term_unregister_output): ... this.
7813 (grub_term_iterate): Split in ...
7814 (grub_term_iterate_input): ... this, and ...
7815 (grub_term_iterate_output): ... this.
7817 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
7818 a check for input and one for output (and only attempt to get keys
7819 from user when input works).
7821 * util/grub-probe.c (grub_term_get_current): Split in ...
7822 (grub_term_get_current_input): ... this, and ...
7823 (grub_term_get_current_output): ... this.
7824 * util/grub-fstest.c: Likewise.
7825 * util/i386/pc/grub-setup.c: Likewise.
7826 * util/grub-editenv.c: Likewise.
7828 Portability adjustments:
7830 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
7831 `term/i386/pc/at_keyboard.c'.
7832 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
7833 grub_keyboard_controller_init() (now handled by terminal .init).
7834 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
7835 grub_at_keyboard_init().
7836 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
7837 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
7838 at_keyboard.mod via input terminal interface).
7839 * include/grub/i386/coreboot/console.h: Convert into a stub for
7840 `<grub/i386/pc/console.h>'.
7842 Migrate full terminals to new API:
7844 * term/efi/console.c (grub_console_term): Split into ...
7845 (grub_console_term_input): ... this, and ...
7846 (grub_console_term_output): ... this. Update all users.
7847 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
7848 (grub_ofconsole_init): Split into ...
7849 (grub_ofconsole_init_input): ... this, and ...
7850 (grub_ofconsole_init_output): ... this.
7851 (grub_ofconsole_term): Split into ...
7852 (grub_ofconsole_term_input): ... this, and ...
7853 (grub_ofconsole_term_output): ... this. Update all users.
7854 * term/i386/pc/serial.c (grub_serial_term): Split into ...
7855 (grub_serial_term_input): ... this, and ...
7856 (grub_serial_term_output): ... this. Update all users.
7857 * term/i386/pc/console.c (grub_console_term): Split into ...
7858 (grub_console_term_input): ... this, and ...
7859 (grub_console_term_output): ... this. Update all users.
7860 (grub_console_term_input): Only enable it on PC/BIOS platform.
7861 (grub_console_init): Remove grub_keyboard_controller_init() call.
7863 Migrate input terminals to new API:
7865 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
7866 `i386' and `i386/pc' to enable build on x86_64 (this driver is
7867 i386-specific anyway).
7868 (grub_console_checkkey): Rename to ...
7869 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
7871 (grub_keyboard_controller_orig): New variable.
7872 (grub_console_getkey): Rename to ...
7873 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
7875 (grub_keyboard_controller_init): Static-ize. Save original
7876 controller value so that it can be restored ...
7877 (grub_keyboard_controller_fini): ... here (new function).
7878 (grub_at_keyboard_term): New structure.
7879 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
7882 Migrate output terminals to new API:
7884 * term/i386/pc/vga.c (grub_vga_term): Change type to
7885 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7886 members. Update all users.
7887 * term/gfxterm.c (grub_video_term): Change type to
7888 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7889 members. Update all users.
7890 * include/grub/i386/pc/console.h (grub_console_checkkey)
7891 (grub_console_getkey): Do not export (no longer needed by gfxterm,
7894 Migrate `terminal' command and userland tools to new API:
7896 * commands/terminal.c (grub_cmd_terminal): Split into ...
7897 (grub_cmd_terminal_input): ... this, and ...
7898 (grub_cmd_terminal_output): ... this.
7899 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
7900 `terminal_input' and `terminal_output'.
7901 * util/grub.d/00_header.in: Adjust `terminal' calls to new
7902 `terminal_input' / `terminal_output' API.
7903 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
7904 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
7905 provided ${GRUB_TERMINAL}, convert it).
7907 2008-11-04 Robert Millan <rmh@aybabtu.com>
7909 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
7911 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
7913 2008-11-03 Bean <bean123ch@gmail.com>
7915 * kern/elf.c (grub_elf32_load): Revert to previous code.
7916 (grub_elf64_load): Likewise.
7918 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
7920 2008-11-01 Robert Millan <rmh@aybabtu.com>
7922 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
7923 (TARGET_CPPFLAGS): Likewise.
7924 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
7926 2008-11-01 Carles Pina i Estany <carles@pina.cat>
7928 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
7930 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7932 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
7933 addition of objects until the code is not going to be able to fail.
7935 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7937 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
7938 (add a missing NULL check, and correct them by moving the pointer
7939 operations after the actual check).
7941 2008-10-29 Robert Millan <rmh@aybabtu.com>
7943 * util/i386/pc/grub-install.in: Handle empty string as output from
7944 make_system_path_relative_to_its_root().
7946 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
7948 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
7949 circular metadata worst case scenario. If the metadata is circular
7950 then copy the wrap in place.
7951 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
7952 project lib/format_text/layout.h
7953 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
7955 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7957 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
7959 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7961 * util/update-grub_lib.in: Mention filename in warning message.
7963 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7965 * NEWS: Update for rename of update-grub to grub-mkconfig.
7967 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7969 * util/update-grub_lib.in: Copy to ...
7970 * util/grub-mkconfig_lib.in: ... this. Update all users.
7971 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
7972 * util/update-grub.in: Rename to ...
7973 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
7974 option. Add `--output' option to allow users to specify the generated
7975 configuration file. Default to stdout.
7976 (update_grub_dir): Rename to ...
7977 (grub_mkconfig_dir): ... this.
7978 (grub_cfg): Default to an empty string.
7979 * conf/common.rmk (update-grub): Rename to ...
7980 (grub-mkconfig): ... this.
7981 (update-grub_lib): Copy to ...
7982 (grub-mkconfig_lib): ... this.
7983 (update-grub_SCRIPTS): Copy to ...
7984 (grub-mkconfig_SCRIPTS): ... this. Update all users.
7985 (update-grub_DATA): Rename to ...
7986 (grub-mkconfig_DATA): ... this.
7988 2008-09-28 Robert Millan <rmh@aybabtu.com>
7990 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
7991 to `modified'. Add the real `created' field.
7992 (grub_iso9660_uuid): Use `modified' rather than `created' for
7993 constructing the UUID.
7995 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
7997 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
7998 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
8000 2008-09-28 Bean <bean123ch@gmail.com>
8002 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
8003 Thanks to Christian Franke for finding this bug.
8005 2008-09-25 Robert Millan <rmh@aybabtu.com>
8007 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
8008 instances of grub_util_get_disk_name() (see previous commit).
8010 2008-09-25 Robert Millan <rmh@aybabtu.com>
8012 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
8013 `util/i386/get_disk_name.c'.
8014 * conf/i386-efi.rmk: Likewise.
8015 * conf/x86_64-efi.rmk: Likewise.
8016 * conf/i386-coreboot.rmk: Likewise.
8017 * conf/i386-ieee1275.rmk: Likewise.
8018 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
8019 `util/ieee1275/get_disk_name.c'.
8020 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
8021 * util/ieee1275/get_disk_name.c: Remove file.
8022 * util/i386/get_disk_name.c: Remove file.
8023 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
8024 "hd%d" for device.map entries, rather than using
8025 grub_util_get_disk_name().
8027 2008-09-24 Carles Pina i Estany <carles@pina.cat>
8029 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
8031 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
8033 2008-09-24 Carles Pina i Estany <carles@pina.cat>
8035 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
8037 (GRUB_TERM_PPAGE): Changed to 0x4900.
8039 2008-09-24 Robert Millan <rmh@aybabtu.com>
8041 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
8042 macros (they were i386-pc specific).
8043 * include/grub/sparc64/ieee1275/console.h: Likewise.
8044 * include/grub/efi/console.h: Likewise.
8046 2008-09-22 Bean <bean123ch@gmail.com>
8048 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
8049 resident and in attribute list.
8051 * include/grub/ntfs.h (BMP_LEN): Removed.
8053 2008-09-22 Bean <bean123ch@gmail.com>
8055 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
8056 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
8058 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
8059 error occurs, as grub_disk_open will call grub_disk_close, which will
8060 call p->close (scsi).
8062 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
8064 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
8065 (AC_PREREQ): Bumped to 2.59.
8066 (AC_TRY_COMPILE): Replace obsolete macro with ...
8067 (AC_COMPILE_IFELSE): ... this.
8068 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
8069 (AC_LINK_IFELSE): ... this.
8071 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
8073 * autogen.sh: Add a call to `gendistlist.sh'.
8075 2008-09-19 Christian Franke <franke@computer.org>
8077 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
8078 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
8079 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
8080 Export __enable_execute_stack() to modules.
8081 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
8084 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
8086 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
8089 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
8091 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
8092 #include <grub/util/hostdisk.h>.
8094 2008-09-08 Robert Millan <rmh@aybabtu.com>
8096 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
8097 segments when their filesz is zero (grub_file_read() interprets
8098 zero-size as "read until EOF", which results in memory corruption).
8099 Use `lowest_segment' rather than 0 for calculating the current
8100 segment load address.
8102 2008-09-08 Robert Millan <rmh@aybabtu.com>
8104 * util/hostdisk.c (open_device): Replace a grub_util_info() call
8105 with grub_dprintf("hostdisk", ...), as it was so verbose that it
8106 clobbered useful information.
8108 2008-09-08 Robert Millan <rmh@aybabtu.com>
8110 * include/grub/util/biosdisk.h: Move to ...
8111 * include/grub/util/hostdisk.h: ... here. Update all users.
8112 * util/biosdisk.c: Move to ...
8113 * util/hostdisk.c: ... here. Update all users.
8115 2008-09-07 Robert Millan <rmh@aybabtu.com>
8117 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
8119 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
8120 and length can be stored directly in the `mbi->mmap_addr' and
8121 `mbi->mmap_length' struct fields.
8123 2008-09-07 Robert Millan <rmh@aybabtu.com>
8125 * conf/i386.rmk: New file. Provides declaration for building
8127 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
8128 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
8130 Include `conf/i386.mk'.
8131 * conf/i386-efi.rmk: Likewise.
8132 * conf/x86_64-efi.rmk: Likewise.
8133 * conf/i386-coreboot.rmk: Likewise.
8134 * conf/i386-ieee1275.rmk: Likewise.
8136 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
8138 Based on patch created by Colin D Bennett <colin@gibibit.com>.
8139 Adds optimization support for BGR based modes.
8141 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
8142 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
8143 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
8144 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
8145 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
8146 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
8147 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
8148 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
8149 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
8150 (grub_video_i386_vbeblit_index_index): Likewise.
8151 (grub_video_i386_vbeblit_replace_directN): Added.
8152 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
8153 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
8154 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
8155 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
8156 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
8157 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
8158 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
8159 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
8160 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
8161 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
8162 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
8163 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
8164 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
8166 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
8167 (grub_video_i386_vbefill_R8G8B8): Likewise.
8168 (grub_video_i386_vbefill_index): Likewise.
8169 (grub_video_i386_vbefill_direct32): Added.
8170 (grub_video_i386_vbefill_direct24): Likewise.
8171 (grub_video_i386_vbefill_direct16): Likewise.
8172 (grub_video_i386_vbefill_direct8): Likewise.
8174 * include/grub/video.h (grub_video_blit_format): Removed
8175 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
8176 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
8177 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
8178 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
8179 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
8181 * video/video.c (grub_video_get_blit_format): Updated to use new
8182 blit formats. Added handling for 16 bit color modes.
8184 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
8186 (common_blitter): Updated to use new blitters.
8188 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
8190 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
8191 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
8192 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
8193 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
8194 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
8195 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
8196 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
8197 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
8198 (grub_video_i386_vbeblit_index_index): Likewise.
8199 (grub_video_i386_vbeblit_replace_directN): Added.
8200 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
8201 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
8202 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
8203 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
8204 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
8205 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
8206 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
8207 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
8208 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
8209 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
8210 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
8211 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
8212 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
8214 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
8215 (grub_video_i386_vbefill_R8G8B8): Likewise.
8216 (grub_video_i386_vbefill_index): Likewise.
8217 (grub_video_i386_vbefill_direct32): Added.
8218 (grub_video_i386_vbefill_direct24): Likewise.
8219 (grub_video_i386_vbefill_direct16): Likewise.
8220 (grub_video_i386_vbefill_direct8): Likewise.
8222 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
8225 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
8228 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
8231 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
8234 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
8236 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
8239 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
8241 * fs/iso9660.c (grub_iso9660_date): New structure.
8242 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
8243 (grub_iso9660_uuid): New function.
8245 2008-09-05 Bean <bean123ch@gmail.com>
8247 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
8249 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
8250 insensitive bit for names in Win32 and Win32 & DOS namespace.
8252 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
8254 * include/grub/types.h (LONG_MAX): Likewise.
8256 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
8258 * util/getroot.c: Include <config.h>.
8259 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
8260 add support for /dev/md/N devices and handle LVM double dash escaping.
8262 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
8264 * config.guess: Update to latest version from config git.
8265 * config.sub: Likewise.
8267 2008-09-03 Robert Millan <rmh@aybabtu.com>
8269 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
8270 `disk->total_sectors'.
8272 2008-09-01 Colin D Bennett <colin@gibibit.com>
8274 * include/grub/normal.h: Fixed incorrect comment for
8275 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
8277 2008-09-01 Colin D Bennett <colin@gibibit.com>
8279 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
8280 values with defines.
8282 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
8283 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
8284 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
8285 (GRUB_VBE_MODEATTR_COLOR): Likewise.
8286 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
8287 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
8288 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
8289 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
8290 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
8291 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
8292 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
8293 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
8294 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
8295 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
8296 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
8297 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
8298 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
8299 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
8300 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
8302 2008-08-31 Robert Millan <rmh@aybabtu.com>
8304 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
8306 (grub_multiboot): Fix a few warnings.
8308 2008-08-31 Robert Millan <rmh@aybabtu.com>
8310 * loader/i386/pc/multiboot.c: Update comment not to say that
8311 boot_device support is unimplemented.
8313 2008-08-31 Robert Millan <rmh@aybabtu.com>
8315 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
8316 or memory map support are unimplemented.
8318 2008-08-31 Colin D Bennett <colin@gibibit.com>
8320 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
8322 2008-08-31 Colin D Bennett <colin@gibibit.com>
8324 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
8325 total video memory in 'vbeinfo' output; show color format details for
8328 2008-08-30 Pavel Roskin <proski@gnu.org>
8330 * util/genmoddep.c: Remove for real this time.
8331 * DISTLIST: Remove util/genmoddep.c.
8333 2008-08-30 Robert Millan <rmh@aybabtu.com>
8335 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
8336 as required by Multiboot spec (it was already 4-byte aligned, but
8339 2008-08-29 Pavel Roskin <proski@gnu.org>
8341 * kern/powerpc/ieee1275/crt0.S: Rename to ...
8342 * kern/powerpc/ieee1275/startup.S: ... this.
8343 * conf/powerpc-ieee1275.rmk: Adjust for the above.
8344 * DISTLIST: Likewise.
8346 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
8347 grub/cpu/kernel.h. Add start label for consistency with other
8348 platforms. Add grub_prefix immediately after start. Add jump
8349 to the code after grub_prefix.
8350 * include/grub/powerpc/kernel.h: Provide valid values for
8351 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
8353 2008-08-29 Bean <bean123ch@gmail.com>
8355 * configure.ac: Change host_os to cygwin for mingw.
8356 (asprintf): New check for function.
8358 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
8359 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
8361 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
8362 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
8363 sync, sleep and grub_util_get_disk_size for mingw.
8365 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
8366 to get size in mingw.
8367 (open_device): Use flag O_BINARY if it's defined.
8368 (find_root_device): Add dummy code for mingw.
8370 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
8371 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
8372 (get_scsi_disk_name): Return 0 for mingw.
8374 * util/hostfs.c: #include <grub/util/misc.h>.
8375 (grub_hostfs_open): Use "rb" flag to open file, use
8376 grub_util_get_disk_size to get disk size for mingw.
8378 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
8379 (asprintf): New function if HAVE_ASPRINTF is not set.
8380 (sync): New function for mingw.
8382 (grub_util_get_disk_size): Likewise.
8384 2008-08-28 Pavel Roskin <proski@gnu.org>
8386 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
8389 2008-08-28 Robert Millan <rmh@aybabtu.com>
8391 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
8393 2008-08-28 Robert Millan <rmh@aybabtu.com>
8395 Change find_grub_drive() syntax so it doesn't prevent it from
8396 detecting NULL names as errors.
8398 * util/biosdisk.c (find_grub_drive): Move free slot search code
8400 (find_free_slot): ... to here.
8401 (read_device_map): Use find_free_slot() to search for free slots.
8403 2008-08-27 Marco Gerards <marco@gnu.org>
8405 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
8406 (scsi_mod_SOURCES): New variable.
8407 (scsi_mod_CFLAGS): Likewise
8408 (scsi_mod_LDFLAGS): Likewise.
8410 * disk/scsi.c: New file.
8412 * include/grub/scsi.h: Likewise.
8414 * include/grub/scsicmd.h: Likewise.
8416 * disk/ata.c: Include <grub/scsi.h>.
8417 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
8419 (grub_ata_iterate): Skip ATAPI devices.
8420 (grub_ata_open): Only handle ATAPI devices.
8421 (struct grub_atapi_read): Removed.
8422 (grub_atapi_readsector): Likewise.
8423 (grub_ata_read): No longer handle ATAPI devices.
8424 (grub_ata_write): Likewise.
8425 (grub_atapi_iterate): New function.
8426 (grub_atapi_read): Likewise.
8427 (grub_atapi_write): Likewise.
8428 (grub_atapi_open): Likewise.
8429 (grub_atapi_close): Likewise.
8430 (grub_atapi_dev): New variable.
8431 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
8432 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
8434 * include/grub/disk.h (enum grub_disk_dev_id): Add
8435 `GRUB_DISK_DEVICE_SCSI_ID'.
8437 2008-08-26 Robert Millan <rmh@aybabtu.com>
8439 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
8440 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
8443 2008-08-23 Bean <bean123ch@gmail.com>
8445 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
8446 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
8447 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
8448 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
8450 (raid5rec_mod_SOURCES): New macro.
8451 (raid5rec_mod_CFLAGS): Likewise.
8452 (raid5rec_mod_LDFLAGS): Likewise.
8453 (raid6rec_mod_SOURCES): Likewise.
8454 (raid6rec_mod_CFLAGS): Likewise.
8455 (raid6rec_mod_LDFLAGS): Likewise.
8456 (mdraid_mod_SOURCES): Likewise.
8457 (mdraid_mod_CFLAGS): Likewise.
8458 (mdraid_mod_LDFLAGS): Likewise.
8459 (dm_nv_mod_SOURCES): Likewise.
8460 (dm_nv_mod_CFLAGS): Likewise.
8461 (dm_nv_mod_LDFLAGS): Likewise.
8463 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
8464 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
8465 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
8467 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
8468 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
8470 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8472 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8474 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8476 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8478 * disk/raid5_recover.c: New file.
8480 * disk/raid6_recover.c: Likewise.
8482 * disk/mdraid_linux.c: Likewise.
8484 * disk/dmraid_nvidia.c: Likewise.
8486 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
8489 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
8490 calculate the size of raid device.
8491 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
8492 different layout of raid5.
8493 (grub_raid_scan_device): Remove code specific to mdraid.
8494 (grub_raid_list): New variable.
8495 (free_array): New function.
8496 (grub_raid_register): Likewise.
8497 (grub_raid_unregister): Likewise.
8498 (grub_raid_rescan): Likewise.
8499 (GRUB_MOD_INIT): Don't iterate device here.
8500 (GRUB_MOD_FINI): Use free_array to release resource.
8502 * include/grub/raid.h: Remove macro and structure specific to mdraid.
8503 (grub_raid5_recover_func_t): New function variable type.
8504 (grub_raid6_recover_func_t): Likewise.
8505 (grub_raid5_recover_func): New variable.
8506 (grub_raid6_recover_func): Likewise.
8507 (grub_raid_register): New function.
8508 (grub_raid_unregister): Likewise.
8509 (grub_raid_rescan): Likewise.
8510 (grub_raid_block_xor): Likewise.
8512 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
8513 (CMD_CRC): New macro.
8515 (read_file): Handle device as well as file.
8516 (cmd_crc): New function.
8517 (fstest): Handle multiple disks.
8518 (options): Remove part, raw and long, add root and diskcount.
8519 (usage): Add crc, remove -p, -r, -l, add -r and -c.
8520 (main): Find the first non option entry and ignore subsequent options,
8521 add handling for the new options, support multiple disks.
8523 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
8525 2008-08-23 Bean <bean123ch@gmail.com>
8527 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
8529 * genfslist.sh: Ignore kernel.mod.
8531 * genpartmaplist.sh: Likewise.
8533 2008-08-23 Robert Millan <rmh@aybabtu.com>
8535 * util/getroot.c (find_root_device): Skip anything that starts with
8536 a dot, not just directories. This avoids things like /dev/.tmp.md0.
8538 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
8540 * util/update-grub.in (GRUB_GFXMODE): Export variable.
8541 * util/grub.d/00_header.in: Allow the administrator to change default
8542 gfxmode via ${GRUB_GFXMODE}.
8544 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
8546 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
8548 2008-08-21 Robert Millan <rmh@aybabtu.com>
8550 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
8552 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
8553 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
8555 2008-08-20 Carles Pina i Estany <carles@pina.cat>
8557 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
8558 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
8560 2008-08-19 Robert Millan <rmh@aybabtu.com>
8562 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
8563 (struct grub_virtual_screen): Remove `cursor_color'.
8564 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
8566 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
8568 2008-08-18 Robert Millan <rmh@aybabtu.com>
8570 Unify (identical) linux_normal.c files.
8571 * loader/i386/efi/linux_normal.c: Move from here ...
8572 * loader/linux_normal.c: ... to here. Update all users.
8573 * loader/i386/pc/linux_normal.c: Delete. Update all users.
8574 * loader/i386/ieee1275/linux_normal.c: Likewise.
8576 2008-08-18 Robert Millan <rmh@aybabtu.com>
8578 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
8579 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
8580 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
8581 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
8582 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
8584 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
8585 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
8586 (GRUB_LINUX_CL_END_OFFSET): ... to here.
8587 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
8588 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
8589 (GRUB_EFI_CL_END_OFFSET): Rename to ...
8590 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
8591 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
8592 Initialize `params->video_cursor_x' and `params->video_cursor_y'
8593 portably using grub_getxy().
8594 Replace `-EFI' with `-bzImage' in boot message.
8596 2008-08-17 Robert Millan <rmh@aybabtu.com>
8598 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
8600 2008-08-17 Robert Millan <rmh@aybabtu.com>
8602 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
8604 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
8605 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
8606 (grub_machine_mmap_iterate): New function declaration.
8607 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
8609 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
8612 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
8613 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
8614 Move e820 parsing from here ...
8615 * kern/i386/pc/mmap.c: New file.
8616 (grub_machine_mmap_iterate): ... to here.
8618 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
8619 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
8620 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
8621 (grub_available_iterate): Redeclare to return `void', and redeclare
8622 its hook to use grub_uint64_t as addr and size parameters, and rename
8624 (grub_machine_mmap_iterate): ... this. Update all users.
8626 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
8627 to make it more readable. Rename to ...
8628 (grub_machine_mmap_iterate): ... this.
8630 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
8631 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
8632 (grub_multiboot): Allocate an extra region after the payload, and fill
8633 it with a Multiboot memory map. Adjust a.out loader to calculate size
8634 with the extra space.
8635 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
8636 with the extra space.
8638 2008-08-17 Carles Pina i Estany <carles@pina.cat>
8640 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
8642 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
8644 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
8645 mdate-sh to the list `find' searches for.
8646 * DISTLIST: Regenerated.
8648 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
8650 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
8651 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
8652 genmoddep.awk, gensymlist.sh.in.
8653 (DISTDIRS): Add bus, docs, hook, lib.
8654 * DISTLIST: Regenerated.
8655 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
8657 2008-08-16 Robert Millan <rmh@aybabtu.com>
8659 * disk/raid.c (grub_raid_init): Handle/report errors set by
8660 grub_device_iterate().
8661 * disk/lvm.c (grub_lvm_init): Likewise.
8663 2008-08-15 Bean <bean123ch@gmail.com>
8665 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8667 (datetime_mod_SOURCES): New macro.
8668 (datetime_mod_CFLAGS): Likewise.
8669 (datetime_mod_LDFLAGS): Likewise.
8670 (date_mod_SOURCES): Likewise.
8671 (date_mod_CFLAGS): Likewise.
8672 (date_mod_LDFLAGS): Likewise.
8673 (datehook_mod_SOURCES): Likewise.
8674 (datehook_mod_CFLAGS): Likewise.
8675 (datehook_mod_LDFLAGS): Likewise.
8677 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8679 (datetime_mod_SOURCES): New macro.
8680 (datetime_mod_CFLAGS): Likewise.
8681 (datetime_mod_LDFLAGS): Likewise.
8682 (date_mod_SOURCES): Likewise.
8683 (date_mod_CFLAGS): Likewise.
8684 (date_mod_LDFLAGS): Likewise.
8685 (datehook_mod_SOURCES): Likewise.
8686 (datehook_mod_CFLAGS): Likewise.
8687 (datehook_mod_LDFLAGS): Likewise.
8689 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8691 (datetime_mod_SOURCES): New macro.
8692 (datetime_mod_CFLAGS): Likewise.
8693 (datetime_mod_LDFLAGS): Likewise.
8694 (date_mod_SOURCES): Likewise.
8695 (date_mod_CFLAGS): Likewise.
8696 (date_mod_LDFLAGS): Likewise.
8697 (datehook_mod_SOURCES): Likewise.
8698 (datehook_mod_CFLAGS): Likewise.
8699 (datehook_mod_LDFLAGS): Likewise.
8701 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8703 (datetime_mod_SOURCES): New macro.
8704 (datetime_mod_CFLAGS): Likewise.
8705 (datetime_mod_LDFLAGS): Likewise.
8706 (date_mod_SOURCES): Likewise.
8707 (date_mod_CFLAGS): Likewise.
8708 (date_mod_LDFLAGS): Likewise.
8709 (datehook_mod_SOURCES): Likewise.
8710 (datehook_mod_CFLAGS): Likewise.
8711 (datehook_mod_LDFLAGS): Likewise.
8713 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8715 (datetime_mod_SOURCES): New macro.
8716 (datetime_mod_CFLAGS): Likewise.
8717 (datetime_mod_LDFLAGS): Likewise.
8718 (date_mod_SOURCES): Likewise.
8719 (date_mod_CFLAGS): Likewise.
8720 (date_mod_LDFLAGS): Likewise.
8721 (datehook_mod_SOURCES): Likewise.
8722 (datehook_mod_CFLAGS): Likewise.
8723 (datehook_mod_LDFLAGS): Likewise.
8725 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
8727 * commands/date.c: New file.
8729 * hook/datehook.c: Likewise.
8731 * include/grub/lib/datetime.h: Likewise.
8733 * include/grub/i386/cmos.h: Likewise.
8735 * lib/datetime.c: Likewise.
8737 * lib/i386/datetime.c: Likewise.
8739 * lib/efi/datetime.c: Likewise.
8741 2008-08-14 Robert Millan <rmh@aybabtu.com>
8743 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
8744 (grub_mkelfimage_SOURCES): New variable.
8745 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
8747 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
8748 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
8749 * conf/powerpc-ieee1275.rmk: Likewise.
8750 * conf/i386-ieee1275.rmk: Likewise.
8752 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
8753 * kern/i386/coreboot/init.c: Likewise.
8755 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
8756 with `<grub/cpu/kernel.h>'.
8757 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
8759 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
8760 * kern/i386/coreboot/startup.S: Likewise.
8762 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
8763 (GRUB_MOD_GAP): Remove.
8764 * include/grub/powerpc/kernel.h: New file.
8765 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
8766 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
8767 * include/grub/i386/kernel.h: New file.
8768 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
8769 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
8770 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
8772 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
8774 Use --directory when invoking grub_mkimage.
8776 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
8777 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
8778 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
8779 and GRUB_KERNEL_CPU_PREFIX.
8781 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
8783 * include/grub/err.h (grub_err_printf): New function prototype.
8784 * util/misc.c (grub_err_printf): New function.
8785 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
8787 * kern/err.c (grub_print_error): Use grub_err_printf.
8789 2008-08-13 Robert Millan <rmh@aybabtu.com>
8791 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
8793 2008-08-13 Robert Millan <rmh@aybabtu.com>
8795 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
8798 2008-08-12 Robert Millan <rmh@aybabtu.com>
8800 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
8801 of the relocation code from here ...
8802 (grub_multiboot): ... to here.
8803 (forward_relocator, backward_relocator): Move from here ...
8804 * kern/i386/loader.S (grub_multiboot_forward_relocator)
8805 (grub_multiboot_backward_relocator): ... to here.
8806 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
8807 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
8808 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
8809 (grub_multiboot_forward_relocator_end)
8810 (grub_multiboot_backward_relocator)
8811 (grub_multiboot_backward_relocator_end): New variables.
8813 2008-08-12 Bean <bean123ch@gmail.com>
8815 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
8817 2008-08-11 Robert Millan <rmh@aybabtu.com>
8819 * kern/i386/linuxbios/startup.S: Move from here ...
8820 * kern/i386/coreboot/startup.S: ... to here.
8822 * kern/i386/linuxbios/init.c: Move from here ...
8823 * kern/i386/coreboot/init.c: ... to here.
8825 * kern/i386/linuxbios/table.c: Move from here ...
8826 * kern/i386/coreboot/mmap.c: ... to here.
8828 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
8830 2008-08-11 Robert Millan <rmh@aybabtu.com>
8832 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
8833 errors. Leave it to the upper layer to handle them.
8835 2008-08-09 Christian Franke <franke@computer.org>
8837 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
8838 * conf/common.rmk: Install `grub-pe2elf' only if requested.
8839 Install `grub.d/10_windows' only on Cygwin.
8840 * configure.ac: Add subst of `target_os'.
8841 Check `target_os' also before setting TARGET_OBJ2ELF.
8842 Add `--enable-grub-pe2elf'.
8844 2008-08-08 Robert Millan <rmh@aybabtu.com>
8846 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8847 (grub_last_time): Change type to grub_uint64_t.
8848 (grub_disk_open): Migrate code from to using grub_get_time_ms().
8849 (grub_disk_close): Likewise.
8851 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8852 (run_menu): Migrate code from to using grub_get_time_ms().
8854 * util/misc.c (grub_get_time_ms): New function.
8856 2008-08-08 Marco Gerards <marco@gnu.org>
8858 * disk/ata.c (grub_ata_regget): Change return type to
8860 (grub_ata_regget2): Likewise.
8861 (grub_ata_wait_status): New function.
8862 (grub_ata_wait_busy): Removed function, updated all users to use
8863 `grub_ata_wait_status'.
8864 (grub_ata_wait_drq): Likewise.
8865 (grub_ata_cmd): New function.
8866 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
8868 (grub_ata_pio_write): Add error handling.
8869 (grub_atapi_identify): Likewise.
8870 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
8872 (grub_ata_identify): Use `grub_ata_cmd' and improve error
8873 handling. Actually use the detected registers. Reorder the
8874 detection logic such that it is easier to read.
8875 (grub_ata_pciinit): Do not assign the same ID to each controller.
8876 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
8878 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
8880 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
8882 2008-08-08 Marco Gerards <marco@gnu.org>
8886 2008-08-07 Bean <bean123ch@gmail.com>
8888 * include/grub/x86_64/pci.h: New file.
8890 2008-08-07 Christian Franke <franke@computer.org>
8892 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
8893 (TIMER2_GATE): Likewise.
8894 (grub_pit_wait): Add enable/disable of the timer2 gate
8895 bit of port 0x61. This fixes a possible infinite loop.
8897 2008-08-07 Bean <bean123ch@gmail.com>
8899 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
8900 kern/i386/tsc.c and kern/i386/pit.c.
8902 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
8905 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
8908 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
8910 2008-08-07 Bean <bean123ch@gmail.com>
8912 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
8914 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
8916 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
8917 multiple inclusion. Add #include <grub/types.h>.
8919 2008-08-06 Christian Franke <franke@computer.org>
8921 * conf/common.rmk: Build and install `10_windows'.
8922 * util/grub.d/10_windows.in: New script.
8924 2008-08-06 Pavel Roskin <proski@gnu.org>
8926 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
8928 2008-08-06 Robert Millan <rmh@aybabtu.com>
8930 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
8931 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
8933 2008-08-06 Bean <bean123ch@gmail.com>
8935 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
8936 (grub_pxefs_fs_int): Remove dummy definition.
8937 (grub_pxefs_open): Use data->block_size to store the current block
8939 (grub_pxefs_read): Use block size stored in data->block_size. As the
8940 value of grub_pxe_blksize can be changed after the file is opened.
8942 2008-08-06 Bean <bean123ch@gmail.com>
8944 * fs/i386/pc/pxe.c (curr_file): new variable.
8945 (grub_pxefs_open): Simply the handling of pxe file system. Don't
8946 require the dummy internal file system anymore.
8947 (grub_pxefs_read): Removed.
8948 (grub_pxefs_close): Likewise.
8949 (grub_pxefs_fs_int): Likewise.
8950 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
8951 connection when we switch file.
8952 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
8954 2008-08-06 Robert Millan <rmh@aybabtu.com>
8956 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
8958 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
8959 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
8961 * kern/i386/halt.c: New file.
8962 * kern/i386/reboot.c: Likewise.
8963 * include/grub/i386/reboot.h: Likewise.
8964 * include/grub/i386/halt.h: Likewise.
8966 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
8967 Include `<grub/cpu/halt.h>'.
8968 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
8969 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
8971 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
8972 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
8973 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
8974 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
8975 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
8976 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
8978 * include/grub/i386/at_keyboard.h: ... to here.
8980 2008-08-05 Robert Millan <rmh@aybabtu.com>
8982 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
8983 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
8984 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
8985 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8986 `kern/generic/millisleep.c'.
8988 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
8989 instead of grub_get_rtc().
8990 (grub_tsc_init): Initialize `tsc_boot_time'.
8992 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
8993 (grub_machine_init): Use grub_tsc_init() rather than
8994 installing an RTC-based handler via grub_install_get_time_ms().
8996 * kern/i386/pit.c: New file.
8997 * include/grub/i386/pit.h: Likewise.
8999 2008-08-05 Bean <bean123ch@gmail.com>
9001 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
9003 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
9004 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
9005 (pxe_mod_SOURCES): New macro.
9006 (pxe_mod_CFLAGS): Likewise.
9007 (pxe_mod_LDFLAGS): Likewise.
9008 (pxecmd_mod_SOURCES): Likewise.
9009 (pxecmd_mod_CFLAGS): Likewise.
9010 (pxecmd_mod_LDFLAGS): Likewise.
9012 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
9013 (grub_pxe_call): Likewise.
9015 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
9017 * commands/i386/pc/pxecmd.c: New file.
9019 * fs/i386/pc/pxe.c: Likewise.
9021 * include/grub/i386/pc/pxe.h: Likewise.
9023 2008-08-05 Bean <bean123ch@gmail.com>
9025 * util/console.c (grub_console_cur_color): New variable.
9026 (grub_console_standard_color): Likewise.
9027 (grub_console_normal_color): Likewise.
9028 (grub_console_highlight_color): Likewise.
9029 (color_map): Likewise.
9030 (use_color): Likewise.
9031 (NUM_COLORS): New macro.
9032 (grub_ncurses_setcolorstate): Handle color properly.
9033 (grub_ncurses_setcolor): Don't change color here, just remember the
9034 settings, color will be set in grub_ncurses_setcolorstate.
9035 (grub_ncurses_getcolor): New function.
9036 (grub_ncurses_init): Initialize color pairs.
9037 (grub_ncurses_term): New member grub_ncurses_getcolor.
9039 2008-08-05 Colin D Bennett <colin@gibibit.com>
9041 High resolution timer support. Implemented for x86 CPUs using TSC.
9042 Extracted generic grub_millisleep() so it's linked in only as needed.
9043 This requires a Pentium compatible CPU; if the RDTSC instruction is
9044 not supported, then it falls back on the generic grub_get_time_ms()
9045 implementation that uses the machine's RTC.
9047 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
9048 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
9049 `kern/generic/millisleep.c'.
9051 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
9052 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
9054 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
9055 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
9057 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9059 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
9060 `kern/generic/millisleep.c'.
9062 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9064 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
9066 * kern/generic/rtc_get_time_ms.c: New file.
9068 * kern/generic/millisleep.c: New file.
9070 * kern/misc.c: Don't include
9071 <kern/time.h> anymore.
9072 (grub_millisleep_generic): Removed.
9074 * commands/sleep.c (grub_interruptible_millisleep): Uses
9075 grub_get_time_ms() instead of grub_get_rtc().
9077 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
9079 (grub_cpu_is_cpuid_supported): New inline function.
9080 (grub_cpu_is_tsc_supported): New inline function.
9081 (grub_tsc_init): New function prototype.
9082 (grub_tsc_get_time_ms): New function prototype.
9084 * kern/i386/tsc.c (grub_get_time_ms): New file.
9086 * include/grub/time.h: Include <grub/types.h.
9087 (grub_millisleep_generic): Removed.
9088 (grub_get_time_ms): New prototype.
9089 (grub_install_get_time_ms): New prototype.
9090 (grub_rtc_get_time_ms): New prototype.
9092 * kern/time.c (grub_get_time_ms): New function.
9093 (grub_install_get_time_ms): New function.
9095 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
9096 <grub/time.h> anymore.
9097 (grub_millisleep): Removed.
9098 (grub_machine_init): Call grub_tsc_init.
9100 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
9101 get_time_ms() implementation.
9103 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
9104 (ieee1275_get_time_ms): New function.
9105 (grub_machine_init): Install get_time_ms() implementation.
9107 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
9108 (grub_machine_init): Call grub_tsc_init().
9109 (grub_millisleep): Removed.
9111 * kern/ieee1275/init.c (grub_millisleep): Removed.
9112 (grub_machine_init): Install ieee1275_get_time_ms()
9114 (ieee1275_get_time_ms): New function.
9115 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
9118 2008-08-05 Marco Gerards <marco@gnu.org>
9120 * disk/ata.c: Include <grub/pci.h>.
9121 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
9122 (grub_ata_initialize): Rewritten.
9123 (grub_ata_device_initialize): New function.
9125 2008-08-04 Pavel Roskin <proski@gnu.org>
9127 * kern/main.c: Include grub/mm.h.
9129 2008-08-04 Robert Millan <rmh@aybabtu.com>
9131 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
9132 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
9133 corruption problem).
9135 2008-08-04 Robert Millan <rmh@aybabtu.com>
9137 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
9138 warnings introduced in my last commit.
9140 2008-08-03 Robert Millan <rmh@aybabtu.com>
9142 Make PCI available on all i386 architectures.
9144 * include/grub/i386/pc/pci.h: Move from here ...
9145 * include/grub/i386/pci.h: ... to here.
9147 * include/grub/i386/pc/pci.h: Remove.
9148 * include/grub/i386/efi/pci.h: Remove.
9149 * include/grub/x86_64/efi/pci.h: Remove.
9151 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
9154 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
9155 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
9156 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
9158 * conf/i386-ieee1275.rmk: Likewise.
9160 2008-08-03 Robert Millan <rmh@aybabtu.com>
9162 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
9163 (grub_console_setcursor): Make it possible to set cursor off.
9165 2008-08-03 Robert Millan <rmh@aybabtu.com>
9167 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
9168 of modules instead of assuming which platform provides what.
9169 * util/update-grub.in: Likewise.
9171 2008-08-03 Robert Millan <rmh@aybabtu.com>
9173 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
9174 instead of `grub_install_dos_part' to determine whether a drive needs
9175 to be prepended to prefix (`grub_install_dos_part' is not reliable,
9176 because it can be overridden when loading GRUB via Multiboot).
9178 2008-08-02 Robert Millan <rmh@aybabtu.com>
9180 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
9182 2008-08-02 Robert Millan <rmh@aybabtu.com>
9184 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
9185 of informational grub_dprintf() calls.
9187 2008-08-02 Robert Millan <rmh@aybabtu.com>
9189 * disk/memdisk.c (memdisk_size): Don't initialize.
9190 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
9192 * include/grub/i386/pc/kernel.h
9193 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
9194 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
9195 (grub_memdisk_image_size, grub_arch_memdisk_addr)
9196 (grub_arch_memdisk_size): Remove.
9198 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
9199 field (was only used to transfer a constant). Add `type' field to
9200 support multiple module types.
9201 (grub_module_iterate): New function.
9203 * kern/device.c (grub_device_open): Do not hide error messages
9204 when grub_disk_open() fails. Use grub_print_error() instead.
9206 * kern/i386/pc/init.c (grub_arch_modules_addr)
9207 (grub_arch_memdisk_size): Remove functions.
9208 (grub_arch_modules_addr): Return the module address in high memory
9209 (now that it isn't copied anymore).
9211 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
9212 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
9213 decompression routine (grub_total_module_size already includes that
9214 now). Don't copy modules back to low memory.
9216 * kern/main.c: Include `<grub/mm.h>'.
9217 (grub_load_modules): Split out (and use) ...
9218 (grub_module_iterate): ... this function, which iterates through
9219 module objects and runs a hook.
9220 Comment out grub_mm_init_region() call, as it would cause non-ELF
9221 modules to be overwritten.
9223 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
9224 the memdisk image in its own region, make it part of the module list.
9225 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
9226 (main): Parse --memdisk|-m option, and pass user-provided path as
9227 parameter to generate_image().
9228 (add_segments): Pass `memdisk_path' down to load_modules().
9229 (load_modules): Embed memdisk image in module section when requested.
9230 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
9231 `header.type' instead of `header.offset'.
9233 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
9234 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
9235 (memdisk_mod_LDFLAGS): New variables.
9236 * conf/i386-coreboot.rmk: Likewise.
9237 * conf/i386-ieee1275.rmk: Likewise.
9239 2008-08-02 Robert Millan <rmh@aybabtu.com>
9241 * loader/i386/pc/multiboot.c (playground, forward_relocator)
9242 (backward_relocator): New variables. Used to allocate and relocate
9243 the payload, respectively.
9244 (grub_multiboot_load_elf32): Load into heap instead of requested
9245 address, install the appropriate relocator code in each bound of
9246 the payload, and set the entry point such that
9247 grub_multiboot_real_boot() will jump to one of them.
9249 * kern/i386/loader.S (grub_multiboot_payload_size)
9250 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
9251 (grub_multiboot_payload_entry_offset): New variables.
9252 (grub_multiboot_real_boot): Set cpu context to what the relocator
9253 expects, and jump to the relocator instead of the payload.
9255 * include/grub/i386/loader.h (grub_multiboot_payload_size)
9256 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
9257 (grub_multiboot_payload_entry_offset): Export.
9259 2008-08-01 Bean <bean123ch@gmail.com>
9261 * normal/menu_entry.c (editor_getline): Don't return the original
9262 string as result, as it will be released by lexer once it has done
9265 2008-08-01 Robert Millan <rmh@aybabtu.com>
9267 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
9268 within menuentries, not before them.
9269 util/grub.d/10_hurd.in: Likewise.
9271 2008-08-01 Bean <bean123ch@gmail.com>
9273 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
9274 (bufio_mod_SOURCES): New macro.
9275 (bufio_mod_CFLAGS): Likewise.
9276 (bufio_mod_LDFLAGS): Likewise.
9278 * include/grub/bufio.h: New file.
9280 * io/bufio.c: Likewise.
9282 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
9283 (grub_video_reader_png): Use grub_buffile_open to open file.
9285 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
9286 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
9288 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
9289 (grub_video_reader_tga): Use grub_buffile_open to open file.
9291 * font/manager.c: Include <grub/bufio.h>.
9292 (add_font): Use grub_buffile_open to open file.
9294 2008-07-31 Robert Millan <rmh@aybabtu.com>
9296 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
9297 ELF segments, use a macro for arbitrarily accessing any of them instead
9298 of preparing a pointer that allows access to one at a time.
9299 (grub_multiboot_load_elf64): Likewise.
9301 2008-07-31 Bean <bean123ch@gmail.com>
9303 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
9304 GRUB_KERNEL_MACHINE_DATA_END.
9306 2008-07-30 Robert Millan <rmh@aybabtu.com>
9308 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
9309 Increase from 0x50 to 0x60.
9310 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
9311 use UUIDs to identify the root drive for them. If that's not
9313 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
9314 check, for cross-disk installs.
9316 2008-07-30 Robert Millan <rmh@aybabtu.com>
9318 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
9319 is non-empty, use it to set the `prefix' environment variable instead
9320 of the usual approach.
9321 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
9322 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
9323 environment variable instead of dummy make_install_device().
9325 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
9326 (start): Insert a data section, with `grub_prefix' variable.
9327 * kern/i386/linuxbios/startup.S: Likewise.
9329 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
9330 New variable reference.
9331 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
9332 New macro. Defines offset of `grub_prefix' within startup.S (relative
9334 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
9335 section within startup.S (relative to `start').
9336 * include/grub/i386/coreboot/kernel.h: Likewise.
9338 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
9339 Overwrite grub_prefix with its contents, at the beginning of the
9341 (main): Understand -p|--prefix.
9343 2008-07-30 Robert Millan <rmh@aybabtu.com>
9345 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
9347 2008-07-30 Robert Millan <rmh@aybabtu.com>
9349 * term/i386/pc/vga_text.c (grub_console_cls): Use
9350 grub_console_gotoxy() to go back to beginning of the screen.
9351 Found by Patrick Georgi <patrick.georgi@coresystems.de>
9353 2008-07-29 Christian Franke <franke@computer.org>
9355 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
9356 Add conversion of emulated mount points on Cygwin.
9358 2008-07-29 Christian Franke <franke@computer.org>
9360 * util/update-grub.in: Add a check for admin
9362 Remove old `grub.cfg.new' before creation.
9363 Add `-f' to `mv' to handle the different filesystem
9364 semantics of Windows.
9366 2008-07-29 Bean <bean123ch@gmail.com>
9368 * normal/main.c (get_line): Fix buffer overflow bug.
9370 2008-07-28 Robert Millan <rmh@aybabtu.com>
9372 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
9373 (struct grub_apple_header): New struct. Describes the layout of
9375 (apple_partition_map_iterate): Check the header magic as well as the
9376 partition magic (which was already being checked).
9378 2008-07-28 Pavel Roskin <proski@gnu.org>
9380 * genmk.rb: Add a warning to the beginning of the output that
9381 it's a generated file and should not be edited.
9383 2008-07-28 Robert Millan <rmh@aybabtu.com>
9385 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
9386 with the same number are found, just use issue a warning with
9387 grub_dprintf(), as this error has been reported to be non-fatal.
9389 2008-07-27 Robert Millan <rmh@aybabtu.com>
9391 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
9394 2008-07-27 Bean <bean123ch@gmail.com>
9396 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
9397 (grub_fat_find_dir): Ignore case when comparing filename.
9399 2008-07-27 Bean <bean123ch@gmail.com>
9401 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
9402 smallino, as it's more descriptive, and i8count can be confused with
9403 the other field count.
9404 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
9407 2008-07-27 Bean <bean123ch@gmail.com>
9409 * commands/crc.c: New file.
9411 * lib/crc.c: Likewise.
9413 * include/grub/lib/crc.h: Likewise.
9415 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
9417 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
9418 (hexdump): Move this function to ...
9420 * lib/hexdump.c: ... here.
9422 * include/grub/hexdump.h: Renamed to ...
9424 * include/grub/lib/hexdump.h: ... this.
9426 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
9428 * util/grub-editenv.c: Likewise.
9430 * include/envblk.h: Renamed to ...
9432 * include/lib/envblk.h: ... this.
9434 * util/envblk.c: Renamed to ...
9436 * lib/envblk.c: ... this.
9438 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
9440 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
9441 (pkglib_MODULES): Add crc.mod.
9442 (hexdump_mod_SOURCES): Add lib/hexdump.c.
9443 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
9444 (crc_mod_SOURCES): New macro.
9445 (crc_mod_CFLAGS): Likewise.
9446 (crc_mod_LDFLAGS): Likewise.
9448 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
9450 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9452 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9454 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9456 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9458 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
9460 * commands/help.c: Include <grub/term.h>.
9461 (TERM_WIDTH): Removed. Updated all users.
9463 2008-07-27 Pavel Roskin <proski@gnu.org>
9465 * util/getroot.c (find_root_device): Rephrase a comment to avoid
9466 spurious warnings about a comment within a comment.
9468 2008-07-25 Robert Millan <rmh@aybabtu.com>
9470 * util/getroot.c (find_root_device): Skip devices that match
9471 /dev/dm-[0-9]. This lets the real device be found for any type of
9472 abstraction (LVM, EVMS, RAID..).
9473 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
9474 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
9475 device is found first, find_root_device() will now skip it.
9477 2008-07-24 Pavel Roskin <proski@gnu.org>
9479 * include/grub/types.h: Use __builtin_bswap32() and
9480 __builtin_bswap64() with gcc 4.3 and newer.
9482 2008-07-24 Christian Franke <franke@computer.org>
9484 * util/i386/pc/grub-install.in: If `--debug' is specified,
9485 pass `--verbose' to grub-setup.
9486 Abort script if make_system_path_relative_to_its_root() fails.
9488 2008-07-24 Bean <bean123ch@gmail.com>
9490 * configure.ac: Fixed a bug caused by the previous cygwin patch,
9491 variable `target_platform' should be `platform'.
9493 2008-07-24 Bean <bean123ch@gmail.com>
9495 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
9496 (grub_png_init_fixed_block): New function.
9497 (grub_png_decode_image_data): Handle fixed huffman code compression.
9499 2008-07-24 Bean <bean123ch@gmail.com>
9501 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
9502 (grub_pe2elf_SOURCES): New macro.
9503 (CLEANFILES): Add grub-pe2elf.
9505 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
9506 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
9507 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
9508 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
9509 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
9510 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
9511 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
9512 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
9513 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
9514 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
9515 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
9516 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
9517 (GRUB_PE32_DT_FUNCTION): Likewise.
9518 (GRUB_PE32_REL_I386_DIR32): Likewise.
9519 (GRUB_PE32_REL_I386_REL32): Likewise.
9520 (grub_pe32_symbol): New structure.
9521 (grub_pe32_reloc): Likewise.
9523 * util/grub-pe2elf.c: New file.
9525 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
9526 start symbol in non pc platform.
9528 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
9530 The following patches are from Christian Franke.
9532 * include/grub/dl.h: Remove .previous, gas supports this only
9535 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
9536 Remove .type, gas supports this only for ELF format.
9538 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
9539 nullbytes in symbol table. This fixes an infinite loop if table is
9542 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
9543 TARGET_IMG_LDFLAGS and EXEEXT.
9545 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
9546 TARGET_IMG_LDFLAGS_AC.
9547 (grub_CHECK_STACK_ARG_PROBE): New function.
9549 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
9551 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
9553 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
9554 to set TARGET_IMG_LD* accordingly.
9555 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
9556 Add call to grub_CHECK_STACK_ARG_PROBE.
9557 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
9559 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
9561 * genmk.rb: Add EXEEXT to CLEANFILES.
9563 2008-07-23 Robert Millan <rmh@aybabtu.com>
9565 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
9566 define the codes for arrows and lines used for the menu).
9567 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
9570 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
9571 fonts, because the latter are too slow.
9573 2008-07-21 Bean <bean123ch@gmail.com>
9575 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
9576 a20. Run keyboard test last, as it will cause macbook to halt.
9578 2008-07-18 Pavel Roskin <proski@gnu.org>
9580 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
9581 load foreign architecture modules correctly anyway. Keep
9582 support for loading host architecture modules, whether we
9583 compile them or not.
9585 2008-07-17 Pavel Roskin <proski@gnu.org>
9587 * configure.ac: Use -m32 or -m64 regardless of whether we had to
9588 change target_cpu. The compiler default can mismatch target_cpu
9591 * disk/efi/efidisk.c: Fix format warnings on x86_64.
9592 * kern/efi/efi.c: Likewise.
9594 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
9595 target compiler is functional.
9596 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
9599 * configure.ac: Default to efi platform for x86_64-apple. Allow
9600 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
9601 adjustments from the rest, only do them if target is not
9602 explicitly given. Merge other adjustments with the final sanity
9603 check. Remove an extraneous check for supported CPU. Be
9604 specific which CPU and which platform is not supported.
9606 * configure.ac: Default to pc platform for x86_64.
9608 2008-07-17 Robert Millan <rmh@aybabtu.com>
9610 Partial LinuxBIOS -> Coreboot rename.
9612 * conf/i386-linuxbios.rmk: Renamed to ...
9613 * conf/i386-coreboot.rmk: ... this.
9614 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
9615 * configure.ac: Accept "coreboot" as input platform (but maintain
9616 compatibility with "linuxbios").
9617 * include/grub/i386/linuxbios: Renamed to ...
9618 * include/grub/i386/coreboot: ... this.
9620 2008-07-17 Bean <bean123ch@gmail.com>
9622 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
9623 (appleldr_mod_SOURCE): New variable.
9624 (appleldr_mod_CFLAGS): Likewise.
9625 (appleldr_mod_LDFLAGS): Likewise.
9626 (pci_mod_SOURCES): Likewise.
9627 (pci_mod_CFLAGS): Likewise.
9628 (pci_mod_LDFLAGS): Likewise.
9629 (lspci_mod_SOURCES): Likewise.
9630 (lspci_mod_CFLAGS): Likewise.
9631 (lspci_mod_LDFLAGS): Likewise.
9633 * conf/x86_64-efi.rmk: New file.
9635 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
9637 (grub_efidisk_write): Likewise.
9639 * include/efi/api.h (efi_call_0): New macro.
9640 (efi_call_1): Likewise.
9641 (efi_call_2): Likewise.
9642 (efi_call_3): Likewise.
9643 (efi_call_4): Likewise.
9644 (efi_call_5): Likewise.
9645 (efi_call_6): Likewise.
9647 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
9648 grub_rescue_cmd_chainloader.
9650 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
9651 (grub_pe32_optional_header): Change some fields based on i386 or
9653 (GRUB_PE32_PE32_MAGIC): Likewise.
9655 * include/grub/efi/uga_draw.h: New file.
9657 * include/grub/elf.h (STN_ABS): New constant.
9658 (R_X86_64_NONE): Relocation constant for x86_64.
9659 (R_X86_64_64): Likewise.
9660 (R_X86_64_PC32): Likewise.
9661 (R_X86_64_GOT32): Likewise.
9662 (R_X86_64_PLT32): Likewise.
9663 (R_X86_64_COPY): Likewise.
9664 (R_X86_64_GLOB_DAT): Likewise.
9665 (R_X86_64_JUMP_SLOT): Likewise.
9666 (R_X86_64_RELATIVE): Likewise.
9667 (R_X86_64_GOTPCREL): Likewise.
9668 (R_X86_64_32): Likewise.
9669 (R_X86_64_32S): Likewise.
9670 (R_X86_64_16): Likewise.
9671 (R_X86_64_PC16): Likewise.
9672 (R_X86_64_8): Likewise.
9673 (R_X86_64_PC8): Likewise.
9675 * include/grub/i386/efi/pci.h: New file.
9677 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
9678 Change it value based on platform.
9679 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
9680 (GRUB_E820_RAM): Likewise.
9681 (GRUB_E820_RESERVED): Likewise.
9682 (GRUB_E820_ACPI): Likewise.
9683 (GRUB_E820_NVS): Likewise.
9684 (GRUB_E820_EXEC_CODE): Likewise.
9685 (GRUB_E820_MAX_ENTRY): Likewise.
9686 (grub_e820_mmap): New structure.
9687 (linux_kernel_header): Change the efi field according to different
9688 kernel version, also field from linux_kernel_header.
9690 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
9692 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
9693 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
9694 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
9695 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
9696 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
9697 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
9698 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
9699 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
9700 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
9701 (GRUB_PCI_ADDR_IO_MASK): Likewise.
9703 * include/grub/x86_64/efi/kernel.h: New file.
9705 * include/grub/x86_64/efi/loader.h: Likewise.
9707 * include/grub/x86_64/efi/machine.h: Likewise.
9709 * include/grub/x86_64/efi/pci.h: Likewise.
9711 * include/grub/x86_64/efi/time.h: Likewise.
9713 * include/grub/x86_64/linux.h: Likewise.
9715 * include/grub/x86_64/setjmp.h: Likewise.
9717 * include/grub/x86_64/time.h: Likewise.
9719 * include/grub/x86_64/types.h: Likewise.
9721 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
9722 GRUB_TARGET_SIZEOF_VOID_P.
9724 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
9725 (grub_efi_locate_handle): Likewise.
9726 (grub_efi_open_protocol): Likewise.
9727 (grub_efi_set_text_mode): Likewise.
9728 (grub_efi_stall): Likewise.
9729 (grub_exit): Likewise.
9730 (grub_reboot): Likewise.
9731 (grub_halt): Likewise.
9732 (grub_efi_exit_boot_services): Likewise.
9733 (grub_get_rtc): Likewise.
9735 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
9736 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
9737 (grub_efi_allocate_pages): Wrap efi calls.
9738 (grub_efi_free_pages): Wrap efi calls.
9739 (grub_efi_get_memory_map): Wrap efi calls.
9741 * kern/x86_64/dl.c: New file.
9743 * kern/x86_64/efi/callwrap.S: Likewise.
9745 * kern/x86_64/efi/startup.S: Likewise.
9747 * loader/efi/appleloader.c: Likewise.
9749 * loader/efi/chainloader.c (cmdline): New variable.
9750 (grub_chainloader_unload): Wrap efi calls.
9751 (grub_chainloader_boot): Likewise.
9752 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
9755 * loader/efi/chainloader_normal.c (chainloader_command):
9756 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
9759 * loader/i386/efi/linux.c (allocate_pages): Change allocation
9761 (grub_e820_add_region): New function.
9762 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
9764 (grub_find_video_card): New function.
9765 (grub_linux_setup_video): New function.
9766 (grub_rescue_cmd_linux): Probe for video information.
9768 * normal/x86_64/setjmp.S: New file.
9770 * term/efi/console.c (map_char): New function.
9771 (grub_console_putchar): Map unicode char.
9772 (grub_console_checkkey): Wrap efi calls.
9773 (grub_console_getkey): Likewise.
9774 (grub_console_getwh): Likewise.
9775 (grub_console_gotoxy): Likewise.
9776 (grub_console_cls): Likewise.
9777 (grub_console_setcolorstate): Likewise.
9778 (grub_console_setcursor): Likewise.
9780 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
9782 2008-07-16 Pavel Roskin <proski@gnu.org>
9784 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
9787 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
9788 pointer, not an integer. This fixes a warning and prevents
9789 precision loss on 64-bit systems.
9790 (relocate_addresses): Remove unneeded cast.
9792 2008-07-15 Pavel Roskin <proski@gnu.org>
9794 * kern/i386/ieee1275/init.c: Include grub/cache.h.
9796 * term/ieee1275/ofconsole.c: Disable code unused on i386.
9798 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
9799 Fix comparison between signed and unsigned.
9801 * include/grub/i386/ieee1275/console.h: Declare
9802 grub_console_init() and grub_console_fini().
9804 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
9805 It's empty and unused.
9807 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
9808 beginning to avoid warnings with some compilers.
9810 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
9811 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
9813 2008-07-14 Pavel Roskin <proski@gnu.org>
9815 * kern/env.c (grub_register_variable_hook): Don't copy empty
9816 string, it leaks memory. Pass "" to grub_env_set(), it should
9817 handle constant strings.
9819 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
9820 * commands/cmp.c (grub_cmd_cmp): Likewise.
9821 * kern/dl.c (grub_dl_flush_cache): Likewise.
9822 (grub_dl_load_core): Likewise.
9823 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
9824 (grub_elf64_load_phdrs): Likewise.
9826 2008-07-13 Pavel Roskin <proski@gnu.org>
9828 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
9829 between signed and unsigned.
9830 (LzmaEnc_Finish): Fix warning about an unused parameter.
9832 2008-07-13 Bean <bean123ch@gmail.com>
9834 * Makefile.in (enable_lzo): New rule.
9836 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
9838 * configure.ac (ENABLE_LZO): New option --enable-lzo.
9840 * boot/i386/pc/lnxboot.S: #include <config.h>.
9842 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
9843 its value according to the compression algorithm used, lzo or lzma.
9845 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
9846 compression algorithm according to configure macro.
9848 * kern/i386/pc/startup.S (codestart): Likewise.
9850 * kern/i386/pc/lzma_decode.S: New file.
9852 * include/grub/lib/LzFind.h: Likewise.
9854 * include/grub/lib/LzHash.h: Likewise.
9856 * include/grub/lib/LzmaDec.h: Likewise.
9858 * include/grub/lib/LzmaEnc.h: Likewise.
9860 * include/grub/lib/LzmaTypes.h: Likewise.
9862 * lib/LzFind.c: Likewise.
9864 * lib/LzmaDec.c: Likewise.
9866 * lib/LzmaEnc.c: Likewise.
9868 2008-07-13 Bean <bean123ch@gmail.com>
9870 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
9871 (grub_ext4_extent_header): New structure.
9872 (grub_ext4_extent): Likewise.
9873 (grub_ext4_extent_idx): Likewise.
9874 (grub_ext4_find_leaf): New function.
9875 (grub_ext2_read_block): Handle extents.
9877 2008-07-12 Robert Millan <rmh@aybabtu.com>
9879 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
9881 2008-07-11 Robert Millan <rmh@aybabtu.com>
9883 * util/grub.d/40_custom.in: New file. Example on how to add custom
9884 entries to /etc/grub.d.
9885 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
9886 40_custom (implicitly, by merging all the grub.d rules).
9888 2008-07-11 Pavel Roskin <proski@gnu.org>
9890 * commands/read.c (grub_getline): Fix invalid memory access.
9891 Don't add newline to the variable value.
9893 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
9894 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
9895 (serial_hw_get_port): Check validity of the port number.
9896 (grub_cmd_serial): Check return value of serial_hw_get_port().
9898 2008-07-07 Pavel Roskin <proski@gnu.org>
9900 * boot/i386/pc/diskboot.S (notification_string): Replace
9901 "Loading kernel" with just "loading". This is shorter, less
9902 confusing and saves a few bytes for possible future changes.
9904 2008-07-05 Pavel Roskin <proski@gnu.org>
9906 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
9907 size for ATAPI devices, they are undefined. Output sector
9908 number in decimal form.
9910 * disk/ata.c: Use named constants for status bits.
9912 2008-07-04 Pavel Roskin <proski@gnu.org>
9914 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
9915 grub_addr_t before casting it to the void pointer to fix a
9916 warning. Non-addressable regions are discarded earlier.
9917 (grub_arch_modules_addr): Cast _end to grub_addr_t.
9918 * kern/i386/linuxbios/table.c: Include grub/misc.h.
9919 (check_signature): Don't shadow table_header.
9920 (grub_linuxbios_table_iterate): Cast numeric constants to
9921 grub_linuxbios_table_header_t.
9922 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
9925 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
9928 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
9929 pointer, which can cause warnings. Support 64-bit addresses.
9931 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
9932 of sizeof(long). This fixes PowerPC image generation on x86_64.
9934 2008-07-04 Robert Millan <rmh@aybabtu.com>
9936 This fixes a performance issue when pc & gpt partmap iterators
9937 didn't abort iteration even after our hook found what it was
9938 looking for (often causing expensive probes of non-existent drives).
9940 Some callers relied on previous buggy behaviour, since they would
9941 raise an error when their own hooks caused early abortion of its
9944 * kern/device.c (grub_device_open): Improve error message.
9945 * disk/lvm.c (grub_lvm_open): Likewise.
9946 * disk/raid.c (grub_raid_open): Likewise.
9948 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
9949 when hook requests it, independently of grub_errno.
9950 (pc_partition_map_probe): Do not fail when find_func() caused
9951 early abortion of pc_partition_map_iterate().
9953 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
9954 when hook requests it, independently of grub_errno.
9955 (gpt_partition_map_probe): Do not fail when find_func() caused
9956 early abortion of gpt_partition_map_iterate().
9958 * kern/partition.c (grub_partition_iterate): Abort parent iteration
9959 when hook requests it, independently of grub_errno. Do not fail when
9960 part_map_iterate_hook() caused early abortion of p->iterate().
9962 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
9963 when grub_partition_iterate() returned with non-zero.
9965 2008-07-03 Pavel Roskin <proski@gnu.org>
9967 * disk/ata.c (grub_ata_pio_write): Check status before writing,
9968 like we do in grub_ata_pio_read().
9969 (grub_ata_readwrite): Always write individual sectors. Fix the
9970 sector count for the remainder.
9971 (grub_ata_write): Enable writing to ATA devices. Correctly
9972 report error for ATAPI devices.
9974 2008-07-02 Pavel Roskin <proski@gnu.org>
9976 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
9979 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
9980 for every read sector, we already increment it for the whole
9981 batch. This fixes reading more than 256 sectors at once.
9983 * util/grub-editenv.c (cmd_info): Cast argument to long
9984 explicitly. ptrdiff_t reduces to int on i386.
9986 * util/grub-editenv.c (main): Be specific which parameter is
9989 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
9990 (memdisk): Make memdisk_orig_addr a pointer.
9992 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
9993 for file offsets, use grub_off_t instead. Fix printf format
9996 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
9997 there. Real unexpected warnings should not drown in the noise
9998 about known problems.
10000 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
10001 grub_disk_addr_t for memory addresses.
10003 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
10004 explicitly to fix a warning.
10006 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
10008 * Makefile.in (MODULE_LDFLAGS): New variable.
10009 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
10010 the linker accepts --build-id=none.
10011 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
10013 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
10015 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
10016 those in Linux XFS code. Provide a way to access 64-bit parent
10018 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
10019 the end of struct grub_xfs_dir_header.
10021 2008-07-02 Bean <bean123ch@gmail.com>
10023 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
10024 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
10025 and GRUB_IEEE1275_FLAG_NO_ANSI.
10027 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
10028 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
10029 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
10031 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
10032 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
10034 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
10035 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
10037 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
10038 esc sequence on non ANSI terminal.
10039 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
10041 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
10044 2008-07-02 Bean <bean123ch@gmail.com>
10046 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
10047 (grub_editenv_SOURCES): New variable.
10048 (pkglib_MODULES): Add loadenv.mod.
10049 (loadenv_mod_SOURCES): New variable.
10050 (loadenv_mod_CFLAGS): Likewise.
10051 (loadenv_mod_LDFLAGS): Likewise.
10053 * include/grub/envblk.h: New file.
10055 * util/envblk.c: New file.
10057 * util/grub-editenv.c: New file.
10059 * commands/loadenv.c: New file.
10061 2008-07-01 Pavel Roskin <proski@gnu.org>
10063 * include/multiboot2.h (struct multiboot_tag_module): Use char,
10064 not unsigned char. This fixes warnings and is consistent with
10067 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
10069 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
10071 * term/tparm.c (analyze): Always set *popcount.
10073 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
10074 cast to fix a warning.
10076 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
10077 cast to suppress a warning.
10079 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
10080 grub_fshelp_read_file() expects.
10082 * fs/fat.c: Fix UUID calculation on big-endian systems. We
10083 write uuid as a 32-bit value in CPU byte order, so declare and
10086 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
10087 long if the format specifier expects it.
10088 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
10089 * partmap/pc.c (pc_partition_map_iterate): Likewise.
10090 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
10091 long to fix a warning.
10092 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
10093 grub_dprintf() arguments to fix warnings.
10095 2008-06-30 Pavel Roskin <proski@gnu.org>
10097 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
10098 install_bsd_part immediately before core.img is embedded or
10099 modified on disk. This fixes core.img verification if core.img
10100 cannot be embedded.
10102 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
10103 core_path to calculate the blocklist.
10104 Patch from Javier Martín <lordhabbit@gmail.com>
10106 2008-06-29 Robert Millan <rmh@aybabtu.com>
10108 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
10109 block to disk block.
10110 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
10111 Patch from Niels Böhm <bitbucket@arcor.de>
10113 2008-06-29 Robert Millan <rmh@aybabtu.com>
10115 * util/update-grub_lib.in (font_path): Search for fonts in
10116 /boot/grub first, which is more likely to be readable (we aren't
10117 deciding where fonts live, just looking for them).
10119 2008-06-26 Pavel Roskin <proski@gnu.org>
10121 * util/biosdisk.c (read_device_map): Don't leave dead map
10122 entries for devices failing stat() check.
10124 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
10125 core_path_dev for the core.img path on the target device.
10127 2008-06-26 Robert Millan <rmh@aybabtu.com>
10129 * disk/fs_uuid.c: New file.
10130 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
10131 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
10132 (fs_uuid_mod_LDFLAGS): New variables.
10133 * include/grub/disk.h (grub_disk_dev_id): Add
10134 `GRUB_DISK_DEVICE_UUID_ID'.
10135 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
10136 implement iterate().
10138 2008-06-26 Robert Millan <rmh@aybabtu.com>
10140 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
10141 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
10142 Linux image includes no initrd.
10144 2008-06-21 Javier Martín <lordhabbit@gmail.com>
10146 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
10147 call to resolve the core image location that effectively appended the
10150 2008-06-21 Robert Millan <rmh@aybabtu.com>
10152 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
10155 * util/grub.d/10_hurd.in: ... to here ...
10156 * util/grub.d/10_linux.in: ... and here.
10158 2008-06-19 Robert Millan <rmh@aybabtu.com>
10160 * kern/main.c (grub_main): Export `prefix' variable immediately
10161 after it has been set by grub_machine_set_prefix().
10163 2008-06-19 Robert Millan <rmh@aybabtu.com>
10165 * commands/search.c (search_label, search_fs_uuid, search_file): Print
10166 search result when not saving to variable, not the other way around.
10167 When saving to variable, abort iteration as soon as a match is found.
10169 2008-06-19 Robert Millan <rmh@aybabtu.com>
10171 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
10172 check for partition that provides /boot/grub. Its logic is flawed,
10173 as it prevents prepare_grub_to_access_device() from being called
10176 2008-06-19 Robert Millan <rmh@aybabtu.com>
10178 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
10179 "insmod" command directly when abstraction modules are needed,
10180 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
10181 since it had already been processed).
10183 2008-06-19 Pavel Roskin <proski@gnu.org>
10185 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
10186 changed. This is needed in case GRUB_LIBDIR changes.
10187 * conf/i386-ieee1275.rmk: Likewise.
10188 * conf/i386-linuxbios.rmk: Likewise.
10189 * conf/i386-pc.rmk: Likewise.
10190 * conf/powerpc-ieee1275.rmk: Likewise.
10192 2008-06-18 Pavel Roskin <proski@gnu.org>
10194 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
10195 kernel_elf_symlist.c to symlist.c for consistency with other
10196 architectures. Update all users.
10197 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
10199 2008-06-18 Robert Millan <rmh@aybabtu.com>
10201 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
10204 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
10205 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
10206 a RAID device, run setup() for all members independently on whether
10207 LVM abstraction is being used.
10208 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
10209 If grub-mkimage has set `*install_dos_part == -2', don't override this
10211 Perform *install_dos_part adjustments independently on whether
10212 we're embedding or not.
10213 Clarify error message when image is too big for embedding.
10214 Remove duplicate *install_dos_part stanza.
10216 2008-06-17 Robert Millan <rmh@aybabtu.com>
10218 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
10219 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
10221 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
10222 values in grub_ofconsole_normal_color and
10223 grub_ofconsole_highlight_color (they're not directly related to
10224 background and foreground).
10225 (grub_ofconsole_setcolorstate): Extract background and foreground
10226 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
10228 2008-06-17 Robert Millan <rmh@aybabtu.com>
10230 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
10231 /boot/grub for the check in last commit, not /boot (they could be
10232 different partitions).
10234 2008-06-16 Robert Millan <rmh@aybabtu.com>
10236 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
10237 asked to setup access for the same partition that provides /boot,
10238 don't bother using UUIDs since our root already has the value we
10241 2008-06-16 Robert Millan <rmh@aybabtu.com>
10243 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
10245 Patch from Sven Mueller <sven@debian.org>.
10247 2008-06-16 Robert Millan <rmh@aybabtu.com>
10249 * util/update-grub.in: Check for $EUID instead of $UID.
10250 Reported by Vincent Zweije.
10252 2008-06-16 Bean <bean123ch@gmail.com>
10254 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
10255 (grub_ext2_read_block): Likewise.
10256 (grub_ext2_read_inode): Likewise.
10257 (grub_ext2_mount): Likewise.
10258 (grub_ext2_close): Likewise.
10259 (grub_ext3_get_journal): Removed.
10261 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
10262 (grub_reiserfs_read_symlink): Likewise.
10263 (grub_reiserfs_mount): Likewise.
10264 (grub_reiserfs_open): Likewise.
10265 (grub_reiserfs_read): Likewise.
10266 (grub_reiserfs_close): Likewise.
10267 (grub_reiserfs_get_journal): Removed.
10269 * fs/fshelp.c (grub_fshelp_read): Removed.
10270 (grub_fshelp_map_block): Likewise.
10272 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
10273 (grub_fshelp_journal): Likewise.
10274 (grub_fshelp_read): Likewise.
10275 (grub_fshelp_map_block): Likewise.
10277 2008-06-16 Pavel Roskin <proski@gnu.org>
10279 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
10280 floating point anymore.
10281 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
10283 2008-06-15 Pavel Roskin <proski@gnu.org>
10285 * commands/ls.c (grub_ls_list_files): Use integer calculations
10286 for human readable format, avoid floating point use.
10287 * kern/misc.c (grub_ftoa): Remove.
10288 (grub_vsprintf): Remove floating point support.
10290 2008-06-15 Robert Millan <rmh@aybabtu.com>
10292 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
10294 Reported by Max Vozeler.
10296 2008-06-15 Robert Millan <rmh@aybabtu.com>
10298 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
10299 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
10301 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
10302 the beginning of the prefix.
10304 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
10305 It is assumed that if we have a memdisk, grub-mkimage has set
10306 grub_prefix to include the "(memdisk)" drive in it.
10308 2008-06-15 Robert Millan <rmh@aybabtu.com>
10310 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
10311 Initialize keyboard controller after registering the terminal, so that
10312 grub_printf() can be called from grub_keyboard_controller_init().
10314 2008-06-15 Robert Millan <rmh@aybabtu.com>
10316 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
10317 extent-btree which is written as big endian on disk.
10318 Reported by Alain Greppin <al@chilibi.org>.
10320 2008-06-14 Robert Millan <rmh@aybabtu.com>
10322 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
10323 * util/i386/pc/grub-install.in (modules): Likewise.
10325 2008-06-13 Pavel Roskin <proski@gnu.org>
10327 * commands/ls.c (grub_ls_list_files): Fix format warnings.
10329 2008-06-13 Bean <bean123ch@gmail.com>
10331 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
10333 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
10335 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
10336 to indicate sparse block.
10338 2008-06-12 Pavel Roskin <proski@gnu.org>
10340 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
10341 number, grub_fshelp_read() does it for us.
10343 * fs/fshelp.c (grub_fshelp_read): New function. Implement
10344 linear disk read with journal translation.
10345 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
10346 * include/grub/fshelp.h: Declare grub_fshelp_read().
10348 2008-06-09 Pavel Roskin <proski@gnu.org>
10350 * fs/minix.c (grub_minix_mount): Handle error reading
10353 2008-06-08 Robert Millan <rmh@aybabtu.com>
10355 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
10356 don't append the RAID prefix afterwards.
10357 Reported by Clint Adams.
10359 2008-06-08 Robert Millan <rmh@aybabtu.com>
10361 Based on description from Pavel:
10362 * kern/disk.c (grub_disk_check_range): Rename to ...
10363 (grub_disk_adjust_range): ... this. Add a comment explaining the
10364 tasks performed by this function.
10366 2008-06-08 Robert Millan <rmh@aybabtu.com>
10368 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
10369 `num_serial' (for consistency with other variables).
10370 (struct grub_ntfs_data): Add `uuid' member.
10371 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
10372 (grub_ntfs_uuid): New function.
10373 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
10375 2008-06-07 Pavel Roskin <proski@gnu.org>
10377 * util/biosdisk.c (open_device): Revert last change to the
10378 function, it broke installation. The sector needs to be
10379 different dependent on which device is opened.
10381 2008-06-06 Robert Millan <rmh@aybabtu.com>
10383 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
10384 rest of GRUB, and breakage doesn't happen if its value were modified.
10386 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
10387 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
10388 a constant (same value).
10389 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
10390 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
10392 2008-06-06 Robert Millan <rmh@aybabtu.com>
10394 * util/biosdisk.c (open_device): Do not modify sector offset when
10395 accessing a partition. kern/disk.c already handles this for us.
10397 2008-06-06 Robert Millan <rmh@aybabtu.com>
10399 * util/grub-emu.c (grub_machine_init): Move code in this function from
10401 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
10402 segfault in case grub_printf() is called).
10404 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
10405 grub_probe. Update all users not to explicitly add it again.
10406 (grub_device): New variable; contains corresponding device for grubdir.
10407 (fs_module, partmap_module, devabstraction_module): Pass
10408 `--device ${grub_device}' to grub_probe to avoid traversing /dev
10411 2008-06-05 Robert Millan <rmh@aybabtu.com>
10413 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
10414 is found, print it (same layout as with labels).
10416 2008-06-04 Robert Millan <rmh@aybabtu.com>
10418 * util/biosdisk.c (get_drive): Rename to ...
10419 (find_grub_drive): ... this. Update all users.
10421 (get_os_disk): Rename to ...
10422 (convert_system_partition_to_system_disk): ... this. Update all users.
10424 (find_drive): Rename to ...
10425 (find_system_device): ... this. Update all users.
10427 2008-06-04 Robert Millan <rmh@aybabtu.com>
10429 * util/biosdisk.c (get_os_disk): Handle IDA devices.
10430 * util/grub-mkdevicemap.c (get_mmc_disk_name)
10431 (make_device_map): Likewise.
10433 2008-06-01 Robert Millan <rmh@aybabtu.com>
10435 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
10436 before dereferencing it.
10438 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
10439 union with fat12/fat16-specific ones. Add some new fields, including
10440 `num_serial' for both versions.
10441 (struct grub_fat_data): Add `uuid' member.
10442 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
10443 names. Initialize `data->uuid' using `num_serial'.
10444 (grub_fat_uuid): New function.
10445 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
10447 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
10448 (grub_reiserfs_uuid): New function.
10449 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
10452 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
10453 (grub_xfs_uuid): New function.
10454 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
10456 2008-06-01 Robert Millan <rmh@aybabtu.com>
10458 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
10459 code that is backward compatible with pre-uuid search command.
10461 2008-05-31 Robert Millan <rmh@aybabtu.com>
10463 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
10464 floppies after everything else, to ensure floppy drive isn't accessed
10465 unnecessarily (patch from Bean).
10467 2008-05-31 Robert Millan <rmh@aybabtu.com>
10469 * commands/search.c (search_label, search_fs_uuid, search_file): Do
10470 not print device names when we were asked to set a variable.
10472 2008-05-31 Robert Millan <rmh@aybabtu.com>
10474 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
10475 using "cursor-on" and "cursor-off" commands (understood at least by
10476 the Open Firmware flavour on OLPC).
10478 2008-05-31 Michael Gorven <michael@gorven.za.net>
10480 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
10481 on and off sequences.
10483 2008-05-31 Robert Millan <rmh@aybabtu.com>
10485 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
10486 * util/update-grub.in: Likewise.
10488 2008-05-30 Pavel Roskin <proski@gnu.org>
10490 * util/biosdisk.c (linux_find_partition): Simplify logic and
10491 make the code more universal. Keep special processing for
10492 devfs, but use a simple rule for all other devices. If the
10493 device ends with a number, append 'p' and the partition number.
10494 Otherwise, append only the partition number.
10496 2008-05-30 Robert Millan <rmh@aybabtu.com>
10498 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
10499 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
10500 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
10501 the `root' parameter to Linux.
10503 2008-05-30 Robert Millan <rmh@aybabtu.com>
10505 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
10506 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
10507 --fs_uuid with --fs-uuid.
10508 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
10509 all filesystems support them).
10511 2008-05-30 Robert Millan <rmh@aybabtu.com>
10513 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
10514 grub_printf() flags, since we're printing in units of 2 bytes.
10516 2008-05-30 Robert Millan <rmh@aybabtu.com>
10518 * util/grub.d/00_header.in: Remove obsolete comment referencing
10519 convert_system_path_to_grub_path().
10520 * util/update-grub.in: Likewise.
10521 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
10522 (convert_system_path_to_grub_path): Add a warning message explaining
10523 that this function is deprecated. Rely on is_path_readable_by_grub()
10524 for the readability checks.
10525 (font_path): Use is_path_readable_by_grub() for the readability
10526 check rather than convert_system_path_to_grub_path().
10528 2008-05-30 Robert Millan <rmh@aybabtu.com>
10530 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
10531 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
10532 converting it first.
10533 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
10534 grub.cfg for access to font file, and afterwards call it again to set
10537 2008-05-30 Robert Millan <rmh@aybabtu.com>
10539 * commands/search.c (options): Add --fs_uuid option.
10540 (search_fs_uuid): New function.
10541 (grub_cmd_search): Fix --set argument passing.
10542 Use search_fs_uuid() when requested via --fs_uuid.
10543 (grub_search_init): Update help message.
10544 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
10545 and redeclare it as an array of 16-bit words.
10546 (grub_ext2_uuid): New function.
10547 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
10548 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
10549 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
10550 (GRUB_DEVICE_BOOT_UUID): New variables.
10551 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
10552 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
10554 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
10555 just assume `root' variable has the right value.
10556 * util/grub.d/10_linux.in: Likewise.
10557 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
10559 (main): Recognise `-t fs_uuid' argument.
10561 2008-05-30 Robert Millan <rmh@aybabtu.com>
10563 * util/biosdisk.c (map): Redefine structure to hold information
10564 about GRUB drive name.
10565 (get_drive): Reimplement without assuming (and verifying) BIOS-like
10567 (call_hook): Remove.
10568 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
10569 member. Assume drive has partitions.
10570 (grub_util_biosdisk_open): Access device names via `.device' struct
10572 (open_device): Likewise.
10573 (find_drive): Likewise.
10574 (read_device_map): Adjust map[] usage to match the new struct
10575 definition. Don't check for duplicates (still possible, but not cheap
10577 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
10578 (make_device_name): Remove assumption of BIOS-like drive names.
10580 2008-05-30 Pavel Roskin <proski@gnu.org>
10582 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
10583 compiling execute.c doesn't need grub_script.tab.h anymore.
10584 (normal/command.c_DEPENDENCIES): Likewise.
10585 (normal/function.c_DEPENDENCIES): Likewise.
10586 * conf/i386-ieee1275.rmk: Likewise.
10587 * conf/i386-linuxbios.rmk: Likewise.
10588 * conf/i386-pc.rmk: Likewise.
10589 * conf/powerpc-ieee1275.rmk: Likewise.
10590 * conf/sparc64-ieee1275.rmk: Likewise.
10592 2008-05-29 Pavel Roskin <proski@gnu.org>
10594 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
10595 when scanning metadata for volume group name.
10597 * include/grub/script.h: Don't include grub_script.tab.h. It's
10598 a generated file, which may only be included from the files with
10599 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
10600 use union YYSTYPE, as the later allows forward declaration.
10601 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
10603 2008-05-29 Robert Millan <rmh@aybabtu.com>
10605 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
10606 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
10607 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
10608 (grub_console_checkkey): Add grub_dprintf() call to report unknown
10611 2008-05-29 Robert Millan <rmh@aybabtu.com>
10613 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
10614 control key combinations.
10616 2008-05-29 Robert Millan <rmh@aybabtu.com>
10618 * util/powerpc/ieee1275/grub-install.in: Move from here ...
10619 * util/ieee1275/grub-install.in: ... to here.
10620 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
10621 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
10622 (grub_install_SOURCES): Likewise.
10624 2008-05-29 Robert Millan <rmh@aybabtu.com>
10626 * fs/affs.c: Update copyright year.
10627 * fs/ext2.c: Likewise.
10628 * fs/fshelp.c: Likewise.
10629 * fs/hfsplus.c: Likewise.
10630 * fs/ntfs.c: Likewise.
10631 * fs/xfs.c: Likewise.
10632 * include/grub/fshelp.h: Likewise.
10633 * util/grub-mkdevicemap.c: Likewise.
10635 2008-05-28 Robert Millan <rmh@aybabtu.com>
10637 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
10638 might need to be fatfs to support some firmware implementations
10641 2008-05-28 Robert Millan <rmh@aybabtu.com>
10643 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
10645 * util/grub-mkdevicemap.c (get_mmc_disk_name)
10646 (make_device_map): Likewise.
10648 2008-05-20 Bean <bean123ch@gmail.com>
10650 * fs/fshelp.c (grub_fshelp_map_block): New function.
10651 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
10652 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
10654 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
10655 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
10656 (grub_fshelp_journal): New structure.
10657 (grub_fshelp_map_block): New function prototype.
10658 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
10659 (grub_fshelp_map_block): Likewise.
10661 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
10662 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
10663 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
10664 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
10665 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
10666 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
10667 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
10668 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
10669 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
10670 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
10671 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
10672 (grub_ext2_sblock): New members for journal support.
10673 (grub_ext3_journal_header): New structure.
10674 (grub_ext3_journal_revoke_header): Likewise.
10675 (grub_ext3_journal_block_tag): Likewise.
10676 (grub_ext3_journal_sblock): Likewise.
10677 (grub_fshelp_node): New members logfile and journal.
10678 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
10679 grub_fshelp_map_block to get real block number.
10680 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
10682 (grub_ext2_read_inode): Likewise.
10683 (grub_ext3_get_journal): New function.
10684 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
10685 (grub_ext2_close): Release memory used by journal.
10687 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
10688 (REISERFS_MAGIC_DESC_BLOCK): New macro.
10689 (grub_reiserfs_transaction_header): Renamed to
10690 grub_reiserfs_description_block, replace field data with real_blocks.
10691 (grub_reiserfs_commit_block): New structure.
10692 (grub_reiserfs_data): New member journal.
10693 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
10695 (grub_reiserfs_read_symlink): Likewise.
10696 (grub_reiserfs_iterate_dir): Likewise.
10697 (grub_reiserfs_open): Likewise.
10698 (grub_reiserfs_read): Likewise.
10699 (grub_reiserfs_get_journal): New function.
10700 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
10701 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
10702 using grub_reiserfs_get_journal.
10703 (grub_reiserfs_close): Release memory used by journal.
10705 * fs/affs.c (grub_affs_read_block): Change block type to
10706 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
10708 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
10710 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
10712 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
10714 * fs/udf.c (grub_udf_read_block): Change block type to
10715 grub_disk_addr_t. Use type cast to avoid warning.
10717 * fs/xfs.c (grub_xfs_read_block): Likewise.
10719 2008-05-16 Christian Franke <franke@computer.org>
10721 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
10722 to ensure that break with ESC will always work.
10723 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
10724 Remove ESC from keyboard queue.
10726 2008-05-16 Christian Franke <franke@computer.org>
10728 * util/biosdisk.c: [__CYGWIN__] Add includes.
10729 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
10730 (get_os_disk): Move variable declarations to OS specific
10731 parts to avoid warning.
10732 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
10733 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
10734 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
10736 * util/getroot.c: [__CYGWIN__] Add includes.
10737 (strip_extra_slashes): Fix "/" case.
10738 [__CYGWIN__] (get_win32_path): New function.
10739 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
10740 [__CYGWIN__] (find_root_device): Disable.
10741 [__CYGWIN__] (get_bootsec_serial): New function.
10742 [__CYGWIN__] (find_cygwin_root_device): Likewise.
10743 [__linux__] (grub_guess_root_device): Add early returns to simplify
10745 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
10746 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
10747 check for Linux only.
10749 2008-05-15 Bean <bean123ch@gmail.com>
10751 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
10752 keyboard hang problem in apple's intel mac.
10754 2008-05-09 Robert Millan <rmh@aybabtu.com>
10756 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
10758 * util/grub-mkdevicemap.c (get_virtio_disk_name)
10759 (make_device_map): Likewise.
10760 Reported by Aurelien Jarno <aurel32@debian.org>
10762 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
10764 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
10765 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
10766 (make_device_map): Output entries for xvd type disks.
10768 2008-05-07 Robert Millan <rmh@aybabtu.com>
10770 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
10772 * util/grub-mkdevicemap.c (get_cciss_disk_name)
10773 (make_device_map): Likewise.
10774 Reported by Roland Dreier <rdreier@cisco.com>
10776 2008-05-07 Robert Millan <rmh@aybabtu.com>
10778 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
10779 grub_strstr() call. Correct a few mistakes in failure path handling.
10781 2008-05-06 Robert Millan <rmh@aybabtu.com>
10783 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
10784 Do not print a trailing slash (therefore, the root directory is an
10786 (convert_system_path_to_grub_path): Do not remove trailing slash
10787 from make_system_path_relative_to_its_root() output.
10789 * util/i386/pc/grub-install.in: Add trailing slash to output from
10790 make_system_path_relative_to_its_root().
10792 2008-05-06 Robert Millan <rmh@aybabtu.com>
10794 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
10795 ensures that output lines aren't intermangled with those sent to
10796 stderr (via grub_util_info()).
10797 * util/grub-probe.c (grub_refresh): Likewise.
10798 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
10800 2008-05-05 Christian Franke <franke@computer.org>
10802 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
10803 Add Cygwin device names.
10804 (get_ide_disk_name) [__CYGWIN__]: Likewise.
10805 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
10806 (check_device): Return error instead of success on empty name.
10807 (make_device_map): Move label inside linux specific code to
10808 prevent compiler warning.
10810 2008-04-30 Robert Millan <rmh@aybabtu.com>
10812 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
10813 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
10815 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
10817 2008-04-29 Robert Millan <rmh@aybabtu.com>
10819 * docs/grub.cfg: New file (example GRUB configuration).
10821 2008-04-26 Robert Millan <rmh@aybabtu.com>
10823 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
10824 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
10825 and `disk/ieee1275/nand.c'.
10827 2008-04-25 Bean <bean123ch@gmail.com>
10829 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
10832 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
10833 change the buffer size to 4096 for cdrom device.
10835 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
10837 (_linux_mod_SOURCES): New variable.
10838 (_linux_mod_CFLAGS): Likewise.
10839 (_linux_mod_LDFLAGS): Likewise.
10840 (linux_mod_SOURCES): Likewise.
10841 (linux_mod_CFLAGS): Likewise.
10842 (linux_mod_LDFLAGS): Likewise.
10843 (nand_mod_SOURCES): Likewise.
10844 (nand_mod_CFLAGS): Likewise.
10845 (nand_mod_LDFLAGS): Likewise.
10847 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
10848 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
10849 type property. (nand device in olpc don't have this property)
10851 * include/grub/disk.h (grub_disk_dev_id): New macro
10852 GRUB_DISK_DEVICE_NAND_ID.
10854 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
10855 function prototype.
10856 (grub_rescue_cmd_initrd): Likewise.
10858 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
10859 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
10860 ofw_cif_handler and ofw_idt, adjust padding number.
10862 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
10863 GRUB_MACHINE_IEEE1275 is defined.
10865 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
10866 Use NESTED_FUNC_ATTR attribute on the hook parameter.
10868 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
10869 on nested function heap_init.
10870 (grub_upper_mem): New variable for i386-ieee1275.
10871 (grub_get_extended_memory): New function for i386-ieee1275.
10872 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
10874 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
10875 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
10878 * loader/i386/ieee1275/linux.c: New file.
10880 * loader/i386/ieee1275/linux_normal.c: New file.
10882 * disk/ieee1275/nand.c: New file.
10884 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
10886 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
10888 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
10890 2008-04-18 Robert Millan <rmh@aybabtu.com>
10892 Restructures early code path on ieee1275 to unify grub_main() as
10893 the first C function that is executed in every platform.
10895 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
10896 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
10898 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
10899 * kern/ieee1275/cmain.c (cmain): Rename to ...
10900 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
10901 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
10904 2008-04-18 Robert Millan <rmh@aybabtu.com>
10906 * util/update-grub.in: Fix syntax error when setting
10907 `GRUB_PRELOAD_MODULES'.
10908 Reported by Stephane Chazelas <stephane@artesyncp.com>
10910 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
10912 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
10913 section into account, newer toolchains generate unique build ids
10914 * configure.ac: remove the test for --build-id=none acceptance,
10915 we want build ids to be preserved
10916 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
10917 far from other sections don't cause the raw binary images grow
10920 2008-04-15 Robert Millan <rmh@aybabtu.com>
10922 * disk/lvm.c: Update copyright year.
10923 * kern/misc.c: Likewise.
10925 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10927 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
10928 there is no memory left for physical volume name.
10930 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10932 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
10933 volume name mapping to support bigger than 9 character names properly.
10935 2008-04-13 Robert Millan <rmh@aybabtu.com>
10937 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
10938 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
10940 2008-04-13 Christian Franke <franke@computer.org>
10942 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
10943 to create a floppy emulation boot CD when non emulation mode
10945 Enable Joliet CD filesystem extension.
10947 2008-04-13 Robert Millan <rmh@aybabtu.com>
10949 * kern/misc.c (grub_strncat): Fix off-by-one error.
10950 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
10952 * kern/env.c (grub_env_context_close): Clear current context, not
10954 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
10956 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
10958 2008-04-13 Robert Millan <rmh@aybabtu.com>
10960 Improve robustness when handling LVM.
10962 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
10963 (and leave `*p' unmodified).
10964 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
10966 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
10967 iterating through it.
10968 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
10970 (grub_lvm_scan_device): Check the return value (and fail gracefully
10971 when due) on each grub_lvm_getvalue() or grub_strstr() call.
10972 Don't assume `vg->pvs != NULL' when iterating through it.
10974 2008-04-13 Robert Millan <rmh@aybabtu.com>
10976 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
10977 * genmk.rb (partmap): New variable.
10978 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
10979 (#{partmap}): New target rule.
10980 * genpartmaplist.sh: New file.
10981 * Makefile.in (pkglib_DATA): Add partmap.lst.
10982 (partmap.lst): New target rule.
10983 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
10984 modules (including all partition maps), instead of preloading them.
10986 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
10988 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
10989 `linux-boot-prober' (if installed) to detect other operating
10990 systems which are installed on the computer and add them to
10992 * conf/common.rmk: Build and install 30_os-prober.
10994 2008-04-12 Robert Millan <rmh@aybabtu.com>
10996 * kern/powerpc/ieee1275/init.c: Move from here ...
10997 * kern/ieee1275/init.c: ... to here. Update all users.
10999 * kern/powerpc/ieee1275/cmain.c: Move from here ...
11000 * kern/ieee1275/cmain.c: ... to here. Update all users.
11002 * kern/powerpc/ieee1275/openfw.c: Move from here ...
11003 * kern/ieee1275/openfw.c: ... to here. Update all users.
11005 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
11006 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
11008 2008-04-10 Pavel Roskin <proski@gnu.org>
11010 * configure.ac: Always use "_cv_" in cache variables for
11011 compatibility with Autoconf 2.62.
11013 2008-04-07 Robert Millan <rmh@aybabtu.com>
11015 Revert grub/machine/init.h addition by Pavel (since it breaks on
11016 i386-ieee1275 and others):
11017 * util/i386/pc/misc.c: Remove grub/machine/init.h.
11018 * util/powerpc/ieee1275/misc.c: Likewise.
11020 2008-04-07 Robert Millan <rmh@aybabtu.com>
11022 * util/grub-probe.c (probe): Improve error message.
11024 2008-04-07 Robert Millan <rmh@aybabtu.com>
11026 * util/biosdisk.c (read_device_map): Skip devices that don't exist
11027 (this prevents the presence of a bogus entry from ruining the whole
11030 2008-04-06 Pavel Roskin <proski@gnu.org>
11032 * util/biosdisk.c: Include grub/util/biosdisk.h.
11033 * util/grub-fstest.c (execute_command): Make static.
11034 * util/grub-mkdevicemap.c (check_device): Likewise.
11035 * util/i386/pc/misc.c: Include grub/machine/init.h.
11036 * util/powerpc/ieee1275/misc.c: Likewise.
11037 * util/lvm.c: Include grub/util/lvm.h.
11038 * util/misc.c: Include grub/kernel.h, grub/misc.h and
11040 * util/raid.c: Include grub/util/raid.h.
11041 (grub_util_getdiskname): Make static.
11043 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
11044 grub_hostfs_fini(), as they are called from grub_init_all() and
11045 grub_fini_all() respectively. This fixes an infinite loop in
11046 grub-fstest due to double registration of hostfs.
11047 Reported by Christian Franke <Christian.Franke@t-online.de>
11049 2008-04-05 Pavel Roskin <proski@gnu.org>
11051 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
11052 all 8 functions. Otherwise, probe function 0 only.
11054 2008-04-04 Pavel Roskin <proski@gnu.org>
11056 * commands/lspci.c (grub_lspci_iter): Print the bus number
11059 * commands/lspci.c (grub_pci_classes): Fix typos.
11060 (grub_lspci_iter): Don't print func twice. Print vendor ID
11061 before device ID, as it's normally done.
11063 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
11064 Fix signedness warnings.
11065 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
11067 * util/ieee1275/get_disk_name.c: Include config.h so that
11068 _GNU_SOURCE is defined and getline() is declared. Mark an
11069 unused argument as such. Fix a signedness warning.
11071 2008-04-02 Pavel Roskin <proski@gnu.org>
11073 * genkernsyms.sh.in: Use more robust assignments for CC and
11074 srcdir. Quote srcdir.
11075 * gensymlist.sh.in: Likewise. Assert at the compile time that
11076 the symbol table is not empty.
11078 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
11079 * fs/cpio.c (grub_cpio_read): Likewise.
11081 2008-04-01 Pavel Roskin <proski@gnu.org>
11083 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
11084 * disk/host.c (grub_host_open): Likewise.
11085 * disk/loopback.c (grub_loopback_open): Likewise.
11086 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
11087 disk->id as in disk/host.c, not a multi-character constant.
11089 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
11090 later is obsolete, potentially dangerous and sets a bad example.
11091 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
11092 * util/misc.c (grub_util_get_image_size): Likewise.
11094 * disk/loopback.c (options): Improve help for "--partitions".
11096 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
11097 options to align them with the short options, e.g. "echo -e".
11099 2008-03-31 Bean <bean123ch@gmail.com>
11101 * video/reader/png.c (grub_png_data): New member is_16bit and
11103 (grub_png_decode_image_header): Detect 16 bit png image.
11104 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
11105 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
11106 (grub_video_reader_png): Release memory occupied by image_data.
11108 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
11110 (grub_nfs_mount): Skip the test for sector per cluster.
11112 * include/grub/ntfs.h (MAX_SPC): Removed.
11114 2008-03-31 Bean <bean123ch@gmail.com>
11116 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
11117 (grub_probe_SOURCES): Add fs/afs.c.
11118 (grub_fstest_SOURCES): Likewise.
11119 (afs_mod_SOURCES): New variable.
11120 (afs_mod_CFLAGS): Likewise.
11121 (afs_mod_LDFLAGS): Likewise.
11123 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
11124 (grub_emu_SOURCES): Likewise.
11126 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11128 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11130 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11134 * fs/afs.c: New file.
11136 2008-03-30 Pavel Roskin <proski@gnu.org>
11138 * disk/host.c: Include grub/misc.h to fix a warning.
11139 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
11140 warnings about implicit declarations.
11142 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
11144 * include/grub/i386/loader.h: Change declaration of
11145 grub_linux_boot() to match what grub_loader_set() expects.
11146 * util/getroot.c (grub_guess_root_device): Return const char* to
11148 * util/grub-probe.c (probe): Fix a warning about uninitialized
11149 abstraction_name variable.
11150 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
11151 second argument as unused to fix a warning.
11153 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
11154 missing grub_error() call.
11156 * util/update-grub_lib.in: Define datarootdir, since Autoconf
11157 2.60 and newer uses it to define datadir.
11159 * commands/sleep.c: Fix warning about implicit declaration.
11160 * disk/memdisk.c: Likewise.
11161 * loader/aout.c: Likewise.
11162 * loader/i386/bsd_normal.c: Likewise.
11163 * util/grub-probe.c: Likewise.
11165 * commands/i386/cpuid.c (has_longmode): Make static.
11166 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
11167 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
11169 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
11170 GDT. This is more robust, as %ds can change.
11171 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
11172 calling real_to_prot().
11173 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
11175 2008-03-28 Pavel Roskin <proski@gnu.org>
11177 * kern/i386/pc/startup.S: Assert that uncompressed functions
11178 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
11179 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
11180 code, as they push parts of the code (error handlers) beyond
11181 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
11182 code as correctness and size.
11184 2008-03-28 Pavel Roskin <proski@gnu.org>
11186 * kern/i386/pc/startup.S
11187 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
11188 data block address to the real mode, keep offset minimal. This
11189 works around a bug in AWARD BIOS on old Athlon systems, which
11190 makes CD detection hang.
11192 2008-03-26 Pavel Roskin <proski@gnu.org>
11194 * normal/color.c (grub_parse_color_name_pair): Make `name' a
11196 * include/grub/normal.h: Add grub_parse_color_name_pair()
11199 2008-03-24 Bean <bean123ch@gmail.com>
11201 * disk/i386/pc/biosdisk.c (cd_start): Removed.
11202 (cd_count): Removed.
11203 (cd_drive): New variable.
11204 (grub_biosdisk_get_drive): Don't check for (cdN) device.
11205 (grub_biosdisk_call_hook): Likewise.
11206 (grub_biosdisk_iterate): Change cdrom detection method.
11207 (grub_biosdisk_open): Replace cd_start with cd_drive.
11208 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
11209 detect cdrom device.
11211 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
11213 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
11214 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
11215 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
11216 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
11217 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
11218 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
11219 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
11220 (grub_biosdisk_cdrp): New structure.
11221 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
11223 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
11225 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
11228 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
11231 2008-03-20 Robert Millan <rmh@aybabtu.com>
11233 Remove 2 TiB limit in ata.mod.
11234 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
11235 (grub_ata_dumpinfo): Print sector count with 0x%llx.
11236 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
11237 grub_uint64_t instead of grub_uint32_t.
11239 2008-03-05 Bean <bean123ch@gmail.com>
11241 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
11242 (grub_multiboot): Set boot device.
11244 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
11246 2008-03-02 Bean <bean123ch@gmail.com>
11248 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
11251 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
11253 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
11256 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
11259 * docs/fdl.texi: New file.
11261 * docs/mdate-sh: New file. Copied from gnulib.
11262 * docs/texinfo.tex: Likewise.
11264 * config.guess: Updated from gnulib.
11265 * install-sh: Likewise.
11267 2008-02-28 Robert Millan <rmh@aybabtu.com>
11269 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
11270 (aout_mod_SOURCES): New variable.
11271 (aout_mod_CFLAGS): Likewise.
11272 (aout_mod_LDFLAGS): Likewise.
11274 * conf/i386-ieee1275.rmk: Likewise.
11276 2008-02-28 Robert Millan <rmh@aybabtu.com>
11278 * util/update-grub.in: Reorganise terminal validity check. Accept
11279 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
11280 Based on suggestion by Franklin PIAT.
11282 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
11284 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
11286 * util/getroot.c (grub_util_check_block_device): New function that
11287 returns the given argument if it is a block device and returns NULL else.
11288 * util/grub-probe.c (argument_is_device): New variable.
11289 (probe): Promote device_name from a variable to an argument. Receive
11290 device_name from grub_util_check_block_device() if path is NULL and from
11291 grub_guess_root_device() else. Do not free() device_name anymore.
11292 (options): Introduce new parameter '-d, --device'.
11293 (main): Add description of the new parameter to the help screen.
11294 Rename path variable to argument. Set argument_is_device if the '-d'
11295 option is given. Pass argument to probe() depending on
11296 argument_is_device.
11298 2008-02-24 Bean <bean123ch@gmail.com>
11300 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
11301 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
11302 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
11303 (GRUB_ISO9660_VOLDESC_PART): Likewise.
11304 (GRUB_ISO9660_VOLDESC_END): Likewise.
11305 (grub_iso9660_primary_voldesc): New member escape.
11306 (grub_iso9660_data): New member joliet.
11307 (grub_iso9660_convert_string): New function.
11308 (grub_iso9660_mount): Detect joliet extension.
11309 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
11310 (grub_iso9660_iso9660_label): Likewise.
11312 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
11313 (grub_setup_SOURCES): Add fs/udf.c.
11314 (grub_fstest_SOURCES): Likewise.
11315 (udf_mod_SOURCES): New variable.
11316 (udf_mod_CFLAGS): Likewise.
11317 (udf_mod_LDFLAGS): Likewise.
11319 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
11320 (grub_emu_SOURCES): Likewise.
11322 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11324 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11326 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11328 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11330 * fs/udf.c: New file.
11332 2008-02-24 Robert Millan <rmh@aybabtu.com>
11334 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
11335 (normal/lexer.c_DEPENDENCIES): New variables.
11336 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
11337 (normal/lexer.c_DEPENDENCIES): Likewise.
11338 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
11339 (normal/lexer.c_DEPENDENCIES): Likewise.
11340 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
11341 (normal/lexer.c_DEPENDENCIES): Likewise.
11342 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
11343 (normal/lexer.c_DEPENDENCIES): Likewise.
11344 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
11345 (normal/lexer.c_DEPENDENCIES): Likewise.
11347 2008-02-23 Robert Millan <rmh@aybabtu.com>
11349 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
11350 since they were intended to be in hex. This didn't break previously
11351 because of a bug in gpt_partition_map_iterate() (see below).
11353 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
11354 when checking the validity of GPT header.
11355 Remove `partno', since it always provides the same information as `i'.
11357 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
11359 * include/grub/efi/time.h: Fix a wrong comment.
11361 2008-02-19 Pavel Roskin <proski@gnu.org>
11363 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
11366 2008-02-19 Bean <bean123ch@gmail.com>
11368 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
11369 (aout_mod_SOURCES): New variable.
11370 (aout_mod_CFLAGS): Likewise.
11371 (aout_mod_LDFLAGS): Likewise.
11372 (_bsd_mod_SOURCES): New variable.
11373 (_bsd_mod_CFLAGS): Likewise.
11374 (_bsd_mod_LDFLAGS): Likewise.
11375 (bsd_mod_SOURCES): New variable.
11376 (bsd_mod_CFLAGS): Likewise.
11377 (bsd_mod_LDFLAGS): Likewise.
11379 * include/grub/aout.h: New file.
11381 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
11383 * include/grub/i386/bsd.h: New file.
11385 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
11388 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
11389 function is called, so that it's possible to change it inside the hook.
11390 (grub_elf64_load): Likewise.
11391 (grub_elf_file): Don't close the file if elf header is not found.
11392 (grub_elf_close): Close the file if grub_elf_file fails (The new
11393 grub_elf_file won't close it).
11394 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
11395 (grub_elf64_size): Likewise.
11397 * kern/i386/loader.S (grub_unix_real_boot): New function.
11399 * loader/aout.c: New file.
11401 * loader/i386/bsd.c: New file.
11403 * loader/i386/bsd_normal.c: New file.
11405 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
11407 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
11408 can test other formats.
11410 2008-02-19 Robert Millan <rmh@aybabtu.com>
11412 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
11413 (grub_gpt_partition_type_empty): Redefine with macro from
11414 `<grub/gpt_partition.h>'.
11415 (gpt_partition_map_iterate): Adjust partition type comparison.
11417 Export `entry' as partmap-specific `part.data' struct.
11418 (grub_gpt_header, grub_gpt_partentry): Move from here ...
11420 * include/grub/gpt_partition.h (grub_gpt_header)
11421 (grub_gpt_partentry): ... to here (new file).
11423 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
11425 (grub_gpt_partition_type_bios_boot): New const variable, defined
11426 with macro from `<grub/gpt_partition.h>'.
11428 (setup): Replace `first_start' with `embed_region', which keeps
11429 track of the embed region (and is partmap-agnostic).
11431 Replace find_first_partition_start() with find_usable_region(),
11432 which finds a usable region for embedding using partmap-specific
11433 knowledge (supports PC/MSDOS and GPT).
11435 Fix all assumptions that the embed region start at sector 1, using
11436 `embed_region.start' from now on. Similarly, use `embed_region.end'
11437 rather than `first_start' to calculate available size.
11439 In grub_util_info() message, replace "into after the MBR" with an
11440 indication of the specific sector our embed region starts at.
11442 2008-02-19 Robert Millan <rmh@aybabtu.com>
11444 * DISTLIST: Replace `commands/ieee1275/halt.c' and
11445 `commands/ieee1275/reboot.c' with `commands/halt.c' and
11446 `commands/reboot.c'.
11447 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
11448 (halt_mod_SOURCES): Likewise.
11449 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
11450 (halt_mod_SOURCES): Likewise.
11452 2008-02-17 Christian Franke <franke@computer.org>
11454 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
11456 2008-02-17 Robert Millan <rmh@aybabtu.com>
11458 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
11459 set `first_start' to 0 for non-PC/MSDOS partition maps.
11461 2008-02-16 Robert Millan <rmh@aybabtu.com>
11463 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
11464 do not assume partition map is PC/MSDOS before performing checks that
11465 are specific to that layout.
11467 2008-02-13 Robert Millan <rmh@aybabtu.com>
11469 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
11470 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
11471 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
11473 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
11475 * configure.ac: Only a cosmetic change on the handling of
11476 -fno-stack-protector.
11478 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
11480 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
11481 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
11483 (grub_install_SOURCES): Add halt.mod and reboot.mod.
11484 (halt_mod_SOURCES): New variable.
11485 (halt_mod_CFLAGS): Likewise.
11486 (halt_mod_LDFLAGS): Likewise.
11487 (reboot_mod_SOURCES): Likewise.
11488 (reboot_mod_CFLAGS): Likewise.
11489 (reboot_mod_LDFLAGS): Likewise.
11491 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
11492 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
11494 (halt_mod_SOURCES): Likewise.
11495 (reboot_mod_SOURCES): Likewise.
11497 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
11498 commands/i386/pc/reboot.c by commands/reboot.c.
11499 (reboot_mod_SOURCES): Likewise.
11501 * commands/i386/pc/reboot.c: merge this file ...
11503 * commands/ieee1275/reboot.c: ... and this file ...
11505 * commands/reboot.c: ... to this file.
11506 Add some precompiler directive to include the correct header for
11509 * commands/ieee1275/halt.c: move this file ...
11511 * commands/halt.c: ... to here.
11512 Add some precompiler directive to include the correct header for
11515 * include/grub/efi/efi.h (grub_reboot): New function declaration.
11516 (grub_halt): Likewise.
11518 * kern/efi/efi.c (grub_reboot): New function.
11519 (grub_halt): Likewise.
11521 2008-02-12 Robert Millan <rmh@aybabtu.com>
11523 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
11524 /dev (like it is done for /dev/mapper). This doesn't provide support
11525 for EVMS, but at least it is now easy to identify the problem when it
11528 2008-02-11 Robert Millan <rmh@aybabtu.com>
11530 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
11531 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
11532 comparing it with -1, not 0.
11534 2008-02-10 Robert Millan <rmh@aybabtu.com>
11536 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
11538 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11539 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
11541 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
11542 `disk/lvm.c' to the end of the list.
11543 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11544 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
11546 2008-02-10 Robert Millan <rmh@aybabtu.com>
11548 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
11549 grub_print_error() instead. This will let user know why we're entering
11551 Based on suggestions from Sam Morris.
11553 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
11555 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
11556 on remaining N args, instead of "--" arg N times.
11558 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
11560 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
11561 (fill_with_default_glyph): Changed to use unknown_glyph for fill
11562 pattern for unknown glyphs.
11564 2008-02-09 Robert Millan <rmh@aybabtu.com>
11566 * configure.ac: Probe for `help2man'.
11567 * Makefile.in (builddir): New variable.
11568 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
11569 or otherwise add a few flags/options to it.
11570 (install-local): For every executable utility or script that is
11571 installed, invoke $(HELP2MAN) to install a manpage based on --help
11574 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
11575 that it doesn't prevent --help from working in build tree.
11577 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
11578 with `bug-grub@gnu.org'.
11579 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
11580 * util/update-grub.in (usage): New function.
11581 Implement proper argument check, with support for --help and --version
11582 (as well as existing -y).
11584 2008-02-09 Christian Franke <franke@computer.org>
11586 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
11587 avoid overwriting previous output.
11588 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
11590 2008-02-09 Robert Millan <rmh@aybabtu.com>
11592 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
11595 2008-02-09 Robert Millan <rmh@aybabtu.com>
11597 * commands/sleep.c: New file.
11598 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
11599 (sleep_mod_SOURCES): New variable.
11600 (sleep_mod_CFLAGS): Likewise.
11601 (sleep_mod_LDFLAGS): Likewise.
11603 2008-02-09 Robert Millan <rmh@aybabtu.com>
11605 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
11606 situations in which we can deduce the RAID size and the superblock
11609 2008-02-09 Robert Millan <rmh@aybabtu.com>
11611 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
11612 and return a grub_diskmemberlist_t composed of LVM physical volumes.
11613 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
11615 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
11616 and return a grub_diskmemberlist_t composed of physical array members.
11617 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
11619 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
11621 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
11622 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
11623 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
11625 * util/grub-probe.c (probe): Move partmap probing code from here ...
11626 (probe_partmap): ... to here.
11627 (probe): Use probe_partmap() once for the disk we're probing, and
11628 additionally, when such disk contains a memberlist() struct member,
11629 once for each disk that is contained in the structure returned by
11632 2008-02-09 Robert Millan <rmh@aybabtu.com>
11634 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
11635 environment variable to 'all' in order to obtain debug output from
11637 * util/i386/pc/grub-setup.c (main): Likewise.
11639 2008-02-08 Robert Millan <rmh@aybabtu.com>
11641 * disk/raid.c (grub_raid_scan_device): Check for
11642 `array->device[sb.this_disk.number]' rather than for
11643 `array->device[sb.this_disk.number]->name', since the latter is not
11644 guaranteed to be accessible.
11646 2008-02-08 Robert Millan <rmh@aybabtu.com>
11648 * disk/raid.c: Update copyright.
11649 * fs/cpio.c: Likewise.
11650 * include/grub/raid.h: Likewise.
11651 * loader/i386/pc/multiboot.c: Likewise.
11652 * util/hostfs.c: Likewise.
11654 2008-02-08 Robert Millan <rmh@aybabtu.com>
11656 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
11657 to a grub_disk_t array.
11658 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
11660 (grub_raid_scan_device): Replace `device[x].name' accesses with
11661 `device[x]->name'. Simplify initialization of `array->device[x]'.
11663 2008-02-08 Robert Millan <rmh@aybabtu.com>
11665 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
11666 grub_dprintf() calls.
11667 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
11670 2008-02-07 Christian Franke <franke@computer.org>
11672 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
11673 instead of fseek and ftell to support large files.
11674 (grub_hostfs_read): Likewise.
11676 2008-02-07 Robert Millan <rmh@aybabtu.com>
11678 Patch from Jeroen Dekkers.
11679 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
11680 failure, since successfully reading all array members might not be
11683 2008-02-06 Robert Millan <rmh@aybabtu.com>
11685 * util/grub-probe.c (probe): Simplify partmap probing (with the
11686 assumption that the first word up to the underscore equals to
11689 2008-02-06 Christian Franke <franke@computer.org>
11691 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
11692 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
11693 last block of a cpio or tar stream.
11694 Check for "TRAILER!!!" instead of any empty data
11695 block to detect last block of a cpio stream.
11696 (grub_cpio_dir): Fix constness of variable np.
11697 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
11698 cpio or tar trailer is detected. This fixes a crash
11699 on open of a non existing file.
11701 2008-02-05 Bean <bean123ch@gmail.com>
11703 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
11705 (grub_multiboot_load_elf64): Likewise.
11706 (grub_multiboot): Initialize mbi structure.
11708 * util/grub-fstest.c: Don't include unused header file script.h.
11710 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
11712 (grub_fstest_SOURCES): Likewise.
11714 2008-02-05 Robert Millan <rmh@aybabtu.com>
11716 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
11717 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
11718 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
11719 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
11721 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
11722 (translation_table): Replace hardcoded values with macros
11723 provided by `<grub/term.h>'.
11725 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
11726 (keyboard_map): Correct/add a few values, with macros provided
11727 by `<grub/term.h>'.
11728 (keyboard_map_shift): Zero values that don't differ from their
11729 `keyboard_map' equivalents.
11730 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
11731 Discard the second scan code that is always sent by Caps lock.
11732 Only use `keyboard_map_shift' when it provides a non-zero value,
11733 otherwise fallback to `keyboard_map'.
11735 2008-02-04 Bean <bean123ch@gmail.com>
11737 * Makefile.in (enable_grub_fstest): New variable.
11739 * conf/common.rmk (grub_fstest_init.lst): New rule.
11740 (grub_fstest_init.h): Likewise.
11741 (grub_fstest_init.c): Likewise.
11742 (util/grub-fstest.c_DEPENDENCIES): New variable.
11743 (grub_fstest_SOURCES): Likewise.
11745 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
11747 * util/grub-fstest.c: New file.
11749 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11751 Make grub-setup handle a separate root device.
11753 * util/i386/pc/grub-setup.c (setup): Always open the root device,
11754 so that the root device can be compared with the destination
11756 When embedding the core image, if the root and destination devices
11757 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
11759 When not embedding, set ROOT_DRIVE to 0xFF.
11761 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11763 Add support for having a grub directory in a different drive. This
11764 is still only the data handling part.
11766 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
11767 (codestart): Save %dh in GRUB_ROOT_DRIVE.
11768 (grub_root_drive): New variable.
11770 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
11771 instead of GRUB_BOOT_DRIVE to construct a device name. Set
11772 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
11775 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
11777 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
11779 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
11781 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
11782 is bogus, because PXE booting does not specify any drive
11785 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
11786 am not sure if this is really correct.
11788 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
11789 is always identical to the boot drive when booting from a CD.
11791 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
11793 (root_drive): New variable.
11794 (real_start): Unconditionally set %dh to ROOT_DRIVE.
11795 (setup_sectors): Push %dx right after popping it, because %dh will
11797 (copy_buffer): Restore %dx.
11799 2008-02-03 Robert Millan <rmh@aybabtu.com>
11801 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
11802 use `cdboot.img' for cdrom images.
11804 2008-02-03 Robert Millan <rmh@aybabtu.com>
11806 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
11807 only setup gfxterm when `font' command has succeeded.
11809 2008-02-03 Robert Millan <rmh@aybabtu.com>
11811 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
11812 (grub_rescue_cmd_multiboot_loader)
11813 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
11815 2008-02-03 Pavel Roskin <proski@gnu.org>
11817 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
11818 %edx and %esi from stack only after grub_gate_a20() is called.
11819 grub_gate_a20() clobbers %edx.
11821 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11823 * configure.ac (AC_INIT): Bumped to 1.96.
11825 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
11826 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
11827 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
11828 video/readers/png.c.
11830 2008-02-03 Bean <bean123ch@gmail.com>
11832 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
11833 (cdboot_img_SOURCES): New variable.
11834 (cdboot_img_ASFLAGS): New variable.
11835 (cdboot_img_LDFLAGS): New variable.
11837 * boot/i386/pc/cdboot.S: New file.
11839 * disk/i386/pc/biosdisk.c (cd_start): New variable.
11840 (cd_count): Likewise.
11841 (grub_biosdisk_get_drive): Add support for cd device.
11842 (grub_biosdisk_call_hook): Likewise.
11843 (grub_biosdisk_iterate): Likewise.
11844 (grub_biosdisk_open): Likewise.
11845 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
11846 (grub_biosdisk_rw): Support reading from cd device.
11847 (GRUB_MOD_INIT): Iterate cd devices.
11849 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
11850 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
11851 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
11853 * kern/i386/pc/init.c (make_install_device): Check for cd device.
11855 2008-02-02 Robert Millan <rmh@aybabtu.com>
11857 * commands/read.c: New file.
11858 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
11859 (read_mod_SOURCES): New variable.
11860 (read_mod_CFLAGS): Likewise.
11861 (read_mod_LDFLAGS): Likewise.
11863 2008-02-02 Robert Millan <rmh@aybabtu.com>
11865 * normal/main.c (grub_normal_execute): Check for `menu->size' when
11866 determining whether menu has to be displayed.
11868 2008-02-02 Marco Gerards <marco@gnu.org>
11870 * bus/pci.c: New file.
11872 * include/grub/pci.h: Likewise.
11874 * include/grub/i386/pc/pci.h: Likewise.
11876 * commands/lspci.c: Likewise.
11878 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
11880 (pci_mod_SOURCES): New variable.
11881 (pci_mod_CFLAGS): Likewise.
11882 (pci_mod_LDFLAGS): Likewise.
11883 (lspci_mod_SOURCES): Likewise.
11884 (lspci_mod_CFLAGS): Likewise.
11885 (lspci_mod_LDFLAGS): Likewise.
11887 2008-02-02 Bean <bean123ch@gmail.com>
11889 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
11890 (grub_ufs_get_file_block): Fix indirect block calculation problem.
11892 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
11893 (grub_xfs_btree_node): New structure.
11894 (grub_xfs_btree_root): New structure.
11895 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
11896 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
11897 (GRUB_XFS_EXTENT_BLOCK): Likewise.
11898 (GRUB_XFS_EXTENT_SIZE): Likewise.
11899 (grub_xfs_read_block): Support btree format type.
11900 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
11901 Use directory block as basic unit.
11903 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
11905 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
11906 __attribute__ ((__regparm__ (1))).
11908 2008-02-01 Robert Millan <rmh@aybabtu.com>
11910 Correct a mistake in previous commit.
11912 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
11914 (normal/command.c_DEPENDENCIES): New variable.
11916 2008-02-01 Robert Millan <rmh@aybabtu.com>
11918 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
11920 (normal/command.c_DEPENDENCIES): New variable.
11921 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
11922 * conf/i386-ieee1275.rmk: Likewise.
11923 * conf/i386-linuxbios.rmk: Likewise.
11924 * conf/i386-pc.rmk: Likewise.
11925 * conf/sparc64-ieee1275.rmk: Likewise.
11926 * conf/powerpc-ieee1275.rmk: Likewise.
11927 (grub_emu_SOURCES): Add `fs/fshelp.c'.
11929 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
11931 2008-02-01 Robert Millan <rmh@aybabtu.com>
11933 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
11934 call at beginning of function.
11936 2008-01-31 Pavel Roskin <proski@gnu.org>
11938 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
11939 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
11940 (grub_mkrescue_SOURCES): Likewise.
11941 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
11943 2008-01-30 Robert Millan <rmh@aybabtu.com>
11945 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
11946 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
11947 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
11948 (grub_probe_SOURCES): ... to here.
11950 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
11951 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
11952 * conf/i386-ieee1275.rmk: Likewise.
11953 * conf/i386-linuxbios.rmk: Likewise.
11954 * conf/powerpc-ieee1275.rmk: Likewise.
11956 2008-01-30 Tristan Gingold <gingold@free.fr>
11958 * kern/rescue.c: Silently accept empty lines.
11960 2008-01-29 Bean <bean123ch@gmail.com>
11962 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
11963 (real_code_2): Code cleanup and change comment style.
11964 (move_memory): Avoid using 32-bit address mode.
11966 2008-01-29 Bean <bean123ch@gmail.com>
11968 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
11969 (png_mod_SOURCES): New variable.
11970 (png_mod_CFLAGS): Likewise.
11971 (png_mod_LDFLAGS): Likewise.
11973 * video/readers/png.c: New file.
11975 2008-01-28 Robert Millan <rmh@aybabtu.com>
11977 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
11978 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
11979 `ifndef GRUB_MOD_GAP' hack.
11980 * util/elf/grub-mkimage.c (add_segments): Likewise.
11982 2008-01-27 Robert Millan <rmh@aybabtu.com>
11984 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
11985 `GRUB_MOD_GAP' for platforms in which it's not defined.
11986 * util/elf/grub-mkimage.c (add_segments): Likewise.
11988 2008-01-27 Robert Millan <rmh@aybabtu.com>
11990 Get grub-emu to build again (including parallel builds).
11992 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
11994 (util/grub-emu.c_DEPENDENCIES): ... this, ...
11995 (normal/execute.c_DEPENDENCIES): ... this, ...
11996 (grub-emu_DEPENDENCIES): ... and this.
11998 * conf/i386-efi.rmk: Likewise.
11999 * conf/i386-linuxbios.rmk: Likewise.
12000 * conf/i386-ieee1275.rmk: Likewise.
12001 * conf/powerpc-ieee1275.rmk: Likewise.
12002 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
12004 2008-01-27 Robert Millan <rmh@aybabtu.com>
12006 * NEWS: Add a few items.
12008 2008-01-27 Robert Millan <rmh@aybabtu.com>
12010 Fix parallel builds with grub-emu. Based on earlier commit for
12011 grub-probe and grub-setup.
12013 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12014 (util/grub-emu.c_DEPENDENCIES): ... this.
12015 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12016 (util/grub-emu.c_DEPENDENCIES): ... this.
12017 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12018 (util/grub-emu.c_DEPENDENCIES): ... this.
12019 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12020 (util/grub-emu.c_DEPENDENCIES): ... this.
12021 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12022 (util/grub-emu.c_DEPENDENCIES): ... this.
12024 2008-01-27 Pavel Roskin <proski@gnu.org>
12026 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
12027 to create a gap between _end and the modules added to the image
12028 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
12029 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
12030 * util/elf/grub-mkimage.c (add_segments): Likewise.
12032 2008-01-26 Pavel Roskin <proski@gnu.org>
12034 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
12035 just return an error.
12037 2008-01-26 Bean <bean123ch@gmail.com>
12039 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
12040 (grub_reiserfs_get_item): Save offset of the next item.
12041 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
12043 2008-01-25 Robert Millan <rmh@aybabtu.com>
12045 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
12046 make all filesystem sources appear together (possibly fixing omissions
12048 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12049 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12050 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
12051 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12053 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
12055 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
12056 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
12057 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
12058 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
12060 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
12061 (probe): Add a sanity check to make sure of our ability to read
12062 requested files when probing for filesystem type.
12064 * genmk.rb: Update copyright year (2007).
12066 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
12067 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
12068 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
12069 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
12070 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
12071 : Remove function prototypes.
12073 2008-01-25 Robert Millan <rmh@aybabtu.com>
12075 Revert my previous commits (based on wrong assumption of how grub_errno
12078 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
12079 * kern/file.c (grub_file_open): Likewise.
12081 2008-01-24 Pavel Roskin <proski@gnu.org>
12083 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
12084 that hang if GRUB tries to setup colors.
12085 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
12086 colors for firmwares that don't support it.
12087 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
12088 Recognize Open Hack'Ware, set flags to work around its
12091 2008-01-24 Robert Millan <rmh@aybabtu.com>
12093 * kern/file.c (grub_file_open): Do not account previous failures of
12094 unrelated functions when grub_errno is checked for.
12095 Reported by Oleg Strikov.
12097 2008-01-24 Bean <bean123ch@gmail.com>
12099 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
12100 (grub_ufs_sblock): New member volume name.
12101 (grub_ufs_find_file): Fix string copy bug.
12102 (grub_ufs_label): Implement this function properly.
12104 * fs/hfs.c (grub_hfs_cnid_type): New enum.
12105 (grub_hfs_iterate_records): Use the correct file number for extents
12106 and catalog file. Fix problem in next index calculation.
12107 (grub_hfs_find_node): Replace recursive function call with loop.
12108 (grub_hfs_iterate_dir): Replace recursive function call with loop.
12110 2008-01-23 Robert Millan <rmh@aybabtu.com>
12112 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
12113 `<grub/symbol.h>' and `<grub/multiboot.h>'.
12114 (grub_multiboot2_real_boot): New function prototype.
12116 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
12117 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
12119 * kern/i386/ieee1275/init.c (grub_os_area_addr)
12120 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
12122 2008-01-23 Robert Millan <rmh@aybabtu.com>
12124 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
12125 #ifdef'ed out grub_printf().
12127 2008-01-23 Robert Millan <rmh@aybabtu.com>
12129 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
12130 grub_dprintf calls, since they make "debug=all" mode unusable.
12131 (grub_console_checkkey): Likewise.
12133 2008-01-23 Robert Millan <rmh@aybabtu.com>
12135 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
12136 `term/i386/pc/at_keyboard.c'.
12137 (pkglib_MODULES): Add `serial.mod'.
12138 (serial_mod_SOURCES): New variable.
12139 (serial_mod_CFLAGS): Likewise.
12140 (serial_mod_LDFLAGS): Likewise.
12142 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
12143 `<grub/powerpc/ieee1275/console.h>'.
12144 (grub_keyboard_controller_init): New function prototype.
12145 (grub_console_checkkey): Likewise.
12146 (grub_console_getkey): Likewise.
12148 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
12151 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
12152 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
12154 2008-01-23 Robert Millan <rmh@aybabtu.com>
12156 * kern/i386/pc/init.c (make_install_device): When memdisk image is
12157 present, "(memdisk)/boot/grub" becomes the default prefix.
12159 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
12160 a memdisk tarball with all the modules. Add --overlay=DIR option that
12161 allows users to overlay additional files into the image.
12163 2008-01-23 Robert Millan <rmh@aybabtu.com>
12165 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
12166 and `machine/memory.h'.
12167 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
12168 (_multiboot_mod_SOURCES): New variable.
12169 (_multiboot_mod_CFLAGS): Likewise.
12170 (_multiboot_mod_LDFLAGS): Likewise.
12171 (multiboot_mod_SOURCES): Likewise.
12172 (multiboot_mod_CFLAGS): Likewise.
12173 (multiboot_mod_LDFLAGS): Likewise.
12175 * include/grub/i386/ieee1275/loader.h: New file.
12177 * include/grub/i386/ieee1275/machine.h: Likewise.
12179 * include/grub/i386/ieee1275/memory.h: Likewise.
12181 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
12182 variable declaration.
12183 (grub_os_area_size): Likewise.
12185 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
12186 (grub_lower_mem, grub_upper_mem): New variables.
12187 (grub_stop_floppy): New function (just to make
12188 grub_multiboot2_real_boot() happy).
12190 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
12191 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
12192 (grub_stop): New function.
12193 Include `"../realmode.S"' and `"../loader.S"'.
12195 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
12196 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
12198 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
12199 rely on grub_multiboot2_real_boot() for final boot.
12201 2008-01-22 Robert Millan <rmh@aybabtu.com>
12203 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
12204 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
12205 device that doesn't look like an SD card.
12206 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
12207 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
12208 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
12209 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
12212 2008-01-22 Robert Millan <rmh@aybabtu.com>
12214 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
12215 avoid claiming over our own code.
12217 2008-01-22 Bean <bean123ch@gmail.com>
12219 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
12220 (jpeg_mod_SOURCES): New variable.
12221 (jpeg_mod_CFLAGS): Likewise.
12222 (jpeg_mod_LDFLAGS): Likewise.
12224 * video/readers/jpeg.c : New file.
12226 2008-01-22 Bean <bean123ch@gmail.com>
12228 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
12229 there are no more items.
12231 2008-01-21 Robert Millan <rmh@aybabtu.com>
12233 * kern/mm.c (grub_mm_init_region): Improve debug message.
12235 2008-01-21 Robert Millan <rmh@aybabtu.com>
12237 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
12238 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
12240 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
12242 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
12243 Indicates start of upper memory.
12244 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
12245 (generate_image): Abort when image size is big enough to corrupt
12248 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
12249 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
12250 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
12251 instead of hardcoding 0xA0000.
12252 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
12253 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
12254 instead of hardcoding 0xA0000.
12256 2008-01-21 Robert Millan <rmh@aybabtu.com>
12258 * disk/memdisk.c (memdisk_size): New variable.
12259 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
12261 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
12262 image to dynamic memory.
12263 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
12264 `memdisk_size'. Free memdisk block.
12266 2008-01-21 Robert Millan <rmh@aybabtu.com>
12268 Fix detection of very small filesystems (like tar).
12270 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
12271 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
12272 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
12273 a problem with this disk).
12275 2008-01-21 Robert Millan <rmh@aybabtu.com>
12277 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
12278 on grub_biosdisk_rw_standard() error.
12280 2008-01-21 Robert Millan <rmh@aybabtu.com>
12282 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
12284 * kern/elf.c: Likewise.
12285 * kern/ieee1275/ieee1275.c: Likewise.
12286 * kern/powerpc/ieee1275/openfw.c: Likewise.
12287 * term/ieee1275/ofconsole.c: Likewise.
12289 2008-01-21 Robert Millan <rmh@aybabtu.com>
12291 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
12293 * include/grub/kernel.h (grub_arch_memdisk_addr)
12294 (grub_arch_memdisk_size): Moved from here ...
12296 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
12297 (grub_arch_memdisk_size): ... to here.
12299 2008-01-21 Robert Millan <rmh@aybabtu.com>
12301 Mostly based on bugfix from Bean.
12303 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
12304 attribute with hook() parameter.
12305 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
12307 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
12308 attribute with hook() parameter.
12309 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
12312 2008-01-21 Robert Millan <rmh@aybabtu.com>
12314 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
12315 (pkglib_MODULES): Add `memdisk.mod'.
12316 (memdisk_mod_SOURCES): New variable.
12317 (memdisk_mod_CFLAGS): Likewise.
12318 (memdisk_mod_LDFLAGS): Likewise.
12320 * disk/memdisk.c: New file.
12322 * include/grub/disk.h (grub_disk_dev_id): Add
12323 `GRUB_DISK_DEVICE_MEMDISK_ID'.
12325 * include/grub/i386/pc/kernel.h
12326 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
12327 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
12328 (grub_kernel_image_size): New variable declaration.
12329 (grub_total_module_size): Likewise.
12330 (grub_memdisk_image_size): Likewise.
12332 * include/grub/i386/pc/memory.h
12333 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
12335 * include/grub/kernel.h: Include `<grub/symbol.h>'.
12336 (grub_arch_memdisk_addr): New variable declaration.
12337 (grub_arch_memdisk_size): Likewise.
12339 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
12340 (grub_arch_memdisk_size): Likewise.
12342 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
12343 (codestart): Replace hardcoded `0x100000' with
12344 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
12346 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
12347 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
12348 not NULL, append the contents of the file it refers to, at the end of
12349 the compressed kernel image. Initialize `grub_memdisk_image_size'
12350 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
12351 (options): Add "memdisk"|'m' option.
12352 (main): Parse --memdisk|-m option, and pass user-provided path as
12353 parameter to generate_image().
12355 2008-01-20 Robert Millan <rmh@aybabtu.com>
12357 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
12358 grub_dprintf() calls from here ...
12359 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
12361 2008-01-20 Robert Millan <rmh@aybabtu.com>
12363 Fix detection of "real mode" when /options/real-mode? doesn't exist.
12365 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
12367 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
12368 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
12369 `GRUB_IEEE1275_FLAG_REAL_MODE'.
12370 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
12372 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
12373 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
12375 2008-01-19 Robert Millan <rmh@aybabtu.com>
12377 Get rid of confusing function (superseded by
12378 `grub_ieee1275_get_integer_property')
12379 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
12381 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
12383 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
12384 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
12385 in native endianness from grub_ieee1275_get_integer_property().
12387 2008-01-19 Robert Millan <rmh@aybabtu.com>
12389 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
12390 command after "shut-down", since implementations differ on which
12391 the command for halt is.
12393 2008-01-19 Robert Millan <rmh@aybabtu.com>
12395 * include/grub/i386/linuxbios/console.h: Add header protection.
12396 (grub_keyboard_controller_init): New function prototype.
12397 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
12398 (KEYBOARD_COMMAND_READ): Likewise.
12399 (KEYBOARD_COMMAND_WRITE): Likewise.
12400 (KEYBOARD_SCANCODE_SET1): Likewise.
12401 (grub_keyboard_controller_write): New function.
12402 (grub_keyboard_controller_read): Likewise.
12403 (grub_keyboard_controller_init): Likewise.
12405 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
12406 (grub_console_init): On coreboot/LinuxBIOS, call
12407 grub_keyboard_controller_init().
12409 2008-01-19 Robert Millan <rmh@aybabtu.com>
12411 PowerPC changes provided by Pavel Roskin.
12413 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
12414 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
12415 don't rely on cmain() doing it.
12416 * kern/i386/ieee1275/startup.S (_start): Store %eax in
12417 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
12419 2008-01-16 Robert Millan <rmh@aybabtu.com>
12421 * include/grub/i386/linuxbios/memory.h
12422 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
12423 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
12424 receive `table_header' as argument. Instead, probe for it in the
12425 known memory ranges where it can be present.
12426 (grub_available_iterate): Do not pass a fixed `table_header' address
12427 to grub_linuxbios_table_iterate().
12429 2008-01-15 Robert Millan <rmh@aybabtu.com>
12431 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
12432 * conf/i386-ieee1275.rmk: New file.
12433 * include/grub/i386/ieee1275/console.h: Likewise.
12434 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
12435 * include/grub/i386/ieee1275/kernel.h: Likewise.
12436 * include/grub/i386/ieee1275/time.h: Likewise.
12437 * kern/i386/ieee1275/init.c: Likewise.
12438 * kern/i386/ieee1275/startup.S: Likewise.
12440 2008-01-15 Robert Millan <rmh@aybabtu.com>
12442 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
12443 when pointers are 32-bit (but still do set it to one when they are
12446 2008-01-15 Robert Millan <rmh@aybabtu.com>
12448 * include/grub/ieee1275/ieee1275.h
12449 (grub_ieee1275_get_integer_property): New function prototype.
12451 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
12452 (grub_ieee1275_get_integer_property): New function. Wraps around
12453 grub_ieee1275_get_property() to handle endianness.
12455 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
12456 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
12458 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
12459 (grub_map): Likewise.
12460 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
12462 2008-01-15 Bean <bean123ch@gmail.com>
12464 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
12465 (grub_script_execute_cmdline): Reset grub_errno.
12467 * normal/main.c (read_config_file): Reset grub_errno.
12469 * normal/parse.y (script_init): New.
12470 (script): Move function and menuentry here.
12472 (command): Add delimiter at the end of command.
12473 (commands): Adjust to match the new command.
12474 (commandblock): Remove grub_script_lexer_record_start.
12475 (menuentry): Add grub_script_lexer_record_start, use the new commands.
12476 (if): Use the new commands.
12478 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
12480 2008-01-15 Robert Millan <rmh@aybabtu.com>
12482 * normal/menu.c (run_menu): Move timeout message from here ...
12483 (print_timeout): ... to here.
12484 (run_menu): Use print_timeout() once during initial draw to print
12485 the whole message, and again in every clock tick to update only
12486 the number of seconds.
12488 2008-01-15 Robert Millan <rmh@aybabtu.com>
12490 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
12491 actual size of `available' from grub_ieee1275_get_property(), and
12492 restrict parsing to that bound.
12494 2008-01-15 Christian Franke <franke@computer.org>
12496 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
12497 (argp_program_version): Remove variable.
12498 (argp_program_bug_address): Likewise.
12499 (options): Convert from struct argp_option to struct option.
12500 (struct arguments): Remove.
12501 (parse_opt): Remove.
12502 (usage): New function.
12503 (main): Replace struct args members by simple variables.
12504 Replace argp_parse() by getopt_long().
12505 Add switch to evaluate options.
12506 Add missing "(...)" around root_dev in prefix string.
12508 2008-01-14 Robert Millan <rmh@aybabtu.com>
12510 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
12511 for grub_ieee1275_exit(), in order to improve portability.
12513 2008-01-14 Robert Millan <rmh@aybabtu.com>
12515 * util/grub.d/10_linux.in (prefix): Define.
12516 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
12518 2008-01-13 Pavel Roskin <proski@gnu.org>
12520 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
12521 grub_errno if no errors have been detected.
12523 2008-01-12 Robert Millan <rmh@aybabtu.com>
12525 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
12526 (grub_util_get_dev_abstraction): New function prototype.
12528 * util/getroot.c: Include `<grub/util/getroot.h>'
12529 (grub_util_get_grub_dev): Move detection of abstraction type to ...
12530 (grub_util_get_dev_abstraction): ... here (new function).
12532 * util/grub-probe.c: Convert PRINT_* to an enum. Add
12533 `PRINT_ABSTRACTION'.
12534 (probe): Probe for abstraction type when requested.
12535 (main): Understand `--target=abstraction'.
12537 * util/i386/efi/grub-install.in: Add abstraction module to core
12538 image when it is found to be necessary.
12539 * util/i386/pc/grub-install.in: Likewise.
12540 * util/powerpc/ieee1275/grub-install.in: Likewise.
12542 * util/update-grub_lib.in (font_path): Return system path without
12543 converting to GRUB path.
12544 * util/update-grub.in: Convert system path returned by font_path()
12545 to a GRUB path. Use `grub-probe -t abstraction' to determine what
12546 abstraction module is needed for loading fonts (if any). Export
12547 that as `GRUB_PRELOAD_MODULES'.
12548 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
12551 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
12553 Remove some unused code from reiserfs.
12555 * fs/reiserfs.c (struct grub_reiserfs_key)
12556 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
12557 (struct grub_reiserfs_node_body): Removed.
12558 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
12560 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
12562 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
12564 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
12566 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
12568 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
12570 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
12571 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
12572 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
12574 2008-01-10 Robert Millan <rmh@aybabtu.com>
12576 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
12577 Determines if a file is garbage left by packaging systems, etc.
12578 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
12579 for processing /etc/grub.d scripts.
12580 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
12581 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
12582 as a condition for processing Linux images.
12584 2008-01-10 Pavel Roskin <proski@gnu.org>
12586 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
12587 to compile reiserfs.c on PowerPC.
12589 2008-01-10 Robert Millan <rmh@aybabtu.com>
12591 * kern/device.c (grub_device_iterate): Do not abort device iteration
12592 when one of the devices cannot be opened.
12593 * kern/disk.c (grub_disk_open): Do not account previous failures of
12594 unrelated functions when grub_errno is checked for.
12596 2008-01-08 Robert Millan <rmh@aybabtu.com>
12598 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
12599 `! grub_linux_is_bzimage', change order of address comparison to make
12600 it more intuitive, and improve "too big zImage" error message.
12602 2008-01-08 Robert Millan <rmh@aybabtu.com>
12604 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
12605 `$(update-grub_DATA)'.
12606 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
12609 2008-01-07 Robert Millan <rmh@aybabtu.com>
12611 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
12612 which instruction is modified by grub-setup during installation
12613 (since it wasn't obvious by only looking at this file).
12615 2008-01-07 Robert Millan <rmh@aybabtu.com>
12617 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
12618 listing actual TODO items.
12620 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
12622 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
12624 (grub_reiserfs_get_key_offset): Likewise.
12625 (grub_reiserfs_set_key_offset): Likewise.
12626 (grub_reiserfs_set_key_type): Likewise.
12627 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
12629 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
12630 better to remove the bitfield version completely.
12632 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
12634 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
12635 allocated from the heap, due to the fshelp implementation.
12636 (grub_reiserfs_dir): Free NODE, due to the same reason.
12638 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
12640 Mostly from Vincent Pelletier:
12642 * fs/reiserfs.c: New file.
12644 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
12645 (reiserfs_mod_SOURCES): New variable.
12646 (reiserfs_mod_CFLAGS): Likewise.
12647 (reiserfs_mod_LDFLAGS): Likewise.
12649 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
12650 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
12651 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
12654 2008-01-06 Robert Millan <rmh@aybabtu.com>
12656 * normal/color.c: Remove `<grub/env.h>'.
12658 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
12660 * include/grub/normal.h: Include <grub/env.h>.
12662 2008-01-05 Robert Millan <rmh@aybabtu.com>
12664 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
12665 usage example with `(hd0,1)'.
12666 Reported by Samuel Thibault.
12668 2008-01-05 Robert Millan <rmh@aybabtu.com>
12670 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
12671 (grub_linux_boot_zimage): Rename to ...
12672 (grub_linux_boot): ... this.
12673 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
12674 (grub_linux_boot_zimage): Conditionalize zImage copy.
12676 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
12677 (grub_linux_boot_bzimage): Remove prototype.
12678 (grub_linux_boot_zimage): Rename to ...
12679 (grub_linux_boot): ... this.
12681 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
12682 (grub_linux_boot): Remove function.
12684 2008-01-05 Robert Millan <rmh@aybabtu.com>
12686 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
12687 (grub_env_write_color_highlight): Likewise.
12688 (grub_wait_after_message): Likewise.
12690 * normal/color.c: New file.
12692 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
12693 (normal_mod_DEPENDENCIES): Likewise.
12695 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
12696 (normal_mod_DEPENDENCIES): Likewise.
12698 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
12699 (normal_mod_DEPENDENCIES): Likewise.
12701 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
12702 (normal_mod_DEPENDENCIES): Likewise.
12704 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
12705 for waiting after a message is printed.
12706 * normal/main.c (read_config_file): Likewise.
12707 (grub_normal_init): Register grub_env_write_color_normal() and
12708 grub_env_write_color_highlight() hooks. Mark `color_normal' and
12709 `color_highlight' variables as global.
12711 * normal/menu.c (grub_wait_after_message): New function.
12712 (grub_color_menu_normal): New variable. Replaces ...
12713 (GRUB_COLOR_MENU_NORMAL): ... this macro.
12714 (grub_color_menu_highlight): New variable. Replaces ...
12715 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
12716 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
12717 `GRUB_TERM_COLOR_STANDARD'.
12718 (print_message): Use `grub_setcolorstate' to reload colors. Rename
12719 `normal_code' and `highlight_code' to `old_color_normal' and
12720 `old_color_highlight', respectively.
12721 (grub_menu_init_page): Update colors when drawing the menu, based on
12722 `menu_color_normal' and `menu_color_highlight' variables.
12723 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
12724 a message is printed.
12726 2008-01-05 Robert Millan <rmh@aybabtu.com>
12728 * kern/env.c (grub_env_context_open): Propagate hooks for global
12729 variables to new context.
12731 * kern/main.c (grub_set_root_dev): Export `root' variable.
12733 2008-01-05 Robert Millan <rmh@aybabtu.com>
12735 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
12736 discs unconditionally, since udev and others have options to provide
12739 2008-01-05 Robert Millan <rmh@aybabtu.com>
12741 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
12743 2008-01-04 Christian Franke <franke@computer.org>
12745 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
12748 2008-01-03 Pavel Roskin <proski@gnu.org>
12750 * kern/i386/linuxbios/init.c: Put "void" to all function
12751 declarations with no arguments.
12752 * kern/powerpc/ieee1275/init.c: Likewise.
12753 * term/i386/pc/at_keyboard.c: Likewise.
12754 * term/i386/pc/vga_text.c: Likewise.
12755 * util/grub-mkdevicemap.c: Likewise.
12757 2008-01-02 Robert Millan <rmh@aybabtu.com>
12759 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
12760 message when loaded image is out of bounds.
12761 (grub_multiboot_load_elf64): Likewise.
12763 2008-01-02 Pavel Roskin <proski@gnu.org>
12765 * util/grub.d/10_linux.in: Try version without ".old" when
12766 looking for initrd. It's better to use initrd from the newer
12767 kernel of the same version than no initrd at all.
12769 2008-01-01 Robert Millan <rmh@aybabtu.com>
12771 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
12773 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
12775 * include/grub/video.h: Added grub_video_unmap_color and
12776 grub_video_get_active_render_target.
12777 (grub_video_adapter): Added unmap_color and get_active_render_target.
12779 * video/video.c: Added grub_video_unmap_color and
12780 grub_video_get_active_render_target.
12781 (grub_video_get_info): Changed method to accept NULL pointer as an
12782 argument to allow detection of active video adapter.
12784 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
12785 grub_video_vbe_unmap_color_int.
12786 Added grub_video_vbe_unmap_color and
12787 grub_video_vbe_get_active_render_target.
12788 (grub_video_vbe_adapter): Added unmap_color and
12789 get_active_render_target.
12791 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
12792 with grub_video_vbe_unmap_color_int.
12794 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
12795 (DEFAULT_NORMAL_COLOR): Likewise.
12796 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
12797 (DEFAULT_FG_COLOR): Removed.
12798 (DEFAULT_BG_COLOR): Likewise.
12799 (DEFAULT_CURSOR_COLOR): Changed value.
12800 (grub_virtual_screen): Added standard_color_setting,
12801 normal_color_setting, highlight_color_setting and term_color.
12802 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
12803 (bitmap_width): Added.
12804 (bitmap_height): Likewise.
12805 (bitmap): Likewise.
12806 (set_term_color): Likewise.
12807 (grub_virtual_screen_setup): Changed to use new terminal coloring
12809 (grub_gfxterm_init): Added init for bitmap.
12810 (grub_gfxterm_fini): Added destroy for bitmap.
12811 (redraw_screen_rect): Updated to use background bitmap and new
12813 (scroll_up): Added optimization for case when there is no bitmap.
12814 (grub_gfxterm_cls): Fixed to use correct background color.
12815 (grub_virtual_screen_setcolorstate): Changed to use new terminal
12817 (grub_virtual_screen_setcolor): Likewise.
12818 (grub_virtual_screen_getcolor): Added.
12819 (grub_gfxterm_background_image_cmd): Likewise.
12820 (grub_video_term): Added setcolor and getcolor.
12821 (MOD_INIT): Added registration of background_image command.
12822 (MOD_TERM): Added unregistration for background_image command.
12824 2007-12-30 Pavel Roskin <proski@gnu.org>
12826 * loader/multiboot_loader.c: Fix multiboot command
12827 unregistration. Fix all typos in the word "multiboot".
12829 2007-12-29 Pavel Roskin <proski@gnu.org>
12831 * util/grub.d/10_linux.in: Refactor search for initrd. Add
12832 support for initrd names used in Fedora.
12834 2007-12-26 Bean <bean123ch@gmail.com>
12836 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
12837 (cpio_mod_SOURCES): New variable.
12838 (cpio_mod_CFLAGS): Likewise.
12839 (cpio_mod_LDFLAGS): Likewise.
12841 * fs/cpio.c: New file.
12843 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
12845 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12847 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
12849 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12851 2007-12-25 Robert Millan <rmh@aybabtu.com>
12853 * include/grub/term.h (struct grub_term): Add `getcolor' function.
12854 (grub_getcolor): New function.
12856 * kern/term.c (grub_getcolor): New function.
12857 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
12858 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
12859 (print_entry): Set normal and highlight colors to
12860 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
12861 respectively, before printing and restore them to old
12863 (grub_menu_init_page): Likewise. Fill an additional colored space
12864 that would otherwise be left blank.
12866 * term/efi/console.c (grub_console_getcolor): New function.
12867 (struct grub_console_term.getcolor): New variable.
12868 * term/i386/pc/console.c (grub_console_getcolor): New function.
12869 (struct grub_console_term.getcolor): New variable.
12870 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
12871 (struct grub_console_term.getcolor): New variable.
12873 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
12874 (struct grub_console_term.setcolor): Remove variable.
12875 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
12876 (struct grub_console_term.setcolor): Remove variable.
12877 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
12878 (struct grub_console_term.setcolor): Remove variable.
12879 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
12880 (struct grub_console_term.setcolor): Remove variable.
12882 2007-12-25 Robert Millan <rmh@aybabtu.com>
12884 * configure.ac: Search for possible unifont.hex locations, and
12885 define UNIFONT_HEX if found.
12887 * Makefile.in (UNIFONT_HEX): Define variable.
12888 (DATA): Rename to ...
12889 (PKGLIB): ... this. Update all users.
12890 (PKGDATA): New variable.
12891 (pkgdata_IMAGES): Rename to ...
12892 (pkglib_IMAGES): ... this. Update all users.
12893 (pkgdata_MODULES): Rename to ...
12894 (pkglib_MODULES): ... this. Update all users.
12895 (pkgdata_PROGRAMS): Rename to ...
12896 (pkglib_PROGRAMS): ... this. Update all users.
12897 (pkgdata_DATA): Rename to ...
12898 (pkglib_DATA): ... this. Update all users.
12899 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
12900 (unicode.pff, ascii.pff): New rules.
12901 (all-local): Add `$(PKGDATA)' dependency.
12902 (install-local): Process `$(PKGDATA)'.
12904 * util/update-grub_lib.in (font_path): Search for *.pff files in
12905 a few more locations, including `${pkgdata}'.
12907 2007-12-23 Robert Millan <rmh@aybabtu.com>
12909 Patch from Bean <bean123ch@gmail.com>:
12910 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
12913 2007-12-21 Bean <bean123ch@gmail.com>
12915 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
12916 (ntfscomp_mod_SOURCES): New variable.
12917 (ntfscomp_mod_CFLAGS): Likewise.
12918 (ntfscomp_mod_LDFLAGS): Likewise.
12920 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
12921 (grub_probe_SOURCES): Likewise.
12922 (grub_emu_SOURCES): Likewise.
12924 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12925 (grub_emu_SOURCES): Likewise.
12927 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12928 (grub_emu_SOURCES): Likewise.
12930 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12931 (grub_emu_SOURCES): Likewise.
12933 * fs/ntfs.c (grub_ntfscomp_func): New variable.
12934 (read_run_list): Renamed to grub_ntfs_read_run_list.
12935 (decomp_nextvcn): Moved to ntfscomp.c.
12936 (decomp_getch): Likewise.
12937 (decomp_get16): Likewise.
12938 (decomp_block): Likewise.
12939 (read_block): Likewise.
12940 (read_data): Partially moved to ntfscomp.c.
12941 (fixup): Change unsigned to grub_uint16_t.
12942 (read_mft): Change unsigned long to grub_uint32_t.
12943 (read_attr): Likewise.
12944 (read_data): Likewise.
12945 (read_run_data): Likewise.
12946 (read_run_list): Likewise.
12947 (read_mft): Likewise.
12949 * fs/ntfscomp.c: New file.
12951 * include/grub/ntfs.h: New file.
12953 2007-12-16 Robert Millan <rmh@aybabtu.com>
12955 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
12956 IDE disk check, since Linux is known to support 20 IDE disks.
12957 Reported by Colin Watson.
12959 2007-12-15 Bean <bean123ch@gmail.com>
12961 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
12962 (lnxboot_img_SOURCES): New variable.
12963 (lnxboot_img_ASFLAGS): Likewise.
12964 (lnxboot_img_LDFLAGS): Likewise.
12966 * boot/i386/pc/lnxboot.S: New file.
12968 2007-11-24 Pavel Roskin <proski@gnu.org>
12970 * configure.ac: Test if '--build-id=none' is supported by the
12971 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
12972 objcopy to generate incorrect binary files (binutils
12973 2.17.50.0.18-1 as shipped by Fedora 8).
12974 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
12975 linking, so that build ID doesn't break the test.
12977 2007-11-24 Pavel Roskin <proski@gnu.org>
12979 * include/grub/i386/time.h: use "void" in the argument list
12980 of grub_cpu_idle().
12981 * include/grub/powerpc/time.h: Likewise.
12982 * include/grub/sparc64/time.h: Likewise.
12984 2007-11-18 Christian Franke <franke@computer.org>
12986 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
12987 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
12988 This fixes the problem that function keys did not work in grub-emu.
12990 2007-11-18 Christian Franke <franke@computer.org>
12992 * disk/host.c (grub_host_open): Remove attribute unused from
12993 name parameter. Add check for "host". This fixes the problem
12994 that grub-emu does not find partitions.
12996 2007-11-18 Christian Franke <franke@computer.org>
12998 * util/hostfs.c (is_dir): New function.
12999 (grub_hostfs_dir): Handle missing dirent.d_type case.
13000 (grub_hostfs_read): Add missing fseek().
13001 (grub_hostfs_label): Clear label pointer. This fixes a crash
13002 of grub-emu on "ls (host)".
13004 2007-11-18 Christian Franke <franke@computer.org>
13006 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
13007 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
13008 to 64 bit boundary by default.
13010 2007-11-18 Bean <bean123ch@gmail.com>
13012 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
13013 (hexdump_mod_SOURCES): New variable.
13014 (hexdump_mod_CFLAGS): Likewise.
13015 (hexdump_mod_LDFLAGS): Likewise.
13017 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
13019 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
13021 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
13023 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
13025 * include/grub/hexdump.h: New file.
13027 * commands/hexdump.c: New file.
13029 2007-11-10 Robert Millan <rmh@aybabtu.com>
13031 * commands/i386/pc/play.c (beep_off): Switch order of arguments
13032 in grub_outb() calls.
13033 (beep_on): Likewise.
13035 2007-11-10 Christian Franke <franke@computer.org>
13037 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
13038 (grub_menu_run): Likewise.
13040 2007-11-10 Robert Millan <rmh@aybabtu.com>
13042 * include/grub/i386/efi/machine.h: New file.
13043 * include/grub/i386/linuxbios/machine.h: Likewise.
13044 * include/grub/i386/pc/machine.h: Likewise.
13045 * include/grub/powerpc/ieee1275/machine.h: Likewise.
13046 * include/grub/sparc64/ieee1275/machine.h: Likewise.
13048 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
13049 (serial_hw_io_addr): New variable.
13050 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
13051 instead of `(unsigned short *) 0x400'.
13053 2007-11-10 Bean <bean123ch@gmail.com>
13055 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
13057 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
13059 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
13060 (vga_mod_SOURCES): Added.
13061 (vga_mod_CFLAGS): Likewise.
13062 (vga_mod_LDFLAGS): Likewise.
13064 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
13066 (set_map_mask): Likewise.
13067 (set_read_map): Likewise.
13068 (set_read_address): Likewise.
13069 (vga_font): Removed variable.
13070 (get_vga_glyph): Removed function.
13071 (invalidate_char): Likewise.
13072 (write_char): Changed to use grub_font_get_glyph() for font
13074 (grub_vga_putchar): Likewise.
13075 (grub_vga_getcharwidth): Likewise.
13077 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
13079 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
13081 (pxeboot_img_LDFLAGS): Likewise.
13082 (diskboot_img_LDFLAGS): Likewise.
13083 (kernel_img_LDFLAGS): Likewise.
13085 2007-11-06 Robert Millan <rmh@aybabtu.com>
13087 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
13088 in grub_outb() calls.
13089 (serial_hw_init): Likewise.
13091 2007-11-05 Robert Millan <rmh@aybabtu.com>
13093 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
13094 spaces. Skip non-regular files.
13096 2007-11-05 Robert Millan <rmh@aybabtu.com>
13098 * kern/disk.c (grub_disk_firmware_fini)
13099 (grub_disk_firmware_is_tainted): New variables.
13101 * include/grub/disk.h (grub_disk_firmware_fini)
13102 (grub_disk_firmware_is_tainted): Likewise.
13104 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
13105 (grub_disk_biosdisk_fini): ... to here.
13106 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
13107 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
13108 is set. Register grub_disk_biosdisk_fini() in
13109 `grub_disk_firmware_fini'.
13111 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
13112 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
13113 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
13114 to finish existing firmware disk interface.
13116 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
13117 (ata_mod_SOURCES): New variable.
13118 (ata_mod_CFLAGS): Likewise.
13119 (ata_mod_LDFLAGS): Likewise.
13121 2007-11-05 Robert Millan <rmh@aybabtu.com>
13123 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
13124 (grub_ata_wait): Reimplement using grub_millisleep().
13126 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
13127 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
13129 2007-11-03 Marco Gerards <marco@gnu.org>
13131 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
13132 (CRTC_ADDR_PORT): New macro.
13133 (CRTC_DATA_PORT): Likewise.
13134 (CRTC_CURSOR): Likewise.
13135 (CRTC_CURSOR_ADDR_HIGH): Likewise.
13136 (CRTC_CURSOR_ADDR_LOW): Likewise.
13137 (update_cursor): New function.
13138 (grub_console_real_putchar): Call `update_cursor'.
13139 (grub_console_gotoxy): Likewise.
13140 (grub_console_cls): Set the default color when clearing the
13142 (grub_console_setcursor): Implemented.
13144 2007-11-03 Marco Gerards <marco@gnu.org>
13146 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
13148 (grub_ata_pio_write): Likewise.
13150 (grub_atapi_identify): Wait after issuing an ATA command.
13151 (grub_atapi_packet): Likewise.
13152 (grub_ata_identify): Likewise.
13153 (grub_ata_readwrite): Likewise.
13155 2007-11-03 Marco Gerards <marco@gnu.org>
13157 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
13158 (grub_ata_pio_write): Likewise.
13159 (grub_ata_readwrite): Use `grub_error', instead of
13160 returning `grub_errno'.
13162 2007-11-03 Marco Gerards <marco@gnu.org>
13164 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
13165 grub_ata_pio_write once for every single sector, instead of for
13168 2007-10-31 Robert Millan <rmh@aybabtu.com>
13170 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
13172 * conf/i386-linuxbios.rmk: New file.
13174 * kern/i386/pc/hardware.c: Likewise.
13175 * term/i386/pc/at_keyboard.c: Likewise.
13176 * term/i386/pc/vga_text.c: Likewise.
13178 * include/grub/i386/linuxbios/boot.h: Likewise.
13179 * include/grub/i386/linuxbios/console.h: Likewise.
13180 * include/grub/i386/linuxbios/init.h: Likewise.
13181 * include/grub/i386/linuxbios/kernel.h: Likewise.
13182 * include/grub/i386/linuxbios/loader.h: Likewise.
13183 * include/grub/i386/linuxbios/memory.h: Likewise.
13184 * include/grub/i386/linuxbios/serial.h: Likewise.
13185 * include/grub/i386/linuxbios/time.h: Likewise.
13187 * kern/i386/linuxbios/init.c: Likewise.
13188 * kern/i386/linuxbios/startup.S: Likewise.
13189 * kern/i386/linuxbios/table.c: Likewise.
13191 2007-10-31 Marco Gerards <marco@gnu.org>
13193 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
13194 (ata_mod_SOURCES): New variable.
13195 (ata_mod_CFLAGS): Likewise.
13196 (ata_mod_LDFLAGS): Likewise.
13198 * disk/ata.c: New file.
13200 * include/grub/disk.h (grub_disk_dev_id): Add
13201 `GRUB_DISK_DEV_ATA_ID'.
13203 2007-10-31 Robert Millan <rmh@aybabtu.com>
13205 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
13206 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
13208 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
13209 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
13211 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
13214 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
13216 2007-10-27 Robert Millan <rmh@aybabtu.com>
13218 * include/grub/types.h (ULONG_MAX): Define macro.
13220 2007-10-22 Robert Millan <rmh@aybabtu.com>
13222 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
13224 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
13226 2007-10-22 Robert Millan <rmh@aybabtu.com>
13228 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
13229 (pkgdata_MODULES): Add `biosdisk.mod'.
13230 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
13233 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
13234 (grub_biosdisk_init): Replace with ...
13235 (GRUB_MOD_INIT(biosdisk)): ... this.
13236 (grub_biosdisk_fini): Replace with ...
13237 (GRUB_MOD_FINI(biosdisk)): ... this.
13239 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
13240 (grub_machine_init): Remove call to grub_biosdisk_init().
13241 (grub_machine_fini): Remove call to grub_machine_fini().
13243 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
13245 2007-10-22 Robert Millan <rmh@aybabtu.com>
13247 * include/grub/time.h: New file.
13248 * include/grub/i386/time.h: Likewise.
13249 * include/grub/powerpc/time.h: Likewise.
13250 * include/grub/sparc64/time.h: Likewise.
13252 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
13254 (KERNEL_MACHINE_TIME_HEADER): ... this.
13255 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
13257 (KERNEL_MACHINE_TIME_HEADER): ... this.
13258 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
13260 (KERNEL_MACHINE_TIME_HEADER): ... this.
13262 * kern/i386/efi/init.c: Include `<grub/time.h>'.
13263 (grub_millisleep): New function.
13264 * kern/i386/pc/init.c: Include `<grub/time.h>'.
13265 (grub_millisleep): New function.
13266 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
13267 Remove `grub/machine/time.h' include.
13268 (grub_millisleep): New function.
13269 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
13270 Remove `grub/machine/time.h' include.
13271 (grub_millisleep): New function.
13273 * include/grub/misc.h (grub_div_roundup): New function.
13275 * kern/misc.c: Include `<grub/time.h>'.
13276 (grub_millisleep_generic): New function.
13278 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
13280 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
13282 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
13283 `machine/time.h'. Add `time.h'.
13284 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13286 2007-10-21 Robert Millan <rmh@aybabtu.com>
13288 * include/grub/misc.h (grub_max): New function.
13290 2007-10-21 Robert Millan <rmh@aybabtu.com>
13292 * util/misc.c (grub_util_info): Call fflush() before returning.
13294 2007-10-20 Robert Millan <rmh@aybabtu.com>
13296 * genmk.rb (Image): Copy `extra_flags' from here ...
13297 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
13299 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
13300 to `argc' and `args' arguments.
13302 2007-10-17 Robert Millan <rmh@aybabtu.com>
13304 * kern/i386/loader.S: New file.
13306 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
13307 * kern/i386/loader.S (grub_linux_prot_size)... to here.
13308 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
13309 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
13310 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
13311 * kern/i386/loader.S (grub_linux_real_addr)... to here.
13312 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
13313 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
13314 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
13315 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
13316 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
13317 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
13318 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
13319 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
13321 * kern/i386/realmode.S: New file.
13323 * kern/i386/pc/startup.S (protstack): Moved from here ...
13324 * kern/i386/realmode.S (protstack)... to here.
13325 * kern/i386/pc/startup.S (gdt): Moved from here ...
13326 * kern/i386/realmode.S (gdt)... to here.
13327 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
13328 * kern/i386/realmode.S (prot_to_real)... to here.
13330 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
13331 `kern/i386/realmode.S'.
13333 2007-10-17 Robert Millan <rmh@aybabtu.com>
13335 * include/grub/i386/loader.h: New file.
13337 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
13338 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
13339 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
13340 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
13341 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
13342 * include/grub/i386/loader.h (grub_linux_prot_size)
13343 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
13344 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
13345 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
13346 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
13348 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
13350 2007-10-15 Robert Millan <rmh@aybabtu.com>
13352 * normal/misc.c (grub_normal_print_device_info): Do not probe for
13353 filesystem when dev->disk is unset.
13354 Do probe for filesystem even when dev->disk->has_partitions is set.
13355 In case a filesystem is found, always report it.
13356 In case it isn't, if dev->disk->has_partitions is set, report that
13357 a partition table was found instead of reporting that no filesystem
13358 could be identified.
13360 2007-10-12 Robert Millan <rmh@aybabtu.com>
13362 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
13363 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
13365 * include/grub/types.h (grub_host_to_target16): New macro.
13366 (grub_host_to_target32): Likewise.
13367 (grub_host_to_target64): Likewise.
13368 (grub_target_to_host16): Likewise.
13369 (grub_target_to_host32): Likewise.
13370 (grub_target_to_host64): Likewise.
13372 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
13373 Renamed from to ...
13374 (GRUB_MOD_ALIGN): ...this. Update all users.
13376 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
13377 grub_host_to_target32.
13378 Replace grub_be_to_cpu32 with grub_target_to_host32.
13379 (load_modules): Likewise.
13380 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
13381 Replace grub_be_to_cpu32 with grub_target_to_host32.
13382 Replace grub_cpu_to_be16 with grub_host_to_target16.
13383 Replace grub_cpu_to_be32 grub_host_to_target32.
13385 2007-10-12 Robert Millan <rmh@aybabtu.com>
13387 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
13388 * util/elf/grub-mkimage.c: ... here.
13390 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
13391 `util/powerpc/ieee1275/grub-mkimage.c'.
13393 2007-10-07 Robert Millan <rmh@aybabtu.com>
13395 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
13396 and make it easier to figure out.
13397 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
13398 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
13399 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
13400 leave us with less than HEAP_MIN_SIZE total heap.
13401 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
13403 2007-10-03 Robert Millan <rmh@aybabtu.com>
13405 * include/grub/i386/io.h: New file.
13406 * commands/i386/pc/play.c (inb): Removed.
13408 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
13410 * term/i386/pc/serial.c (inb): Removed.
13412 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
13414 * term/i386/pc/vga.c (inb): Removed.
13416 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
13419 2007-10-02 Robert Millan <rmh@aybabtu.com>
13421 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
13422 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13423 Reported by Marcin Kurek.
13425 2007-09-07 Robert Millan <rmh@aybabtu.com>
13427 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
13428 SmartFirmware version updates (as released by Sven Luther), and avoid
13429 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
13430 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
13433 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
13435 From Hitoshi Ozeki:
13436 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
13437 when merging two regions.
13439 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
13441 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
13442 * normal/completion.c (grub_normal_do_completion): Likewise.
13443 Reported by Hitoshi Ozeki.
13445 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
13447 Do not use devices at boot in chainloading.
13449 * loader/i386/pc/chainloader.c (boot_drive): New variable.
13450 (boot_part_addr): Likewise.
13451 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
13452 with BOOT_DRIVE and BOOT_PART_ADDR.
13453 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
13454 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
13456 2007-08-29 Robert Millan <rmh@aybabtu.com>
13458 Patch from Simon Peter <dn.tlp@gmx.net>:
13459 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
13460 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
13461 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
13462 util/i386/pc/grub-setup.c_DEPENDENCIES.
13463 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
13464 util/grub-probe.c_DEPENDENCIES.
13465 * conf/powerpc-ieee1275.rmk: Likewise.
13467 2007-08-28 Robert Millan <rmh@aybabtu.com>
13469 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
13470 to tell grub-mkdevicemap how to name devices.
13471 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
13474 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
13475 util/i386/get_disk_name.c.
13476 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
13477 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
13478 util/ieee1275/get_disk_name.c.
13480 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
13482 * DISTLIST: Add util/i386/get_disk_name.c and
13483 util/ieee1275/get_disk_name.c.
13485 * util/grub-mkdevicemap.c: Replace device naming logic with
13486 grub_util_get_disk_name() calls.
13488 2007-08-20 Robert Millan <rmh@aybabtu.com>
13490 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
13491 (so that it works for both plural and singular quantities).
13493 2007-08-05 Robert Millan <rmh@aybabtu.com>
13495 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
13496 so that [xz] isn't taken into account when determining order.
13498 2007-08-02 Marco Gerards <marco@gnu.org>
13500 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
13501 `include/multiboot2.h', `include/grub/elfload.h',
13502 `include/multiboot.h', `include/grub/multiboot.h',
13503 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
13504 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
13505 `kern/elf.c', `loader/multiboot_loader.c',
13506 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
13507 `loader/i386/pc/multiboot2.c',
13508 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
13509 `util/i386/pc/grub-mkrescue.in'. Remove
13510 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
13511 `include/grub/i386/pc/util/biosdisk.h' and
13512 `include/grub/powerpc/ieee1275/multiboot.h'.
13514 2007-08-02 Bean <bean123ch@gmail.com>
13516 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
13517 (ntfs_mod_SOURCES): New variable.
13518 (ntfs_mod_CFLAGS): Likewise.
13519 (ntfs_mod_LDFLAGS): Likewise.
13521 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
13522 (grub_probe_SOURCES): Likewise.
13523 (grub_emu_SOURCES): Likewise.
13525 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
13526 (grub_emu_SOURCES): Likewise.
13528 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
13529 (grub_emu_SOURCES): Likewise.
13531 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
13533 * fs/ntfs.c: New file.
13535 2007-08-02 Bean <bean123ch@gmail.com>
13537 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
13539 * file.h (grub_file): Likewise.
13541 * fshelp.h (grub_fshelp_read_file): Likewise.
13543 * util/i386/pc/grub-setup.c (setup): Likewise.
13544 (save_first_sector): Likewise.
13545 (save_blocklists): Likewise.
13547 * fs/affs.c (grub_affs_read_file): Likewise.
13549 * fs/ext2.c (grub_ext2_read_file): Likewise.
13551 * fs/fat.c (grub_fat_read_data): Likewise.
13553 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
13555 * fs/hfs.c (grub_hfs_read_file): Likewise.
13557 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
13559 * fs/jfs.c (grub_jfs_read_file): Likewise.
13561 * fs/minix.c (grub_minix_read_file): Likewise.
13563 * fs/sfs.c (grub_sfs_read_file): Likewise.
13565 * fs/ufs.c (grub_ufs_read_file): Likewise.
13567 * fs/xfs.c (grub_xfs_read_file): Likewise.
13569 * command/blocklist.c (read_blocklist): Likewise.
13570 (print_blocklist): Likewise.
13572 2007-08-02 Marco Gerards <marco@gnu.org>
13574 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
13577 * disk/host.c: New file.
13579 * util/hostfs.c: Likewise.
13581 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
13582 return `GRUB_ERR_BAD_FS'.
13583 * fs/sfs.c (grub_sfs_mount): Likewise.
13584 * fs/xfs.c (grub_xfs_mount): Likewise.
13586 * include/grub/disk.h (enum grub_disk_dev_id): Add
13587 `GRUB_DISK_DEVICE_HOST_ID'.
13589 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
13591 2007-07-24 Jerone Young <jerone@gmail.com>
13593 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
13594 modules for compilation.
13595 * conf/powerpc-ieee1275.rmk: Likewise.
13597 * include/multiboot.h: Move multiboot definitions to one file. Rename
13598 many definitions to not get grub specific.
13599 * include/multiboot2.h: Create header with multiboot 2 definitions.
13600 * include/grub/multiboot.h: Header for grub specific function
13601 prototypes and definitions.
13602 * include/grub/multiboot2.h: Likewise.
13603 * include/grub/multiboot_loader.h: Likewise.
13604 * include/grub/i386/pc/multiboot.h: Removed.
13605 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
13607 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
13608 and 2 to allow for one multiboot and module commands.
13609 * loader/multiboot2.c: Add multiboot2 functionality.
13610 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
13611 and definition names.
13612 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
13614 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
13615 ieee1275 specific multiboot2 code.
13617 * kern/i386/pc/startup.S: Change headers and definition names for
13618 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
13620 2007-07-22 Robert Millan <rmh@aybabtu.com>
13622 * geninitheader.sh: Process file specified in first parameter rather
13623 than hardcoding grub_modules_init.lst.
13624 * geninit.sh: Likewise. Also, construct header name dynamically rather
13625 than hardcoding grub_modules_init.h.
13627 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
13628 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
13629 grub_probe_init.[ch] and grub_setup_init.[ch].
13631 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
13632 grub_modules_init.h with grub_emu_init.h.
13633 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
13634 grub_probe_init.[ch] files.
13635 * conf/i386-efi.rmk: Likewise.
13636 * conf/i386-pc.rmk: Likewise.
13637 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
13638 grub_setup_init.[ch] files.
13640 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
13641 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
13642 to initialize modules rather than a list of hardcoded functions.
13643 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
13644 grub_init_all() to initialize modules rather than a list of hardcoded
13647 2007-07-22 Robert Millan <rmh@aybabtu.com>
13649 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13650 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
13652 2007-07-22 Robert Millan <rmh@aybabtu.com>
13654 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
13655 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
13656 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
13657 flag when running on SmartFirmware.
13658 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
13659 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
13662 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13663 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
13664 rather than decreasing it.
13666 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
13667 there's not enough space to do it, fail in the same way as when it
13668 can't be done because there are no partitions.
13670 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
13671 when nvsetenv failed.
13673 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
13675 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
13676 because this rule is automatically generated.
13677 (grub-mkrescue): Removed for the same reason as above.
13679 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
13681 Migrate to GNU General Public License Version 3.
13683 * COPYING: Replaced with the plain text version of GPLv3.
13685 * config.guess: Updated from gnulib.
13686 * config.sub: Likewise.
13688 * geninit.sh: Output a GPLv3 copyright notice.
13689 * geninitheader.sh: Likewise.
13690 * genmodsrc.sh: Likewise.
13691 * gensymlist.sh.in: Likewise.
13693 * boot/i386/pc/boot.S: Upgraded to GPLv3.
13694 * boot/i386/pc/diskboot.S: Likewise.
13695 * boot/i386/pc/pxeboot.S: Likewise.
13696 * commands/blocklist.c: Likewise.
13697 * commands/boot.c: Likewise.
13698 * commands/cat.c: Likewise.
13699 * commands/cmp.c: Likewise.
13700 * commands/configfile.c: Likewise.
13701 * commands/echo.c: Likewise.
13702 * commands/help.c: Likewise.
13703 * commands/ls.c: Likewise.
13704 * commands/search.c: Likewise.
13705 * commands/terminal.c: Likewise.
13706 * commands/test.c: Likewise.
13707 * commands/videotest.c: Likewise.
13708 * commands/i386/cpuid.c: Likewise.
13709 * commands/i386/pc/halt.c: Likewise.
13710 * commands/i386/pc/play.c: Likewise.
13711 * commands/i386/pc/reboot.c: Likewise.
13712 * commands/i386/pc/vbeinfo.c: Likewise.
13713 * commands/i386/pc/vbetest.c: Likewise.
13714 * commands/ieee1275/halt.c: Likewise.
13715 * commands/ieee1275/reboot.c: Likewise.
13716 * commands/ieee1275/suspend.c: Likewise.
13717 * disk/loopback.c: Likewise.
13718 * disk/lvm.c: Likewise.
13719 * disk/raid.c: Likewise.
13720 * disk/efi/efidisk.c: Likewise.
13721 * disk/i386/pc/biosdisk.c: Likewise.
13722 * disk/ieee1275/ofdisk.c: Likewise.
13723 * font/manager.c: Likewise.
13724 * fs/affs.c: Likewise.
13725 * fs/ext2.c: Likewise.
13726 * fs/fat.c: Likewise.
13727 * fs/fshelp.c: Likewise.
13728 * fs/hfs.c: Likewise.
13729 * fs/hfsplus.c: Likewise.
13730 * fs/iso9660.c: Likewise.
13731 * fs/jfs.c: Likewise.
13732 * fs/minix.c: Likewise.
13733 * fs/sfs.c: Likewise.
13734 * fs/ufs.c: Likewise.
13735 * fs/xfs.c: Likewise.
13736 * hello/hello.c: Likewise.
13737 * include/grub/acorn_filecore.h: Likewise.
13738 * include/grub/arg.h: Likewise.
13739 * include/grub/bitmap.h: Likewise.
13740 * include/grub/boot.h: Likewise.
13741 * include/grub/cache.h: Likewise.
13742 * include/grub/device.h: Likewise.
13743 * include/grub/disk.h: Likewise.
13744 * include/grub/dl.h: Likewise.
13745 * include/grub/elfload.h: Likewise.
13746 * include/grub/env.h: Likewise.
13747 * include/grub/err.h: Likewise.
13748 * include/grub/file.h: Likewise.
13749 * include/grub/font.h: Likewise.
13750 * include/grub/fs.h: Likewise.
13751 * include/grub/fshelp.h: Likewise.
13752 * include/grub/gzio.h: Likewise.
13753 * include/grub/hfs.h: Likewise.
13754 * include/grub/kernel.h: Likewise.
13755 * include/grub/loader.h: Likewise.
13756 * include/grub/lvm.h: Likewise.
13757 * include/grub/misc.h: Likewise.
13758 * include/grub/mm.h: Likewise.
13759 * include/grub/net.h: Likewise.
13760 * include/grub/normal.h: Likewise.
13761 * include/grub/parser.h: Likewise.
13762 * include/grub/partition.h: Likewise.
13763 * include/grub/pc_partition.h: Likewise.
13764 * include/grub/raid.h: Likewise.
13765 * include/grub/rescue.h: Likewise.
13766 * include/grub/script.h: Likewise.
13767 * include/grub/setjmp.h: Likewise.
13768 * include/grub/symbol.h: Likewise.
13769 * include/grub/term.h: Likewise.
13770 * include/grub/terminfo.h: Likewise.
13771 * include/grub/tparm.h: Likewise.
13772 * include/grub/types.h: Likewise.
13773 * include/grub/video.h: Likewise.
13774 * include/grub/efi/api.h: Likewise.
13775 * include/grub/efi/chainloader.h: Likewise.
13776 * include/grub/efi/console.h: Likewise.
13777 * include/grub/efi/console_control.h: Likewise.
13778 * include/grub/efi/disk.h: Likewise.
13779 * include/grub/efi/efi.h: Likewise.
13780 * include/grub/efi/pe32.h: Likewise.
13781 * include/grub/efi/time.h: Likewise.
13782 * include/grub/i386/linux.h: Likewise.
13783 * include/grub/i386/setjmp.h: Likewise.
13784 * include/grub/i386/types.h: Likewise.
13785 * include/grub/i386/efi/kernel.h: Likewise.
13786 * include/grub/i386/efi/loader.h: Likewise.
13787 * include/grub/i386/efi/time.h: Likewise.
13788 * include/grub/i386/pc/biosdisk.h: Likewise.
13789 * include/grub/i386/pc/boot.h: Likewise.
13790 * include/grub/i386/pc/chainloader.h: Likewise.
13791 * include/grub/i386/pc/console.h: Likewise.
13792 * include/grub/i386/pc/init.h: Likewise.
13793 * include/grub/i386/pc/kernel.h: Likewise.
13794 * include/grub/i386/pc/loader.h: Likewise.
13795 * include/grub/i386/pc/memory.h: Likewise.
13796 * include/grub/i386/pc/multiboot.h: Likewise.
13797 * include/grub/i386/pc/serial.h: Likewise.
13798 * include/grub/i386/pc/time.h: Likewise.
13799 * include/grub/i386/pc/vbe.h: Likewise.
13800 * include/grub/i386/pc/vbeblit.h: Likewise.
13801 * include/grub/i386/pc/vbefill.h: Likewise.
13802 * include/grub/i386/pc/vbeutil.h: Likewise.
13803 * include/grub/i386/pc/vga.h: Likewise.
13804 * include/grub/ieee1275/ieee1275.h: Likewise.
13805 * include/grub/ieee1275/ofdisk.h: Likewise.
13806 * include/grub/powerpc/libgcc.h: Likewise.
13807 * include/grub/powerpc/setjmp.h: Likewise.
13808 * include/grub/powerpc/types.h: Likewise.
13809 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
13810 * include/grub/powerpc/ieee1275/console.h: Likewise.
13811 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
13812 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
13813 * include/grub/powerpc/ieee1275/loader.h: Likewise.
13814 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
13815 * include/grub/powerpc/ieee1275/time.h: Likewise.
13816 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
13817 * include/grub/sparc64/libgcc.h: Likewise.
13818 * include/grub/sparc64/setjmp.h: Likewise.
13819 * include/grub/sparc64/types.h: Likewise.
13820 * include/grub/sparc64/ieee1275/console.h: Likewise.
13821 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
13822 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13823 * include/grub/sparc64/ieee1275/time.h: Likewise.
13824 * include/grub/util/biosdisk.h: Likewise.
13825 * include/grub/util/getroot.h: Likewise.
13826 * include/grub/util/lvm.h: Likewise.
13827 * include/grub/util/misc.h: Likewise.
13828 * include/grub/util/raid.h: Likewise.
13829 * include/grub/util/resolve.h: Likewise.
13830 * io/gzio.c: Likewise.
13831 * kern/device.c: Likewise.
13832 * kern/disk.c: Likewise.
13833 * kern/dl.c: Likewise.
13834 * kern/elf.c: Likewise.
13835 * kern/env.c: Likewise.
13836 * kern/err.c: Likewise.
13837 * kern/file.c: Likewise.
13838 * kern/fs.c: Likewise.
13839 * kern/loader.c: Likewise.
13840 * kern/main.c: Likewise.
13841 * kern/misc.c: Likewise.
13842 * kern/mm.c: Likewise.
13843 * kern/parser.c: Likewise.
13844 * kern/partition.c: Likewise.
13845 * kern/rescue.c: Likewise.
13846 * kern/term.c: Likewise.
13847 * kern/efi/efi.c: Likewise.
13848 * kern/efi/init.c: Likewise.
13849 * kern/efi/mm.c: Likewise.
13850 * kern/i386/dl.c: Likewise.
13851 * kern/i386/efi/init.c: Likewise.
13852 * kern/i386/efi/startup.S: Likewise.
13853 * kern/i386/pc/init.c: Likewise.
13854 * kern/i386/pc/lzo1x.S: Likewise.
13855 * kern/i386/pc/startup.S: Likewise.
13856 * kern/ieee1275/ieee1275.c: Likewise.
13857 * kern/powerpc/cache.S: Likewise.
13858 * kern/powerpc/dl.c: Likewise.
13859 * kern/powerpc/ieee1275/cmain.c: Likewise.
13860 * kern/powerpc/ieee1275/crt0.S: Likewise.
13861 * kern/powerpc/ieee1275/init.c: Likewise.
13862 * kern/powerpc/ieee1275/openfw.c: Likewise.
13863 * kern/sparc64/cache.S: Likewise.
13864 * kern/sparc64/dl.c: Likewise.
13865 * kern/sparc64/ieee1275/init.c: Likewise.
13866 * kern/sparc64/ieee1275/openfw.c: Likewise.
13867 * loader/efi/chainloader.c: Likewise.
13868 * loader/efi/chainloader_normal.c: Likewise.
13869 * loader/i386/efi/linux.c: Likewise.
13870 * loader/i386/efi/linux_normal.c: Likewise.
13871 * loader/i386/pc/chainloader.c: Likewise.
13872 * loader/i386/pc/chainloader_normal.c: Likewise.
13873 * loader/i386/pc/linux.c: Likewise.
13874 * loader/i386/pc/linux_normal.c: Likewise.
13875 * loader/i386/pc/multiboot.c: Likewise.
13876 * loader/i386/pc/multiboot_normal.c: Likewise.
13877 * loader/powerpc/ieee1275/linux.c: Likewise.
13878 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13879 * normal/arg.c: Likewise.
13880 * normal/cmdline.c: Likewise.
13881 * normal/command.c: Likewise.
13882 * normal/completion.c: Likewise.
13883 * normal/execute.c: Likewise.
13884 * normal/function.c: Likewise.
13885 * normal/lexer.c: Likewise.
13886 * normal/main.c: Likewise.
13887 * normal/menu.c: Likewise.
13888 * normal/menu_entry.c: Likewise.
13889 * normal/misc.c: Likewise.
13890 * normal/parser.y: Likewise.
13891 * normal/script.c: Likewise.
13892 * normal/i386/setjmp.S: Likewise.
13893 * normal/powerpc/setjmp.S: Likewise.
13894 * normal/sparc64/setjmp.S: Likewise.
13895 * partmap/acorn.c: Likewise.
13896 * partmap/amiga.c: Likewise.
13897 * partmap/apple.c: Likewise.
13898 * partmap/gpt.c: Likewise.
13899 * partmap/pc.c: Likewise.
13900 * partmap/sun.c: Likewise.
13901 * term/gfxterm.c: Likewise.
13902 * term/terminfo.c: Likewise.
13903 * term/efi/console.c: Likewise.
13904 * term/i386/pc/console.c: Likewise.
13905 * term/i386/pc/serial.c: Likewise.
13906 * term/i386/pc/vesafb.c: Likewise.
13907 * term/i386/pc/vga.c: Likewise.
13908 * term/ieee1275/ofconsole.c: Likewise.
13909 * util/biosdisk.c: Likewise.
13910 * util/console.c: Likewise.
13911 * util/genmoddep.c: Likewise.
13912 * util/getroot.c: Likewise.
13913 * util/grub-emu.c: Likewise.
13914 * util/grub-mkdevicemap.c: Likewise.
13915 * util/grub-probe.c: Likewise.
13916 * util/lvm.c: Likewise.
13917 * util/misc.c: Likewise.
13918 * util/raid.c: Likewise.
13919 * util/resolve.c: Likewise.
13920 * util/update-grub.in: Likewise.
13921 * util/update-grub_lib.in: Likewise.
13922 * util/grub.d/00_header.in: Likewise.
13923 * util/grub.d/10_hurd.in: Likewise.
13924 * util/grub.d/10_linux.in: Likewise.
13925 * util/i386/efi/grub-install.in: Likewise.
13926 * util/i386/efi/grub-mkimage.c: Likewise.
13927 * util/i386/pc/grub-install.in: Likewise.
13928 * util/i386/pc/grub-mkimage.c: Likewise.
13929 * util/i386/pc/grub-mkrescue.in: Likewise.
13930 * util/i386/pc/grub-setup.c: Likewise.
13931 * util/i386/pc/misc.c: Likewise.
13932 * util/powerpc/ieee1275/grub-install.in: Likewise.
13933 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
13934 * util/powerpc/ieee1275/misc.c: Likewise.
13935 * video/bitmap.c: Likewise.
13936 * video/video.c: Likewise.
13937 * video/i386/pc/vbe.c: Likewise.
13938 * video/i386/pc/vbeblit.c: Likewise.
13939 * video/i386/pc/vbefill.c: Likewise.
13940 * video/i386/pc/vbeutil.c: Likewise.
13941 * video/readers/tga.c: Likewise.
13943 2007-07-02 Robert Millan <rmh@aybabtu.com>
13945 * conf/i386-efi.rmk: Replace obsolete reference to
13946 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
13947 with util/getroot.c.
13948 * conf/powerpc-ieee1275.rmk: Likewise.
13949 * conf/sparc64-ieee1275.rmk: Likewise.
13951 * util/grub-emu.c (main): Fix unchecked pointer handling.
13953 2007-07-02 Robert Millan <rmh@aybabtu.com>
13955 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
13956 invocation to fail, in order to support partition-less media.
13958 * util/i386/pc/grub-install.in: Likewise.
13960 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
13961 which fs or partmap modules are needed (akin to its sister scripts).
13963 Also use grub-probe to get rid of unportable /proc/mounts check.
13965 Print the same informational message that the other scripts do, before
13968 2007-06-23 Robert Millan <rmh@aybabtu.com>
13970 * util/update-grub_lib.in (font_path): New function. Determine whether
13971 a font file can be found and, if so, echo the GRUB path to it.
13973 * util/update-grub.in: Handle multiple terminals depending on user
13974 input, platform availability and font file presence. Propagate
13975 variables of our findings to /etc/grub.d/ children.
13977 * util/grub.d/00_header.in: Handle multiple terminals, based on
13978 environment setup by update-grub.
13980 2007-06-23 Robert Millan <rmh@aybabtu.com>
13982 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
13984 2007-06-21 Robert Millan <rmh@aybabtu.com>
13986 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
13987 indicate end of data section in kernel image.
13988 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
13989 GRUB_KERNEL_MACHINE_DATA_END.
13991 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
13993 * kern/i386/efi/startup.S: Likewise.
13995 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
13996 during image generation. Implement --prefix option to override this
13998 * util/i386/efi/grub-mkimage.c: Likewise.
14000 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
14001 code to make path relative to its root into a separate function.
14003 * util/i386/pc/grub-install.in: Use newly provided
14004 make_system_path_relative_to_its_root() to convert ${grubdir}, then
14005 pass the result to grub-install --prefix.
14007 2007-06-13 Robert Millan <rmh@aybabtu.com>
14009 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
14010 DEFAULT_DEVICE_MAP.
14011 * util/grub-emu.c: Use above definitions from misc.h instead of
14013 * util/grub-mkdevicemap.c: Likewise.
14014 * util/i386/pc/grub-setup.c: Likewise.
14015 * util/grub-probe.c: Likewise.
14016 (probe): Abort with grub_util_error() when either
14017 grub_guess_root_device or grub_util_get_grub_dev fails.
14019 2007-06-12 Robert Millan <rmh@aybabtu.com>
14021 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
14022 "pager" assignment.
14023 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
14025 * util/grub-probe.c (probe): Likewise for "drive_name".
14027 2007-06-11 Robert Millan <rmh@aybabtu.com>
14029 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
14030 not just the cdrom one.
14032 2007-06-11 Robert Millan <rmh@aybabtu.com>
14034 * util/i386/pc/grub-mkrescue.in: Add "set -e".
14035 Add --pkglibdir=DIR option to override pkglibdir.
14036 Mention --image-type=TYPE in help output.
14037 Fix --grub-mkimage (it was a no-op).
14038 Abort gracefully when no parameter is given.
14040 2007-06-11 Robert Millan <rmh@aybabtu.com>
14042 * util/i386/pc/grub-mkrescue.in: New file.
14043 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
14044 * Makefile.in: Handle bin_SCRIPTS.
14046 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
14048 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
14049 list of video modes.
14051 2007-06-06 Robert Millan <rmh@aybabtu.com>
14053 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
14054 file doesn't exist, or if it is in a filesystem grub can't read.
14056 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
14057 not abort if GRUB_DRIVE could not be defined. Rearrange generated
14058 header comment to fit in 80 columns when the variables are resolved.
14060 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
14061 could be identified by update-grub. Remove redundant check for
14062 unifont.pff existence (since convert_system_path_to_grub_path now
14065 2007-06-04 Robert Millan <rmh@aybabtu.com>
14067 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
14069 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
14071 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
14073 2007-06-04 Robert Millan <rmh@aybabtu.com>
14075 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
14077 * include/grub/partition.h: Declare grub_apple_partition_map_init and
14078 grub_apple_partition_map_fini.
14081 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
14082 to access >2 TiB disks).
14084 Print disk->total_sectors with %llu instead of %lu, since this
14085 variable is always 64-bit (prevents wrong disk size from being displayed
14086 on either >2 TiB disk or big-endian CPU).
14088 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
14089 into a generic case that supports all (sane) partition maps.
14091 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
14094 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
14095 and grub_apple_partition_map_fini() after that.
14097 2007-06-01 Robert Millan <rmh@aybabtu.com>
14099 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
14101 * util/grub.d/00_header.in: Only enable gfxterm when
14102 convert_system_path_to_grub_path() succeeds.
14104 2007-05-20 Robert Millan <rmh@aybabtu.com>
14106 * util/update-grub_lib.in: New file.
14107 * DISTLIST: Add update-grub_lib.in.
14108 * conf/common.rmk: Generate update-grub_lib and install it in
14110 * Makefile.in: Add install routine for $(lib_DATA).
14112 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
14113 function provided by update-grub_lib to support arbitrary paths of
14115 * util/update-grub.in: Use convert_system_path_to_grub_path() to
14116 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
14118 2007-05-19 Robert Millan <rmh@aybabtu.com>
14120 * commands/i386/cpuid.c: New module.
14121 * DISTLIST: Add it.
14122 * conf/i386-efi.rmk: Enable cpuid.mod.
14123 * conf/i386-pc.rmk: Likewise.
14125 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
14127 * kern/disk.c (grub_disk_read): Check return value of
14130 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
14132 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
14134 * disk/raid.c (grub_raid_open): Likewise.
14136 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
14138 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
14139 stack instead of on the heap.
14141 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
14142 before doing a read on it.
14144 * configure.ac: Only use -fno-stack-protector for the target
14147 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
14149 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
14150 __attribute_ ((unused)) to mode_type argument.
14152 * util/getroot.c (grub_guess_root_device): Fix #endif.
14154 * kern/misc.c (memcmp): Fix prototype.
14156 * include/grub/partition.h [GRUB_UTIL]
14157 (grub_gpt_partition_map_init): Add prototype.
14158 (grub_gpt_partition_map_fini): Likewise.
14160 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
14161 at the right place.
14163 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
14164 (grub_fat_read_data): Likewise.
14165 (grub_fat_find_dir): Likewise.
14167 * font/manager.c (find_glyph): Make table a const.
14168 (grub_font_get_glyph): Remove bitmap from if statement.
14170 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
14172 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
14173 code, first search for device in /dev/mapper, then in /dev.
14174 (grub_util_get_grub_dev): New function.
14175 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
14177 * util/grub-probe.c (probe): Remove check for RAID, call
14178 grub_util_get_grub_dev() instead of
14179 grub_util_biosdisk_get_grub_dev().
14180 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
14181 grub_util_biosdisk_get_grub_dev().
14182 * util/i386/pc/grub-setup.c (main): Likewise.
14184 2007-05-16 Robert Millan <rmh@aybabtu.com>
14186 * DISTLIST: Update for the latest changes.
14187 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
14188 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
14189 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
14190 grub/util/biosdisk.h.
14191 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
14192 grub/util/biosdisk.h.
14194 2007-05-16 Robert Millan <rmh@aybabtu.com>
14196 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
14198 2007-05-16 Robert Millan <rmh@aybabtu.com>
14200 * util/i386/efi/grub-install.in: New.
14201 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
14202 newly added grub-install.
14203 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
14205 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
14206 grub/util/biosdisk.h.
14207 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
14208 grub/util/biosdisk.h.
14210 2007-05-16 Robert Millan <rmh@aybabtu.com>
14212 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
14213 * include/grub/util/biosdisk.h: ... here.
14214 * util/i386/pc/biosdisk.c: Moved to ...
14215 * util/biosdisk.c: ... here.
14216 * util/i386/pc/getroot.c: Moved to ...
14217 * util/getroot.c: ... here.
14218 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
14219 * util/grub-mkdevicemap.c: ... here.
14220 * util/i386/pc/grub-probe.c: Moved to ...
14221 * util/grub-probe.c: ... here.
14223 2007-05-15 Robert Millan <rmh@aybabtu.com>
14225 * util/update-grub.in: Remove duplicated line in grub.cfg header
14228 2007-05-13 Robert Millan <rmh@aybabtu.com>
14230 * util/update-grub.in: Fix a few assumptions about the devices holding
14231 /, /boot and /boot/grub being the same.
14232 * util/grub.d/00_header.in: Likewise.
14233 * util/grub.d/10_hurd.in: Likewise.
14234 * util/grub.d/10_linux.in: Likewise.
14236 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
14237 patterns. Use that to define the `.old' suffix as older than `'.
14239 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
14241 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
14242 the grub.cfg header message.
14244 2007-05-11 Robert Millan <rmh@aybabtu.com>
14246 * util/update-grub.in: Create device.map if it doesn't already exist,
14247 before attempting to run grub-probe.
14248 Check for grub-probe and grub-mkdevicemap with the same code
14249 grub-install is using.
14252 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
14254 * Makefile.in: Add the datarootdir autoconf variable.
14256 2007-05-09 Robert Millan <rmh@aybabtu.com>
14258 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
14259 fail gracefully if dev->disk->partition == NULL.
14261 2007-05-07 Robert Millan <rmh@aybabtu.com>
14263 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
14264 determine partition map module.
14265 * util/i386/pc/grub-install.in: Use this feature to decide which
14266 partition module to load, instead of hardcoding pc and gpt.
14268 2007-05-07 Robert Millan <rmh@aybabtu.com>
14270 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
14271 source directory differs from build directory.
14273 2007-05-05 Robert Millan <rmh@aybabtu.com>
14275 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
14278 2007-05-05 Robert Millan <rmh@aybabtu.com>
14280 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
14282 2007-05-05 Robert Millan <rmh@aybabtu.com>
14284 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
14285 command-line arguments via ${GRUB_CMDLINE_LINUX}.
14287 2007-05-05 Robert Millan <rmh@aybabtu.com>
14289 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
14290 (grub_probe_SOURCES): Likewise.
14291 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
14292 GPT and initialize dos_part and bsd_part accordingly.
14293 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
14295 (main): Activate gpt module for use during partition identification,
14296 and deactivate it afterwards.
14297 * util/i386/pc/grub-install.in: Add gpt module to core.img.
14298 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
14299 partition identification, and deactivate it afterwards.
14301 2007-05-05 Robert Millan <rmh@aybabtu.com>
14303 * term/i386/pc/console.c (grub_console_fini): Call
14304 grub_term_set_current() before grub_term_unregister().
14306 2007-05-04 Robert Millan <rmh@aybabtu.com>
14308 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
14309 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
14310 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
14311 and update-grub_DATA.
14312 * conf/common.rmk: Build and install update-grub components.
14313 * conf/common.mk: Regenerate.
14314 * util/update-grub.in: New. Core of update-grub.
14315 * util/grub.d/00_header.in: New. Generates grub.cfg header.
14316 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
14317 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
14318 * util/grub.d/README: New. Document grub.d directory layout.
14320 2007-05-01 Robert Millan <rmh@aybabtu.com>
14322 * util/grub-emu.c: Move initialization functions
14323 grub_util_biosdisk_init() and grub_init_all() before
14324 grub_util_biosdisk_get_grub_dev(), which relies on them.
14326 2007-04-19 Robert Millan <rmh@aybabtu.com>
14328 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
14331 2007-04-18 Jerone Young <jerone@gmail.com>
14333 * kernel/elf.c: Add missing parenthesis for conditional statement
14336 2007-04-10 Jerone Young <jerone@gmail.com>
14338 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
14339 continue on and look for device node with real device name.
14341 2007-04-10 Jerone Young <jerone@gmail.com>
14343 * configure.ac: Add argument for autoconf to use transformation
14345 * Makefile.in: Add autoconf package transformation code.
14346 * util/i386/pc/grub-install.in: Likewise.
14347 * util/powerpc/ieee1275/grub-install.in: Likewise.
14349 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
14351 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
14352 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
14353 (EXT2_REVISION): Likewise.
14354 (EXT2_INODE_SIZE): Likewise.
14355 (struct grub_ext2_block_group): Added a missing member
14357 (grub_ext2_read_inode): Divide by the inode size in a superblock
14358 instead of 128 to obtain INODES_PER_BLOCK.
14359 Use the macro EXT2_INODE_SIZE instead of directly using
14360 SBLOCK->INODE_SIZE.
14362 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
14364 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
14365 superblock instead of the structure size to compute an
14366 offset. This fixes the problem that GRUB could not read a
14367 filesystem when inode size is different from 128-byte.
14369 2007-03-05 Marco Gerards <marco@gnu.org>
14371 * normal/main.c (read_config_file): When "menu" is not set, create
14372 an initial context.
14374 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
14376 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
14377 (HEAP_LIMIT): New macro.
14378 (grub_claim_heap): Claim memory up to `heaplimit'.
14380 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
14382 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
14383 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
14384 (_start): Likewise.
14385 (grub_arch_modules_addr): Return address after `_end'.
14386 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
14387 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
14388 (add_segments): Calculate `_end' from phdr size and location.
14389 (ALIGN_UP): Moved to ...
14390 * include/grub/misc.h: here.
14391 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
14393 (GRUB_IEEE1275_MODULE_BASE): Removed.
14395 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
14397 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
14400 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
14402 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
14404 (grub_elf64_load_hook_t): Likewise.
14405 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
14408 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
14410 * kern/mm.c: Update copyright.
14411 (grub_mm_debug): Correct syntax error.
14412 (grub_mm_dump_free): New function.
14413 (grub_debug_free): Call `grub_free'.
14414 * include/grub/mm.h: Update copyright.
14415 (grub_mm_dump_free): Add declaration.
14417 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
14419 * include/grub/ieee1275/ieee1275.h: Update copyright.
14420 * kern/powerpc/ieee1275/init.c: Likewise.
14421 * kern/powerpc/ieee1275/openfw.c: Likewise.
14423 * loader/powerpc/ieee1275/linux.c: Likewise.
14424 * include/grub/elfload.h: Likewise.
14425 * kern/elf.c: Likewise.
14426 (grub_elf32_load): Pass `base' and `size' parameters. Update all
14428 (grub_elf64_load): Likewise.
14429 (grub_elf32_load_segment): Move to a nested function.
14430 (grub_elf64_load_segment): Likewise.
14432 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
14434 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
14436 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
14437 (grub_heap_len): Likewise.
14438 (HEAP_SIZE): New macro.
14439 (grub_claim_heap): New function.
14440 (grub_machine_init): Don't claim heap directly. Call
14442 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
14443 (grub_available_iterate): New function.
14445 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
14447 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
14448 * configure.ac: Use it for testing the HOST and TARGET compilers.
14450 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
14452 * Makefile.in (enable_grub_emu): New variable.
14453 * configure.ac (--enable-grub-emu): New option.
14454 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
14455 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
14456 * conf/i386-pc.rmk: Likewise.
14457 * conf/powerpc-ieee1275.rmk: Likewise.
14458 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
14460 2006-12-12 Marco Gerards <marco@gnu.org>
14462 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
14464 * kern/env.c (grub_env_unset): Don't free the member `value' when
14465 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
14468 * normal/main.c (current_menu): Removed.
14469 (free_menu): Unset the `menu' environment variable.
14470 (grub_normal_menu_addentry): Make use of the environment variable
14471 `menu', instead of using the global `current_menu'. Allocate
14472 memory for the sourcecode of this entry.
14473 (read_config_file): New argument `nested', changed all callers.
14474 Only in the case of a new context, initialize a new menu. Set the
14475 `menu' environment variable.
14476 (grub_normal_execute): Don't set and unset the environment
14477 variable `menu' here anymore. Only free the menu when leaving the
14480 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
14483 2006-12-11 Marco Gerards <marco@gnu.org>
14485 * normal/menu_entry.c (run): Fix off by one bug so the last line
14486 is executed. Move the loader check to outside the loop.
14488 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
14490 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
14492 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
14494 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
14495 the number of sectors. Reported by Andrey Shuvikov
14496 <mr_hyro@yahoo.com>.
14498 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
14500 * kern/disk.c (grub_disk_read): When there is a read error, always
14501 try to read only the necessary data.
14503 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
14505 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
14507 [GRUB_UTIL] (grub_raid_fini): Likewise.
14508 [GRUB_UTIL] (grub_lvm_init): Likewise.
14509 [GRUB_UTIL] (grub_lvm_fini): Likewise.
14510 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
14511 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
14512 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
14513 and grub_raid_fini().
14515 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
14517 * include/grub/types.h (__unused): Rename to UNUSED.
14518 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
14519 (grub_elf64_size): Likewise.
14521 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
14523 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
14524 grub_error_push and grub_error_pop in the error-handling path.
14525 (grub_elf32_load_segment): Only call grub_file_read with non-zero
14528 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
14530 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
14531 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14532 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14533 (kernel_elf_SOURCES): Likewise.
14534 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
14535 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
14536 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
14537 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
14538 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
14539 (elf_mod_SOURCES): New variable.
14540 (elf_mod_CFLAGS): Likewise.
14541 (elf_mod_LDFLAGS): Likewise.
14542 * include/grub/types.h (__unused): New macro.
14543 * include/grub/elfload.h: New file.
14544 * kern/elf.c: Likewise.
14545 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
14546 (ELF32_LOADMASK): New macro.
14547 (ELF64_LOADMASK): Likewise.
14548 (vmlinux): Removed.
14549 (grub_linux_load32): New function.
14550 (grub_linux_load64): Likewise.
14551 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
14552 Use grub_elf_t instead of grub_file_t.
14554 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
14556 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
14557 `catch_result' to struct set_color_args.
14559 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
14561 * normal/menu.c: Include grub/script.h.
14562 * normal/menu_entry.c: Likewise.
14563 * include/grub/normal.h: Do not include grub/script.h.
14565 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
14567 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
14569 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
14571 * kern/disk.c (grub_disk_open): Print debug messages when opening a
14573 (grub_disk_close): Print debug messages when closing a disk.
14574 (grub_disk_read): Print debug messages when disk read fails.
14575 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
14577 * kern/partition.c: Include misc.h.
14578 (grub_partition_iterate): Print debug messages when detecting
14581 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
14583 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
14585 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
14587 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
14589 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14590 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
14592 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
14594 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
14595 instead of sizeof(lv). Patch by Michael Guntsche.
14597 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
14599 * disk/lvm.c: Rename VGS to VG_LIST.
14600 (grub_lvm_iterate): Change VGS->LV to VG-LV.
14601 (grub_lvm_open): Likewise.
14602 Thanks to Michael Guntsche for finding this bug.
14604 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
14606 * configure.ac (AC_INIT): Bumped to 1.95.
14608 2006-10-14 Robert Millan <rmh@aybabtu.com>
14610 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
14611 with "/dev/.static/dev/md".
14613 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
14615 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
14616 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
14617 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
14618 DRIVE_NAME are always freed.
14620 * util/i386/pc/biosdisk.c (make_device_name): Add one into
14621 DOS_PART, as a DOS partition is counted from one instead of zero
14622 now. Reported by Robert Millan.
14624 2006-10-14 Robert Millan <rmh@aybabtu.com>
14626 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
14627 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
14628 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
14629 string returned by grub_guess_root_device.
14630 * util/i386/pc/grub-setup.c: Likewise.
14631 * util/i386/pc/grub-probefs.c: Likewise.
14633 * util/i386/pc/grub-probefs.c: Rename to ...
14634 * util/i386/pc/grub-probe.c: ... this.
14635 * DISTLIST: Remove grub-probefs, add grub-probe.
14636 * conf/i386-efi.rmk: Likewise.
14637 * conf/i386-pc.rmk: Likewise.
14638 * util/i386/pc/grub-install.in: Likewise.
14640 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
14641 choose which information we want to print.
14643 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
14645 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
14646 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
14647 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
14648 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
14649 video/readers/tga.c and video/i386/pc/vbeutil.c.
14651 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
14653 Added support for RAID and LVM.
14655 * disk/lvm.c: New file.
14656 * disk/raid.c: Likewise.
14657 * include/grub/lvm.h: Likewise.
14658 * include/grub/raid.h: Likewise.
14659 * include/grub/util/lvm.h: Likewise.
14660 * include/grub/util/raid.h: Likewise.
14661 * util/lvm.c: Likewise.
14662 * util/raid.c: Likewise.
14664 * include/grub/disk.h (grub_disk_dev_id): Add
14665 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
14666 (grub_disk_get_size): New prototype.
14667 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
14668 returns a partition.
14669 (grub_disk_get_size): New function.
14671 * kern/i386/pc/init.c (make_install_device): Copy the prefix
14672 verbatim if grub_install_dos_part is -2.
14674 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
14677 * util/i386/pc/grub-setup.c (setup): New argument
14678 MUST_EMBED. Force embedding of GRUB when the argument is
14679 true. Close FILE before returning.
14680 (main): Add support for RAID and LVM.
14682 * conf/common.rmk: Add RAID and LVM modules.
14683 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
14685 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
14687 * kern/misc.c (grub_strstr): New function.
14688 * include/grub/misc.h (grub_strstr): New prototype.
14690 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
14692 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
14694 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
14696 * kern/misc.c (grub_strtoull): Guess the base only if not
14699 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
14701 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
14704 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
14706 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
14708 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
14709 Remove `flags' argument. All callers changed.
14710 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
14711 (IEEE1275_IHANDLE_INVALID): New variable.
14712 (IEEE1275_CELL_INVALID): New variable.
14713 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
14714 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
14715 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
14716 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
14717 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
14718 codes from Open Firmware. All callers updated.
14719 (grub_ieee1275_next_property): Directly return Open Firmware return
14721 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
14722 Standardize error checking from `grub_ieee1275_get_property'.
14723 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
14724 `devalias' to `aliases'. Correct comments. Consolidate error paths.
14726 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
14728 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
14729 `instance_to_package_args' to `instance_to_path_args'.
14731 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
14732 `grub_ieee1275_chosen'.
14734 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
14735 `grub_ieee1275_interpret'.
14737 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
14739 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
14741 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
14743 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
14744 (__cmpdi): Likewise.
14746 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
14747 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
14750 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
14752 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
14753 to type `grub_ssize_t'.
14754 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
14756 2006-09-22 Marco Gerards <marco@gnu.org>
14758 * normal/script.c (grub_script_create_cmdmenu): Skip leading
14761 2006-09-22 Marco Gerards <marco@gnu.org>
14763 * commands/echo.c: New file.
14765 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
14767 * conf/common.rmk (echo_mod_SOURCES): New variable.
14768 (echo_mod_CFLAGS): Likewise.
14769 (echo_mod_LDFLAGS): Likewise.
14771 2006-09-22 Marco Gerards <marco@gnu.org>
14773 * normal/main.c (get_line): Malloc memory instead of using
14774 preallocated memory. Removed the arguments `cmdline' and
14775 `max_len'. Updated all callers.
14777 2006-09-22 Marco Gerards <marco@gnu.org>
14779 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
14780 (normal_mod_DEPENDENCIES): Likewise.
14782 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
14783 (normal_mod_DEPENDENCIES): Likewise.
14785 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
14787 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
14789 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
14791 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
14792 (normal_mod_DEPENDENCIES): Likewise.
14793 * conf/i386-pc.mk: Regenerate.
14794 * conf/i386-efi.mk: Likewise
14795 * conf/common.mk: Likewise.
14796 * conf/powerpc-ieee1275.mk: Likewise.
14797 * conf/sparc64-ieee1275.mk: Likewise.
14799 2006-09-22 Robert Millan <rmh@aybabtu.com>
14801 Sync with i386 version.
14802 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
14803 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
14805 2006-09-21 Robert Millan <rmh@aybabtu.com>
14807 Import from GRUB Legacy (lib/device.c):
14808 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
14809 (init_device_map) [__linux__]: Add support for I2O devices.
14811 2006-09-14 Marco Gerards <marco@gnu.org>
14813 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
14816 2006-09-14 Robert Millan <rmh@aybabtu.com>
14818 * util/i386/pc/grub-install.in: Skip menu.lst when removing
14821 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
14823 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
14824 before adding it to device.map.
14826 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
14828 * genmk.rb: Let GCC generate dependencies the first time it
14829 compiles a file; using the -MD option.
14830 * conf/common.mk: Regenerate.
14831 * conf/i386-pc.mk: Likewise.
14832 * conf/i386-efi.mk: Likewise.
14833 * conf/powerpc-ieee1275.mk: Likewise.
14834 * conf/sparc64-ieee1275.mk: Likewise.
14836 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
14838 Move the prototypes of grub_setjmp and grub_longjmp to
14839 cpu/setjmp.h, so that each architecture may specify different
14842 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
14843 (grub_longjmp): Likewise.
14844 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
14845 (grub_longjmp): Likewise.
14846 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
14847 (grub_longjmp): Likewise.
14849 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
14850 [!GRUB_UTIL] (grub_longjmp): Removed.
14852 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
14854 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
14855 "color!" method does not return any value.
14857 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14859 * include/grub/bitmap.h: New file.
14861 * include/grub/i386/pc/vbeutil.h: Likewise.
14863 * video/bitmap.c: Likewise.
14865 * video/readers/tga.c: Likewise.
14867 * video/i386/pc/vbeutil.c: Likewise.
14869 * commands/videotest.c: Code cleanup and updated to reflect to new
14872 * term/gfxterm.c: Likewise.
14874 * video/video.c: Likewise.
14876 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
14877 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
14878 (bitmap_mod_SOURCES): New entry.
14879 (bitmap_mod_CFLAGS): Likewise.
14880 (bitmap_mod_LDFLAGS): Likewise.
14881 (tga_mod_SOURCES): Likewise.
14882 (tga_mod_CFLAGS): Likewise.
14883 (tga_mod_LDFLAGS): Likewise.
14885 * include/grub/video.h (grub_video_blit_operators): New enum type.
14886 (grub_video_render_target): Changed as forward declaration and moved
14887 actual definition to be video driver specific.
14888 (grub_video_adapter.blit_bitmap): Added blitting operator.
14889 (grub_video_adapter.blit_render_target): Likewise.
14890 (grub_video_blit_bitmap): Likewise.
14891 (grub_video_blit_render_target): Likewise.
14893 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
14894 driver specific render target definition.
14895 (grub_video_vbe_map_rgba): Added driver internal helper.
14896 (grub_video_vbe_unmap_color): Updated to use
14897 grub_video_i386_vbeblit_info.
14898 (grub_video_vbe_get_video_ptr): Likewise.
14900 * include/grub/i386/pc/vbeblit.h
14901 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
14902 grub_video_i386_vbeblit_info.
14903 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14904 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14905 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14906 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14907 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14908 (grub_video_i386_vbeblit_index_index): Likewise.
14909 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
14910 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14911 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14912 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
14914 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
14917 * video/i386/pc/vbeblit.c: Updated to reflect changes on
14918 include/grub/i386/pc/vbeblit.h.
14920 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
14921 Updated to use grub_video_i386_vbeblit_info.
14922 (grub_video_i386_vbefill_R8G8B8): Likewise.
14923 (grub_video_i386_vbefill_index): Likewise.
14924 (grub_video_i386_vbefill): Added generic filler.
14926 * video/i386/pc/vbefill.c: Updated to reflect changes on
14927 include/grub/i386/pc/vbefill.h.
14929 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
14930 grub_video_i386_vbeblit_info.
14931 (grub_video_vbe_unmap_color): Likewise.
14932 (grub_video_vbe_blit_glyph): Likewise.
14933 (grub_video_vbe_scroll): Likewise.
14934 (grub_video_vbe_draw_pixel): Removed function.
14935 (grub_video_vbe_get_pixel): Likewise.
14936 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
14937 updated code to use it.
14938 (common_blitter): Added common blitter for render target and bitmap.
14939 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
14940 (grub_video_vbe_blit_render_target): Likewise.
14942 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
14944 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
14945 is in text mode if there is no console control protocol instance
14948 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14950 * include/grub/video.h: Code cleanup.
14952 * include/grub/i386/pc/vbe.h: Likewise.
14954 * video/i386/pc/vbe.c: Likewise.
14956 * video/i386/pc/vbeblit.c: Likewise.
14958 * video/i386/pc/vbefill.c: Likewise.
14960 * video/video.c: Likewise. Also added more comments.
14962 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14964 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
14965 (struct grub_biosdisk_dap): Likewise.
14967 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
14968 linkage settings for all functions.
14970 2006-07-12 Marco Gerards <marco@gnu.org>
14972 * configure.ac (--enable-mm-debug): Fix typo.
14974 * genkernsyms.sh.in: Use proper quoting for `CC'.
14976 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
14978 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
14979 (normal_mod_ASFLAGS): Remove "-m32".
14981 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
14983 * util/misc.c: Include config.h.
14984 [!HAVE_MEMALIGN]: Do not include malloc.h.
14985 (grub_memalign): Use posix_memalign, if present. Then, use
14986 memalign, if present. Otherwise, emit an error.
14988 * util/grub-emu.c: Do not include malloc.h.
14990 * include/grub/util/misc.h: Include unistd.h. This is required for
14991 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
14992 D. Eades III <hde@foobar-qux.org>.
14994 * configure.ac (AC_GNU_SOURCE): Added.
14995 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
14998 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
15000 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
15001 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
15003 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
15005 * include/grub/types.h (grub_host_addr_t): Rename to
15006 grub_target_addr_t.
15007 (grub_host_off_t): Rename to grub_target_off_t.
15008 (grub_host_size_t): Rename to grub_target_size_t.
15009 (grub_host_ssize_t): Rename to grub_target_ssize_t.
15010 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
15012 * include/grub/kernel.h (struct grub_module_header): Change type
15013 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
15014 (grub_module_info): Likewise.
15016 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
15018 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
15019 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
15020 Velazquez <jesus.velazquez@gmail.com>.
15022 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
15024 Count partitions from 1 instead of 0 in the string representation
15025 of partitions. Still use 0-based internally.
15027 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
15028 (sun_partition_map_iterate): Use grub_partition_t instead of
15029 struct grub_partition *. Cast DESC->START_CYLINDER to
15030 grub_uint64_t after converting the endian.
15031 (sun_partition_map_probe): Subtract 1 for PARTNUM.
15032 (sun_partition_map_get_name): Add 1 to P->INDEX.
15034 * partmap/pc.c (grub_partition_parse): Subtract 1 for
15036 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
15038 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
15039 zero instead of one.
15040 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
15041 (gpt_partition_map_get_name): Add 1 into P->INDEX.
15043 * partmap/apple.c (apple_partition_map_iterate): Change the type
15044 of POS to unsigned.
15045 (apple_partition_map_probe): Subtract 1 for PARTNUM.
15046 (apple_partition_map_get_name): Add 1 into P->INDEX.
15048 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
15049 of POS to unsigned.
15050 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
15051 calculate the offset of a partition.
15052 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
15053 (amiga_partition_map_get_name): Add 1 into P->INDEX.
15055 * partmap/acorn.c (acorn_partition_map_find): Change the type of
15056 SECTOR to grub_disk_addr_t.
15057 (acorn_partition_map_iterate): Likewise.
15058 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
15059 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
15061 (acorn_partition_map_get_name): Add 1 into P->INDEX.
15063 * kern/i386/pc/init.c (make_install_device): Add 1 into
15064 GRUB_INSTALL_DOS_PART.
15066 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
15069 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
15071 Clean up the code to support 64-bit addressing in disks and
15072 files. This change is not enough for filesystems yet.
15074 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
15075 type of "start" to grub_uint64_t.
15076 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
15077 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
15078 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
15081 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
15082 to grub_disk_addr_t.
15084 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
15087 * partmap/pc.c (pc_partition_map_iterate): Likewise.
15089 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
15092 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
15094 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
15096 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
15098 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
15099 to grub_off_t, to detect an error from grub_file_seek.
15100 (grub_multiboot_load_elf32): Likewise.
15102 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
15103 maximum unsigned long value when an overflow is detected.
15104 (grub_strtoull): New function.
15105 (grub_divmod64): Likewise.
15106 (grub_lltoa): use grub_divmod64.
15108 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
15110 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
15111 the pointer to next character. Use grub_strtoull instead of
15113 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
15114 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
15117 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
15118 return value is signed.
15119 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
15120 test if OFFSET is less than zero, as OFFSET is unsigned now.
15122 * kern/disk.c (struct grub_disk_cache): Change the type of
15123 "sector" to grub_disk_addr_t.
15124 (grub_disk_cache_get_index): Change the type of SECTOR to
15125 grub_disk_addr_t. Calculate the hash with SECTOR casted to
15126 unsigned after shifting.
15127 (grub_disk_cache_invalidate): Change the type of SECTOR to
15129 (grub_disk_cache_unlock): Likewise.
15130 (grub_disk_cache_store): Likewise.
15131 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
15132 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
15133 grub_disk_addr_t and grub_uint64_t, respectively.
15134 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
15135 body, as the value of OFFSET is tweaked by
15136 grub_disk_check_range. Change the types of START_SECTOR, LEN and
15137 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
15139 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
15140 body, as the value of OFFSET is tweaked by
15141 grub_disk_check_range. Change the types of LEN and N to
15144 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
15145 and "saved_offset" to grub_off_t.
15146 (test_header): Cast BUF to char *.
15147 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
15149 (grub_gzio_read): Change the types of OFFSET and SIZE to
15150 grub_off_t and grub_size_t, respectively.
15152 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
15154 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
15155 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
15156 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
15157 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
15158 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
15160 * include/grub/types.h (grub_off_t): Unconditionally set to
15162 (grub_disk_addr_t): Changed to grub_uint64_t.
15164 * include/grub/partition.h (struct grub_partition): Change the
15165 types of "start", "len" and "offset" to grub_disk_addr_t,
15166 grub_uint64_t and grub_disk_addr_t, respectively.
15167 (grub_partition_get_start): Return grub_disk_addr_t.
15168 (grub_partition_get_len): Return grub_uint64_t.
15170 * include/grub/misc.h (grub_strtoull): New prototype.
15171 (grub_divmod64): Likewise.
15173 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
15174 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
15175 grub_off_t, respectively.
15176 All callers and references changed.
15178 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
15179 grub_size_t in "read".
15180 All callers and references changed.
15182 * include/grub/file.h (struct grub_file): Change the types of
15183 "offset" and "size" to grub_off_t and grub_off_t,
15184 respectively. Change the type of SECTOR to grub_disk_addr_t in
15186 (grub_file_read): Change the type of LEN to grub_size_t.
15187 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
15189 (grub_file_size): Return grub_off_t.
15190 (grub_file_tell): Likewise.
15191 All callers and references changed.
15193 * include/grub/disk.h (struct grub_disk_dev): Change the types of
15194 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
15196 (struct grub_disk): Change the type of "total_sectors" to
15197 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
15199 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
15200 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
15201 (grub_disk_write): Likewise.
15202 All callers and references changed.
15204 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
15205 char * for grub_strncmp to silence gcc.
15206 (grub_iso9660_mount): Likewise.
15207 (grub_iso9660_mount): Likewise.
15208 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
15210 (grub_iso9660_iterate_dir): Likewise.
15211 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
15213 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
15214 LEN to grub_disk_addr_t and grub_size_t, respectively.
15216 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
15218 * fs/jfs.c (grub_jfs_read_file): Likewise.
15220 * fs/minix.c (grub_jfs_read_file): Likewise.
15222 * fs/sfs.c (grub_jfs_read_file): Likewise.
15224 * fs/ufs.c (grub_jfs_read_file): Likewise.
15226 * fs/xfs.c (grub_jfs_read_file): Likewise.
15228 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
15229 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
15232 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
15233 BLKNR to -1 instead of returning GRUB_ERRNO.
15234 (grub_ext2_read_file): Change the types of SECTOR and
15235 LEN to grub_disk_addr_t and grub_size_t, respectively.
15237 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
15238 LEN to grub_disk_addr_t and grub_size_t, respectively.
15240 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
15243 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
15244 string. Do not cast SECTOR explicitly.
15246 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
15247 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
15248 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
15249 grub_disk_addr_t and grub_size_t, respectively. If the sector is
15250 over 2TB and LBA mode is not supported, raise an error.
15251 (get_safe_sectors): New function.
15252 (grub_biosdisk_read): Use get_safe_sectors.
15253 (grub_biosdisk_write): Likewise.
15255 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
15256 (grub_efidisk_write): Likewise.
15258 * disk/loopback.c (delete_loopback): Cosmetic changes.
15259 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
15261 (grub_loopback_open): Likewise.
15262 (grub_loopback_read): Likewise. Also, change the type of POS to
15263 grub_off_t, and fix the usage of grub_memset.
15265 * commands/i386/pc/play.c: Include grub/machine/time.h.
15267 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
15270 * commands/configfile.c: Include grub/env.h.
15272 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
15273 GRUB_ERRNO directly instead. Change the type of POS to
15274 grub_off_t. Follow the coding standard.
15276 * commands/blocklist.c: Include grub/partition.h.
15277 (grub_cmd_blocklist): Return an error if the underlying device is
15278 not a disk. Take the starting sector of a partition into account,
15279 if a partition is used.
15281 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
15283 (lba_mode): Support 64-bit addresses.
15284 (chs_mode): Likewise.
15285 (copy_buffer): Adapted to the new offsets of a length field and a
15287 (blocklist_default_start): Allocate 64-bit space.
15289 * boot/i386/pc/boot.S (force_lba): Removed.
15290 (boot_drive): Moved to under KERNEL_SECTOR.
15291 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
15293 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
15295 (lba_mode): Refactored to support a 64-bit address. More size
15297 (setup_sectors): Likewise.
15299 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
15301 * DISTLIST: Added include/grub/i386/linux.h. Removed
15302 include/grub/i386/pc/linux.h
15304 * configure.ac (AC_INIT): Bumped to 1.94.
15306 * config.guess: Updated from gnulib.
15307 * config.sub: Likewise.
15308 * install-sh: Likewise.
15309 * mkinstalldirs: Likewise.
15311 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
15313 * conf/common.rmk (grub_modules_init.lst): Depended on
15314 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
15317 * genmk.rb (PModule::rule): Reverted the previous change.
15319 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
15321 * conf/common.rmk (grub_modules_init.lst): Depends on
15322 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
15323 that the target does not exist before producing.
15324 (grub_modules_init.h): Remove the target before generating.
15325 (grub_emu_init.c): Likewise.
15327 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
15329 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
15331 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
15332 for the target-specific tests. Make sure that we also have the
15333 up-to-date target variables for those tests.
15335 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
15337 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
15338 (PModule::rule): Likewise.
15340 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
15342 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
15343 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
15344 target-specific flags should be prefixed.
15345 (PModule::rule): Likewise.
15347 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
15349 * configure.ac (CMP): Check if cmp is available explicitly.
15351 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
15353 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
15354 (target_cpu): New variable.
15355 (pkglibdir): Use target_cpu instead of host_cpu.
15357 * util/i386/pc/grub-install.in (host_cpu): Removed.
15358 (target_cpu): New variable.
15359 (pkglibdir): Use target_cpu instead of host_cpu.
15361 * util/genmoddep.c: Removed.
15363 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
15364 instead of GRUB_HOST_SIZEOF_VOID_P.
15365 * kern/dl.c: Likewise.
15367 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
15369 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
15370 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
15371 (GRUB_TARGET_SIZEOF_LONG): ... this.
15372 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
15373 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
15374 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
15376 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
15377 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
15378 (GRUB_TARGET_SIZEOF_LONG): ... this.
15379 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
15380 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
15381 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
15383 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
15384 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
15385 (GRUB_TARGET_SIZEOF_LONG): ... this.
15386 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
15387 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
15389 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
15390 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
15391 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
15392 instead of GRUB_HOST_SIZEOF_LONG.
15393 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
15394 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
15395 GRUB_CPU_WORDS_BIGENDIAN.
15396 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
15397 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
15400 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
15401 (genmoddep_SOURCES): Likewise.
15402 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
15403 (genmoddep_SOURCES): Likewise.
15404 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
15405 (genmoddep_SOURCES): Likewise.
15406 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
15408 (genmoddep_SOURCES): Likewise.
15410 * genmoddep.awk: New file.
15412 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
15413 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
15414 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
15415 (PModule::rule): Likewise.
15416 (Program::rule): Likewise.
15417 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
15418 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
15421 * configure.ac: Rewritten intensively to use host and target
15422 instead of build and host, respectively.
15424 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
15425 (host_cpu): Removed.
15426 (target_cpu): New variable.
15427 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
15428 (BUILD_CC): Removed.
15429 (BUILD_CFLAGS): Likewise.
15430 (BUILD_CPPFLAGS): Likewise.
15431 (TARGET_CC): New variable.
15432 (TARGET_CFLAGS): Likewise.
15433 (TARGET_CPPFLAGS): Likewise.
15434 (TARGET_LDFLAGS): Likewise.
15436 (include): Use target_cpu instead of host_cpu.
15437 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
15439 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
15441 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
15443 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
15444 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
15445 field 'false' to 'exec_on_false'.
15446 (grub_script_create_cmdif): Renamed argument names to reflect above
15449 * normal/execute.c (grub_script_execute_cmdif): Likewise.
15451 * normal/script.c (grub_script_create_cmdif): Likewise.
15453 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
15455 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
15457 (grub_hfsplus_btree_recptr): Likewise.
15458 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
15459 FILEBLOCK both to pass a block number and store next block
15461 (grub_hfsplus_read_block): Rewritten heavily to support an extent
15462 overflow file correctly. Specify errors appropriately, because
15463 fshelp expects that GRUB_ERRNO is set when fails. Reuse
15464 grub_hfsplus_btree_recptr to get the pointer to a found key.
15465 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
15468 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
15470 (_linux_mod_SOURCES): New variable.
15471 (_linux_mod_CFLAGS): Likewise.
15472 (_linux_mod_LDFLAGS): Likewise.
15473 (linux_mod_SOURCES): Likewise.
15474 (linux_mod_CFLAGS): Likewise.
15475 (linux_mod_LDFLAGS): Likewise.
15477 * DISTLIST: Added loader/i386/efi/linux.c,
15478 loader/i386/efi/linux_normal.c and
15479 include/grub/i386/efi/loader.h.
15481 * loader/i386/efi/linux.c: New file.
15482 * loader/i386/efi/linux_normal.c: Likewise.
15483 * include/grub/i386/efi/loader.h: Likewise.
15485 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
15487 * commands/blocklist.c: New file.
15489 * DISTLIST: Added commands/blocklist.c.
15491 * term/efi/console.c (grub_console_highlight_color): Use a lighter
15492 color for the background, and a darker color for the foreground.
15493 (grub_console_checkkey): Return READ_KEY.
15494 (grub_console_cls): Set the background to
15495 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
15497 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
15499 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
15500 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
15502 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
15505 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
15506 BG. The spec is wrong again.
15508 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
15510 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
15512 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
15513 commands/blocklist.c.
15514 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15516 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
15517 (blocklist_mod_SOURCES): New variable.
15518 (blocklist_mod_CFLAGS): Likewise.
15519 (blocklist_mod_LDFLAGS): Likewise.
15521 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
15523 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
15525 (lba_mode): Use %eax more intensively to reduce the code size.
15527 2006-05-20 Marco Gerards <marco@gnu.org>
15529 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
15531 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
15533 (script): Accept leading newlines.
15534 (newlines): New rule to describe 0 or more newlines.
15535 (commands): Accept `command' with trailing newline. Fixed the
15536 order in which arguments were passed to `grub_script_add_cmd'.
15537 Accept commands separated by newlines.
15538 (function): Changed to accept newlines.
15539 (menuentry) Rewritten.
15541 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
15542 front of the list, instead of to the end.
15544 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
15546 * util/i386/pc/grub-install.in (bindir): New variable.
15547 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
15548 Shaver <lbgwjl@gmail.com>.
15550 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
15552 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
15553 grub/machine/linux.h
15554 * loader/i386/pc/linux.c: Likewise.
15556 * include/grub/i386/pc/linux.h: Moved to ...
15557 * include/grub/i386/linux.h: ... here.
15559 * include/grub/i386/linux.h (struct linux_kernel_params): New
15562 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
15564 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
15566 (grub_video_vbe_blit_glyph): Likewise.
15567 (grub_video_vbe_blit_bitmap): Likewise.
15568 (grub_video_vbe_blit_render_target): Likewise.
15570 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
15572 * configure.ac (--with-platform): Properly quote the square
15575 2006-05-08 Marco Gerards <marco@gnu.org>
15577 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
15579 (kernel_elf_HEADERS): ...to this. Updated all users.
15580 (grubof_symlist.c): Renamed from this...
15581 (kernel_elf_symlist.c): ...to this. Updated all users.
15582 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
15583 (grubof_SOURCES): Renamed from this...
15584 (kernel_elf_SOURCES): ...to this.
15585 (grubof_HEADERS): Renamed from this...
15586 (kernel_elf_HEADERS): ...to this.
15587 (grubof_CFLAGS): Renamed from this...
15588 (kernel_elf_CFLAGS): ...to this.
15589 (grubof_ASFLAGS): Renamed from this...
15590 (kernel_elf_ASFLAGS): ...to this.
15591 (grubof_LDFLAGS): Renamed from this...
15592 (kernel_elf_LDFLAGS): ...to this.
15594 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
15596 (kernel_elf_HEADERS): ...to this. Updated all users.
15597 (grubof_symlist.c): Renamed from this...
15598 (kernel_elf_symlist.c): ...to this. Updated all users.
15599 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
15600 (grubof_SOURCES): Renamed from this...
15601 (kernel_elf_SOURCES): ...to this.
15602 (grubof_HEADERS): Renamed from this...
15603 (kernel_elf_HEADERS): ...to this.
15604 (grubof_CFLAGS): Renamed from this...
15605 (kernel_elf_CFLAGS): ...to this.
15606 (grubof_ASFLAGS): Renamed from this...
15607 (kernel_elf_ASFLAGS): ...to this.
15608 (grubof_LDFLAGS): Renamed from this...
15609 (kernel_elf_LDFLAGS): ...to this.
15611 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
15612 `kernel.elf' instead of `grubof'.
15614 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
15616 Add --with-platform to configure. Use pkglibdir instead of
15617 pkgdatadir. This is reported by Roger Leigh.
15619 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
15620 (host_vendor): Likewise.
15621 (host_os): Likewise.
15622 (pkgdatadir): Likewise.
15623 (platform): New variable.
15624 (pkglibdir): Likewise.
15625 Use PKGLIBDIR instead of PKGDATADIR.
15627 * util/i386/pc/grub-install.in (datadir): Removed.
15628 (host_vendor): Likewise.
15629 (host_os): Likewise.
15630 (pkgdatadir): Likewise.
15631 (platform): New variable.
15632 (pkglibdir): Likewise.
15633 Use PKGLIBDIR instead of PKGDATADIR.
15635 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
15636 instead of GRUB_DATADIR.
15638 * util/i386/pc/grub-mkimage.c (usage): Likewise.
15640 * util/i386/efi/grub-mkimage.c (usage): Likewise.
15643 * configure.ac (--with-platform): New option.
15644 Use PLATFORM instead of HOST_VENDOR to specify a platform.
15646 * Makefile.in: Include a makefile based on PLATFORM instead of
15648 (pkgdatadir): Not appended by the machine type.
15649 (pkglibdir): Appended by the machine type.
15650 (host_vendor): Removed.
15651 (platform): New variable.
15652 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
15653 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
15654 (uninstall): Likewise.
15656 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
15658 Use the environment context in the menu. Remove the commands
15659 "default" and "timeout", and use variables instead.
15661 * normal/menu.c: Include grub/env.h.
15662 (print_entry): Cast TITLE to silence gcc.
15663 (get_timeout): New function.
15664 (set_timeout): Likewise.
15665 (get_entry_number): Likewise.
15666 (run_menu): Use a default entry, a fallback entry and a timeout
15667 in the environment variables "default", "fallback" and
15668 "timeout". Also, tweak the default entry if it is not within the
15669 current menu entries.
15670 (grub_menu_run): Use a fallback entry in the environment variable
15673 * normal/main.c (read_config_file): Do not initialize
15674 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
15676 (grub_normal_execute): Use a data slot to store the menu.
15678 * include/grub/normal.h (struct grub_menu): Removed default_entry,
15679 fallback_entry and timeout.
15680 (struct grub_menu_list): Removed.
15681 (grub_menu_list_t): Likewise.
15682 (struct grub_context): Likewise.
15683 (grub_context_t): Likewise.
15684 (grub_context_get): Likewise.
15685 (grub_context_get_current_menu): Likewise.
15686 (grub_context_push_menu): Likewise.
15687 (grub_context_pop_menu): Likewise.
15688 (grub_default_init): Likewise.
15689 (grub_default_fini): Likewise.
15690 (grub_timeout_init): Likewise.
15691 (grub_timeout_fini): Likewise.
15693 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
15695 (normal_mod_SOURCES): Removed normal/context.c.
15697 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
15698 commands/default.c, commands/timeout.c and normal/context.c.
15699 (normal_mod_SOURCES): Removed normal/context.c.
15701 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
15702 commands/timeout.c and normal/context.c.
15703 (normal_mod_SOURCES): Removed normal/context.c.
15705 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
15706 commands/default.c, commands/timeout.c and normal/context.c.
15707 (normal_mod_SOURCES): Removed normal/context.c.
15709 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
15711 (default_mod_SOURCES): Removed.
15712 (default_mod_CFLAGS): Likewise.
15713 (default_mod_LDFLAGS): Likewise.
15714 (timeout_mod_SOURCES): Removed.
15715 (timeout_mod_CFLAGS): Likewise.
15716 (timeout_mod_LDFLAGS): Likewise.
15718 * DISTLIST: Removed commands/default.c, commands/timeout.c and
15721 * commands/default.c: Removed.
15722 * commands/timeout.c: Likewise.
15723 * normal/context.c: Likewise.
15725 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
15727 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
15729 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
15731 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
15732 "next" to "prev" for readability.
15733 (struct grub_env_sorted_var): New struct.
15734 (grub_env_context): Renamed to ...
15735 (initial_context): ... this.
15736 (grub_env_var_context): Renamed to ...
15737 (current_context): ... this.
15738 (grub_env_find): Look only at CURRENT_CONTEXT.
15739 (grub_env_context_open): Rewritten to copy exported variables from
15741 (grub_env_context_close): Rewritten according to the new
15742 scheme. Also, add an assertion to prevent the initial context from
15744 (grub_env_insert): Removed the code for the sorted list.
15745 (grub_env_remove): Likewise.
15746 (grub_env_export): Simply mark the variable with
15747 GRUB_ENV_VAR_GLOBAL.
15748 (grub_env_set): A cosmetic change for naming consistency.
15749 (grub_env_get): Likewise.
15750 (grub_env_unset): Likewise.
15751 (grub_env_iterate): Rewritten to sort variables within this
15753 (grub_register_variable_hook): Fixed for naming consistency. Call
15754 grub_env_find again, only if NAME is not found at the first time.
15755 (mangle_data_slot_name): New function.
15756 (grub_env_set_data_slot): Likewise.
15757 (grub_env_get_data_slot): Likewise.
15758 (grub_env_unset_data_slot): Likewise.
15760 * include/grub/env.h (grub_env_var_type): New enum.
15761 (GRUB_ENV_VAR_LOCAL): New constant.
15762 (GRUB_ENV_VAR_GLOBAL): Likewise.
15763 (GRUB_ENV_VAR_DATA): Likewise.
15764 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
15766 (grub_env_set): Replace VAR with NAME for consistency.
15767 (grub_register_variable_hook): Likewise.
15768 (grub_env_export): Specify the name of the argument.
15769 (grub_env_set_data_slot): New prototype.
15770 (grub_env_get_data_slot): Likewise.
15771 (grub_env_unset_data_slot): Likewise.
15773 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
15775 Extend the loader so that GRUB can accept a loader which comes
15776 back to GRUB when a loaded image exits. Also, this change adds
15777 support for a chainloader on EFI.
15779 * term/efi/console.c: Include grub/misc.h.
15780 (grub_console_checkkey): Display a scan code on the top for
15781 debugging. This will be removed once the EFI port gets stable.
15782 Correct the scan code mapping.
15784 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
15785 allocate memory from larger regions, in order to reduce the number
15786 of allocated regions. Otherwise, the MacOSX loader panics.
15787 (filter_memory_map): Avoid less than 1MB for compatibility with
15789 (add_memory_regions): Allocate from the tail of a region, if
15790 possible, to avoid allocating a region near to 1MB, for the MacOSX
15793 * kern/efi/init.c (grub_efi_set_prefix): Specify
15794 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
15796 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
15797 argument IMAGE_HANDLE and specify it to get a loaded image.
15798 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
15799 grub_efi_get_loaded_image.
15800 (grub_efi_get_filename): Divide the length by the size of
15802 (grub_efi_get_device_path): New function.
15803 (grub_efi_print_device_path): Print End Device Path nodes. Divide
15804 the length by the size of grub_efi_char16_t for a file path device
15807 * kern/loader.c (grub_loader_noreturn): New variable.
15808 (grub_loader_set): Accept a new argument NORETURN. Set
15809 GRUB_LOADER_NORETURN to NORETURN.
15810 All callers changed.
15811 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
15814 * include/grub/efi/efi.h (grub_efi_get_device_path): New
15816 (grub_efi_get_loaded_image): Take an argument to specify an image
15819 * include/grub/loader.h (grub_loader_set): Added one more argument
15822 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
15823 instead of grub_efi_open_protocol.
15824 (grub_efidisk_get_device_name): Likewise.
15825 (grub_efidisk_close): Print a newline.
15826 (grub_efidisk_get_device_handle): Fixed to use
15827 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
15828 GRUB_EFI_DEVICE_PATH_TYPE.
15830 * disk/efi/efidisk.c (device_path_guid): Moved to ...
15831 * kern/efi/efi.c (device_path_guid): ... here.
15833 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
15835 (kernel_mod_HEADERS): Added efi/disk.h.
15836 (_chain_mod_SOURCES): New variable.
15837 (_chain_mod_CFLAGS): Likewise.
15838 (_chain_mod_LDFLAGS): Likewise.
15839 (chain_mod_SOURCES): Likewise.
15840 (chain_mod_CFLAGS): Likewise.
15841 (chain_mod_LDFLAGS): Likewise.
15843 * DISTLIST: Added include/grub/efi/chainloader.h,
15844 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
15846 * include/grub/efi/chainloader.h: New file.
15847 * loader/efi/chainloader.c: Likewise.
15848 * loader/efi/chainloader_normal.c: Likewise.
15850 2006-04-30 Marco Gerards <marco@gnu.org>
15852 * commands/configfile.c (grub_cmd_source): New function.
15853 (GRUB_MOD_INIT): Register the commands `source' and `.'.
15854 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
15856 2006-04-30 Marco Gerards <marco@gnu.org>
15858 * normal/execute.c (grub_script_execute_cmd): Change the return
15859 type to `grub_err_t'. Correctly return the error.
15860 (grub_script_execute_cmdline): In case a command line is not a
15861 command or a function, try to interpret it as an assignment.
15863 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
15865 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
15866 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
15867 skip a node whose name is obviously invalid as UTF-16,
15868 i.e. contains a NUL character. Stop the iteration when the last
15869 directory entry is found. Instead of using the return value of
15870 grub_hfsplus_btree_iterate_node, store the value in RET and use
15871 it, because the iterator can be stopped by the last directory
15874 2006-04-30 Marco Gerards <marco@gnu.org>
15876 * include/grub/env.h (grub_env_export): New prototype. Reported
15877 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
15879 2006-04-30 Marco Gerards <marco@gnu.org>
15881 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
15882 size of the extents in a catalog file record.
15884 2006-04-29 Marco Gerards <marco@gnu.org>
15886 * commands/configfile.c (grub_cmd_configfile): Execute the
15887 configfile within its own context.
15889 * include/grub/env.h (grub_env_context_open): New prototype.
15890 (grub_env_context_close): Likewise.
15892 * kern/env.c (grub_env): Removed.
15893 (grub_env_sorted): Likewise.
15894 (grub_env_context): New variable.
15895 (grub_env_var_context): Likewise.
15896 (grub_env_find): Search both the active context and the global
15898 (grub_env_context_open): New function.
15899 (grub_env_context_close): Likewise.
15900 (grub_env_insert): Likewise.
15901 (grub_env_remove): Likewise.
15902 (grub_env_export): Likewise.
15903 (grub_env_set): Changed to use helper functions to avoid code
15905 (grub_env_iterate): Rewritten so both the current context and the
15906 global context are being used.
15908 * normal/command.c (export_command): New function.
15909 (grub_command_init): Register the `export' function.
15911 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
15913 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
15914 explicitly to suppress gcc's warnings.
15915 * fs/fat.c (grub_fat_find_dir): Likewise.
15916 (grub_fat_label): Likewise.
15917 * fs/xfs.c (grub_xfs_read_inode): Likewise.
15918 (grub_xfs_mount): Likewise.
15919 (grub_xfs_label): Likewise.
15920 * fs/affs.c (grub_affs_mount): Likewise.
15921 (grub_affs_label): Likewise.
15922 (grub_affs_iterate_dir): Likewise.
15923 * fs/sfs.c (grub_sfs_mount): Likewise.
15924 (grub_sfs_iterate_dir): Likewise.
15925 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
15926 * fs/hfs.c (grub_hfs_mount): Likewise.
15927 (grub_hfs_cmp_catkeys): Likewise.
15928 (grub_hfs_find_dir): Likewise.
15929 (grub_hfs_dir): Likewise.
15930 (grub_hfs_label): Likewise.
15931 * fs/jfs.c (grub_jfs_mount): Likewise.
15932 (grub_jfs_opendir): Likewise.
15933 (grub_jfs_getent): Likewise.
15934 (grub_jfs_lookup_symlink): Likewise.
15935 (grub_jfs_label): Likewise.
15936 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
15937 (grub_hfsplus_iterate_dir): Likewise.
15938 (grub_hfsplus_btree_iterate_node): Made static.
15940 * util/grub-emu.c (prefix): New variable.
15941 (grub_machine_set_prefix): New function.
15942 (main): Do not set the environment variable "prefix" here. Only
15943 set PREFIX, which is used later by grub_machine_set_prefix.
15945 * include/grub/video.h: Do not include grub/symbol.h.
15946 (grub_video_register): Not exported. This symbol is not defined in
15948 (grub_video_unregister): Likewise.
15949 (grub_video_iterate): Likewise.
15950 (grub_video_setup): Likewise.
15951 (grub_video_restore): Likewise.
15952 (grub_video_get_info): Likewise.
15953 (grub_video_get_blit_format): Likewise.
15954 (grub_video_set_palette): Likewise.
15955 (grub_video_get_palette): Likewise.
15956 (grub_video_set_viewport): Likewise.
15957 (grub_video_get_viewport): Likewise.
15958 (grub_video_map_color): Likewise.
15959 (grub_video_map_rgb): Likewise.
15960 (grub_video_map_rgba): Likewise.
15961 (grub_video_fill_rect): Likewise.
15962 (grub_video_blit_glyph): Likewise.
15963 (grub_video_blit_bitmap): Likewise.
15964 (grub_video_blit_render_target): Likewise.
15965 (grub_video_scroll): Likewise.
15966 (grub_video_swap_buffers): Likewise.
15967 (grub_video_create_render_target): Likewise.
15968 (grub_video_delete_render_target): Likewise.
15969 (grub_video_set_active_render_target): Likewise.
15971 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
15973 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
15975 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
15976 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15977 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15978 instead of $(srcdir)/genkernsyms.sh.
15980 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
15981 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15982 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15983 instead of $(srcdir)/genkernsyms.sh.
15985 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
15986 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15987 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15988 instead of $(srcdir)/genkernsyms.sh.
15990 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
15991 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15992 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15993 instead of $(srcdir)/genkernsyms.sh.
15995 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
15998 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
16000 (gensymlist.sh): New target.
16001 (genkernsyms.sh): Likewise.
16003 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
16004 genkernsyms.sh.in and gensymlist.sh.in.
16006 * genkernsyms.sh: Removed.
16007 * gensymlist.sh: Likewise.
16009 * genkernsyms.sh.in: New file.
16010 * gensymlist.sh.in: Likewise.
16012 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
16014 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
16015 clobber "prefix", since we may have already set it manually.
16017 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
16019 * kern/misc.c (abort): New alias for grub_abort.
16021 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
16023 A new machine-specific function "grub_machine_set_prefix" is
16024 defined. This is called after loading modules, so that a prefix
16025 initialization can use modules. Also, this change adds an
16026 intensive debugging feature for the memory manager via the
16027 configure option "--enable-mm-debug".
16029 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
16032 * kern/sparc64/ieee1275/init.c (abort): Removed.
16033 (grub_stop): Likewise.
16034 (grub_exit): New function.
16035 (grub_set_prefix): Renamed to ...
16036 (grub_machine_set_prefix): ... this.
16037 (grub_machine_init): Do not call grub_set_prefix.
16039 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
16040 (grub_machine_set_prefix): ... this.
16041 (grub_machine_init): Do not call grub_set_prefix.
16043 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
16044 (grub_machine_init): Do not set the prefix here.
16046 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
16048 * kern/efi/init.c: Include grub/mm.h.
16049 (grub_efi_set_prefix): New function.
16051 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
16052 (grub_efi_get_filename): New function.
16053 (grub_print_device_path): Renamed to ...
16054 (grub_efi_print_device_path): ... this.
16056 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
16057 [MM_DEBUG] (grub_realloc): Likewise.
16058 [MM_DEBUG] (grub_free): Likewise.
16059 [MM_DEBUG] (grub_memalign): Likewise.
16060 [MM_DEBUG] (grub_mm_debug): New variable.
16061 [MM_DEBUG] (grub_debug_malloc): New function.
16062 [MM_DEBUG] (grub_debug_free): New function.
16063 [MM_DEBUG] (grub_debug_realloc): New function.
16064 [MM_DEBUG] (grub_debug_memalign): New function.
16066 * kern/misc.c (grub_abort): Print a newline to distinguish
16069 * kern/main.c (grub_main): Call grub_machine_set_prefix and
16070 grub_set_root_dev after loading modules. This is necessary when
16071 setting a prefix depends on modules.
16073 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
16074 (grub_efi_print_device_path): ... this.
16075 (grub_efi_get_filename): New prototype.
16076 (grub_efi_set_prefix): Likewise.
16078 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
16080 (grub_efidisk_get_device_handle): New prototype.
16081 (grub_efidisk_get_device_name): Likewise.
16083 * include/grub/mm.h: Include config.h.
16084 (MM_DEBUG): Removed.
16085 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
16086 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
16087 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
16088 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
16089 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
16090 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
16091 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
16092 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
16093 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
16095 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
16097 * disk/efi/efidisk.c: Include grub/partition.h.
16098 (iterate_child_devices): New function.
16099 (add_device): First, compare only last device path nodes, so that
16100 devices are sorted by the types.
16101 (grub_efidisk_get_device_handle): New function.
16102 (grub_efidisk_get_device_name): Likewise.
16104 * configure.ac (--enable-mm-debug): New option to enable the
16105 memory manager debugging feature. This makes the binary much
16106 bigger, so is disabled by default.
16108 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
16110 Use grub_abort instead of grub_stop, and grub_exit must be
16111 define in each architecture now. Also, this change adds support
16114 * util/i386/pc/grub-probefs.c: Include grub/term.h.
16115 (grub_getkey): New function.
16116 (grub_term_get_current): Likewise.
16118 * util/i386/pc/grub-setup.c: Include grub/term.h.
16119 (grub_getkey): New function.
16120 (grub_term_get_current): Likewise.
16122 * util/misc.c (grub_stop): Renamed to ...
16123 (grub_exit): ... this.
16125 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
16126 (grub_exit): ... this.
16127 (grub_machine_init): Use grub_abort instead of abort.
16128 (grub_stop): Removed.
16130 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
16133 * kern/i386/pc/startup.S (grub_exit): New function.
16134 (cold_reboot): New label.
16136 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
16137 (grub_efi_init): Call grub_efidisk_init.
16138 (grub_efi_fini): Call grub_efidisk_fini.
16140 * kern/efi/efi.c: Include grub/mm.h.
16141 (grub_efi_console_control_guid): Renamed to ...
16142 (console_control_guid): ... this.
16143 (grub_efi_loaded_image_guid): Renamed to ...
16144 (loaded_image_guid): ... this.
16145 (grub_efi_locate_handle): New function.
16146 (grub_efi_open_protocol): Likewise.
16147 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
16148 GRUB_EFI_CONSOLE_CONTROL_GUID.
16149 (grub_efi_exit): Removed.
16150 (grub_stop): Likewise.
16151 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
16152 (grub_exit): New function.
16153 (grub_print_device_path): Likewise.
16155 * kern/rescue.c (grub_rescue_cmd_exit): New function.
16156 (grub_enter_rescue_mode): Register "exit".
16158 * kern/misc.c (grub_real_dprintf): A cosmetic change.
16159 (grub_abort): New function.
16161 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
16163 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
16165 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
16167 * include/grub/efi/efi.h (grub_efi_exit): Removed.
16168 (grub_print_device_path): New prototype.
16169 (grub_efi_locate_handle): Likewise.
16170 (grub_efi_open_protocol): Likewise.
16172 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
16173 * disk/efi/efidisk.c: Likewise.
16175 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
16177 * include/grub/efi/console_control.h
16178 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
16180 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
16181 last 8 bytes as an array.
16182 (GRUB_EFI_DISK_IO_GUID): New macro.
16183 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
16184 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
16185 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
16187 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
16188 (struct grub_efi_device_path): Rename the member "sub_type" to
16190 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
16191 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
16192 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
16193 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
16194 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
16195 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
16196 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
16197 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
16198 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
16199 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
16200 (struct grub_efi_pci_device_path): New structure.
16201 (grub_efi_pci_device_path_t): New type.
16202 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
16203 (struct grub_efi_pccard_device_path): New structure.
16204 (grub_efi_pccard_device_path_t): New type.
16205 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
16206 (struct grub_efi_memory_mapped_device_path): New structure.
16207 (grub_efi_memory_mapped_device_path_t): New type.
16208 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
16209 (struct grub_efi_vendor_device_path): New structure.
16210 (grub_efi_vendor_device_path_t): New type.
16211 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
16212 (struct grub_efi_controller_device_path): New structure.
16213 (grub_efi_controller_device_path_t): New type.
16214 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
16215 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
16216 (struct grub_efi_acpi_device_path): New structure.
16217 (grub_efi_acpi_device_path_t): New type.
16218 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
16219 (struct grub_efi_expanded_acpi_device_path): New structure.
16220 (grub_efi_expanded_acpi_device_path_t): New type.
16221 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
16222 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
16223 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
16224 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
16225 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
16226 (struct grub_efi_atapi_device_path): New structure.
16227 (grub_efi_atapi_device_path_t): New type.
16228 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
16229 (struct grub_efi_fibre_channel_device_path): New structure.
16230 (grub_efi_fibre_channel_device_path_t): New type.
16231 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
16232 (struct grub_efi_1394_device_path): New structure.
16233 (grub_efi_1394_device_path_t): New type.
16234 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
16235 (struct grub_efi_usb_device_path): New structure.
16236 (grub_efi_usb_device_path_t): New type.
16237 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
16238 (struct grub_efi_usb_class_device_path): New structure.
16239 (grub_efi_usb_class_device_path_t): New type.
16240 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
16241 (struct grub_efi_i2o_device_path): New structure.
16242 (grub_efi_i2o_device_path_t): New type.
16243 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
16244 (struct grub_efi_mac_address_device_path): New structure.
16245 (grub_efi_mac_address_device_path_t): New type.
16246 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
16247 (struct grub_efi_ipv4_device_path): New structure.
16248 (grub_efi_ipv4_device_path_t): New type.
16249 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
16250 (struct grub_efi_ipv6_device_path): New structure.
16251 (grub_efi_ipv6_device_path_t): New type.
16252 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
16253 (struct grub_efi_infiniband_device_path): New structure.
16254 (grub_efi_infiniband_device_path_t): New type.
16255 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
16256 (struct grub_efi_uart_device_path): New structure.
16257 (grub_efi_uart_device_path_t): New type.
16258 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
16259 (struct grub_efi_vendor_messaging_device_path): New structure.
16260 (grub_efi_vendor_messaging_device_path_t): New type.
16261 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
16262 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
16263 (struct grub_efi_hard_drive_device_path): New structure.
16264 (grub_efi_hard_drive_device_path_t): New type.
16265 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
16266 (struct grub_efi_cdrom_device_path): New structure.
16267 (grub_efi_cdrom_device_path_t): New type.
16268 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
16269 (struct grub_efi_vendor_media_device_path): New structure.
16270 (grub_efi_vendor_media_device_path_t): New type.
16271 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
16272 (struct grub_efi_file_path_device_path): New structure.
16273 (grub_efi_file_path_device_path_t): New type.
16274 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
16275 (struct grub_efi_protocol_device_path): New structure.
16276 (grub_efi_protocol_device_path_t): New type.
16277 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
16278 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
16279 (struct grub_efi_bios_device_path): New structure.
16280 (grub_efi_bios_device_path_t): New type.
16281 (struct grub_efi_disk_io): New structure.
16282 (grub_efi_disk_io_t): New type.
16283 (struct grub_efi_block_io_media): New structure.
16284 (grub_efi_block_io_media_t): New type.
16285 (struct grub_efi_block_io): New structure.
16286 (grub_efi_block_io_t): New type.
16288 * include/grub/misc.h (grub_stop): Removed.
16289 (grub_exit): New prototype.
16290 (grub_abort): Likewise.
16292 * include/grub/disk.h (enum grub_disk_dev_id): Added
16293 GRUB_DISK_DEVICE_EFIDISK_ID.
16295 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
16296 disk/efi/efidisk.c.
16297 (kernel_syms.lst): Remove the target if an error occurs.
16299 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
16301 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
16302 as it was simply too buggy.
16304 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
16306 * kern/misc.c (grub_lltoa): New function.
16307 (grub_vsprintf): Added support for the long long suffix,
16310 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
16312 * Makefile.in (LDFLAGS): Add variable.
16313 (LD): Remove variable.
16314 * configure.ac: Add -m32 to LDFLAGS.
16315 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
16316 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
16317 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
16318 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
16319 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
16321 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
16322 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
16323 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
16325 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
16327 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
16328 length for unknown glyph.
16330 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
16332 Add support for pre-loaded modules into the EFI port.
16334 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
16335 completely. Accept one more argument DIR. The caller has changed.
16337 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
16339 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
16340 (grub_efi_loaded_image_guid): New variable.
16341 (grub_efi_get_loaded_image): New function.
16342 (grub_arch_modules_addr): Likewise.
16344 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
16347 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
16348 (struct grub_efi_loaded_image): New structure.
16349 (grub_efi_loaded_image_t): New type.
16351 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
16353 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
16354 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
16355 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
16357 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
16359 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
16361 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
16363 * DISTLIST: Added include/grub/efi/console.h,
16364 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
16365 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
16367 * include/grub/efi/console.h: New file.
16368 * include/grub/efi/time.h: Likewise.
16369 * include/grub/i386/efi/kernel.h: Likewise.
16370 * kern/efi/init.c: Likewise.
16371 * kern/efi/mm.c: Likewise.
16372 * term/efi/console.c: Likewise.
16374 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
16375 (grub_stop): Removed.
16376 (grub_get_rtc): Likewise.
16377 (grub_machine_init): Simply call grub_efi_init.
16378 (grub_machine_fini): Call grub_efi_fini.
16380 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
16381 (grub_efi_output_string): Removed.
16382 (grub_efi_stall): New function.
16383 (grub_stop): Likewise.
16384 (grub_get_rtc): Likewise.
16386 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
16387 (grub_efi_stall): New prototype.
16388 (grub_efi_allocate_pages): Likewise.
16389 (grub_efi_free_pages): Likewise.
16390 (grub_efi_get_memory_map): Likewise.
16391 (grub_efi_mm_init): Likewise.
16392 (grub_efi_mm_fini): Likewise.
16393 (grub_efi_init): Likewise.
16394 (grub_efi_fini): Likewise.
16396 * include/grub/i386/efi/time.h: Do not include
16397 grub/symbol.h. Include grub/efi/time.h.
16398 (GRUB_TICKS_PER_SECOND): Removed.
16399 (grub_get_rtc): Likewise.
16401 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
16402 Added padding. The EFI spec is buggy.
16403 (GRUB_EFI_BLACK): New macro.
16404 (GRUB_EFI_BLUE): Likewise.
16405 (GRUB_EFI_GREEN): Likewise.
16406 (GRUB_EFI_CYAN): Likewise.
16407 (GRUB_EFI_RED): Likewise.
16408 (GRUB_EFI_MAGENTA): Likewise.
16409 (GRUB_EFI_BROWN): Likewise.
16410 (GRUB_EFI_LIGHTGRAY): Likewise.
16411 (GRUB_EFI_BRIGHT): Likewise.
16412 (GRUB_EFI_DARKGRAY): Likewise.
16413 (GRUB_EFI_LIGHTBLUE): Likewise.
16414 (GRUB_EFI_LIGHTGREEN): Likewise.
16415 (GRUB_EFI_LIGHTCYAN): Likewise.
16416 (GRUB_EFI_LIGHTRED): Likewise.
16417 (GRUB_EFI_LIGHTMAGENTA): Likewise.
16418 (GRUB_EFI_YELLOW): Likewise.
16419 (GRUB_EFI_WHITE): Likewise.
16420 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
16421 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
16422 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
16423 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
16424 (GRUB_EFI_BACKGROUND_RED): Likewise.
16425 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
16426 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
16427 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
16428 (GRUB_EFI_TEXT_ATTR): Likewise.
16430 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
16431 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
16432 (kernel_mod_HEADERS): Added efi/time.h.
16434 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
16436 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
16437 include/grub/efi/api.h, include/grub/efi/console_control.h,
16438 include/grub/efi/efi.h, include/grub/efi/pe32.h,
16439 include/grub/i386/efi/time.h, kern/efi/efi.c,
16440 kern/i386/efi/init.c, kern/i386/efi/startup.S,
16441 and util/i386/efi/grub-mkimage.c.
16443 * Makefile.in (RMKFILES): Added i386-efi.rmk.
16445 * genmk.rb (PModule#rule): Do not export symbols if
16446 #{prefix}_EXPORTS is set to "no".
16448 * conf/i386-efi.mk: New file.
16449 * conf/i386-efi.rmk: Likewise.
16450 * include/grub/efi/api.h: Likewise.
16451 * include/grub/efi/console_control.h: Likewise.
16452 * include/grub/efi/efi.h: Likewise.
16453 * include/grub/efi/pe32.h: Likewise.
16454 * include/grub/i386/efi/time.h: Likewise.
16455 * kern/efi/efi.c: Likewise.
16456 * kern/i386/efi/init.c: Likewise.
16457 * kern/i386/efi/startup.S: Likewise.
16458 * util/i386/efi/grub-mkimage.c: Likewise.
16460 2006-04-17 Marco Gerards <marco@gnu.org>
16462 * include/grub/script.h: Include <grub/parser.h> and
16463 "grub_script.tab.h".
16464 (struct grub_lexer_param): New struct.
16465 (struct grub_parser_param): Likewise.
16466 (grub_script_create_arglist): Pass the state in an argument.
16467 (grub_script_add_arglist): Likewise.
16468 (grub_script_create_cmdline): Likewise.
16469 (grub_script_create_cmdblock): Likewise.
16470 (grub_script_create_cmdif): Likewise.
16471 (grub_script_create_cmdmenu): Likewise.
16472 (grub_script_add_cmd): Likewise.
16473 (grub_script_arg_add): Likewise.
16474 (grub_script_lexer_ref): Likewise.
16475 (grub_script_lexer_deref): Likewise.
16476 (grub_script_lexer_record_start): Likewise.
16477 (grub_script_lexer_record_stop): Likewise.
16478 (grub_script_mem_record): Likewise.
16479 (grub_script_mem_record_stop): Likewise.
16480 (grub_script_malloc): Likewise.
16481 (grub_script_yylex): Likewise.
16482 (grub_script_yyparse): Likewise.
16483 (grub_script_yyerror): Likewise.
16484 (grub_script_yylex): Likewise.
16485 (grub_script_lexer_init): Return the state.
16487 * normal/lexer.c (grub_script_lexer_state): Removed variable.
16488 (grub_script_lexer_done): Likewise.
16489 (grub_script_lexer_getline): Likewise.
16490 (grub_script_lexer_refs): Likewise.
16491 (script): Likewise.
16492 (newscript): Likewise.
16493 (record): Likewise.
16494 (recording): Likewise.
16495 (recordpos): Likewise.
16496 (recordlen): Likewise.
16497 (grub_script_lexer_init): Return the state instead of setting
16499 (grub_script_lexer_ref): Use the newly added argument for state
16500 instead of globals.
16501 (grub_script_lexer_deref): Likewise.
16502 (grub_script_lexer_record_start): Likewise.
16503 (grub_script_lexer_record_stop): Likewise.
16504 (recordchar): Likewise.
16505 (nextchar): Likewise.
16506 (grub_script_yylex2): Likewise.
16507 (grub_script_yylex): Likewise.
16508 (grub_script_yyerror): Likewise.
16510 * normal/parser.y (func_mem): Removed variable.
16511 (menu_entry): Likewise.
16513 (%lex-param): New parser option.
16514 (%parse-param): Likewise.
16515 (script): Always return the AST.
16516 (argument): Pass the state around.
16517 (arguments): Likewise.
16518 (grubcmd): Likewise.
16519 (commands): Likewise.
16520 (function): Likewise.
16521 (menuentry): Likewise.
16522 (if_statement): Likewise.
16525 * normal/script.c (grub_script_memused): Removed variable.
16526 (grub_script_parsed): Likewise.
16527 (grub_script_malloc): Added a state argument. Use that instead of
16529 (grub_script_mem_record): Likewise.
16530 (grub_script_mem_record_stop): Likewise.
16531 (grub_script_arg_add): Likewise.
16532 (grub_script_add_arglist): Likewise.
16533 (grub_script_create_cmdline): Likewise.
16534 (grub_script_create_cmdif): Likewise.
16535 (grub_script_create_cmdmenu): Likewise.
16536 (grub_script_add_cmd): Likewise.
16537 (grub_script_parse): Setup the state before calling the parser.
16539 2006-04-16 Marco Gerards <marco@gnu.org>
16541 * normal/command.c (grub_command_init): Remove the title command.
16543 * normal/lexer.c (grub_script_yylex): Renamed from this...
16544 (grub_script_yylex2): ... to this.
16545 (grub_script_yylex): New function. Temporary
16546 introduced to filter some tokens.
16547 (grub_script_yyerror): Print a newline.
16549 * normal/main.c (read_config_file): Output information about the
16550 lines that contain errors. Wait for a key after all lines have
16551 been processed. Don't return an empty menu.
16553 * normal/parser.y (func_mem): Don't initialize.
16554 (menu_entry): Likewise.
16555 (err): New variable.
16556 (script): Don't return anything when an error was encountered.
16557 (ws, returns): Removed rules.
16558 (argument): Disabled concatenated variable support.
16559 (arguments): Remove explicit separators.
16560 (grubcmd): Likewise.
16561 (function): Likewise.
16562 (menuentry): Likewise.
16564 (commands): Likewise. Add error handling.
16566 * normal/script.c (grub_script_create_cmdline): If
16567 `grub_script_parsed' is 0, assume the parser encountered an error.
16569 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
16571 * configure.ac: Add support for EFI. Fix the typo
16572 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
16574 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
16576 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
16577 foreign multibyte characters should be shown correctly.
16579 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
16581 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
16583 (read_config_file): Made it to close file before returning.
16585 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
16587 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
16588 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
16589 video/i386/pc/vbefill.c.
16591 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
16592 video/i386/pc/vbefill.c.
16594 * include/grub/video.h (grub_video_blit_format): New enum.
16595 (grub_video_mode_info): Added new member blit_format.
16596 (grub_video_get_blit_format): New function prototype.
16598 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
16599 function prototype.
16600 (grub_video_vbe_map_rgb): Likewise.
16601 (grub_video_vbe_unmap_color): Likewise.
16603 * include/grub/i386/pc/vbeblit.h: New file.
16605 * include/grub/i386/pc/vbefill.h: New file.
16607 * video/video.c (grub_video_get_blit_format): New function.
16608 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
16609 (grub_video_vbe_map_rgb): Likewise.
16610 (grub_video_vbe_unmap_color): Likewise.
16612 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
16614 (grub_video_vbe_blit_render_target): Changed to use more optimized
16616 (grub_video_vbe_setup): Added detection for optimized settings.
16617 (grub_video_vbe_create_render_target): Likewise.
16619 * video/i386/pc/vbeblit.c: New file.
16621 * video/i386/pc/vbefill.c: New file.
16623 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
16625 * font/manager.c (grub_font_get_glyph): Removed font fixup from
16628 * util/unifont2pff.rb: ... and moved it to here. Improved argument
16629 parsing to support both hex and dec ranges. If filename was missing
16630 show usage information.
16632 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
16634 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
16635 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
16637 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
16638 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
16639 (video_mod_SOURCES): Added.
16640 (video_mod_CFLAGS): Likewise.
16641 (video_mod_LDFLAGS): Likewise.
16642 (gfxterm_mod_SOURCES): Likewise.
16643 (gfxterm_mod_CFLAGS): Likewise.
16644 (gfxterm_mod_LDFLAGS): Likewise.
16645 (videotest_mod_SOURCES): Likewise.
16646 (videotest_mod_CFLAGS): Likewise.
16647 (videotest_mod_LDFLAGS): Likewise.
16648 (vesafb_mod_SOURCES): Removed.
16649 (vesafb_mod_CFLAGS): Likewise.
16650 (vesafb_mod_LDFLAGS): Likewise.
16651 (vga_mod_SOURCES): Likewise.
16652 (vga_mod_CFLAGS): Likewise.
16653 (vga_mod_LDFLAGS): Likewise.
16655 * commands/videotest.c: New file.
16657 * font/manager.c (fill_with_default_glyph): Modified to use
16659 (grub_font_get_glyph): Likewise.
16660 (fontmanager): Renamed from this...
16661 (font_manager): ... to this.
16663 * include/grub/font.h (grub_font_glyph): Added new structure.
16664 (grub_font_get_glyph): Modified to use grub_font_glyph.
16666 * include/grub/misc.h (grub_abs): Added as inline function.
16668 * include/grub/video.h: New file.
16670 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
16671 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
16672 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
16673 (grub_vbe_get_controller_info): Renamed from this...
16674 (grub_vbe_bios_get_controller_info): ... to this.
16675 (grub_vbe_get_mode_info): Renamed from this...
16676 (grub_vbe_bios_get_mode_info): ... to this.
16677 (grub_vbe_set_mode): Renamed from this...
16678 (grub_vbe_bios_set_mode): ... to this.
16679 (grub_vbe_get_mode): Renamed from this...
16680 (grub_vbe_bios_get_mode): ... to this.
16681 (grub_vbe_set_memory_window): Renamed from this...
16682 (grub_vbe_bios_set_memory_window): ... to this.
16683 (grub_vbe_get_memory_window): Renamed from this...
16684 (grub_vbe_bios_get_memory_window): ... to this.
16685 (grub_vbe_set_scanline_length): Renamed from this...
16686 (grub_vbe_set_scanline_length): ... to this.
16687 (grub_vbe_get_scanline_length): Renamed from this...
16688 (grub_vbe_bios_get_scanline_length): ... to this.
16689 (grub_vbe_set_display_start): Renamed from this...
16690 (grub_vbe_bios_set_display_start): ... to this.
16691 (grub_vbe_get_display_start): Renamed from this...
16692 (grub_vbe_bios_get_display_start): ... to this.
16693 (grub_vbe_set_palette_data): Renamed from this...
16694 (grub_vbe_bios_set_palette_data): ... to this.
16695 (grub_vbe_set_pixel_rgb): Removed.
16696 (grub_vbe_set_pixel_index): Likewise.
16698 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
16700 (grub_vbe_bios_get_controller_info): ... to this.
16701 (grub_vbe_get_mode_info): Renamed from this...
16702 (grub_vbe_bios_get_mode_info): ... to this.
16703 (grub_vbe_set_mode): Renamed from this...
16704 (grub_vbe_bios_set_mode): ... to this.
16705 (grub_vbe_get_mode): Renamed from this...
16706 (grub_vbe_bios_get_mode): ... to this.
16707 (grub_vbe_set_memory_window): Renamed from this...
16708 (grub_vbe_bios_set_memory_window): ... to this.
16709 (grub_vbe_get_memory_window): Renamed from this...
16710 (grub_vbe_bios_get_memory_window): ... to this.
16711 (grub_vbe_set_scanline_length): Renamed from this...
16712 (grub_vbe_set_scanline_length): ... to this.
16713 (grub_vbe_get_scanline_length): Renamed from this...
16714 (grub_vbe_bios_get_scanline_length): ... to this.
16715 (grub_vbe_set_display_start): Renamed from this...
16716 (grub_vbe_bios_set_display_start): ... to this.
16717 (grub_vbe_get_display_start): Renamed from this...
16718 (grub_vbe_bios_get_display_start): ... to this.
16719 (grub_vbe_set_palette_data): Renamed from this...
16720 (grub_vbe_bios_set_palette_data): ... to this.
16721 (grub_vbe_bios_get_controller_info): Fixed problem with registers
16722 getting corrupted after calling it. Added more pushes and pops.
16723 (grub_vbe_bios_set_mode): Likewise.
16724 (grub_vbe_bios_get_mode): Likewise.
16725 (grub_vbe_bios_get_memory_window): Likewise.
16726 (grub_vbe_bios_set_scanline_length): Likewise.
16727 (grub_vbe_bios_get_scanline_length): Likewise.
16728 (grub_vbe_bios_get_display_start): Likewise.
16729 (grub_vbe_bios_set_palette_data): Likewise.
16731 * normal/cmdline.c (cl_set_pos): Refresh the screen.
16732 (cl_insert): Likewise.
16733 (cl_delete): Likewise.
16735 * term/gfxterm.c: New file.
16737 * term/i386/pc/vesafb.c: Removed file.
16739 * video/video.c: New file.
16741 * video/i386/pc/vbe.c (real2pm): Added new function.
16742 (grub_video_vbe_draw_pixel): Likewise.
16743 (grub_video_vbe_get_video_ptr): Likewise.
16744 (grub_video_vbe_get_pixel): Likewise
16745 (grub_video_vbe_init): Likewise.
16746 (grub_video_vbe_fini): Likewise.
16747 (grub_video_vbe_setup): Likewise.
16748 (grub_video_vbe_get_info): Likewise.
16749 (grub_video_vbe_set_palette): Likewise.
16750 (grub_video_vbe_get_palette): Likewise.
16751 (grub_video_vbe_set_viewport): Likewise.
16752 (grub_video_vbe_get_viewport): Likewise.
16753 (grub_video_vbe_map_color): Likewise.
16754 (grub_video_vbe_map_rgb): Likewise.
16755 (grub_video_vbe_map_rgba): Likewise.
16756 (grub_video_vbe_unmap_color): Likewise.
16757 (grub_video_vbe_fill_rect): Likewise.
16758 (grub_video_vbe_blit_glyph): Likewise.
16759 (grub_video_vbe_blit_bitmap): Likewise.
16760 (grub_video_vbe_blit_render_target): Likewise.
16761 (grub_video_vbe_scroll): Likewise.
16762 (grub_video_vbe_swap_buffers): Likewise.
16763 (grub_video_vbe_create_render_target): Likewise.
16764 (grub_video_vbe_delete_render_target): Likewise.
16765 (grub_video_vbe_set_active_render_target): Likewise.
16766 (grub_vbe_set_pixel_rgb): Remove function.
16767 (grub_vbe_set_pixel_index): Likewise.
16768 (index_color_mode): Remove static variable.
16769 (active_mode): Likewise.
16770 (framebuffer): Likewise.
16771 (bytes_per_scan_line): Likewise.
16772 (grub_video_vbe_adapter): Added new static variable.
16773 (framebuffer): Likewise.
16774 (render_target): Likewise.
16775 (initial_mode): Likewise.
16776 (mode_in_use): Likewise.
16777 (mode_list): Likewise.
16779 2006-03-10 Marco Gerards <marco@gnu.org>
16781 * configure.ac (AC_INIT): Bumped to 1.93.
16783 * DISTLIST: Added `include/grub/hfs.h'.
16785 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
16787 * boot/i386/pc/boot.S (general_error): Before looping, try INT
16788 18H, which might help the BIOS falling back to next boot media.
16790 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
16792 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
16793 Poe Chen <poe.poechen@gmail.com>.
16795 2006-01-17 Marco Gerards <marco@gnu.org>
16797 * include/grub/normal.h: Include <grub/script.h>.
16798 (grub_command_list): Removed struct.
16799 (grub_command_list_t): Removed type.
16800 (grub_menu_entry): Remove members `num' and `command_list'. Add
16801 members `commands' and `sourcecode'.
16802 * include/grub/script.h: Add inclusion guards.
16803 (grub_script_cmd_menuentry): New struct.
16804 (grub_script_execute_menuentry): New prototype.
16805 (grub_script_lexer_record_start): Likewise.
16806 (grub_script_lexer_record_stop): Likewise.
16807 * normal/execute.c (grub_script_execute_menuentry): New function.
16808 * normal/lexer.c (record, recording, recordpos, recordlen): New
16810 (grub_script_lexer_record_start): New function.
16811 (grub_script_lexer_record_stop): Likewise.
16812 (recordchar): Likewise.
16813 (nextchar): Likewise.
16814 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
16815 2048 as the buffer size. Add the tokens `menuentry' and `@'.
16816 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
16817 (current_menu): New variable.
16818 (free_menu): Mainly rewritten.
16819 (grub_normal_menu_addentry): New function.
16820 (read_config_file): Rewritten.
16821 * normal/menu.c (run_menu_entry): Mainly rewritten.
16822 * normal/menu_entry.c (make_screen): Rewritten the code to insert
16824 (run): Mainly rewritten.
16825 * normal/parser.y (menu_entry): New variable.
16826 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
16827 (menuentry): New rule.
16828 (command): Add `menuentry'.
16829 (if_statement): Allow additional returns before `fi'.
16830 * normal/script.c (grub_script_create_cmdmenu): New function.
16832 2006-01-03 Marco Gerards <marco@gnu.org>
16834 * INSTALL: GNU Bison is required.
16835 * configure.ac: Rewritten the test to detect Bison.
16836 * Makefile.in (YACC): New variable. Reported by Xun Sun
16837 <xun.sun.cn@gmail.com>.
16839 2006-01-03 Marco Gerards <marco@gnu.org>
16841 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
16842 the HFS+ filesystem to filesystem blocks.
16843 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
16844 GCC warning is silenced.
16846 2006-01-03 Marco Gerards <marco@gnu.org>
16848 * partmap/apple.c (apple_partition_map_iterate): Convert the data
16849 read from disk from big endian to host byte order.
16851 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
16853 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
16855 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
16856 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
16857 embedded HFS+ filesystem.
16858 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
16859 (grub_hfs_sblock): Move from here...
16860 * include/grub/hfs.h: To here... New file.
16861 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
16863 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
16865 (grub_hfsplus_volheader): Change type of member `magic' to
16867 (grub_hfsplus_data): Add new member `embedded_offset'.
16868 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
16870 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
16871 Calculate the offset.
16873 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16875 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
16877 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
16879 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16881 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
16882 ENV->NAME is NULL after allocating ENV->VALUE.
16884 2005-12-25 Marco Gerards <marco@gnu.org>
16886 * kern/env.c (grub_env_set): Rewritten the error handling code.
16888 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16890 * geninit.sh: Made more robust, and more portable.
16892 2005-12-25 Marco Gerards <marco@gnu.org>
16894 Add support for Apple HFS+ filesystems.
16896 * fs/hfsplus.c: New file.
16898 * DISTLIST: Added `fs/hfsplus.c'.
16900 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
16901 (hfsplus_mod_SOURCES): New variable.
16902 (hfsplus_mod_CFLAGS): Likewise.
16903 (hfsplus_mod_LDFLAGS): Likewise.
16904 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
16905 (grub_setup_SOURCES): Likewise.
16906 (grub_mkdevicemap_SOURCES): Likewise.
16907 (grub_emu_SOURCES): Likewise.
16908 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16910 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
16912 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
16914 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16916 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
16917 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
16918 include/grub/parser.h, include/grub/script.h, kern/parser.c,
16919 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
16920 normal/lexer.c, normal/parser.y, normal/script.c, and
16922 Removed kern/sparc64/cache.c.
16924 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
16925 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
16928 * configure.ac (AC_INIT): Bumped to 1.92.
16930 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
16932 * kern/err.c (grub_error_push): Added new function to support error
16934 (grub_error_pop): Likewise.
16935 (grub_error_stack_items): New local variable to support error stacks.
16936 (grub_error_stack_pos): Likewise.
16937 (grub_error_stack_assert): Likewise.
16938 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
16940 (grub_print_error): Added support to print errors from error stack.
16942 * include/grub/err.h (grub_error_push): Added function prototype.
16943 (grub_error_pop): Likewise.
16945 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
16947 * configure.ac: Accept `powerpc64' as host_cpu.
16948 (amd64): Rename to `biarch32'.
16950 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
16951 non-cacheline-aligned addresses.
16953 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
16954 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
16955 if `size' is non-zero.
16957 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
16959 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
16960 and `cd' to make sure the filename is not prefixed with a
16962 (pkgdata_MODULES): Add `gpt.mod'.
16963 (gpt_mod_SOURCES): New variable.
16964 (gpt_mod_CFLAGS): Likewise.
16965 (gpt_mod_LDFLAGS): Likewise.
16967 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
16969 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
16972 * partmap/gpt.c: New file.
16974 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
16975 GPT partition map is detected.
16977 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
16979 * commands/i386/pc/play.c: New file.
16980 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
16981 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
16984 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
16986 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
16987 ((unused))' to silence gcc warning.
16989 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
16991 * configure.ac: Correct `AC_PROG_YACC' test.
16993 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16995 * util/powerpc/ieee1275/grub-install.in: Run the mount point
16996 check before installing files.
16998 2005-11-22 Mike Small <smallm@panix.com>
17000 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
17001 number regex so multidigit numbers are recognized correctly.
17003 2005-11-22 Mike Small <smallm@panix.com>
17005 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
17006 debugging message before attempting to claim memory.
17007 (grub_rescue_cmd_initrd): Add a claim debugging message and try
17008 multiple addresses in case of failure.
17010 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
17012 * term/tparm.c (get_space): Remove empty `if' statement.
17014 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
17016 * kern/parser.c (check_varstate): Rename `state' to 's'.
17018 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
17020 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
17021 variable definitions to the beginning of each function. Sort stack
17023 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
17024 `buf' argument to `char *'.
17026 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
17028 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
17029 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
17030 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
17031 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
17032 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
17033 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
17034 configfile.mod, search.mod, gzio.mod and test.mod.
17035 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
17036 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
17037 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
17038 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
17039 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
17040 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
17041 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
17042 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
17043 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
17044 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
17045 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
17046 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
17047 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
17048 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
17049 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
17050 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
17051 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
17052 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
17053 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
17054 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
17055 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
17056 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
17057 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
17059 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
17061 (pkgdata_MODULES): Add test.mod.
17063 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17065 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
17066 appending to variables with "+=".
17067 (PModule): Use full pathname to generate *.lst filenames.
17069 * Makefile.in: Fixed list rules moved from genmk.rb.
17070 (.DELETE_ON_ERROR): New special target.
17071 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
17073 * conf/i386-pc.rmk: Include conf/common.mk.
17074 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
17075 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
17076 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
17077 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
17078 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
17079 configfile.mod, search.mod, gzio.mod and test.mod.
17080 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
17081 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
17082 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
17083 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
17084 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
17085 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
17086 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
17087 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
17088 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
17089 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
17090 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
17091 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
17092 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
17093 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
17094 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
17095 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
17096 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
17097 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
17098 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
17099 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
17100 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
17101 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
17102 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
17104 * conf/common.rmk: ... to here. New file.
17106 * conf/common.mk: New file.
17108 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
17110 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
17111 (grub_script.tab.c): ... here.
17113 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
17114 (grub_script.tab.c): ... here.
17116 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
17117 (grub_script.tab.c): ... here.
17119 * normal/command.c (grub_command_find): Fixed a memory leak of
17120 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
17122 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17124 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
17125 "@" which marks the start of a comment on ARM.
17126 (VARIABLE): Likewise.
17128 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17130 Add support for Linux/ADFS partition tables.
17132 * partmap/acorn.c: New file.
17134 * include/grub/acorn_filecore.h: Likewise.
17136 * DISTLIST: Added `partmap/acorn.c' and
17137 `include/grub/acorn_filecore.h'.
17139 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17141 (pkgdata_MODULES): Add `acorn.mod'.
17142 (acorn_mod_SOURCES): New variable.
17143 (acorn_mod_CFLAGS): Likewise.
17145 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
17147 (pkgdata_MODULES): Add `acorn.mod'.
17148 (acorn_mod_SOURCES): New variable.
17149 (acorn_mod_CFLAGS): Likewise.
17151 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
17152 (pkgdata_MODULES): Add `acorn.mod'.
17153 (acorn_mod_SOURCES): New variable.
17154 (acorn_mod_CFLAGS): Likewise.
17155 (acorn_mod_LDFLAGS): Likewise.
17157 * include/types.h (grub_disk_addr_t): New typedef.
17159 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
17161 * geninit.sh: New file.
17163 * geninitheader.sh: Likewise.
17165 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
17166 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
17167 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
17168 * commands/configfile.c (grub_configfile_init)
17169 (grub_configfile_fini): Likewise.
17170 * commands/default.c (grub_default_init, grub_default_fini):
17172 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
17173 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
17174 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
17175 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
17177 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
17178 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
17180 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
17181 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
17183 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
17185 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
17187 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
17188 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
17189 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
17190 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
17191 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
17192 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
17193 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
17194 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
17195 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
17196 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
17197 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
17198 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
17199 * partmap/amiga.c (grub_amiga_partition_map_init)
17200 (grub_amiga_partition_map_fini): Likewise.
17201 * partmap/apple.c (grub_apple_partition_map_init)
17202 (grub_apple_partition_map_fini): Likewise.
17203 * partmap/pc.c (grub_pc_partition_map_init)
17204 (grub_pc_partition_map_fini): Likewise.
17205 * partmap/sun.c (grub_sun_partition_map_init,
17206 grub_sun_partition_map_fini): Likewise.
17207 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
17210 * util/grub-emu.c: Include <grub_modules_init.h>.
17211 (main): Don't initialize and de-initialize any modules directly,
17212 use `grub_init_all' and `grub_fini_all' instead.
17214 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
17215 `grub_vesafb_mod_init'.
17216 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
17218 * term/i386/pc/vga.c (grub_vga_init): Renamed to
17219 `grub_vga_mod_init'. Updated all users.
17220 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
17222 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
17223 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
17226 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
17227 Generate a function to initialize the module in utilities.
17228 Updated all callers.
17229 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
17230 initialize the module in utilities. Updated all callers.
17232 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
17234 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
17235 escape sequence and a literal ^L to clear the screen.
17237 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
17238 when returning from Open Firmware.
17240 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
17242 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
17243 (grub_ofconsole_height): Likewise.
17244 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
17245 manually insert a '\n'.
17246 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
17247 `grub_ofconsole_height'. Return early if these are already set.
17249 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
17251 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
17252 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
17253 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
17254 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
17255 and `normal/script.c'.
17256 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
17257 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
17258 (test_mod_SOURCES): New variable.
17259 (test_mod_CFLAGS): Likewise.
17260 (test_mod_LDFLAGS): Likewise.
17261 (pkgdata_MODULES): Add `test.mod'.
17262 (grub_script.tab.c): New rule.
17263 (grub_script.tab.h): Likewise.
17265 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
17267 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17268 `commands/test.c', `normal/execute.c', `normal/lexer.c',
17269 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
17270 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
17271 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
17272 (test_mod_SOURCES): New variable.
17273 (test_mod_CFLAGS): Likewise.
17274 (pkgdata_MODULES): Add `test.mod'.
17275 (grub_script.tab.c): New rule.
17276 (grub_script.tab.h): Likewise.
17278 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
17280 Add initial scripting support.
17282 * commands/test.c: New file.
17283 * include/grub/script.h: Likewise.
17284 * normal/execute.c: Likewise.
17285 * normal/function.c: Likewise.
17286 * normal/lexer.c: Likewise.
17287 * normal/parser.y: Likewise.
17288 * normal/script.c: Likewise.
17290 * configure.ac: Add `AC_PROG_YACC' test.
17292 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
17293 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
17294 `normal/function.c' and `normal/script.c'.
17295 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
17296 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
17297 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
17299 (pkgdata_MODULES): Add `test.mod'.
17300 (grub_script.tab.c): New rule.
17301 (grub_script.tab.h): Likewise.
17303 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
17305 * include/grub/normal.h (grub_test_init): New prototype.
17306 (grub_test_fini): Likewise.
17308 * normal/command.c: Include <grub/script.h>.
17309 (grub_command_execute): Rewritten.
17311 * util/grub-emu.c (main): Call `grub_test_init' and
17314 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
17316 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
17318 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
17319 there are no pending characters.
17321 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
17323 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
17324 `grub_strndup' to drop device arguments. Replace unnecessary
17325 `grub_strndup' with `grub_strdup'.
17327 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
17329 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
17330 `debug' environment variable has been set.
17332 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
17334 * Makefile.in (install-local): Use $(DATA).
17335 (uninstall): Likewise.
17336 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
17337 (sbin_UTILITIES): ... to here.
17338 (sbin_SCRIPTS): New variable.
17339 (grub_install_SOURCES): New variable.
17340 * util/powerpc/ieee1275/grub-install.in: New file.
17341 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
17343 (add_segments): Call `grub_util_get_path'.
17345 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
17347 From Timothy Baldwin:
17348 * commands/ls.c (grub_ls_list_files): Close FILE with
17350 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
17352 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
17354 * include/grub/parser.h: New file.
17356 * kern/parser.c: Likewise.
17358 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
17359 (grub_setup_SOURCES): Likewise.
17360 (grub_probefs_SOURCES): Likewise.
17361 (grub_emu_SOURCES): Likewise.
17362 (kernel_img_HEADERS): Add `parser.h'.
17364 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
17365 (grub_emu_SOURCES): Add `kern/parser.c'.
17366 (grubof_SOURCES): Likewise.
17368 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
17369 (grubof_SOURCES): Add `kern/parser.c'.
17371 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
17373 * kern/misc.c (grub_split_cmdline): Removed function.
17375 * kern/rescue.c: Include <grub/parser.h>.
17376 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
17377 of `grub_split_cmdline'.
17379 * normal/command.c: Include <grub/parser.h>.
17380 (grub_command_execute): Use `grub_parser_split_cmdline' instead
17381 of `grub_split_cmdline'.
17383 * normal/completion.c: Include <grub/parser.h>.
17384 (cmdline_state): New variable.
17385 (iterate_dir): End the filename with a quote depending on the
17386 command line state.
17387 (get_state): new function.
17388 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
17389 split the arguments and determine the current argument. When the
17390 argument string is not quoted, escape all spaces.
17392 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
17394 * normal/sparc64/setjmp.S: New file.
17396 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
17398 * include/grub/sparc64/libgcc.h: New file.
17399 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
17400 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
17401 normal/sparc64/setjmp.c.
17403 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
17405 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
17406 * kern/sparc64/cache.S: New file.
17407 * kern/sparc64/cache.c: Removed.
17408 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
17409 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
17411 (COMMON_LDFLAGS): Add -melf64_sparc.
17412 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
17413 (grubof_SOURCES): Use cache.S instead of cache.c.
17414 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
17415 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
17416 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
17418 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
17419 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
17420 (linux_mod_CFLAGS): Commented out.
17421 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
17422 out because module isn't built.
17423 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
17424 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
17425 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
17426 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
17427 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
17428 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
17429 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
17430 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
17431 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
17432 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
17433 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
17434 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
17435 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
17436 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
17438 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
17440 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
17441 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
17442 longer, because HFS should not be used on PC.
17444 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17446 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
17447 consistently within the loop.
17449 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
17451 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
17452 directory can not be read.
17454 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
17456 * configure.ac (AC_INIT): Increase the version number to 1.91.
17458 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
17459 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
17460 term/i386/pc/serial.c.
17462 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
17464 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
17465 file size must be permitted.
17467 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
17468 between %ah and %al.
17470 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
17472 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
17474 Call the hook with a NUL-terminated filename.
17475 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
17478 * kern/term.c (cursor_state): New variable.
17479 (grub_term_set_current): Reset the cursor state on a new
17481 (grub_setcursor): Rewritten to use CURSOR_STATE.
17482 (grub_getcursor): New function.
17484 * include/grub/term.h (grub_getcursor): New prototype.
17486 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
17487 integers on ARM. Reported by Timothy Baldwin
17488 <T.E.Baldwin99@members.leeds.ac.uk>.
17490 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
17492 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
17494 (grub_sfs_dir): Likewise.
17496 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
17498 Add support for the SFS filesystem.
17500 * fs/sfs.c: New file.
17502 * DISTLIST: Added `fs/sfs.c'.
17504 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
17505 (grub_probefs_SOURCES): Likewise.
17506 (grub_emu_SOURCES): Likewise.
17507 (pkgdata_MODULES): Add `sfs.mod'.
17508 (sfs_mod_SOURCES): New variable.
17509 (sfs_mod_CFLAGS): Likewise.
17510 (sfs_mod_LDFLAGS): Likewise.
17512 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
17513 (pkgdata_MODULES): Add `sfs.mod'.
17514 (sfs_mod_SOURCES): New variable.
17515 (sfs_mod_CFLAGS): Likewise.
17517 * util/grub-emu.c (main): Call `grub_sfs_init' and
17520 * include/grub/fs.h (grub_sfs_init): New prototype.
17521 (grub_sfs_fini): Likewise.
17523 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
17525 Add support for the AFFS filesystem.
17527 * fs/affs.c: New file.
17529 * DISTLIST: Added `fs/affs.c'.
17531 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
17532 (grub_probefs_SOURCES): Likewise.
17533 (grub_emu_SOURCES): Likewise.
17534 (pkgdata_MODULES): Add `affs.mod'.
17535 (affs_mod_SOURCES): New variable.
17536 (affs_mod_CFLAGS): Likewise.
17537 (affs_mod_LDFLAGS): Likewise.
17539 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
17540 (pkgdata_MODULES): Add `affs.mod'.
17541 (affs_mod_SOURCES): New variable.
17542 (affs_mod_CFLAGS): Likewise.
17544 * util/grub-emu.c (main): Call `grub_affs_init' and
17547 * include/grub/fs.h (grub_affs_init): New prototype.
17548 (grub_affs_fini): Likewise.
17550 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
17552 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
17554 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
17556 * configure.ac: Accept `x86_64' as host_cpu. In that case add
17559 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
17562 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
17563 (COMMON_LDFLAGS): New variable.
17564 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
17565 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
17566 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
17567 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
17568 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
17569 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
17570 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
17571 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
17572 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
17573 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
17574 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
17575 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
17576 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
17577 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
17578 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
17580 (normal_mod_ASFLAGS): Add `-m32'.
17582 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
17583 (grub_host_size_t, grub_host_ssize_t): New types.
17584 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
17585 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
17586 `GRUB_HOST_SIZEOF_VOID_P'.
17588 * include/grub/kernel.h (struct grub_module_header): Type of
17589 member offset changed to `grub_host_off_t'. Type of member size
17590 changed to `grub_host_size_t'.
17591 (struct grub_module_info): Type of member offset changed to
17592 `grub_host_off_t'. Type of member size changed to
17593 `grub_host_size_t'.
17595 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
17597 Make GRUB's kernel compliant to Multiboot Specification.
17599 * kern/i386/pc/startup.S (multiboot_header): New label.
17600 (multiboot_entry): Likewise.
17601 (multiboot_trampoline): Likewise.
17603 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17604 Increased to 0x4A0.
17606 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
17607 put parentheses after a question mark.
17608 [!GRUB_UTIL] (my_mod): New variable.
17610 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
17612 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
17614 Adds support for the XFS filesystem. Btrees are not supported
17617 * fs/xfs.c: New file.
17619 * DISTLIST: Added `fs/xfs.c'.
17621 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
17622 (grub_probefs_SOURCES): Likewise.
17623 (grub_emu_SOURCES): Likewise.
17624 (pkgdata_MODULES): Add `xfs.mod'.
17625 (xfs_mod_SOURCES): New variable.
17626 (xfs_mod_CFLAGS): Likewise.
17628 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
17629 (pkgdata_MODULES): Add `xfs.mod'.
17630 (xfs_mod_SOURCES): New variable.
17631 (xfs_mod_CFLAGS): Likewise.
17633 * util/grub-emu.c (main): Call `grub_xfs_init' and
17636 * include/grub/fs.h (grub_xfs_init): New prototype.
17637 (grub_xfs_fini): Likewise.
17640 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
17642 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
17643 color modes, allow greater than 16 colors to be configured as
17646 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
17648 * normal/completion.c (complete_arguments): Add the qualifier
17649 const into OPTIONS.
17651 From Omniflux <omniflux+lists@omniflux.com>:
17652 * include/grub/terminfo.h: New file.
17653 * include/grub/tparm.h: Likewise.
17654 * include/grub/i386/pc/serial.h: Likewise.
17655 * term/terminfo.c: Likewise.
17656 * term/tparm.c: Likewise.
17657 * term/i386/pc/serial.c: Likewise.
17658 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
17660 (terminfo_mod_SOURCES): New variable.
17661 (terminfo_mod_CFLAGS): Likewise.
17662 (serial_mod_SOURCES): Likewise.
17663 (serial_mod_CFLAGS): Likewise.
17665 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
17667 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
17668 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
17669 and kern/powerpc/ieee1275/cmain.c, respectively.
17671 * boot/powerpc/ieee1275/crt0.S: Moved to ...
17672 * kern/powerpc/ieee1275/crt0.S: ... here.
17674 * boot/powerpc/ieee1275/cmain.c: Moved to ...
17675 * kern/powerpc/ieee1275/cmain.c: ... here.
17677 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
17678 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
17679 instead of boot/powerpc/ieee1275/crt0.S and
17680 boot/powerpc/ieee1275/cmain.c, respectively.
17682 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
17683 sectors. It was not used anyway.
17685 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
17687 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
17688 `unused parameter' warning.
17690 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
17692 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
17694 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
17697 2005-08-28 Marco Gerards <metgerards@student.han.nl>
17699 * include/grub/normal.h (enum grub_completion_type): Added
17700 `GRUB_COMPLETION_TYPE_ARGUMENT'.
17702 * normal/cmdline.c (print_completion): Handle
17703 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
17704 * normal/menu_entry.c (store_completion): Likewise.
17706 * normal/completion.c (complete_arguments): New function.
17707 (grub_normal_do_completion): Call `complete_arguments' when the
17708 current words start with a dash.
17710 2005-08-27 Marco Gerards <metgerards@student.han.nl>
17712 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
17713 `gzio.mod' instead of `io.mod').
17715 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
17717 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
17718 (DISTDIRS): Added io and video.
17719 Rewrite the search routine to make an output consistently.
17721 * DISTLIST: Added conf/sparc64-ieee1275.mk,
17722 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
17723 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
17724 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
17725 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
17726 util/powerpc/ieee1275/misc.c.
17728 * include/grub/gzio.h: New file.
17729 * io/gzio.c: Likewise.
17731 * kern/file.c (grub_file_close): Call grub_device_close only if
17732 FILE->DEVICE is not NULL.
17734 * include/grub/mm.h [!NULL] (NULL): New macro.
17736 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
17738 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
17739 (pkgdata_MODULES): Added gzio.mod.
17740 (gzio_mod_SOURCES): New variable.
17741 (gzio_mod_CFLAGS): Likewise.
17743 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
17744 (pkgdata_MODULES): Added gzio.mod.
17745 (gzio_mod_SOURCES): New variable.
17746 (gzio_mod_CFLAGS): Likewise.
17748 * commands/cat.c: Include grub/gzio.h.
17749 (grub_cmd_cat): Use grub_gzfile_open instead of
17752 * commands/cmp.c: Include grub/gzio.h.
17753 (grub_cmd_cmp): Use grub_gzfile_open instead of
17756 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
17757 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
17759 (grub_rescue_cmd_module): Likewise.
17761 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
17763 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
17764 kern/sparc64/ieee1275/init.c because it contains _start.
17765 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
17767 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
17769 * configure.ac: Add support for sparc64 host with ieee1275
17771 * configure: Generated from configure.ac.
17772 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
17774 (grub_ofdisk_read): Likewise.
17775 (grub_ofdisk_open): Use %p to print pointer values, and cast the
17776 pointers as (void *) to remove a warning.
17777 (grub_ofdisk_close): Likewise.
17778 (grub_ofdisk_read): Likewise.
17779 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
17780 returns, so make it return void to remove a warning.
17781 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
17782 Corresponding prototype change.
17783 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
17784 values, and cast the pointers as (void *) to remove a warning.
17785 (grub_mm_dump): Likewise.
17786 * conf/sparc64-ieee1275.mk: New file.
17787 * conf/sparc64-ieee1275.rmk: Likewise.
17788 * include/grub/sparc64/setjmp.h: Likewise.
17789 * include/grub/sparc64/types.h: Likewise.
17790 * include/grub/sparc64/ieee1275/console.h: Likewise.
17791 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
17792 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
17793 * include/grub/sparc64/ieee1275/time.h: Likewise.
17794 * kern/sparc64/cache.c: Likewise.
17795 * kern/sparc64/dl.c: Likewise.
17796 * kern/sparc64/ieee1275/init.c: Likewise.
17797 * kern/sparc64/ieee1275/openfw.c: Likewise.
17799 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
17801 * util/console.c (grub_ncurses_putchar): If C is greater than
17802 0x7f, set C to a question mark.
17803 (grub_ncurses_getcharwidth): New function.
17804 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
17807 * normal/menu.c (print_entry): Made aware of Unicode. First,
17808 convert TITLE to UCS-4, and predict the cursor position by
17811 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
17813 * kern/misc.c (grub_utf16_to_utf8): Likewise.
17815 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17817 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
17818 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17821 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
17822 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17823 grub_strcpy and grub_strlen. Take it into account that a space
17824 character is inserted as a delimiter.
17826 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17828 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
17829 invalid magic in the error.
17831 * commands/search.c: New file.
17833 * util/grub-emu.c (main): Call grub_search_init and
17836 * kern/rescue.c (grub_rescue_print_disks): Removed.
17837 (grub_rescue_print_devices): New function.
17838 (grub_rescue_cmd_ls): Use grub_device_iterate with
17839 grub_rescue_print_devices instead of grub_disk_dev_iterate with
17840 grub_rescue_print_disks.
17842 * kern/partition.c (grub_partition_iterate): Return the result of
17843 PARTMAP->ITERATE instead of GRUB_ERRNO.
17845 * kern/device.c: Include grub/partition.h.
17846 (grub_device_iterate): New function.
17848 * include/grub/partition.h (grub_partition_iterate): Return int
17849 instead of grub_err_t.
17851 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
17853 [GRUB_UTIL] (grub_search_fini): Likewise.
17855 * include/grub/device.h (grub_device_iterate): New prototype.
17857 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17859 (pkgdata_MODULES): Added search.mod.
17860 (search_mod_SOURCES): New variable.
17861 (search_mod_CFLAGS): Likewise.
17863 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
17864 (pkgdata_MODULES): Added search.mod.
17865 (search_mod_SOURCES): New variable.
17866 (search_mod_CFLAGS): Likewise.
17868 * commands/ls.c (grub_ls_list_disks): Renamed to ...
17869 (grub_ls_list_devices): ... this, and use grub_device_iterate.
17870 All callers changed.
17872 * DISTLIST: Added commands/search.c.
17874 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17876 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
17878 (grub_getcharwidth): New function.
17880 * kern/misc.c (grub_utf8_to_ucs4): New function.
17882 * include/grub/term.h (struct grub_term): Added a new member
17884 (grub_getcharwidth): New prototype.
17886 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
17888 * term/i386/pc/console.c (map_char): New function. Segregated from
17889 grub_console_putchar.
17890 (grub_console_putchar): Use map_char.
17891 (grub_console_getcharwidth): New function.
17892 (grub_console_term): Specified grub_console_getcharwidth as
17895 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
17896 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
17898 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
17900 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
17901 on grub_strtoul completely.
17902 (write_char): Declare local variables in the beginning of the
17904 (grub_vesafb_getcharwidth): New function.
17905 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
17908 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
17910 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
17911 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
17912 commands/i386/pc/vbetest.c.
17914 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
17915 call grub_vbe_get_controller_info again, because the returned
17916 information is volatile.
17917 (grub_vbe_set_video_mode): Mostly rewritten.
17918 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
17919 grub_vbe_status_t correctly.
17920 (grub_vbe_get_video_mode_info): Likewise.
17921 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
17922 several if statements.
17924 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
17925 * commands/i386/pc/vbeinfo.c: ... this.
17927 * commands/i386/pc/vbe_test.c: Renamed to ...
17928 * commands/i386/pc/vbetest.c: ... this.
17930 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
17932 (grub_cmd_vbeinfo): ... this. Save video modes before
17933 iterating. Skip a video mode, if it is not available, not enough
17934 information is given or it is monochrome. Show the memory
17935 model. Leave the interpretation of MODEVAR to grub_strtoul
17937 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
17938 (GRUB_MOD_FINI): Likewise.
17940 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
17941 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
17942 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
17943 duplicated grub_env_get. Leave the interpretation of MODEVAR to
17944 grub_strtoul completely.
17945 (real2pm): Removed.
17946 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
17947 (GRUB_MOD_FINI): Likewise.
17949 * normal/misc.c: Include grub/mm.h.
17951 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
17952 vbe_list_modes with vbetest.mod and vbeinfo.mod.
17953 (vbe_list_modes_mod_SOURCES): Removed.
17954 (vbe_list_modes_mod_CFLAGS): Likewise.
17955 (vbe_test_mod_SOURCES): Likewise.
17956 (vbe_test_mod_CFLAGS): Likewise.
17957 (vbeinfo_mod_SOURCES): New variable.
17958 (vbeinfo_mod_CFLAGS): Likewise.
17959 (vbetest_mod_SOURCES): Likewise.
17960 (vbetest_mod_CFLAGS): Likewise.
17962 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
17964 * normal/misc.c: New file.
17966 * DISTLIST: Added normal/misc.c.
17968 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
17969 DISK to HOOK. Call HOOK with DISK.
17970 * partmap/apple.c (apple_partition_map_iterate): Likewise.
17971 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17972 * partmap/sun.c (sun_partition_map_iterate): Likewise.
17974 * normal/menu_entry.c (struct screen): Added a new member
17975 "completion_shown".
17976 (completion_buffer): New global variable.
17977 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
17978 (store_completion): New function.
17979 (complete): Likewise.
17980 (clear_completions): Likewise.
17981 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
17982 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
17983 a tab, call complete.
17985 * normal/completion.c (disk_dev): Removed.
17986 (print_simple_completion): Likewise.
17987 (print_partition_completion): Likewise.
17988 (print_func): New global variable.
17989 (add_completion): Do not take the arguments WHAT or PRINT any
17990 longer. Added a new argument TYPE. Instead of printing directly,
17991 call PRINT_FUNC if not NULL.
17992 All callers changed.
17993 (complete_device): Use a local variable DEV instead of
17994 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
17995 (grub_normal_do_completion): Take a new argument HOOK. Do not
17996 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
17997 empty string, return NULL instead.
17998 All callers changed.
18000 * normal/cmdline.c (print_completion): New function.
18002 * kern/partition.c (grub_partition_iterate): Add an argument DISK
18004 All callers changed.
18006 * kern/disk.c (grub_print_partinfo): Removed.
18008 * include/grub/partition.h (struct grub_partition_map): Add a new
18009 argument DISK into HOOK of ITERATE.
18010 (grub_partition_iterate): Add a new argument DISK to HOOK.
18012 * include/grub/normal.h (enum grub_completion_type): New enum.
18013 (grub_completion_type_t): New type.
18014 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
18015 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
18016 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
18017 (GRUB_COMPLETION_TYPE_FILE): Likewise.
18018 (grub_normal_do_completion): Added a new argument HOOK.
18019 (grub_normal_print_device_info): New prototype.
18021 * include/grub/disk.h (grub_print_partinfo): Removed.
18023 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
18024 (normal_mod_SOURCES): Likewise.
18025 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18026 (normal_mod_SOURCES): Likewise.
18028 * commands/ls.c (grub_ls_list_disks): Use
18029 grub_normal_print_device_info instead of grub_print_partinfo. Free
18031 (grub_ls_list_files): Use grub_normal_print_device_info instead of
18032 duplicating the code.
18034 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
18036 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
18037 follow GCS more precisely.
18038 * commands/i386/pc/vbe_test.c: Likewise.
18039 * include/grub/i386/pc/vbe.h: Likewise.
18040 * term/i386/pc/vesafb.c: Likewise.
18041 * video/i386/pc/vbe.c: Likewise.
18043 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
18045 * DISTLIST: Added term/i386/pc/vesafb.c
18046 DISTLIST: Added video/i386/pc/vbe.c
18047 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
18048 DISTLIST: Added commands/i386/pc/vbe_test.c.
18049 * commands/i386/pc/vbe_list_modes.c: New file.
18050 * commands/i386/pc/vbe_test.c: Likewise.
18051 * term/i386/pc/vesafb.c: Likewise.
18052 * video/i386/pc/vbe.c: Likewise.
18053 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
18054 (grub_vbe_probe) Added prototype.
18055 (grub_vbe_set_video_mode) Likewise.
18056 (grub_vbe_get_video_mode) Likewise.
18057 (grub_vbe_get_video_mode_info) Likewise.
18058 (grub_vbe_set_pixel_rgb) Likewise.
18059 (grub_vbe_set_pixel_index) Likewise.
18060 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
18061 (pkgdata_MODULES): Added vesafb.mod.
18062 (pkgdata_MODULES): Added vbe_list_modes.mod.
18063 (pkgdata_MODULES): Added vbe_test.mod.
18064 (vbe_mod_SOURCES): Added.
18065 (vbe_mod_CFLAGS): Likewise.
18066 (vesafb_mod_SOURCES): Likewise.
18067 (vesafb_mod_CFLAGS): Likewise.
18068 (vbe_list_modes_mod_SOURCES): Likewise.
18069 (vbe_list_modes_mod_CFLAGS): Likewise.
18070 (vbe_test_mod_SOURCES): Likewise.
18071 (vbe_test_mod_CFLAGS): Likewise.
18073 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
18075 * normal/command.c (grub_command_execute): If INTERACTIVE is
18076 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
18077 CMDLINE. Disable the pager if INTERACTIVE is true.
18078 All callers are changed.
18080 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
18081 before reading a config file.
18082 * normal/main.c (read_config_file): Even if a command is not
18083 found, register it if it is within an entry.
18085 * util/grub-emu.c: Include sys/types.h and unistd.h.
18086 (options): Added --hold.
18087 (struct arguments): Added a new member "hold".
18088 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
18090 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
18091 cleared by a debugger, if it is not zero.
18093 * include/grub/normal.h (grub_command_execute): Add an argument
18096 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
18098 * DISTLIST: Added include/grub/i386/pc/vbe.h.
18100 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
18102 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
18103 program with another one, because the old one didn't detect a bug
18104 in gcc-3.4. Always use regparm 2, because the new test is still
18105 not enough for gcc-4.0. Someone must investigate a simple test
18106 case which detects a bug in gcc-4.0.
18108 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
18110 * DISTLIST: Added normal/completion.c.
18112 * normal/completion.c: New file.
18114 * term/i386/pc/console.c (grub_console_getwh): New function.
18115 (grub_console_term): Assign grub_console_getwh to getwh.
18117 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
18118 function is defined in normal/completion.c as
18119 grub_normal_do_completion.
18120 (grub_cmdline_get): Use grub_normal_do_completion instead of
18123 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
18124 returns non-zero, otherwise return 0.
18125 (grub_partition_iterate): First, probe the partition map. Then,
18126 call ITERATE only for this partition map.
18128 * kern/misc.c (grub_strncmp): Rewritten.
18130 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
18131 returns non-zero. Otherwise return 0.
18133 * include/grub/partition.h (grub_partition_map_iterate): Return
18134 int instead of void.
18136 * include/grub/normal.h (grub_normal_do_completion): New prototype.
18138 * include/grub/misc.h (grub_strncmp): Change the type of N to
18141 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
18144 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
18145 unsigned explicitly before comparing it with I.
18147 * kern/main.c (grub_env_write_root): Add the attribute unused into
18150 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18151 normal/completion.c.
18152 (normal_mod_SOURCES): Likewise.
18153 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18154 (normal_mod_SOURCES): Likewise.
18156 * normal/command.c (grub_iterate_commands): If ITERATE returns
18157 non-zero, return one immediately.
18159 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
18161 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
18162 * kern/i386/pc/startup.S: Updated Global Descriptor table's
18164 (grub_vbe_get_controller_info): New function.
18165 (grub_vbe_get_mode_info): Likewise.
18166 (grub_vbe_set_mode): Likewise.
18167 (grub_vbe_get_mode): Likewise.
18168 (grub_vbe_set_memory_window): Likewise.
18169 (grub_vbe_get_memory_window): Likewise.
18170 (grub_vbe_set_scanline_length): Likewise.
18171 (grub_vbe_get_scanline_length): Likewise.
18172 (grub_vbe_set_display_start): Likewise.
18173 (grub_vbe_get_display_start): Likewise.
18174 (grub_vbe_set_palette_data): Likewise.
18175 * include/grub/i386/pc/vbe.h: New file.
18177 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
18179 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
18180 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
18181 * DISTLIST: Likewise.
18182 * kern/ieee1275/of.c: Moved to ...
18183 * kern/ieee1275/ieee1275.c: ... here.
18185 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
18187 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
18188 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
18189 Pass 0 as `end' parameter to grub_strtoul().
18191 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
18193 * include/grub/powerpc/ieee1275/console.h: Do not include
18194 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
18196 (grub_console_cur_color): Remove i386-specific prototype.
18197 (grub_console_real_putchar): Likewise.
18198 (grub_console_checkkey): Likewise.
18199 (grub_console_getkey): Likewise.
18200 (grub_console_getxy): Likewise.
18201 (grub_console_gotoxy): Likewise.
18202 (grub_console_cls): Likewise.
18203 (grub_console_setcursor): Likewise.
18204 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
18205 Include <grub/machine/console.h>.
18206 * term/ieee1275/ofconsole.c: Likewise.
18208 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
18210 * Makefile.in (LIBLZO): New variable.
18212 * configure.ac: Check for LZO version 2.
18214 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
18215 lzo/lzo1x.h instead of lzo1x.h.
18217 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
18220 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
18221 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
18223 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
18224 copying the data from PARTITION to P.
18226 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
18228 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
18229 negative, unload the module.
18231 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
18232 map is "pc_partition_map" but not "pc".
18233 (usage): Fix the description. The options are --boot-image and
18234 --core-image but not --boot-file or --core-file.
18235 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
18236 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
18239 * util/i386/pc/grub-install.in: Do not specify --boot-file or
18240 --core-file. Specify INSTALL_DEVICE as an argument.
18242 * util/console.c: Include config.h.
18243 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
18244 [HAVE_NCURSES_H]: Include ncurses.h.
18245 [HAVE_CURSES_H]: Include curses.h.
18246 [!A_NORMAL] (A_NORMAL): Defined as zero.
18247 [!A_STANDOUT] (A_STANDOUT): Likewise.
18249 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
18251 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
18253 * configure.ac: Check for curses libraries and headers.
18255 * Makefile.in (LIBCURSES): New variable.
18257 * genmk.rb (Script::rule): Set the executable bits.
18259 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
18260 name of the PC partition map is "pc_partition_map" but not "pc".
18262 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
18264 * util/i386/pc/grub-install.in (grub_probefs): New variable.
18265 (modules): Likewise.
18266 (usage): Added descriptions for --modules and --grub-probefs.
18267 Handle --modules and --grub-probefs. Save the arguments in MODULES
18268 and GRUB_PROBEFS, respectively.
18269 Auto-detect a filesystem module against GRUBDIR. If the result is
18270 empty and modules are not specified explicitly, abort the
18271 installation. Add the result to MODULES.
18273 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
18274 disk/powerpc/ieee1275/ofdisk.c,
18275 include/grub/powerpc/ieee1275/init.h and
18276 term/powerpc/ieee1275/ofconsole.c.
18277 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
18278 term/ieee1275/ofconsole.c.
18280 * include/grub/powerpc/ieee1275/console.h: Resurrected.
18282 * COPYING: Upgraded to the latest version. Only the address of the
18283 FSF office has changed.
18285 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
18287 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
18288 kern/ieee1275.c with kern/ieee1275/of.c.
18290 * kern/ieee1275.c: Moved to ...
18291 * kern/ieee1275/of.c: ... here.
18293 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
18295 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
18298 * config.guess: Updated to the latest version from gnulib.
18299 * config.sub: Likewise.
18300 * install.sh: Likewise.
18301 * mkinstalldirs: Likewise.
18303 * include/grub/console.h: Removed. This file is arch-specific. Do
18304 not put this in include/grub.
18306 * include/grub/i386/pc/console.h: Resurrected.
18308 * util/console.c: Include grub/machine/console.h instead of
18310 * util/grub-emu.c: Likewise.
18312 2005-08-04 Marco Gerards <metgerards@student.han.nl>
18314 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
18317 From Vincent Pelletier <subdino2004@yahoo.fr>
18318 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
18319 Redefined to use grub_getwh.
18320 (grub_term): New member named getwh.
18321 (grub_getwh): New prototype.
18322 * kern/term.c (grub_getwh): New function.
18323 * term/i386/pc/console.c (grub_console_getwh): New function.
18324 (grub_console_term): New member `getwh'.
18325 * term/i386/pc/vga.c (grub_vga_getwh): New function.
18326 (grub_vga_term): New member `getwh'.
18327 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
18329 (grub_ofconsole_getw): New function.
18330 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
18331 (grub_ofconsole_term): New field named getwh and new initial
18334 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
18336 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
18337 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
18338 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
18339 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
18340 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
18341 of <grub/machine/ieee1275.h>.
18342 * commands/ieee1275/reboot.c: Likewise.
18343 * boot/powerpc/ieee1275/ieee1275.c: Move ...
18344 * kern/ieee1275.c: ... to here. All users updated. Change all
18345 parameter structs to use new type `grub_ieee1275_cell_t'.
18346 * term/powerpc/ieee1275/ofconsole.c: Move ...
18347 * term/ieee1275/ofconsole.c: ... to here. All users updated.
18348 * disk/powerpc/ieee1275/ofdisk.c: Move ...
18349 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
18350 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
18352 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
18353 Remove unused prototypes. All users updated.
18354 * include/grub/powerpc/ieee1275/console.h: Removed.
18355 * include/grub/powerpc/ieee1275/ieee1275.h: Define
18356 `grub_ieee1275_cell_t'.
18357 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
18358 Cast comparisons with -1 to the correct type.
18359 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
18360 type to match `grub_ieee1275_entry_fn'.
18362 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
18364 * DISTLIST: Added util/i386/pc/grub-probefs.c.
18366 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
18367 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
18369 (grub_probefs_SOURCES): New variable.
18371 * util/i386/pc/grub-probefs.c: New file.
18373 * util/i386/pc/grub-setup.c (main): Call
18374 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
18375 grub_hfs_init and grub_jfs_init to initialize the system. Call
18376 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
18377 grub_pc_partition_map_fini to finish the system.
18379 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
18381 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
18383 (grub_multiboot_load_elf32): Likewise.
18384 (grub_multiboot_is_elf64): Likewise.
18385 (grub_multiboot_load_elf64): Likewise.
18386 (grub_multiboot_load_elf): Likewise.
18387 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
18388 an ELF32 or ELF64 file.
18389 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
18391 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
18392 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
18393 NULL before calling FS->LABEL.
18394 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
18395 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
18396 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
18397 before calling FS->LABEL.
18399 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
18401 * util/i386/pc/grub-install.in (datadir): New variable.
18403 (pkgdatadir): New variable.
18404 (pkglibdir): Removed.
18406 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
18408 * DISTLIST: Added util/i386/pc/grub-install.in.
18410 * util/i386/pc/grub-install.in: New file.
18412 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
18413 (grub_install_SOURCES): Likewise.
18415 * genmk.rb: Added support for scripts.
18416 (Script): New class.
18417 (scripts): New variable.
18419 * Makefile.in (install-local): Install sbin_SCRIPTS by
18421 (uninstall): Remove sbin_SCRIPTS.
18423 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
18424 device, try to get a GRUB device by
18425 grub_util_biosdisk_get_grub_dev.
18428 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
18429 description for --device-map.
18431 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
18433 Change the semantics of variable hooks. They now return strings
18434 instead of error values.
18436 * util/i386/pc/grub-setup.c: Include grub/env.h.
18437 (setup): Use grub_device_set_root instead of grub_env_set.
18439 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
18440 grub_env_get instead of grub_device_set_root and
18441 grub_device_get_root, respectively.
18443 * kern/main.c (grub_env_write_root): New function.
18444 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
18445 grub_env_set instead of grub_device_set_root.
18447 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
18449 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
18450 rather than calling ENV->WRITE_HOOK afterwards.
18451 (grub_env_get): Return the result of ENV->READ_HOOK rather than
18452 passing a pointer of a pointer.
18453 (grub_register_variable_hook): Change the types of "read_hook" and
18454 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
18456 Allocate the default empty string on the heap, because this string
18457 may be freed later.
18459 * kern/device.c: Include grub/env.h.
18460 (grub_device_set_root): Removed.
18461 (grub_device_get_root): Likewise.
18462 (grub_device_open): Use grub_env_get instead of
18463 grub_device_get_root.
18465 * include/grub/env.h (grub_env_read_hook_t): New type.
18466 (grub_env_write_hook_t): Likewise.
18467 (grub_env_var): Change the types of "read_hook" and "write_hook"
18468 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
18469 (grub_register_variable_hook): Likewise.
18471 * include/grub/device.h (grub_device_set_root): Removed.
18472 (grub_device_set_root): Likewise.
18474 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
18475 make sure that DIRNAME terminates with '/', so that
18476 grub_fat_find_dir will fail if PATH is not a directory.
18478 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
18480 Use the qualifier auto for print_files and print_files_long.
18481 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
18483 Put a newline only if there is no error.
18484 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
18487 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
18489 * kern/partition.c (grub_partition_probe): Initialize PART to
18490 NULL. Otherwise, when no partition map is registered, this returns
18493 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
18495 * partmap/apple.c (apple_partition_map_iterate): Check if POS
18496 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
18499 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
18501 * commands/ls.c (grub_ls_list_disks): Print the filesystem
18502 information on each device, if it does not have partitions. Print
18503 "Device" instead of "Disk", because this function is not specific
18506 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
18507 static to ensure that it is put on the memory rather than a
18510 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
18512 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
18513 (grub_cat_init): Likewise.
18514 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
18515 (options): Likewise.
18516 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
18517 (grub_configfile_init): Likewise.
18518 * font/manager.c (GRUB_MOD_INIT): Likewise.
18519 * commands/help.c (GRUB_MOD_INIT): Likewise.
18520 (grub_help_init): Likewise.
18521 * normal/command.c (grub_command_init): Likewise.
18522 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
18523 * disk/loopback.c (grub_loop_init): Likewise.
18524 (GRUB_MOD_INIT): Likewise.
18525 * commands/ls.c (grub_ls_init): Likewise.
18526 (GRUB_MOD_INIT): Likewise.
18527 (options): Likewise.
18528 * commands/boot.c (grub_boot_init): Likewise.
18529 (GRUB_MOD_INIT): Likewise.
18530 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
18531 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
18532 (GRUB_MOD_INIT): Likewise.
18533 * commands/cmp.c (grub_cmp_init): Likewise.
18534 (GRUB_MOD_INIT): Likewise.
18536 * normal/arg.c: Use <> instead of "" to include header files.
18537 (SHORT_ARG_HELP): New macro.
18538 (SHORT_ARG_USAGE): Likewise.
18539 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
18540 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
18542 (find_short): Check if C is 'h' or 'u' explicitly.
18543 (grub_arg_show_help): Use space characters instead of tabs. Treat
18544 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
18545 are shown with --help and --usage only if they are not used for
18546 the command itself.
18547 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
18550 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
18551 const into "longarg". Change the type of "shortarg" to int.
18553 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
18555 * boot/i386/pc/boot.S (boot_drive_check): New label.
18557 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
18560 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
18561 which do not pass a boot drive correctly. Copied from GRUB Legacy.
18563 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
18565 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
18566 When turning off Gate A20, skip the check and return immediately,
18567 because this is not fatal usually.
18569 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
18571 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
18572 be 0x7C00 instead of 0x8000.
18574 * boot/i386/pc/pxeboot.S: Rewritten.
18576 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
18578 (gate_a20_check_state): Read a byte from 0x108000. Invert the
18581 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
18583 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
18584 robustness. This routine now supports a BIOS call and System
18585 Control Port A to modify the gate A20.
18587 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
18588 Increased to 0x440.
18590 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
18592 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
18593 device path and resulting ihandle.
18594 (grub_ofdisk_close): dprintf the ihandle being closed.
18595 (grub_ofdisk_read): dprintf function parameters.
18596 * kern/mm.c (grub_mm_init_region): Likewise.
18597 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
18598 (grub_linux_boot): dprintf the Linux entry point, initrd address and
18599 size, and boot arguments.
18600 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
18601 before loading into memory.
18602 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
18603 before loading into memory.
18605 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
18607 * kern/mm.c: Added much documentation.
18608 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
18609 8, set to 5 instead of 8.
18611 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
18613 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
18615 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
18616 (grub_mkdevicemap_SOURCES): New variable.
18618 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
18619 lib/device.c of GRUB Legacy.
18621 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
18623 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
18624 instead of PATH is NULL.
18626 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
18628 * commands/cmp.c (BUFFER_SIZE): New macro.
18629 (grub_cmd_cmp): Close the right file at the right time. Compare
18630 only data just read. Don't report files of different size as
18631 identical. Dynamically allocate buffers. Move variable
18632 declarations at the beginning of function.
18634 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
18636 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
18639 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
18641 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
18642 when backspace is pressed at beginning of line.
18644 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
18646 * DISTLIST: Added genfslist.sh.
18648 * normal/main.c (fs_module_list): New variable.
18649 (autoload_fs_module): New function.
18650 (read_fs_list): Likewise.
18651 (grub_normal_execute): Call read_fs_list.
18653 * kern/fs.c (grub_fs_autoload_hook): New variable.
18654 (grub_fs_probe): Added support for auto-loading.
18656 * include/grub/normal.h (struct grub_fs_module_list): New struct.
18657 (grub_fs_module_list_t): New type.
18659 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
18660 (grub_fs_autoload_hook): New prototype.
18662 * genfslist.sh: New file.
18664 * genmk.rb: Added a rule to generate a filesystem list.
18666 2005-06-30 Marco Gerards <metgerards@student.han.nl>
18668 * configure.ac: Fix the test for cross-compiling.
18670 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
18671 define GRUB_UTIL anymore.
18673 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
18674 so this function works on other systems than just big endian.
18675 (load_modules): Likewise.
18676 (add_segments): Likewise.
18678 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
18680 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
18681 contains `l' modifier, get a long from va_arg().
18683 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
18685 * kern/mm.c (grub_free): If the next free block which is being
18686 merged is the first free block, set the first block to the block
18688 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
18690 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
18692 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
18693 `grub_ieee1275_chosen'.
18695 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
18697 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
18698 (grub_ieee1275_chosen): New variable.
18699 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
18701 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
18702 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18703 Rename first argument to `phandle' for consistency.
18704 (grub_ieee1275_get_property_length): Likewise.
18705 (grub_ieee1275_next_property): Likewise. Change type of first argument
18706 to grub_ieee1275_phandle_t.
18707 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
18708 Move export next to declaration.
18709 (grub_ieee1275_chosen): New variable.
18710 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
18711 Correct cosmetic typo.
18712 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
18713 `grub_ieee1275_chosen'.
18714 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
18715 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
18716 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
18717 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
18718 `grub_ieee1275_chosen'.
18720 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
18722 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
18724 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
18725 /chosen/bootargs as "variable=value" pairs.
18727 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
18729 * include/grub/misc.h (grub_dprintf): New macro.
18730 (grub_real_dprintf): New prototype.
18731 (grub_strword): Likewise.
18732 (grub_iswordseparator): Likewise.
18733 * kern/misc.c (grub_real_dprintf): New function.
18734 (grub_strword): Likewise.
18735 (grub_iswordseparator): Likewise.
18737 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
18739 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
18740 (roundup): Remove macro.
18741 (grub_ieee1275_flags): Make static.
18742 (grub_ieee1275_realmode): Remove.
18743 (grub_ieee1275_test_flag): New function.
18744 (grub_ieee1275_set_flag): Likewise.
18745 (find_options): Rename to `grub_ieee1275_find_options'; update
18746 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
18747 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
18748 (cmain): New prototype.
18749 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
18750 `grub_ieee1275_flags' directly.
18751 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
18752 machine/biosdisk.h.
18753 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
18754 Don't include grub/machine/init.h.
18755 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
18756 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
18758 (grub_ieee1275_realmode): Likewise.
18759 (grub_ieee1275_flag): New enum.
18760 (grub_ieee1275_test_flag): New prototype.
18761 (grub_ieee1275_set_flag): New prototype.
18762 * include/grub/powerpc/ieee1275/init.h: Remove file.
18763 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
18764 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
18765 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
18766 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
18768 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
18769 `grub_ieee1275_test_flag'.
18770 (grub_ieee1275_encode_devname): Likewise.
18772 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
18774 * include/grub/powerpc/ieee1275/ieee1275.h
18775 (grub_ieee1275_encode_devname): New prototype.
18776 (grub_ieee1275_get_filename): Likewise.
18777 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
18779 (grub_set_prefix): Likewise.
18780 (grub_machine_init): Call grub_set_prefix.
18781 * kern/powerpc/ieee1275/openfw.c: Fix typos.
18782 (grub_parse_type): New enum.
18783 (grub_ieee1275_get_devargs): New function.
18784 (grub_ieee1275_get_devname): Likewise.
18785 (grub_ieee1275_parse_args): Likewise.
18786 (grub_ieee1275_get_filename): Likewise.
18787 (grub_ieee1275_encode_devname): Likewise.
18789 2005-03-30 Marco Gerards <metgerards@student.han.nl>
18791 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
18792 `grub_loader_unset'.
18794 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
18796 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
18797 instead of grub_ieee1275_interpret.
18798 (grub_halt_init): New function.
18799 (grub_halt_fini): Likewise.
18800 (GRUB_MOD_INIT): Correct message grammar.
18801 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
18802 instead of grub_ieee1275_interpret.
18803 (grub_reboot_init): New function.
18804 (grub_reboot_fini): Likewise.
18805 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
18806 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
18807 util/i386/pc/misc.c with commands/ieee1275/halt.c,
18808 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
18809 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
18811 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
18813 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
18815 (grub_halt): Likewise.
18816 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
18817 (cmain): Remove __attribute__((unused)).
18818 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
18819 (grub_heap_len): Likewise.
18820 (grub_machine_fini): New function.
18821 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
18822 (grub_halt): Likewise.
18823 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
18825 * util/powerpc/ieee1275/misc.c: New file.
18827 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
18829 * DISTLIST: New file.
18830 * gendistlist.sh: Likewise.
18832 * Makefile.in (COMMON_DISTFILES): Removed.
18833 (BOOT_DISTFILES): Likewise.
18834 (CONF_DISTFILES): Likewise.
18835 (DISK_DISTFILES): Likewise.
18836 (FS_DISTFILES): Likewise.
18837 (INCLUDE_DISTFILES): Likewise.
18838 (KERN_DISTFILES): Likewise.
18839 (LOADER_DISTFILES): Likewise.
18840 (TERM_DISTFILES): Likewise.
18841 (UTIL_DISTFILES): Likewise.
18842 (DISTFILES): Likewise.
18843 (uninstall): Uninstall files in $(pkgdata_DATA).
18844 (DISTLIST): New target.
18845 (distdir): Use the contents of the file DISTLIST to get a list of
18848 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
18850 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
18851 descriptor. This is ported from GRUB Legacy.
18853 * gencmdlist.sh: Added an extra semicolon to make it work with
18854 old sed versions. Reported by Robert Bihlmeyer
18855 <robbe@orcus.priv.at>.
18857 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
18859 Automatic loading of commands is supported.
18861 * normal/main.c (read_command_list): New function.
18862 (grub_normal_execute): Call read_command_list.
18864 * normal/command.c (grub_register_command): Return zero or CMD.
18865 Allocate CMD->NAME from the heap.
18866 Initialize CMD->MODULE_NAME to zero.
18867 Find the same name as well. If the same command is found and it is
18868 a dummy command, overwrite members. If it is not a dummy command,
18870 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
18871 (grub_command_find): If a dummy command is found, load a module
18872 and retry to find a command only once.
18874 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
18875 make sure that each command is loaded.
18877 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
18879 (struct grub_command): Remove const from the member `name'.
18880 Add a new member `module_name'.
18881 (grub_register_command): Return grub_command_t.
18883 * commands/help.c (grub_cmd_help): Call grub_command_find to make
18884 sure that each command is loaded.
18886 * genmk.rb (PModule::rule): Specify a module name without the
18887 suffix ".mod" to gencmdlist.sh.
18889 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18891 * gencmdlist.sh: New file.
18893 * genmk.rb (PModule::rule): Generate a rule for a command list.
18895 Generate command.lst from $(COMMANDFILES).
18897 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
18898 (DATA): Added $(pkgdata_DATA).
18899 (install-local): Install files in $(pkgdata_DATA).
18901 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18903 * term/i386/pc/vga.c (debug_command): Removed.
18904 (GRUB_MOD_INIT): Do not register the command "debug".
18906 From Hollis Blanchard:
18907 * commands/configfile.c: New file.
18908 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18909 commands/configfile.c.
18910 (pkgdata_MODULES): Added configfile.mod.
18911 (configfile_mod_SOURCES): New variable.
18912 (configfile_mod_CFLAGS): Likewise.
18913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18914 commands/configfile.c.
18915 (pkgdata_MODULES): Added configfile.mod.
18916 (configfile_mod_SOURCES): New variable.
18917 (configfile_mod_CFLAGS): Likewise.
18918 * util/grub-emu.c (main): Call grub_configfile_init and
18919 grub_configfile_fini.
18920 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
18922 [GRUB_UTIL] (grub_configfile_fini): Likewise.
18924 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18926 * normal/arg.c (grub_arg_show_help): Do not show the bug report
18929 * commands/help.c (grub_cmd_help): Do not print newlines after
18930 the last command in print_command_help.
18932 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18934 * commands/default.h: New file.
18935 * commands/timeout.h: Likewise.
18936 * normal/context.c: Likewise.
18938 * util/misc.c: Do not include sys/times.h.
18939 Include sys/time.h and grub/machine/time.h.
18940 (grub_get_rtc): Rewritten with gettimeofday.
18942 * util/grub-emu.c (main): Call grub_default_init and
18943 grub_timeout_init before grub_normal_init, and call
18944 grub_timeout_fini and grub_default_fini after grub_main.
18946 * util/console.c (grub_ncurses_checkkey): Return the read
18949 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
18952 * normal/main.c (read_config_file): Push MENU. If this fails,
18953 print an error and wait for a user input.
18954 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
18955 If a menu is empty or an error occurs, pop MENU.
18956 (grub_normal_execute): Pop and free MENU after grub_menu_run
18959 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
18961 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
18963 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18965 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
18967 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18970 * include/grub/normal.h (struct grub_menu_list): New struct.
18971 (grub_menu_list_t): New type.
18972 (struct grub_context): New struct.
18973 (grub_context_t): New type.
18974 (grub_register_command): Got rid of EXPORT_FUNC.
18975 (grub_unregister_command): Likewise.
18976 (grub_context_get): New prototype.
18977 (grub_context_get_current_menu): Likewise.
18978 (grub_context_push_menu): Likewise.
18979 (grub_context_pop_menu): Likewise.
18980 [GRUB_UTIL] (grub_default_init): Likewise.
18981 [GRUB_UTIL] (grub_default_fini): Likewise.
18982 [GRUB_UTIL] (grub_timeout_init): Likewise.
18983 [GRUB_UTIL] (grub_timeout_fini): Likewise.
18985 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
18986 commands/timeout.c and normal/context.c.
18987 (pkgdata_MODULES): Added default.mod and timeout.mod.
18988 (normal_mod_SOURCES): Added normal/context.c.
18989 (default_mod_SOURCES): New variable.
18990 (default_mod_CFLAGS): Likewise.
18991 (timeout_mod_SOURCES): Likewise.
18992 (timeout_mod_CFLAGS): Likewise.
18993 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
18995 (pkgdata_MODULES): Added default.mod and timeout.mod.
18996 (normal_mod_SOURCES): Added normal/context.c.
18997 (default_mod_SOURCES): New variable.
18998 (default_mod_CFLAGS): Likewise.
18999 (timeout_mod_SOURCES): Likewise.
19000 (timeout_mod_CFLAGS): Likewise.
19002 * Makefile.in (all-local): Added $(MKFILES).
19004 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
19006 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
19007 (grub_emu_SOURCES): Likewise.
19008 (pkgdata_MODULES): Add `sun.mod'.
19009 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
19010 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
19012 (pkgdata_MODULES): Add `sun.mod'.
19013 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
19014 * include/grub/partition.h (grub_sun_partition_map_init): New
19016 (grub_sun_partition_map_fini): Likewise.
19017 * partmap/sun.c: New file.
19018 * util/grub-emu.c (main): Initialize and de-initialize the sun
19019 partitionmap support.
19021 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
19023 This implements an Emacs-like menu entry editor.
19025 * normal/menu_entry.c: New file.
19027 * util/console.c (grub_ncurses_putchar): Translate some Unicode
19028 characters to ASCII.
19029 (saved_char): New variable.
19030 (grub_ncurses_checkkey): Rewritten completely.
19031 (grub_ncurses_getkey): Likewise.
19032 (grub_ncurses_init): Call raw instead of cbreak.
19034 * normal/menu.c (print_entry): Do not put a space.
19035 (init_page): Renamed to ...
19036 (grub_menu_init_page): ... this. All callers changed.
19037 (edit_menu_entry): Removed.
19038 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
19040 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
19042 * kern/misc.c (grub_vprintf): Call grub_refresh.
19044 * normal/menu.c (DISP_LEFT): Renamed to ...
19045 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
19046 * normal/menu.c (DISP_UP): Renamed to ...
19047 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
19048 * normal/menu.c (DISP_RIGHT): Renamed to ...
19049 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
19050 * normal/menu.c (DISP_DOWN): Renamed to ...
19051 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
19052 * normal/menu.c (DISP_HLINE): Renamed to ...
19053 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
19054 * normal/menu.c (DISP_VLINE): Renamed to ...
19055 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
19056 * normal/menu.c (DISP_UL): Renamed to ...
19057 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
19058 * normal/menu.c (DISP_UR): Renamed to ...
19059 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
19060 * normal/menu.c (DISP_LL): Renamed to ...
19061 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
19062 * normal/menu.c (DISP_LR): Renamed to ...
19063 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
19064 * normal/menu.c (TERM_WIDTH): Renamed to ...
19065 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
19066 * normal/menu.c (TERM_HEIGHT): Renamed to ...
19067 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
19068 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
19069 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
19070 * normal/menu.c (TERM_MARGIN): Renamed to ...
19071 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
19072 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
19073 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
19074 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
19075 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
19076 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
19077 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
19078 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
19079 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
19080 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
19081 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
19082 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
19083 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
19084 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
19085 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
19086 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
19087 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
19088 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
19089 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
19090 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
19091 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
19092 All callers changed.
19094 * include/grub/normal.h: New prototype.
19096 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
19097 normal/menu_entry.c.
19098 (normal_mod_SOURCES): Likewise.
19099 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19100 (normal_mod_SOURCES): Likewise.
19102 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
19104 * include/grub/normal.h (grub_halt_init): New prototype.
19105 (grub_halt_fini): Likewise.
19106 (grub_reboot_init): Likewise.
19107 (grub_reboot_fini): Likewise.
19109 * util/grub-emu.c: Include signal.h.
19110 (main_env): New global variable.
19111 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
19113 (grub_machine_fini): New function.
19114 (main): Call grub_halt_init and grub_reboot_init before
19115 grub_main, and grub_reboot_fini and grub_halt_fini after it.
19116 Call setjmp with MAIN_ENV to go back afterwards.
19117 Call grub_machine_fini right before return.
19119 * include/grub/util/misc.h: Include setjmp.h.
19120 (main_env): New prototype.
19122 * include/grub/kernel.h (grub_machine_fini): New prototype.
19123 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
19124 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
19126 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
19127 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
19128 * term/i386/pc/console.c (grub_console_fini): Likewise.
19130 * util/i386/pc/misc.c: New file.
19132 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
19133 util/i386/pc/misc.c, commands/i386/pc/halt.c and
19134 commands/i386/pc/reboot.c.
19136 2005-02-14 Guillem Jover <guillem@hadrons.org>
19138 * include/grub/dl.h (grub_dl_check_header): New prototype.
19139 (grub_arch_dl_check_header): Change return type to grub_err_t,
19140 remove size parameter and export function. Update all callers.
19141 * kern/dl.c (grub_dl_check_header): New function.
19142 (grub_dl_load_core): Use `grub_dl_check_header' instead of
19143 `grub_arch_dl_check_header'. Check ELF type. Check if sections
19144 are inside the core.
19145 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
19146 independent ELF header checks.
19147 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
19148 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
19149 `grub_dl_check_header' instead of explicit checks. Check for the
19151 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
19152 `grub_dl_check_header' instead of explicit checks. Remove arch
19153 specific ELF header checks.
19155 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
19158 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
19160 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
19161 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
19163 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
19165 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
19166 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
19167 (part_map_iterate): Clear `grub_errno' and return 0 if
19168 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
19169 * partmap/amiga.c (amiga_partition_map_iterate): Return
19170 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
19171 * partmap/apple.c (apple_partition_map_iterate): Likewise.
19173 2005-02-01 Guillem Jover <guillem@hadrons.org>
19175 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
19178 2005-01-31 Marco Gerards <metgerards@student.han.nl>
19180 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
19182 (grub_rescue_cmd_linux): New prototype.
19183 (grub_rescue_cmd_initrd): Likewise.
19184 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
19186 (grub_linux_release_mem): Release the memory for the initrd.
19187 (grub_load_linux): Renamed from this...
19188 (grub_rescue_cmd_linux): ...To this. Changed all callers.
19189 Changed `entry' not to be static. Loop over memory regions to
19190 find another one when the default fails.
19191 (grub_rescue_cmd_initrd): New function.
19192 (grub_linux_init): Remove function.
19193 (grub_linux_fini): Likewise.
19194 (GRUB_MOD_INIT): Register `initrd'.
19195 (GRUB_MOD_FINI): Unregister `initrd'.
19196 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
19198 (grub_linux_normal_fini): Likewise.
19199 (GRUB_MOD_INIT): Register `initrd'.
19200 (GRUB_MOD_FINI): Unregister `initrd'.
19202 2005-01-31 Marco Gerards <metgerards@student.han.nl>
19204 * commands/help.c: New file.
19205 * normal/arg.c (show_help): Renamed to...
19206 (grub_arg_show_help): ... this.
19207 * commands/i386/pc/halt.c: New file.
19208 * commands/i386/pc/reboot.c: Likewise.
19209 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
19210 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
19211 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
19212 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
19214 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
19216 (pkgdata_MODULES): Add `help.mod'.
19217 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
19218 * grub/i386/pc/init.h (grub_reboot): New prototype.
19219 (grub_halt): Likewise.
19220 * include/grub/normal.h (grub_arg_show_help): New prototype.
19221 (grub_help_init): Likewise.
19222 (grub_help_fini): Likewise.
19223 * util/grub-emu.c (main): Initialize and deinitialize the help
19226 * normal/cmdline.c (grub_cmdline_get): Doc fix.
19228 * normal/command.c (grub_command_init): Fixed the description of
19229 the `set' and `unset' commands.
19231 2005-01-31 Marco Gerards <metgerards@student.han.nl>
19233 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
19235 * commands/ieee1275/halt.c: New file.
19236 * commands/ieee1275/reboot.c: Likewise.
19237 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
19238 `__attribute__ ((unused))'. Some GCS related fixed.
19239 (grub_suspend_init) [GRUB_UTIL]: Function removed.
19240 (grub_suspend_fini): Likewise.
19241 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
19243 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
19244 (halt_mod_CFLAGS): New variables.
19245 * include/grub/powerpc/ieee1275/ieee1275.h
19246 (grub_ieee1275_interpret): New prototype.
19248 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
19250 * include/grub/misc.h (memmove): New prototype.
19251 (memcpy): Likewise.
19253 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
19255 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
19256 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
19258 2005-01-22 Marco Gerards <metgerards@student.han.nl>
19260 * kern/misc.c (grub_strndup): Function rewritten.
19262 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
19264 * normal/menu.c (TERM_WIDTH): Macro redefined.
19265 (TERM_TOP_BORDER_Y): Likewise.
19266 (draw_border): Replaced while-loop by a for-loop. Make the number
19267 of lines consistent with the number of lines displayed in
19268 print_entries. Added a margin below the rectangle.
19269 (print_entry): Make the entry fit in the rectangle.
19270 (print_entries): Display the scroll arrows next to the right
19273 2005-01-21 Marco Gerards <metgerards@student.han.nl>
19275 * fs/minix.c (grub_minix_find_file): Reserve more space for
19276 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
19277 `grub_strncpy' to copy `path' into it.
19279 2005-01-21 Marco Gerards <metgerards@student.han.nl>
19281 Add the loopback device, a device via which files can be accessed
19284 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
19285 (pkgdata_MODULES): Add loopback.mod.
19286 (loopback_mod_SOURCES): New variable.
19287 (loopback_mod_CFLAGS): Likewise.
19288 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
19290 (pkgdata_MODULES): Add loopback.mod.
19291 (loopback_mod_SOURCES): New variable.
19292 (loopback_mod_CFLAGS): Likewise.
19293 * disk/loopback.c: new file.
19294 * include/grub/normal.h (grub_loop_init): New prototype.
19295 (grub_loop_fini): New prototype.
19296 * util/grub-emu.c (main): Initialize and de-initialize loopback
19298 * include/grub/disk.h (grub_disk_dev_id): Add
19299 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
19301 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
19303 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
19305 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
19306 (suspend_mod_SOURCES): New variable.
19307 (suspend_mod_CFLAGS): Likewise.
19308 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
19310 * commands/ieee1275/suspend.c: New file.
19312 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
19314 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
19315 ((unused))' to `__attribute__ ((used))'.
19316 (GRUB_MOD_FINI): Likewise.
19317 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
19318 * genmk.rb (PModule): Assign space to common symbols when linking
19321 2005-01-20 Marco Gerards <metgerards@student.han.nl>
19323 * include/grub/mm.h (grub_mm_init_region): Change the type of the
19324 `unsigned' arguments to `grub_size_t'.
19325 (grub_malloc): Likewise.
19326 (grub_realloc): Likewise.
19327 (grub_memalign): Likewise.
19328 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
19329 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
19330 * util/misc.c (grub_malloc): Likewise.
19331 (grub_realloc): Likewise.
19332 * kern/mm.c (get_header_from_pointer): Change the casts to
19333 `unsigned' into a cast to `grub_size_t'.
19335 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
19336 point to `currnode' when `currnode' is changed.
19338 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
19339 Schottelius <nico-linux@schottelius.org>.
19341 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
19343 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
19344 (note_path): Remove variable.
19345 (GRUB_IEEE1275_NOTE_NAME): New macro.
19346 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
19347 (grub_ieee1275_note_hdr): New structure.
19348 (grub_ieee1275_note_desc): Likewise.
19349 (grub_ieee1275_note): Likewise.
19350 (load_note): Remove `dir' argument. All callers updated. Remove
19351 `note_img' and `path'. Do not load a file from `note_path'.
19352 Initialize a struct grub_ieee1275_note and write that to `out'.
19353 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
19355 2005-01-05 Marco Gerards <metgerards@student.han.nl>
19357 * util/misc.c (grub_util_read_image): Revert last change. It
19358 called `grub_util_read_at', which seeks from the beginning of the
19361 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
19363 * TODO: Add note about endianness in grub-mkimage.
19364 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
19366 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
19367 (grub_mkimage_SOURCES): New target.
19368 * include/grub/kernel.h (grub_start_addr): Remove variable.
19369 (grub_end_addr): Likewise.
19370 (grub_total_module_size): Likewise.
19371 (grub_kernel_image_size): Likewise.
19372 (GRUB_MODULE_MAGIC): New constant.
19373 (grub_module_info): New structure.
19374 (grub_arch_modules_addr): New prototype.
19375 (grub_get_end_addr): Remove prototype.
19376 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
19377 * include/grub/powerpc/ieee1275/kernel.h: New file.
19378 * include/grub/util/misc.h (grub_util_get_fp_size): New
19380 (grub_util_read_at): Likewise.
19381 (grub_util_write_image_at): Likewise.
19382 * kern/main.c (grub_get_end_addr): Remove function.
19383 (grub_load_modules): Call grub_arch_modules_addr instead of using
19384 grub_end_addr. Look for a grub_module_info struct in memory. Use
19385 the grub_module_info fields instead of calling grub_get_end_addr
19386 as loop conditions. Move grub_add_unused_region code here.
19387 (grub_add_unused_region): Remove function.
19388 * kern/i386/pc/init.c: Include grub/cache.h.
19389 (grub_machine_init): Remove call to grub_get_end_addr. Remove
19390 one call to add_mem_region.
19391 (grub_arch_modules_addr): New function.
19392 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
19393 (grub_total_module_size): Likewise.
19394 Include grub/machine/kernel.h.
19395 (grub_arch_modules_addr): New function.
19396 * util/grub-emu.c (grub_end_addr): Remove variable.
19397 (grub_total_module_size): Likewise.
19398 (grub_arch_modules_addr): New function.
19399 * util/misc.c: Include unistd.h.
19400 (grub_util_get_fp_size): New function.
19401 (grub_util_read_at): Likewise.
19402 (grub_util_write_image_at): Likewise.
19403 (grub_util_read_image): Call grub_util_read_at.
19404 (grub_util_write_image): Call grub_util_write_image_at.
19405 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
19406 additional memory in kernel_img for a struct grub_module_info.
19407 Fill in that grub_module_info.
19408 * util/powerpc/ieee1275/grub-mkimage.c: New file.
19410 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
19412 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
19414 * include/grub/powerpc/ieee1275/ieee1275.h
19415 (grub_ieee1275_milliseconds): New prototype.
19416 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
19418 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
19419 grub_ieee1275_milliseconds.
19421 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
19423 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
19425 (find_options): New function.
19426 (cmain): Call find_options.
19427 * include/grub/powerpc/ieee1275/ieee1275.h
19428 (grub_ieee1275_realmode): New extern variable.
19429 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
19430 grub_map if grub_ieee1275_realmode is false.
19432 2004-12-29 Marco Gerards <metgerards@student.han.nl>
19434 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
19435 lines are inserted and make it work like readline. Reported by
19436 Vincent Pelletier <subdino2004@yahoo.fr>.
19438 2004-12-28 Marco Gerards <metgerards@student.han.nl>
19440 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
19442 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
19443 `kern/powerpc/cache.S'.
19445 2004-12-27 Marco Gerards <metgerards@student.han.nl>
19447 * genmk.rb: Handle the `Program' class in the main loop. Written
19448 by Johan Rydberg <jrydberg@gnu.org>.
19449 (Program): New class.
19450 (programs): New variable.
19451 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
19452 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
19453 instead of "grub/kernel.h". Include <grub/machine/init.h>.
19454 (help_arch): Function removed.
19455 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
19456 `powerpc/libgcc.h' and `loader.h'.
19457 (pkgdata_PROGRAMS): New variable.
19458 (sbin_UTILITIES): Variable removed.
19459 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
19460 (grubof_SOURCES): Variable re-defined so it only includes the
19461 core functionality.
19462 (grubof_CFLAGS): Remove `-DGRUBOF'.
19463 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
19464 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
19465 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
19466 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
19467 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
19468 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
19469 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
19470 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
19471 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
19472 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
19473 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
19474 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
19475 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
19476 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
19477 (pc_mod_CFLAGS): New variables.
19478 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
19479 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
19480 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
19481 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
19483 * include/grub/i386/pc/init.h (grub_os_area_addr)
19484 (rub_os_area_size): ... to here.
19485 * include/grub/powerpc/ieee1275/ieee1275.h
19486 (grub_ieee1275_entry_fn): Export symbol.
19487 * include/grub/powerpc/ieee1275/init.h: New file.
19488 * include/grub/powerpc/libgcc.h: Likewise.
19489 * include/grub/cache.h: Likewise.
19490 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
19491 <hollis@penguinppc.org>.
19492 * kern/dl.c: Include <grub/cache.h>.
19493 (grub_dl_flush_cache): New function.
19494 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
19496 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
19497 (grub_console_init): Removed prototypes.
19498 (grub_machine_init): Don't initialize the modules anymore.
19499 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
19501 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
19502 Macro undef removed.
19503 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
19504 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
19505 relocation `R_PPC_REL32'. Return an error when the relocation is
19507 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
19508 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
19509 * util/misc.c (grub_arch_sync_caches): Likewise.
19511 2004-12-19 Marco Gerards <metgerards@student.han.nl>
19513 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
19514 `symlist.c', add `grubof_symlist.c'.
19515 (symlist.c): Variable removed.
19516 (grubof_HEADERS): Variable added.
19517 (grubof_symlist.c): New target.
19518 (kernel_syms.lst): Use `grubof_HEADERS' instead of
19519 `kernel_img_HEADERS'.
19520 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
19521 * kern/powerpc/dl.c: New file.
19522 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
19524 (grub_arch_dl_relocate_symbols): Likewise.
19525 (grub_register_exported_symbols): Likewise.
19527 2004-12-13 Marco Gerards <metgerards@student.han.nl>
19529 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
19530 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
19531 to fail instead. Reported by Vincent Pelletier
19532 <subdino2004@yahoo.fr>.
19534 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
19535 it is not allocated. Reported by Vincent Pelletier
19536 <subdino2004@yahoo.fr>.
19538 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
19539 output so the output looks better.
19541 2004-12-04 Marco Gerards <metgerards@student.han.nl>
19543 Modulize the partition map support and add support for the amiga
19546 * commands/ls.c: Include <grub/partition.h> instead of
19547 <grub/machine/partition.h>.
19548 * kern/disk.c: Likewise.
19549 * kern/rescue.c: Likewise.
19550 * loader/i386/pc/chainloader.c: Likewise.
19551 * normal/cmdline.c: Likewise.
19552 * kern/powerpc/ieee1275/init.c: Likewise.
19553 (grub_machine_init): Call `grub_pc_partition_map_init',
19554 `grub_amiga_partition_map_init' and
19555 `grub_apple_partition_map_init'.
19556 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
19557 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
19558 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
19559 `partition.h' and `pc_partition.h'.
19560 (grub_setup_SOURCES): Remove
19561 `disk/i386/pc/partition.c'. Add `kern/partition.c',
19562 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
19563 (grub_emu_SOURCES): Likewise.
19564 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
19565 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
19566 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
19567 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
19568 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
19569 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
19570 (grubof_SOURCES): Likewise.
19571 * disk/i386/pc/partition.c: File removed.
19572 * disk/powerpc/ieee1275/partition.c: Likewise.
19573 * include/grub/powerpc/ieee1275/partition.h: Likewise.
19574 * include/grub/i386/pc/partition.h: Likewise.
19575 * kern/partition.c: New file.
19576 * partmap/amiga.c: Likewise.
19577 * partmap/apple.c: Likewise.
19578 * partmap/pc.c: Likewise.
19579 * include/grub/partition.h: Likewise..
19580 * include/grub/pc_partition.h: Likewise.
19581 * util/grub-emu.c: Include <grub/partition.h> instead of
19582 <grub/machine/partition.h>.
19583 (main): Call `grub_pc_partition_map_init',
19584 `grub_amiga_partition_map_init' and
19585 `grub_apple_partition_map_init' and deinitialize afterwards.
19586 * util/i386/pc/biosdisk.c: Include `#include
19587 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
19588 `<grub/machine/partition.h>'.
19589 * util/i386/pc/grub-setup.c: Likewise.
19590 * util/i386/pc/biosdisk.c: Likewise.
19591 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
19592 partition information in case of a PC partition.
19593 * util/i386/pc/grub-setup.c: Include `#include
19594 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
19595 `<grub/machine/partition.h>'.
19596 (setup): Only access the PC specific partition information in case
19599 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
19601 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
19602 (grub_longjmp): Likewise.
19603 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
19605 * normal/powerpc/setjmp.S: New file.
19606 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
19607 `normal/powerpc/setjmp.S'.
19608 (grubof_CFLAGS): Add `-DGRUBOF'.
19609 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
19610 [GRUB_UTIL && !GRUBOF].
19612 2004-11-16 Marco Gerards <metgerards@student.han.nl>
19614 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
19615 property named `name'. Correctly handle the error returned by
19616 `grub_ieee1275_finddevice' if a device can not be opened.
19618 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
19620 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
19621 `actual' for negativity.
19622 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
19625 2004-11-01 Marco Gerards <metgerards@student.han.nl>
19627 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
19628 (PAGE_OFFSET): New macro.
19629 (CRTC_ADDR_PORT): Likewise.
19630 (CRTC_DATA_PORT): Likewise.
19631 (START_ADDR_HIGH_REGISTER): Likewise.
19632 (START_ADDR_LOW_REGISTER): Likewise.
19633 (GRAPHICS_ADDR_PORT): Likewise.
19634 (GRAPHICS_DATA_PORT): Likewise.
19635 (READ_MAP_REGISTER): Likewise.
19636 (INPUT_STATUS1_REGISTER): Likewise.
19637 (INPUT_STATUS1_VERTR_BIT): Likewise.
19638 (page): New variable.
19639 (wait_vretrace): New function.
19640 (set_read_map): Likewise.
19641 (set_start_address): Likewise.
19642 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
19644 (check_vga_mem): Take the page into account.
19645 (write_char): Likewise.
19646 (write_cursor): Likewise.
19647 (scroll_up): Likewise. Copy the page to the page that is not
19648 shown and switch between both pages.
19649 (grub_vga_putchar): Fix off by one error.
19650 (grub_vga_cls): Wait for the vertical retrace. Take the page into
19653 2004-11-01 Marco Gerards <metgerards@student.han.nl>
19655 Add support for iso9660 (including rockridge).
19657 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
19658 (iso9660_mod_SOURCES): New variable.
19659 (iso9660_mod_CFLAGS): Likewise.
19660 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
19661 * include/grub/fs.h (grub_iso9660_init): New prototype.
19662 * util/grub-emu.c (main): Call `grub_iso9660_init'.
19663 * fs/iso9660.c: New file.
19665 * include/grub/misc.h (grub_strncat): New prototype.
19666 * kern/misc.c (grub_strncat): New function.
19668 * fs/hfs.c (grub_hfs_mount): Translate the error
19669 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
19670 * fs/jfs.c (grub_jfs_mount): Likewise.
19671 * fs/ufs.c (grub_ufs_mount): Likewise.
19673 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
19675 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
19676 which initialized BAT registers.
19677 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
19678 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
19680 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
19681 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
19683 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
19684 (grub_mapclaim): Likewise.
19685 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
19686 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
19689 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
19691 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
19692 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
19693 -ffreestanding and -msoft-float.
19695 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
19697 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
19698 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
19699 set in grub_ieee1275_flags.
19701 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
19703 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
19705 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
19706 grub_console_init first.
19707 Change the memory range used for grub_ieee1275_claim and
19708 grub_mm_init_region.
19709 Print an error message if the claim fails.
19710 Include <grub/misc.h>.
19712 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
19714 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
19715 Call grub_children_iterate for device nodes of type `scsi',
19717 (grub_ofdisk_open): Remove manual device alias resolution.
19718 Fix memory leak when device cannot be opened.
19719 * include/grub/powerpc/ieee1275/ieee1275.h
19720 (grub_children_iterate): New prototype.
19721 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
19723 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
19724 Return -1 if args.size was -1.
19726 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
19728 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
19729 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
19730 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
19731 Open Firmware's memory for it; claim memory from _start to _end.
19732 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
19733 (_end): New extern.
19734 (_start): Zero BSS from __bss_start to _end.
19735 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
19737 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
19739 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
19741 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
19742 -1 if args.base was -1.
19744 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
19746 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
19747 escape sequence instead of a literal ^L. Also call
19748 grub_ofconsole_gotoxy.
19750 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
19752 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
19753 void * arguments to grub_addr_t. All callers updated. Also make
19754 the `result' argument optional.
19755 (grub_ieee1275_release): change void * arguments to grub_addr_t.
19756 All callers updated.
19758 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
19760 * commands/ls.c (grub_ls_list_files): Use the string following the
19761 initial ')', if present, as the filesystem path.
19762 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
19764 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
19766 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
19768 Make the source code of the menu interface more readable.
19770 * normal/menu.c: Include grub/mm.h.
19771 (TERM_WIDTH): New macro.
19772 (TERM_HEIGHT): Likewise.
19773 (TERM_INFO_HEIGHT): Likewise.
19774 (TERM_MARGIN): Likewise.
19775 (TERM_SCROLL_WIDTH): Likewise.
19776 (TERM_TOP_BORDER_Y): Likewise.
19777 (TERM_LEFT_BORDER_X): Likewise.
19778 (TERM_BORDER_WIDTH): Likewise.
19779 (TERM_MESSAGE_HEIGHT): Likewise.
19780 (TERM_BORDER_HEIGHT): Likewise.
19781 (TERM_NUM_ENTRIES): Likewise.
19782 (TERM_FIRST_ENTRY_Y): Likewise.
19783 (TERM_ENTRY_WIDTH): Likewise.
19784 (TERM_CURSOR_X): Likewise.
19785 (draw_border): Use macros instead of magic numbers.
19786 (print_entry): Likewise.
19787 (print_entries): Likewise.
19788 (run_menu): Likewise. Also, handle the key 'e'.
19789 (run_menu_entry): Ignore empty command lines.
19790 (print_message): Added a new argument EDIT. If EDIT is true,
19791 print a different message.
19792 (init_page): Likewise.
19793 (edit_menu_entry): New function. Not implemented yet.
19795 2004-09-17 Marco Gerards <metgerards@student.han.nl>
19797 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
19798 can be loaded from normal mode.
19800 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
19802 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
19803 (multiboot_mod_CFLAGS): New variables.
19804 * loader/i386/pc/linux_normal.c: New file.
19805 * loader/i386/pc/multiboot_normal.c: Likewise.
19807 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
19808 attribute `unused'.
19810 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
19811 `fdiro' to read the mode information from instead of `diro'.
19813 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
19814 looking up a symlink.
19816 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
19818 * normal/command.c (grub_command_execute): Don't parse the
19819 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
19820 flags of the command.
19822 * normal/menu.c (grub_menu_run): Fix typo.
19824 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
19826 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
19828 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
19829 `y + 1' instead of `y - 1'.
19831 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
19833 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
19835 From Hollis Blanchard <hollis@penguinppc.org>:
19836 * kern/misc.c (memmove): New alias for grub_memmove.
19837 (memcmp): New alias for grub_memcmp.
19838 (memset): New alias for grub_memset.
19839 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
19840 Change "int handle" to "grub_ieee1275_phandle_t handle".
19841 * include/grub/powerpc/ieee1275/ieee1275.h
19842 (grub_ieee1275_get_property): Likewise.
19844 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
19846 Added normal mode command `chainloader' as module chain.mod, which
19847 depends on normal.mod and _chain.mod.
19849 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
19850 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
19851 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
19853 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
19854 but arguments parsing moved to ...
19855 (grub_chainloader_cmd): ... here. New function.
19856 * include/grub/i386/pc/chainloader.h: New file.
19857 * loader/i386/pc/chainloader_normal.c: Likewise.
19859 2004-09-11 Marco Gerards <metgerards@student.han.nl>
19861 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
19862 (grub_mkimage_LDFLAGS): Likewise.
19863 (grub_emu_SOURCES): Likewise.
19864 (kernel_img_HEADERS): Added fshelp.h.
19865 * fs/ext2.c: Include <grub/fshelp.h>.
19866 (FILETYPE_REG): New macro.
19867 (FILETYPE_INO_REG): Likewise.
19868 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
19870 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
19872 (grub_fshelp_node): New struct.
19873 (grub_ext2_data): Added member `diropen'. Changed member `inode'
19875 (grub_ext2_get_file_block): Removed function.
19876 (grub_ext2_read_block): New function.
19877 (grub_ext2_read_file): Replaced parameter `data' by `node'.
19878 This function was written.
19879 (grub_ext2_mount): Read the root inode. Create a diropen struct.
19880 (grub_ext2_find_file): Removed function.
19881 (grub_ext2_read_symlink): New function.
19882 (grub_ext2_iterate_dir): Likewise.
19883 (grub_ext2_open): Rewritten.
19884 (grub_ext2_dir): Rewritten.
19885 * include/grub/fshelp.h: New file.
19886 * fs/fshelp.c: Likewise.
19888 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
19890 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
19891 (print_message): Add a missing newline.
19892 (run_menu): Added timeout support.
19893 (run_menu_entry): New local function.
19894 (grub_menu_run): Added support for booting.
19896 * kern/loader.c (grub_loader_is_loaded): New function.
19898 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
19899 (grub_get_rtc): Exported.
19901 * include/grub/i386/pc/time.h: Include grub/symbol.h.
19902 (grub_get_rtc): Exported.
19904 * include/grub/normal.h (struct grub_command_list): Remove
19905 constant from the member `command'.
19907 * include/grub/loader.h (grub_loader_is_loaded): Declared.
19909 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
19911 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
19913 2004-08-28 Marco Gerards <metgerards@student.han.nl>
19915 Add support for the JFS filesystem.
19917 * fs/jfs.c: New file.
19918 * include/grub/fs.h (grub_jfs_init): New prototype.
19919 (grub_jfs_fini): New prototype.
19920 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
19921 (grub_emu_SOURCES): Likewise.
19922 (pkgdata_MODULES): Add jfs.mod.
19923 (jfs_mod_SOURCES): New variable.
19924 (jfs_mod_CFLAGS): Likewise.
19925 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
19926 (grubof_SOURCES): Likewise.
19927 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
19929 * fs/fat.c (grub_fat_find_dir): Convert the filename little
19930 endian to the host endian.
19931 (grub_fat_utf16_to_utf8): Move function from there...
19932 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
19933 the endianness of the source string anymore.
19934 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
19936 2004-08-24 Marco Gerards <metgerards@student.han.nl>
19938 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
19939 (grub_boot_fini) [GRUB_UTIL]: Likewise.
19940 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
19941 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
19943 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
19944 (grub_hfs_iterate_dir): Make the function static. Add prototypes
19945 for `node_found' and `it_dir'.
19946 (grub_hfs_dir): Add prototype for `dir_hook'.
19948 * fs/minix.c (grub_minix_get_file_block): Add prototype for
19949 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
19950 and `indir32' to silence a gcc warning.
19952 * include/grub/fs.h (grub_hfs_init): New prototype.
19953 (grub_hfs_fini): Likewise.
19956 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
19958 Each disk device has its own id now. This is useful to make use
19959 of multiple disk devices.
19961 * include/grub/disk.h (grub_disk_dev_id): New enum.
19962 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
19963 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
19965 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
19966 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19968 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
19969 GRUB_DISK_DEVICE_OFDISK_ID as an id.
19971 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
19972 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19974 * include/grub/disk.h (struct grub_disk_dev): Added a new member
19975 "id" which is used by the cache manager.
19977 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
19980 2004-08-18 Marco Gerards <metgerards@student.han.nl>
19982 * fs/hfs.c: New file.
19983 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
19984 (grub_emu_SOURCES): Likewise.
19985 (pkgdata_MODULES): Add hfs.mod.
19986 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
19987 (grubof_SOURCES): Likewise.
19988 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
19990 * include/grub/misc.h (grub_strncasecmp): Add prototype.
19991 * kern/misc.c (grub_strncasecmp): Add function.
19993 2004-08-14 Marco Gerards <metgerards@student.han.nl>
19995 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
19998 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
19999 (grub_ext2_dir): In case the directory entry type is unknown, read
20002 2004-08-02 Peter Bruin <pjbruin@dds.nl>
20004 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
20005 grub_load_linux instead of grub_rescue_cmd_linux as second
20006 argument of grub_rescue_register_command.
20008 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
20010 2004-07-27 Marco Gerards <metgerards@student.han.nl>
20012 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
20014 * commands/boot.c: Remove the check for `GRUB_UTIL'.
20015 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
20016 `loader/powerpc/ieee1275/linux.c',
20017 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
20018 * include/grub/powerpc/ieee1275/ieee1275.h
20019 (grub_ieee1275_release): New prototype.
20020 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
20021 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
20022 normal, boot, linux and linux_normal.
20023 * loader/powerpc/ieee1275/linux.c: New file.
20024 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20026 2004-07-12 Marco Gerards <metgerards@student.han.nl>
20028 * normal/arg.c (grub_arg_parse): Correct error handling after
20029 reallocating the argumentlist (check if `argl' is not null instead
20030 of checking if `args' is not null).
20031 * kern/mm.c (grub_realloc): Return the same pointer when using the
20032 same region, instead of returning the header address.
20034 2004-07-11 Marco Gerards <metgerards@student.han.nl>
20036 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
20037 one block instead of two when looking for the initial partition.
20038 (grub_partition_probe): Initialize the local variable `p' with 0.
20039 Use base 10 for the grub_strtoul call.
20040 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
20041 need for one local variable.
20042 (grub_strtoul): Don't add the new value to `num', instead of that
20045 2004-07-11 Marco Gerards <metgerards@student.han.nl>
20047 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
20048 (pxeboot_img_SOURCES): New variable.
20049 (pxeboot_img_ASFLAGS): Likewise.
20050 (pxeboot_img_LDFLAGS): Likewise.
20051 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
20052 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
20053 <lode_leroy@hotmail.com>.
20055 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
20057 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
20058 there was no input.
20060 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
20062 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
20063 the history buffer logic.
20065 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
20067 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
20068 (FILETYPE_INO_SYMLINK): New macros.
20069 (grub_ext2_find_file): Check if the node is a directory using the
20070 inode stat information instead of using the filetype in the
20071 dirent. Exclude the first character of an absolute symlink.
20072 (grub_ext2_dir): Mask out the filetype part of the mode member of
20075 2004-05-24 Marco Gerards <metgerards@student.han.nl>
20077 Add support for UFS version 1 and 2. Add support for the minix
20078 filesystem version 1 and 2, both the variants with 14 and 30 long
20081 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
20083 (grub_emu_SOURCES): Likewise.
20084 (pkgdata_MODULES): Add ufs.mod and minix.mod.
20085 (ufs_mod_SOURCES): New variable.
20086 (ufs_mod_CFLAGS): Likewise.
20087 (minix_mod_SOURCES): Likewise.
20088 (minix_mod_CFLAGS): Likewise.
20089 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
20091 (grubof_SOURCES): Likewise.
20092 * fs/ufs.c: New file.
20093 * fs/minix.c: New file.
20094 * include/grub/fs.h (grub_ufs_init): New prototype.
20095 (grub_ufs_fini): Likewise.
20096 (grub_minix_init): Likewise.
20097 (grub_minix_fini): Likewise.
20098 * util/grub-emu.c (main): Initialize and deinitialize UFS and
20101 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
20103 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
20104 commands/ls.c, commands/terminal.c, commands/boot.c,
20105 commands/cmp.c and commands/cat.c.
20106 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
20108 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
20111 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
20113 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
20114 and grub_, respectively. Because the conversion is trivial and
20115 mechanical, I omit the details here. Please refer to the CVS
20116 if you need more information.
20118 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
20120 * include/pupa: Renamed to ...
20121 * include/grub: ... this.
20122 * util/i386/pc/pupa-mkimage.c: Renamed to ...
20123 * util/i386/pc/grub-mkimage.c: ... this.
20124 * util/i386/pc/pupa-setup.c: Renamed to ...
20125 * util/i386/pc/grub-setup.c: ... this.
20126 * util/pupa-emu.c: Renamed to ...
20127 * util/grub-emu.c: ... this.
20129 2004-03-29 Marco Gerards <metgerards@student.han.nl>
20131 Add support for the newworld apple macintosh (PPC). This has been
20132 tested on the powerbook 2000 only. It only adds support for
20133 generic ieee1275 functions, console and disk support. This should
20134 be easy to port to other architectures with support for Open
20137 * configure.ac: Accept the powerpc as host_cpu. In the case of
20138 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
20139 specific tests are only executed while building for the i386.
20140 Inverse test for crosscompile.
20141 * genmk.rb (Utility): Allow assembler files.
20142 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
20143 * conf/powerpc-ieee1275.rmk: New file.
20144 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
20145 * disk/powerpc/ieee1275/partition.c: Likewise.
20146 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
20147 * include/pupa/powerpc/ieee1275/console.h: Likewise.
20148 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
20149 * include/pupa/powerpc/ieee1275/time.h: Likewise.
20150 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
20151 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
20152 * include/pupa/powerpc/ieee1275/loader.h
20153 * include/pupa/powerpc/setjmp.h: Likewise.
20154 * include/pupa/powerpc/types.h: Likewise.
20155 * kern/powerpc/ieee1275/init.c: Likewise.
20156 * kern/powerpc/ieee1275/openfw.c: Likewise.
20157 * term/powerpc/ieee1275/ofconsole.c: Likewise.
20159 These files were written by Johan Rydberg
20160 (jrydberg@night.trouble.net) and I only modified them slightly.
20162 * boot/powerpc/ieee1275/cmain.c: New file.
20163 * boot/powerpc/ieee1275/crt0.S: Likewise.
20164 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
20165 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
20167 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
20169 * Makefile.in: Update copyright.
20170 * genmodsrc.sh: Likewise.
20171 * gensymlist.sh: Likewise.
20172 * term/i386/pc/vga.c: Indent correctly.
20174 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
20175 bugreporting address.
20176 * util/i386/pc/pupa-setup.c (usage): Likewise,
20177 (main): Call pupa_ext2_init and pupa_ext2_fini.
20179 * fs/fat.c (log2): Renamed to ...
20180 (fat_log2): ... this.
20181 All callers changed.
20182 * kern/misc.c (memcpy): Alias to pupa_memmove.
20183 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
20185 * util/console.c (pupa_ncurses_fini): Return 0.
20187 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
20188 Move fail label here.
20189 [__GNU__]: Don't warn when using stat.
20190 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
20191 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
20192 long int. Use strtol instead of strtoul.
20194 2004-03-14 Marco Gerards <metgerards@student.han.nl>
20196 * commands/boot.c: New file.
20197 * commands/cat.c: Likewise.
20198 * commands/cmp.c: Likewise.
20199 * commands/ls.c: Likewise.
20200 * commands/terminal.c: Likewise.
20201 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
20202 (pupa_register_command): Changed interface to match the new
20204 (pupa_command_execute): Changed (almost rewritten) so it uses
20205 pupa_split_command. Added support for setting variables using the
20207 (rescue_command): Changed to work with the new argument parser.
20208 (terminal_command): Moved from here to commands/terminal.c.
20209 (set_command): New function.
20210 (unset_command): New function.
20211 (insmod_command): New function.
20212 (rmmod_command): New function.
20213 (lsmod_command): New function.
20214 (pupa_command_init): Don't initialize the command terminal
20215 anymore. Initialize the commands set, unset, insmod, rmmod and
20217 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
20218 (kernel_img_HEADERS): Add arg.h and env.h.
20219 (pupa_mkimage_LDFLAGS): Add kern/env.c.
20220 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
20221 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
20223 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
20225 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
20226 (boot_mod_SOURCES): New variable.
20227 (terminal_mod_SOURCES): Likewise.
20228 (ls_mod_SOURCES): Likewise.
20229 (cmp_mod_SOURCES): Likewise.
20230 (cat_mod_SOURCES): Likewise.
20232 * normal/arg.c: New file.
20233 * kern/env.c: Likewise.
20234 * include/pupa/arg.h: Likewise.
20235 * include/pupa/env.h: Likewise.
20236 * font/manager.c (font_command): Changed to match argument parsing
20238 (PUPA_MOD_INIT): Likewise.
20239 * hello/hello.c (pupa_cmd_hello): Likewise.
20240 (PUPA_MOD_INIT): Likewise.
20241 * include/pupa/disk.h: Include <pupa/device.h>.
20242 (pupa_print_partinfo): New prototype.
20243 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
20244 (pupa_dl_get_prefix): Likewise.
20245 * include/pupa/misc.h: Include <pupa/err.h>.
20246 (pupa_isgraph): New prototype.
20247 (pupa_isdigit): Likewise.
20248 (pupa_split_cmdline): Likewise.
20249 * include/pupa/normal.h: Include <pupa/arg.h>.
20250 (pupa_command): Changed the prototype of the member `func' to
20251 match the argument parsing interface. Added member `options'.
20252 (pupa_register_command): Updated to match function.
20253 (pupa_arg_parse): New prototype.
20254 (pupa_hello_init) [PUPA_UTIL]: New prototype.
20255 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
20256 (pupa_ls_init) [PUPA_UTIL]: Likewise.
20257 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
20258 (pupa_cat_init) [PUPA_UTIL]: Likewise.
20259 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
20260 (pupa_boot_init) [PUPA_UTIL]: Likewise.
20261 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
20262 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
20263 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
20264 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
20265 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
20266 * kern/disk.c: Include <pupa/file.h>.
20267 (pupa_print_partinfo): New function.
20268 * kern/dl.c: Include <pupa/env.h>.
20269 (pupa_dl_dir): Variable removed.
20270 (pupa_dl_load): Use the environment variable `prefix' instead of
20271 the variable pupa_dl_dir.
20272 (pupa_dl_set_prefix): Function removed.
20273 (pupa_dl_get_prefix): Likewise.
20274 * kern/i386/pc/init.c: Include <pupa/env.h>.
20275 (pupa_machine_init): Use the environment variable `prefix' instead of
20276 using pupa_dl_set_prefix to set the prefix.
20277 * kern/main.c: Include <pupa/env.h>.
20278 (pupa_set_root_dev): Use the environment variable `prefix' instead of
20279 using pupa_dl_get_prefix to get the prefix.
20280 * kern/misc.c: Include <pupa/env.h>.
20281 (pupa_isdigit): New function.
20282 (pupa_isgraph): Likewise.
20283 (pupa_ftoa): Likewise.
20284 (pupa_vsprintf): Added support for printing values of the type
20285 `double'. Make it possible to format variable output when using
20286 formatting like `%1.2%f'.
20287 (pupa_split_cmdline): New function.
20288 * kern/rescue.c: Include <pupa/env.h>.
20289 (next_word): Removed function.
20290 (pupa_rescue_cmd_prefix): Likewise.
20291 (pupa_rescue_cmd_set): New function.
20292 (pupa_rescue_cmd_unset): New function.
20293 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
20294 split the command line instead of splitting it here. Added
20295 support for setting variables using the syntax `foo=bar'. Don't
20296 initialize the prefix command anymore. Initialized the set and
20298 * normal/cmdline.c: Include <pupa/env.h>.
20299 (pupa_tab_complete): Added prototypes for print_simple_completion,
20300 print_partition_completion, add_completion, iterate_commands,
20301 iterate_dev, iterate_part and iterate_dir. Moved code to print
20302 partition information from here to kern/disk.c.
20303 (pupa_cmdline_run): Don't check if the function exists anymore.
20304 * normal/main.c: Include <pupa/env.h>.
20305 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
20306 instead of using pupa_dl_get_prefix to get the prefix.
20307 * term/i386/pc/vga.c: Include <pupa/arg.h>.
20308 (check_vga_mem): Cast pointers to `void *' to silence a gcc
20310 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
20311 (pupa_vga_setcolor): Declare unused variables with `__attribute__
20312 ((unused))' to silence a gcc warning.
20313 (pupa_vga_setcolor): Likewise.
20314 (debug_command): Changed to match argument parsing
20316 * util/pupa-emu.c: Include <pupa/env.h>.
20317 (options): Added 0's for unused fields to silence a gcc warning.
20319 (main): Use the environment variable `prefix' instead of using
20320 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
20321 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
20324 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
20325 * util/misc.c: Include <malloc.h>.
20326 (pupa_malloc): Rewritten so errors are correctly reported.
20327 (pupa_realloc): Likewise.
20328 (pupa_memalign): Likewise.
20329 (pupa_mm_init_region): Declare unused variables with
20330 `__attribute__ ((unused))' to silence a gcc warning.
20331 * normal/i386/setjmp.S: Remove tab at the end of the file to
20332 silence a gcc warning.
20333 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
20334 variables with `__attribute__ ((unused))' to silence a gcc
20336 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
20337 local variable i unsigned to silence a gcc warning.
20339 * kern/term.c: Include <pupa/misc.h>.
20340 (pupa_more_lines): New variable.
20341 (pupa_more): Likewise.
20342 (pupa_putcode): When the pager is active pause at the end of every
20344 (pupa_set_more): New function.
20345 * include/pupa/term.h (pupa_set_more): New prototype.
20348 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
20350 Now this project is GRUB 2 rather than PUPA. The location of
20351 the CVS repository was moved to GRUB's.
20353 * configure.ac: Use bug-grub as the reporting address.
20354 Use GRUB instead of PUPA.
20355 Change the version number to 1.90.
20357 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
20359 * genkernsyms.sh: Updated copyright information.
20360 * genmk.rb: Likewise.
20361 * genmodsrc.sh: Likewise.
20362 * gensymlist.sh: Likewise.
20363 * boot/i386/pc/boot.S: Likewise.
20364 * boot/i386/pc/diskboot.S: Likewise.
20365 * disk/i386/pc/biosdisk.c: Likewise.
20366 * disk/i386/pc/partition.c: Likewise.
20367 * font/manager.c: Likewise.
20368 * fs/ext2.c: Likewise.
20369 * fs/fat.c: Likewise.
20370 * include/pupa/boot.h: Likewise.
20371 * include/pupa/device.h: Likewise.
20372 * include/pupa/disk.h: Likewise.
20373 * include/pupa/dl.h: Likewise.
20374 * include/pupa/elf.h: Likewise.
20375 * include/pupa/err.h: Likewise.
20376 * include/pupa/file.h: Likewise.
20377 * include/pupa/font.h: Likewise.
20378 * include/pupa/fs.h: Likewise.
20379 * include/pupa/kernel.h: Likewise.
20380 * include/pupa/loader.h: Likewise.
20381 * include/pupa/misc.h: Likewise.
20382 * include/pupa/mm.h: Likewise.
20383 * include/pupa/net.h: Likewise.
20384 * include/pupa/normal.h: Likewise.
20385 * include/pupa/rescue.h: Likewise.
20386 * include/pupa/setjmp.h: Likewise.
20387 * include/pupa/symbol.h: Likewise.
20388 * include/pupa/term.h: Likewise.
20389 * include/pupa/types.h: Likewise.
20390 * include/pupa/i386/setjmp.h: Likewise.
20391 * include/pupa/i386/types.h: Likewise.
20392 * include/pupa/i386/pc/biosdisk.h: Likewise.
20393 * include/pupa/i386/pc/boot.h: Likewise.
20394 * include/pupa/i386/pc/console.h: Likewise.
20395 * include/pupa/i386/pc/init.h: Likewise.
20396 * include/pupa/i386/pc/kernel.h: Likewise.
20397 * include/pupa/i386/pc/linux.h: Likewise.
20398 * include/pupa/i386/pc/loader.h: Likewise.
20399 * include/pupa/i386/pc/memory.h: Likewise.
20400 * include/pupa/i386/pc/multiboot.h: Likewise.
20401 * include/pupa/i386/pc/partition.h: Likewise.
20402 * include/pupa/i386/pc/time.h: Likewise.
20403 * include/pupa/i386/pc/vga.h: Likewise.
20404 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
20405 * include/pupa/util/getroot.h: Likewise.
20406 * include/pupa/util/misc.h: Likewise.
20407 * include/pupa/util/resolve.h: Likewise.
20408 * kern/device.c: Likewise.
20409 * kern/disk.c: Likewise.
20410 * kern/dl.c: Likewise.
20411 * kern/err.c: Likewise.
20412 * kern/file.c: Likewise.
20413 * kern/fs.c: Likewise.
20414 * kern/loader.c: Likewise.
20415 * kern/main.c: Likewise.
20416 * kern/misc.c: Likewise.
20417 * kern/mm.c: Likewise.
20418 * kern/rescue.c: Likewise.
20419 * kern/term.c: Likewise.
20420 * kern/i386/dl.c: Likewise.
20421 * kern/i386/pc/init.c: Likewise.
20422 * kern/i386/pc/lzo1x.S: Likewise.
20423 * kern/i386/pc/startup.S: Likewise.
20424 * loader/i386/pc/chainloader.c: Likewise.
20425 * loader/i386/pc/linux.c: Likewise.
20426 * loader/i386/pc/multiboot.c: Likewise.
20427 * normal/cmdline.c: Likewise.
20428 * normal/command.c: Likewise.
20429 * normal/main.c: Likewise.
20430 * normal/menu.c: Likewise.
20431 * normal/i386/setjmp.S: Likewise.
20432 * term/i386/pc/console.c: Likewise.
20433 * term/i386/pc/vga.c: Likewise.
20434 * util/console.c: Likewise.
20435 * util/genmoddep.c: Likewise.
20436 * util/misc.c: Likewise.
20437 * util/pupa-emu.c: Likewise.
20438 * util/resolve.c: Likewise.
20439 * util/unifont2pff.rb: Likewise.
20440 * util/i386/pc/biosdisk.c: Likewise.
20441 * util/i386/pc/getroot.c: Likewise.
20442 * util/i386/pc/pupa-mkimage.c: Likewise.
20443 * util/i386/pc/pupa-setup.c: Likewise.
20445 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
20447 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
20448 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
20449 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
20450 reading and reset it after reading.
20451 (pupa_ext2_close): Return PUPA_ERR_NONE.
20453 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
20455 (struct linux_kernel_header): Add kernel_version and
20457 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
20458 pupa_file_read succeeds.
20459 (pupa_rescue_cmd_initrd): Implement.
20461 2003-12-03 Marco Gerards <metgerards@student.han.nl>
20463 * fs/ext2.c (pupa_ext2_label): New function.
20464 (pupa_ext2_fs): Added label.
20465 * fs/fat.c (pupa_fat_label): New function.
20466 (pupa_fat_fs): Added label.
20467 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
20469 * kern/misc.c (pupa_strndup): New function.
20470 * include/pupa/misc.h (pupa_strndup): New prototype.
20472 * include/pupa/normal.h: Include <pupa/err.h>.
20473 (pupa_set_history): New prototype.
20474 (pupa_iterate_commands): New prototype.
20475 * normal/cmdline.c: Include <pupa/machine/partition.h>,
20476 <pupa/disk.h>, <pupa/file.h>.
20477 (hist_size): New variable.
20478 (hist_lines): Likewise.
20479 (hist_end): Likewise.
20480 (hist_used): Likewise.
20481 (pupa_set_history): New function.
20482 (pupa_history_get): Likewise.
20483 (pupa_history_add): Likewise.
20484 (pupa_history_replace): Likewise.
20485 (pupa_tab_complete): Likewise.
20486 (pupa_cmdline_run): Added tab completion and history buffer. Tab
20487 completion shows partitionnames while completing partitions, this
20488 feature was suggested by Jeff Bailey.
20489 * normal/command.c (pupa_iterate_commands): New function.
20490 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
20491 (pupa_normal_init): Initialize history buffer.
20492 (PUPA_MOD_INIT): Likewise.
20493 (pupa_normal_fini): Free the history buffer.
20494 (PUPA_MOD_FINI): Likewise.
20496 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
20499 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
20500 * configure.ac [i386]: Check for regparam bug.
20501 (NESTED_FUNC_ATTR) [! i386]: Defined.
20503 2003-11-17 Marco Gerards <metgerards@student.han.nl>
20505 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
20506 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
20507 (pupa_emu_SOURCES): New variable.
20508 (pupa_emu_LDFLAGS): Likewise.
20509 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
20510 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
20511 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
20512 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
20513 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
20514 (pupa_jmp_buf): New typedef.
20515 (pupa_setjmp) [PUPA_UTIL]: New macro.
20516 (pupa_longjmp) [PUPA_UTIL]: Likewise.
20517 * include/pupa/term.h (struct pupa_term): New member `refresh'.
20518 (pupa_refresh): New prototype.
20519 * include/pupa/util/getroot.h: New file.
20520 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
20522 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
20523 (pupa_rescue_cmd_cat): Likewise.
20524 (pupa_rescue_cmd_ls): Likewise.
20525 (pupa_rescue_cmd_testload): Likewise.
20526 (pupa_rescue_cmd_lsmod): Likewise.
20527 * normal/cmdline.c (pupa_cmdline_get): Likewise.
20528 * normal/menu.c (run_menu): Likewise.
20529 * kern/term.c (pupa_cls): Likewise.
20530 (pupa_refresh): New function.
20531 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
20532 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
20533 * util/console.c: New file.
20535 * util/i386/pc/getroot.c: New file.
20536 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
20537 (pupa_putchar): New function.
20538 (pupa_refresh): Likewise.
20539 (xgetcwd): Function moved to ...
20540 (strip_extra_slashes): Likewise.
20541 (get_prefix): Likewise.
20542 * util/i386/pc/getroot.c: ... here.
20543 (find_root_device): Function moved and renamed to...
20544 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
20545 Changed all callers.
20546 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
20548 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
20549 Changed all callers.
20550 * util/misc.c (pupa_memalign): New function.
20551 (pupa_mm_init_region): Likewise.
20552 (pupa_register_exported_symbols): Likewise.
20553 (pupa_putchar): Function removed.
20554 * util/pupa-emu.c: New file.
20556 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
20558 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
20559 (_multiboot_mod_SOURCES): New variable.
20560 (_multiboot_mod_CFLAGS): Likewise.
20561 * loader/i386/pc/multiboot.c: New file.
20562 * include/pupa/i386/pc/multiboot.h: Likewise.
20563 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
20564 (pupa_multiboot_real_boot): New function.
20565 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
20566 (pupa_multiboot_real_boot): New prototype.
20567 (pupa_rescue_cmd_multiboot): Likewise
20568 (pupa_rescue_cmd_module): Likewise.
20570 * kern/loader.c (pupa_loader_set): Continue when
20571 pupa_loader_unload_func() fails.
20572 (pupa_loader_unset): New function.
20573 * include/pupa/loader.h (pupa_loader_unset): New prototype.
20575 * kern/misc.c (pupa_stpcpy): New function.
20576 * include/pupa/misc.h (pupa_stpcpy): New prototype.
20578 2003-11-12 Marco Gerards <metgerards@student.han.nl>
20580 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
20581 for available extensions.
20583 * include/pupa/i386/pc/time.h: New file.
20584 * kern/disk.c: Include <pupa/machine/time.h>.
20585 (PUPA_CACHE_TIMEOUT): New macro.
20586 (pupa_last_time): New variable.
20587 (pupa_disk_open): Flush the cache when there was a timeout.
20588 (pupa_disk_close): Reset the timer.
20589 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
20591 * util/misc.c: Include <sys/times.h>
20592 (pupa_get_rtc): New function.
20594 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
20596 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
20598 (pupa_ext2_get_file_block): Use blocks member.
20600 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
20601 first block. Return -1 instead of pupa_errno on error.
20603 2003-10-27 Marco Gerards <metgerards@student.han.nl>
20605 * README: In the pupa-mkimage example use _chain instead of chain
20606 and ext2 instead of fat.
20607 * TODO: Replace ext2fs with jfs as an example. Add an item for
20608 adding journal playback for ext2fs.
20609 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
20610 (pkgdata_MODULES): Added ext2.mod.
20611 (ext2_mod_SOURCES): New variable.
20612 (ext2_mod_CFLAGS): Likewise.
20613 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
20614 * include/pupa/misc.h (pupa_strncpy): New prototype.
20615 (pupa_strcat): Likewise.
20616 (pupa_strncmp): Likewise.
20617 * kern/misc.c (pupa_strcat): Enable function.
20618 (pupa_strncpy): New function.
20619 (pupa_strncmp): Likewise.
20620 * fs/ext2.c: New file.
20622 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
20623 when the read failed before retrying.
20624 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
20625 (_FILE_OFFSET_BITS): Likewise.
20626 * configure.ac: Added AC_SYS_LARGEFILE.
20628 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
20630 * genmk.rb (PModule#rule): Make sure to get only symbol names
20631 from the output of nm.
20632 Reported by Robert Millan <zeratul2@wanadoo.es>.
20634 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
20636 I forgot to check in these changes for a long time. This adds
20637 incomplete support for VGA console, and this is still very
20638 buggy. Also, a lot of consideration is required for I18N,
20639 UNICODE, and VGA font issues. Therefore, assume that this is
20640 such that "better than nothing".
20642 * font/manager.c: New file.
20643 * include/pupa/font.h: Likewise.
20644 * include/pupa/i386/pc/vga.h: Likewise.
20645 * term/i386/pc/vga.c: Likewise.
20646 * util/unifont2pff.rb: Likewise.
20648 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
20649 (pkgdata_MODULES): Added vga.mod and font.mod.
20650 (vga_mod_SOURCES): New variables.
20651 (vga_mod_CFLAGS): Likewise.
20652 (font_mod_SOURCES): Likewise.
20653 (font_mod_CFLAGS): Likewise.
20655 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
20657 * include/pupa/term.h: Include pupa/err.h.
20658 (struct pupa_term): Added init and fini.
20659 Changed the argument of putchar to pupa_uint32_t.
20661 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
20662 (pupa_console_real_putchar): New prototype.
20663 (pupa_console_putchar): Removed.
20664 (pupa_console_checkkey): Exported.
20665 (pupa_console_getkey): Likewise.
20667 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
20670 * kern/term.c (pupa_term_set_current): Rewritten.
20671 (pupa_putchar): Likewise.
20672 (pupa_putcode): New function.
20674 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
20675 (pupa_console_real_putchar): ... this.
20676 (pupa_vga_set_mode): New function.
20677 (pupa_vga_get_font): Likewise.
20679 * normal/command.c: Include pupa/term.h.
20680 (terminal_command): New function.
20681 (pupa_command_init): Register the command "terminal".
20683 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
20684 (DISP_UP): Likewise.
20685 (DISP_RIGHT): Likewise.
20686 (DISP_DOWN): Likewise.
20687 (DISP_HLINE): Likewise.
20688 (DISP_VLINE): Likewise.
20689 (DISP_UL): Likewise.
20690 (DISP_UR): Likewise.
20691 (DISP_LL): Likewise.
20692 (DISP_LR): Likewise.
20694 * term/i386/pc/console.c (pupa_console_putchar): New function.
20696 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
20698 * util/resolve.c (pupa_util_resolve_dependencies): BUG
20699 FIX. Reverse the path_list.
20701 * include/pupa/normal.h: Export pupa_register_command and
20702 pupa_unregister_command.
20704 * hello/hello.c (pupa_cmd_hello): New module.
20705 * conf/i386-pc.rmk: Added hello.mod.
20707 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
20709 * kern/i386/pc/lzo1x.S: New file.
20711 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
20712 (compress_kernel): New variable.
20713 (generate_image): Heavily modified to support compressing a
20714 large part of the core image.
20716 * util/misc.c (pupa_util_read_image): Fix a file descriptor
20718 (pupa_util_load_image): New function.
20720 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
20721 (pupa_compressed_size): New variable.
20722 (codestart): Enable Gate A20 here.
20723 Decompress the compressed part of the core image.
20724 Rearrange the code to put functions and variables which are
20725 required for initialization in the non-compressed part.
20728 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
20731 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
20733 * include/pupa/i386/pc/kernel.h
20734 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
20735 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
20736 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
20737 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
20738 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
20740 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
20742 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
20743 (Utility#rule): Likewise.
20745 * configure.ac: Check if LZO is available.
20747 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
20749 * include/pupa/normal.h: New file.
20750 * include/pupa/setjmp.h: Likewise.
20751 * include/pupa/i386/setjmp.h: Likewise.
20752 * normal/cmdline.c: Likewise.
20753 * normal/command.c: Likewise.
20754 * normal/main.c: Likewise.
20755 * normal/menu.c: Likewise.
20756 * normal/i386/setjmp.S: Likewise.
20758 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
20759 (pupa_rescue_cmd_initrd): Likewise.
20761 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
20764 * kern/i386/pc/startup.S (translation_table): New variable.
20765 (translate_keycode): New function.
20766 (pupa_console_getkey): Call translate_keycode.
20768 * kern/rescue.c (attempt_normal_mode): New function.
20769 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
20770 it failed, print a message.
20772 * kern/mm.c (pupa_real_malloc): Print more information when a
20773 free magic is broken.
20774 (pupa_free): If the first free header is not free actually, set
20777 * kern/main.c (pupa_load_normal_mode): Just load the module
20779 (pupa_main): Don't print the message
20780 "Entering into rescue mode..." here.
20782 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
20784 (pupa_rescue_cmd_initrd): Likewise.
20785 (pupa_rescue_cmd_initrd): Likewise.
20787 * include/pupa/symbol.h (FUNCTION): Specify the type.
20788 (VARIABLE): Likewise.
20790 * include/pupa/err.h (pupa_err_t): Added
20791 PUPA_ERR_UNKNOWN_COMMAND.
20793 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
20794 (pupa_dl_get_prefix): Likewise.
20796 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
20797 Added _chain.mod and _linux.mod instead of chain.mod and
20799 (chain_mod_SOURCES): Renamed to ...
20800 (_chain_mod_SOURCES): ... this.
20801 (chain_mod_CFLAGS): Renamed to ...
20802 (_chain_mod_CFLAGS): ... this.
20803 (linux_mod_SOURCES): Renamed to ...
20804 (_linux_mod_SOURCES): ... this.
20805 (linux_mod_CFLAGS): Renamed to ...
20806 (_linux_mod_CFLAGS): ... this.
20807 (normal_mod_SOURCES): New variable.
20808 (normal_mod_CFLAGS): Likewise.
20809 (normal_mod_ASFLAGS): Likewise.
20811 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
20813 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
20816 * kern/dl.c (pupa_dl_ref): Refer depending modules
20818 (pupa_dl_unref): Unrefer depending modules recursively.
20819 Don't call pupa_dl_unload implicitly, because PUPA can crash if
20820 a module is unloaded before one depending on that module is
20822 (pupa_dl_unload): Unload depending modules explicitly,
20825 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
20827 * include/pupa/i386/pc/linux.h: New file.
20828 * loader/i386/pc/linux.c: Likewise.
20830 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
20832 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
20833 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
20834 of PUPA_CHAINLOADER_BOOT_SECTOR.
20836 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
20837 (pupa_linux_prot_size): New variable.
20838 (pupa_linux_tmp_addr): Likewise.
20839 (pupa_linux_real_addr): Likewise.
20840 (pupa_linux_boot_zimage): New function.
20841 (pupa_linux_boot_bzimage): Likewise.
20843 * kern/i386/pc/init.c (struct mem_region): New structure.
20844 (MAX_REGIONS): New macro.
20845 (mem_regions): New variable.
20846 (num_regions): Likewise.
20847 (pupa_os_area_addr): Likewise.
20848 (pupa_os_area_size): Likewise.
20849 (pupa_lower_mem): Likewise.
20850 (pupa_upper_mem): Likewise.
20851 (add_mem_region): New function.
20852 (compact_mem_regions): Likewise.
20853 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
20854 the size of the conventional memory and that of so-called upper
20855 memory (before the first memory hole).
20856 Instead of adding each found region to free memory, use
20857 add_mem_region and add them after removing overlaps.
20858 Also, add only 1/4 of the upper memory to free memory. The rest
20859 is used for loading OS images. Maybe this is ad hoc, but this
20860 makes it much easier to relocate OS images when booting.
20862 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
20863 (pupa_enter_rescue_mode): Don't register initrd and module.
20865 * kern/mm.c: Include pupa/dl.h.
20867 * kern/main.c: Include pupa/file.h and pupa/device.h.
20869 * kern/loader.c (pupa_loader_load_module_func): Removed.
20870 (pupa_loader_load_module): Likewise.
20872 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
20875 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
20876 (pupa_linux_tmp_addr): Likewise.
20877 (pupa_linux_real_addr): Likewise.
20878 (pupa_linux_boot_zimage): Likewise.
20879 (pupa_linux_boot_bzimage): Likewise.
20881 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
20882 (pupa_upper_mem): Likewise.
20883 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
20884 module is too dangerous.
20886 * include/pupa/loader.h (pupa_os_area_addr): Declared.
20887 (pupa_os_area_size): Likewise.
20888 (pupa_loader_set): Remove the first argument. Loader doesn't
20889 manage modules or initrd any longer.
20890 (pupa_loader_load_module): Removed.
20892 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
20893 (linux_mod_SOURCES): New variable.
20894 (linux_mod_CFLAGS): Likewise.
20896 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
20898 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
20899 the length of a blocklist correctly.
20901 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
20902 Use ioctl only if the OS file is a block device.
20903 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
20904 not very useful for normal files.
20906 * kern/main.c (pupa_set_root_dev): New function.
20907 (pupa_load_normal_mode): Likewise.
20908 (pupa_main): Call those above.
20910 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
20913 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
20915 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20917 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
20918 (setup): Configure the installed partition information and the
20921 * loader/i386/pc/chainloader.c (my_mod): New variable.
20922 (pupa_chainloader_unload): New function.
20923 (pupa_rescue_cmd_chainloader): Refer itself.
20924 (PUPA_MOD_INIT): Save its own module in MY_MOD.
20926 * kern/i386/pc/startup.S (install_partition): Removed.
20927 (version_string): Likewise.
20928 (config_file): Likewise.
20929 (pupa_install_dos_part): New variable.
20930 (pupa_install_bsd_part): Likewise.
20931 (pupa_prefix): Likewise.
20932 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
20934 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
20936 (make_install_device): New function.
20937 (pupa_machine_init): Set the dl prefix.
20939 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
20940 (buf): Renamed to ...
20941 (linebuf): ... this.
20942 (pupa_rescue_cmd_prefix): New function.
20943 (pupa_rescue_cmd_insmod): Likewise.
20944 (pupa_rescue_cmd_rmmod): Likewise.
20945 (pupa_rescue_cmd_lsmod): Likewise.
20946 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
20949 * kern/mm.c (pupa_memalign): If failed even after invalidating
20950 disk caches, unload unneeded modules and retry.
20952 * kern/misc.c (pupa_memmove): New function.
20953 (pupa_memcpy): Removed.
20954 (pupa_strcpy): New function.
20955 (pupa_itoa): Made static.
20957 * kern/dl.c (pupa_dl_iterate): New function.
20958 (pupa_dl_ref): Likewise.
20959 (pupa_dl_unref): Likewise.
20960 (pupa_dl_unload): Return if succeeded or not.
20961 (pupa_dl_unload_unneeded): New function.
20962 (pupa_dl_unload_all): Likewise.
20963 (pupa_dl_init): Renamed to ...
20964 (pupa_dl_set_prefix): ... this.
20965 (pupa_dl_get_prefix): New function.
20967 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
20968 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
20969 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
20970 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
20971 (pupa_install_dos_part): Declared.
20972 (pupa_install_bsd_part): Likewise.
20973 (pupa_prefix): Likewise.
20974 (pupa_boot_drive): Likewise.
20976 * include/pupa/types.h: Fix a typo.
20978 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
20980 (pupa_memmove): Declared.
20981 (pupa_strcpy): Likewise.
20983 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
20984 pupa_mod_init takes one argument, its own module.
20985 (pupa_dl_unload_unneeded): Declared.
20986 (pupa_dl_unload_all): Likewise.
20987 (pupa_dl_ref): Likewise.
20988 (pupa_dl_unref): Likewise.
20989 (pupa_dl_iterate): Likewise.
20990 (pupa_dl_init): Renamed to ...
20991 (pupa_dl_set_prefix): ... this.
20992 (pupa_dl_get_prefix): Declared.
20994 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
20995 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
20997 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
20998 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
21000 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
21001 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
21003 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
21005 * util/i386/pc/pupa-setup.c (setup): Define the internal
21006 function find_first_partition_start at the top level, because GCC
21007 3.0.x cannot compile internal functions in deeper scopes
21009 (find_root_device): Use lstat instead of stat.
21010 Don't follow symbolic links.
21011 Fix the path-constructing code.
21013 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
21014 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
21015 by a BLKGETSIZE ioctl first, because block devices don't fill
21016 the member st_mode of the structure stat on Linux.
21017 [__linux__] (linux_find_partition): Use a temporary buffer
21018 REAL_DEV for the working space. Copy it to DEV before returning.
21019 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
21020 buffer cache consistent.
21021 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
21022 strncmp. The previous value was merely wrong.
21023 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
21025 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
21026 FAT size is 12. The previous value was merely wrong.
21028 * kern/main.c (pupa_main): Don't split the starting message from
21031 * kern/term.c (pupa_putchar): Put CR after LF instead of before
21032 LF, because BIOS goes crazy about character attributes in this
21035 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
21037 * include/i386/pc/util/biosdisk.h: New file.
21038 * util/i386/pc/biosdisk.c: Likewise.
21039 * util/i386/pc/pupa-setup.c: Likewise.
21041 * Makefile.in (INCLUDE_DISTFILES): Added
21042 include/pupa/i386/pc/util/biosdisk.h.
21043 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
21044 directory util/i386/pc.
21045 (install-local): Added a rule for sbin_UTILITIES.
21046 (uninstall): Likewise.
21048 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
21050 * util/misc.c (xrealloc): New function.
21051 (pupa_malloc): Likewise.
21052 (pupa_free): Likewise.
21053 (pupa_realloc): Likewise.
21054 (pupa_stop): Likewise.
21055 (pupa_putchar): Likewise.
21057 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
21059 * include/pupa/util/misc.h (xrealloc): Declared.
21061 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
21063 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
21064 (PUPA_BOOT_MACHINE_BPB_END): ... this.
21066 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
21067 [PUPA_UTIL] (pupa_fat_fini): Likewise.
21069 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
21070 way should be implemented.
21071 [PUPA_UTIL] (pupa_fat_fini): Likewise.
21073 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
21074 the size of NAME for safety.
21075 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
21078 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
21079 (pupa_setup_SOURCES): Likewise.
21081 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
21083 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
21085 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
21086 bunch of pushl's from pusha, because this destroys the return
21089 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
21091 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
21092 This means that any missing prototypes could be fatal. Also, you
21093 must take care when writing assembly code. See the comments at
21094 the beginning of startup.S, for more details.
21096 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
21097 compilation mechanism.
21098 (pupa_chainloader_real_boot): Likewise.
21099 (pupa_biosdisk_rw_int13_extensions): Likewise.
21100 (pupa_biosdisk_rw_standard): Likewise.
21101 (pupa_biosdisk_check_int13_extensions): Likewise.
21102 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
21103 (pupa_biosdisk_get_diskinfo_standard): Likewise.
21104 (pupa_get_memsize): Likewise.
21105 (pupa_get_mmap_entry): Likewise.
21106 (pupa_console_putchar): Likewise.
21107 (pupa_console_setcursor): Likewise.
21108 (pupa_getrtsecs): Use pushl instead of push.
21110 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
21111 memory instead of the stack for a mmap entry, because some
21112 BIOSes may ignore the maximum size and overflow.
21114 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
21116 * genmk.rb (PModule#rule): Compile automatically generated
21117 sources with module-specific CFLAGS as well as other sources.
21119 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
21121 * configure.ac: Check ld.
21122 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
21123 respectively, before checking endianness and sizes.
21125 * Makefile.in (LD): New variable.
21127 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
21129 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
21131 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
21133 * Changelog: New file.