1 2009-07-01 Pavel Roskin <proski@gnu.org>
3 * util/hostdisk.c (open_device): Remove `const' from
4 `sysctl_size', as sysctlbyname() can change it (in this case it
5 doesn't actually happen).
7 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
8 using signed long int constants.
10 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
11 constant to avoid a warning on FreeBSD.
13 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
16 * Makefile.in: Install include/grub/machine symlink.
18 * Makefile.in: When installing symlinks, use "cp -fR", which
19 works on FreeBSD and MacOSX.
20 From Yves Blusseau <cl7m42e02@sneakemail.com>
22 * kern/dl.c (grub_dl_resolve_symbol): Make static.
23 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
25 * util/misc.c: Move grub_reboot() and grub_halt() ...
26 * util/grub-emu.c: ... here. Make main_env static.
27 * include/grub/util/misc.h: Remove main_env.
29 * kern/mm.c: Use correct format to print size_t.
31 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
32 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
33 * kern/powerpc/dl.c: Likewise.
34 * kern/sparc64/dl.c: Likewise.
35 * kern/x86_64/dl.c: Likewise.
37 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
39 Fix grub-emu build on sparc64-ieee1275.
41 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Syncronize with ...
42 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
44 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
46 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
47 (grub_reboot, grub_halt): New functions.
49 * util/i386/pc/misc.c: Delete. Update all users.
50 * util/sparc64/ieee1275/misc.c: Likewise.
51 * util/powerpc/ieee1275/misc.c: Likewise.
53 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
55 * conf/i386.rmk (setjmp_mod_SOURCES)
56 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
57 * conf/common.rmk (setjmp_mod_SOURCES)
58 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
60 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
61 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
62 * conf/powerpc-ieee1275.rmk: Likewise.
63 * conf/sparc64-ieee1275.rmk: Likewise.
65 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
66 $(target_cpu) for kern/$(target_cpu)/dl.c.
67 * conf/i386-efi.rmk: Likewise.
68 * conf/i386-ieee1275.rmk: Likewise.
69 * conf/x86_64-efi.rmk: Likewise.
70 * conf/i386-coreboot.rmk: Likewise.
71 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
72 $(target_cpu) for kern/$(target_cpu)/dl.c and for
73 kern/$(target_cpu)/cache.S.
74 * conf/sparc64-ieee1275.rmk: Likewise.
76 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
78 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
79 type to `grub_uint8_t', and adjust `padding9' accordingly.
81 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
83 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
85 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
86 assembly in final jump, using register constraints.
88 (grub_linux_boot): For text mode, initialize `have_vga' using
89 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
91 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
92 right before the final jump.
94 Set `video_mode' to 0x3.
96 Document initialization of `video_page', `video_mode' and
99 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
101 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
102 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
103 and set GRUB_LINUX_FLAG_QUIET appropiately.
105 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
107 Fix build on Debian / sparc.
109 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
111 2009-06-28 Pavel Roskin <proski@gnu.org>
113 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
116 * util/grub.d/10_linux.in: Match SUSE style initrd names.
118 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
120 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
123 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
127 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
128 file can't be opened. grub_file_open() is already supposed to set
129 grub_errno / grub_errmsg appropiately.
130 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
132 2009-06-27 Pavel Roskin <proski@gnu.org>
133 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
135 * include/grub/dl.h: Include grub/elf.h.
136 (struct grub_dl): Add symtab field.
137 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
138 GRUB_MODULES_MACHINE_READONLY.
139 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
140 of the header for read-only modules.
141 (grub_dl_unload): Free mod->symtab for read-only modules.
142 * kern/i386/dl.c: Use mod->symtab.
143 * kern/powerpc/dl.c: Likewise.
144 * kern/sparc64/dl.c: Likewise.
145 * kern/x86_64/dl.c: Likewise.
147 * conf/i386-qemu.rmk: New file.
148 * kern/i386/qemu/startup.S: Likewise.
149 * kern/i386/qemu/mmap.c: Likewise.
150 * boot/i386/qemu/boot.S: Likewise.
151 * include/grub/i386/qemu/time.h: Likewise.
152 * include/grub/i386/qemu/serial.h: Likewise.
153 * include/grub/i386/qemu/kernel.h: Likewise.
154 * include/grub/i386/qemu/console.h: Likewise.
155 * include/grub/i386/qemu/boot.h: Likewise.
156 * include/grub/i386/qemu/init.h: Likewise.
157 * include/grub/i386/qemu/machine.h: Likewise.
158 * include/grub/i386/qemu/loader.h: Likewise.
159 * include/grub/i386/qemu/memory.h: Likewise.
161 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
162 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
163 [qemu] (pkglib_IMAGES): Add `boot.img'.
164 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
165 [qemu] (boot_img_FORMAT): New variables.
166 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
167 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
168 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
169 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
170 [qemu] (kernel_img_FORMAT): New variables.
172 * configure.ac: Recognise `i386-qemu'.
174 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
175 (for no compression).
176 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
177 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
178 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
179 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
182 2009-06-27 Pavel Roskin <proski@gnu.org>
184 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
186 * efiemu/prepare32.c: Likewise.
187 * efiemu/prepare64.c: Likewise.
189 2009-06-26 Pavel Roskin <proski@gnu.org>
191 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
192 * include/grub/elf.h: Define symbols without "32" or "64" based
193 on GRUB_TARGET_WORDSIZE.
194 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
195 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
197 * efiemu/loadcore64.c: Likewise.
198 * loader/i386/bsd32.c: Likewise.
199 * loader/i386/bsd64.c: Likewise.
200 * kern/dl.c: Remove own ELF definitions.
201 * util/i386/efi/grub-mkimage.c: Likewise.
203 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
205 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
206 segment 0x0 unconditionally, because the reference generated by
207 GAS is an absolute address.
209 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
211 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
212 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
214 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
216 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
217 indexes. Check for -f explicitly.
218 (search_file): Improve error message.
219 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
221 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
223 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
224 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
226 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
228 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
229 * conf/i386-ieee1275.rmk: Likewise.
230 * conf/i386-coreboot.rmk: Likewise.
232 * kern/i386/pc/startup.S (grub_stop): Remove function.
233 * kern/i386/ieee1275/startup.S: Likewise.
234 * kern/i386/coreboot/startup.S: Likewise.
235 * kern/i386/misc.S (grub_stop): New function.
237 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
239 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
240 * kern/i386/realmode.S (real_to_prot): ... to here.
242 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
244 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
246 (kernel_elf_SOURCES): Rename to ...
247 (kernel_img_SOURCES): ... this.
248 (kernel_elf_HEADERS): Rename to ...
249 (kernel_img_HEADERS): ... this. Update all users.
250 (kernel_elf_ASFLAGS): Rename to ...
251 (kernel_img_ASFLAGS): ... this.
252 (kernel_elf_CFLAGS): Rename to ...
253 (kernel_img_CFLAGS): ... this.
254 (kernel_elf_LDFLAGS): Rename to ...
255 (kernel_img_LDFLAGS): ... this.
256 * conf/i386-coreboot.rmk: Likewise.
257 * conf/powerpc-ieee1275.rmk: Likewise.
259 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
262 2009-06-21 Pavel Roskin <proski@gnu.org>
264 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
265 to match nested functions.
266 * loader/sparc64/ieee1275/linux.c: Likewise.
268 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
270 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
272 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
275 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
277 Fix asm file handling on ELF, and remove workarounds.
279 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
280 and -DASM_FILE=1 appropiately (copied from `class Images' stanza).
281 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
282 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
284 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
288 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
289 and loader/i386/bsd64.c
290 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
291 (FREEBSD_MODTYPE_ELF_MODULE): New definition
292 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
293 (grub_freebsd_load_elfmodule32): New declaration
294 (grub_freebsd_load_elfmoduleobj64): Likewise
295 (grub_freebsd_load_elf_meta32): Likewise
296 (grub_freebsd_load_elf_meta64): Likewise
297 (grub_freebsd_add_meta): Likewise
298 (grub_freebsd_add_meta_module): Likewise
299 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
300 (grub_freebsd_add_meta_module): Likewise and move module-specific
301 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
302 (grub_cmd_freebsd): Add elf-kernel specific parts
303 based on grub_freebsd_add_meta_module
304 (grub_cmd_freebsd_module): Add type parsing moved from
305 grub_freebsd_add_meta_module
306 (grub_cmd_freebsd_module_elf): New function
307 (cmd_freebsd_module_elf): New variable
308 (GRUB_MOD_INIT): Register freebsd_module_elf
309 * loader/i386/bsd32.c: New file
310 * loader/i386/bsd64.c: Likewise
311 * loader/i386/bsdXX.c: Likewise
312 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
313 (grub_elf64_load): Likewise
314 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
316 (grub_elf64_load_hook_t): Likewise
318 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
320 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
322 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
323 don't write a menu entry for recovery mode.
325 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
327 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
328 after it's no longer needed.
330 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
332 * include/grub/i386/loader.h (grub_linux_prot_size)
333 (grub_linux_tmp_addr, grub_linux_real_addr)
334 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
336 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
337 common grub_util_info() call to ...
338 (generate_image): ... here.
339 Fix use of uninitialized memory, comparison of signed with
340 unsigned integers and memory leak.
341 Remove bogus module address message.
343 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
345 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
347 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
349 2009-06-19 Pavel Roskin <proski@gnu.org>
351 * configure.ac: Remove stray AC_MSG_CHECKING.
353 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
355 * disk/scsi.c (grub_scsi_open): use continue instead of big if
357 2009-06-18 Pavel Roskin <proski@gnu.org>
359 * conf/common.rmk: Add fs_file.mod.
360 * disk/fs_file.c: New file.
361 * include/grub/disk.h (enum grub_disk_dev_id): Add
362 GRUB_DISK_DEVICE_FILE_ID.
364 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
366 Fix build with Apple's toolchain. Part 2
368 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
371 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
373 Fix build with Apple's toolchain. Part 1
375 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
377 * configure.ac: remove a leftover AC_MSG_RESULT
378 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
381 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
385 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
386 (decomp_block): initialize ch
387 use grub_memcpy instead of memcpy
389 2009-06-17 Pavel Roskin <proski@gnu.org>
391 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
392 version, use declarations needed to use vga_text as the startup
395 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
396 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
398 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
399 and grub_at_keyboard_fini(), it's done on module load and
402 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
404 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
406 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
408 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
412 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
413 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
414 (grub_script_yylex): don't segfault on unterminated script
415 newline terminates command and variable
417 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
419 avoid double grub_adjust_range call. Bug reported by David Simner
421 * kern/disk.c (grub_disk_write): change to raw disk access before
424 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
426 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
427 spaces, for the benefit of help2man.
428 * util/i386/efi/grub-mkimage.c (usage): Likewise.
430 2009-06-16 Pavel Roskin <proski@gnu.org>
432 * kern/i386/halt.c: Include grub/machine/init.h.
433 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
435 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
437 * util/grub.d/30_os-prober.in: Use ${root} in the generated
440 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
442 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
445 2009-06-16 Pavel Roskin <proski@gnu.org>
447 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
448 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
449 save %dx, we only need %dl and we never change it.
450 * boot/i386/pc/cdboot.S: Don't set the root drive.
451 * boot/i386/pc/pxeboot.S: Likewise.
452 * include/grub/i386/pc/boot.h: Remove
453 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
454 GRUB_BOOT_MACHINE_DRIVE_CHECK.
455 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
456 * kern/i386/pc/init.c (make_install_device): Remove references
458 * kern/i386/pc/startup.S: Likewise.
459 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
461 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
465 * commands/xnu_uuid.c: new file
466 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
467 (xnu_uuid_mod_SOURCES): new variable
468 (xnu_uuid_mod_CFLAGS): likewise
469 (xnu_uuid_mod_LDFLAGS): likewise
470 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
471 * conf/i386-ieee1275.rmk: likewise
472 * conf/i386-pc.rmk: likewise
473 * conf/powerpc-ieee1275.rmk: likewise
474 * conf/sparc64-ieee1275.rmk: likewise
475 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
477 2009-06-16 Pavel Roskin <proski@gnu.org>
479 * configure.ac: Avoid '==' in test command, it's not portable.
481 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
485 * commands/probe.c: new file
486 * conf/common.rmk (pkglib_MODULES): add probe.mod
487 (probe_mod_SOURCES): new variable
488 (probe_mod_CFLAGS): likewise
489 (probe_mod_LDFLAGS): likewise
490 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
491 * conf/i386-ieee1275.rmk: likewise
492 * conf/i386-pc.rmk: likewise
493 * conf/powerpc-ieee1275.rmk: likewise
494 * conf/sparc64-ieee1275.rmk: likewise
496 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
498 Fix handling of string like \"hello\" and "a
501 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
502 (grub_script_yylex): fix parsing of quoting, escaping and newline
504 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
506 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
509 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
511 * util/grub-mkconfig.in: Fix parsing of --output option.
513 2009-06-12 Pavel Roskin <proski@gnu.org>
515 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
516 genmk.rb don't need to be generated or installed.
518 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
520 * commands/i386/pc/drivemap_int13h.S: add more comments
522 2009-06-11 Pavel Roskin <proski@gnu.org>
524 * Makefile.in (uninstall): Uninstall manuals.
526 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
527 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
528 and update-grub_lib in two places.
529 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
531 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
534 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
535 `entry_lo' to fix variable shadowing.
537 2009-06-11 Christian Franke <franke@computer.org>
539 * kern/misc.c (__enable_execute_stack): Add missing return type
540 to prevent gcc warning.
542 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
544 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
546 2009-06-11 Pavel Roskin <proski@gnu.org>
548 * Makefile.in: Don't rely on any scripts being executable.
549 Always use $(SHELL) to run shell scripts.
551 * configure.ac: Always define ___main if using -nostdlib. This
552 fixes tests on Cygwin.
554 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
558 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
559 is in bytes and not in blocks
561 2009-06-11 Pavel Roskin <proski@gnu.org>
563 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
566 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
568 * util/grub.d/30_os-prober.in: Fix a comment. Source
569 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
570 to set the root device. Place drivemap command in the generated
573 2009-06-11 Pavel Roskin <proski@gnu.org>
575 * configure.ac: Remove host_m32. Issues with 64-bit utilities
576 have long been resolved.
578 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
580 * util/grub.d/10_linux.in: Capitalise "Linux".
582 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
584 2009-06-11 Pavel Roskin <proski@gnu.org>
586 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
587 fix a gcc warning and ensure that the function won't ever exit.
589 * kern/i386/ieee1275/init.c: Add missing prototype for
592 * loader/ieee1275/multiboot2.c [__i386__]: Include
593 grub/cpu/multiboot.h.
595 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
596 casts to short - they are not portable and cause warnings. Fix
597 use of uninitialized values in input_buf. Use ARRAY_SIZE.
599 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
603 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
605 (grub_get_root_biosnumber_saved): new variable
606 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
607 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
608 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
609 %dx after the call if necessary
610 * conf/common.rmk (pkglib_MODULES): remove boot.mod
611 (boot_mod_SOURCES): remove
612 (boot_mod_CFLAGS): remove
613 (boot_mod_LDFLAGS): remove
614 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
615 (boot_mod_SOURCES): new variable
616 (boot_mod_CFLAGS): likewise
617 (boot_mod_LDFLAGS): likewise
618 * conf/i386-efi.rmk: likewise
619 * conf/i386-ieee1275.rmk: likewise
620 * conf/i386-pc.rmk: likewise
621 * conf/powerpc-ieee1275.rmk: likewise
622 * conf/sparc64-ieee1275.rmk: likewise
623 * conf/x86_64-efi.rmk: likewise
624 * include/grub/i386/pc/biosnum.h: new file
625 * lib/i386/pc/biosnum.c: likewise
626 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
627 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
628 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
630 2009-06-10 Pavel Roskin <proski@gnu.org>
632 * io/gzio.c (test_header): Don't reuse one buffer for all data.
633 Use separate variables. Read only the file size at the end, but
634 not the checksum that we don't use.
636 * kern/file.c (grub_file_read): Use void pointer for the buffer.
639 * kern/ieee1275/openfw.c: Remove libc includes.
640 * kern/ieee1275/cmain.c: Likewise.
641 * include/grub/ieee1275/ieee1275.h: Likewise.
643 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
646 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
648 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
649 `genparttoollist.sh'.
650 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
651 Add `*.sh' to the list find searches for and change `mdate.sh'
654 2009-06-10 Pavel Roskin <proski@gnu.org>
656 * include/grub/multiboot2.h: Provide compatibility defines for
658 * include/multiboot2.h: Include stdint.h only if needed, using
660 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
662 * loader/ieee1275/multiboot2.c: Likewise.
663 * loader/multiboot2.c: Likewise.
664 * loader/multiboot_loader.c: Likewise.
666 * configure.ac: Use -nostdlib when probing for the target. It
667 should not be required to have libc for the target.
669 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
670 they fail without libc headers for the target.
671 * include/grub/powerpc/libgcc.h: Use weak attribute for all
673 * include/grub/sparc64/libgcc.h: Likewise. Don't use
674 preprocessor conditionals.
676 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
677 build system doesn't need to be aware of the tar.c internals.
679 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
681 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
683 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
685 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
686 disk limit to 26 for IDE, Virtio, Xen and SCSI.
688 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
690 * util/i386/pc/grub-install.in: Change the error message if UUIDs
691 aren't available if ata.mod gets used.
693 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
695 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
696 initialising controller.
697 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
699 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
701 * util/i386/pc/grub-install.in: Add a parameter --disk-module
702 to choose between ata and biosdisk module on i386-pc.
704 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
706 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
707 Subclass and Programming Interface fields in terms of the 3 byte
709 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
711 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
712 interface is OHCI. Add grub_dprintf for symmetry with
714 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
715 interface is UHCI. Add interf variable for programming
716 interface. Print interface with class/subclass.
718 * bus/usb/ohci.c: Set interf with correct field.
720 * bus/usb/uhci.c: Remove unneeded doubled lines.
721 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
722 Remove whitespace inside comment.
724 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
726 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
727 as fallback an equivalent option without depth.
729 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
731 Not fail if unable to retrieve C/H/S on LBA disks
733 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
734 if unable to retrieve C/H/S on LBA disks
736 2009-06-08 Pavel Roskin <proski@gnu.org>
738 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
741 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
743 * Makefile.in (uninstall): Remove all $lib_DATA files.
745 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
747 Bugfix: install on partitionless device
749 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
752 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
754 * Makefile.in (uninstall): Remove all $include_DATA files.
756 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
758 * commands/true.c: New file. Implement the true and false commands.
759 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
760 (true_mod_SOURCES): New variable.
761 (true_mod_CFLAGS): Likewise.
762 (true_mod_LDFLAGS): Likewise.
764 2009-06-05 Colin D Bennett <colin@gibibit.com>
766 Optimized font character lookup using binary search instead of linear
767 search. Fonts now are required to have the character index ordered by
770 * font/font.c (load_font_index): Verify that fonts have ordered
772 (find_glyph): Use binary search instead of linear search to find a
775 2009-06-05 Michael Scherer <misc@mandriva.org>
777 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
778 uses case sensitive btree.
779 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
780 only for case insensitive filesystems.
782 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
784 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
785 * conf/common.rmk (search_mod_CFLAGS): likewise
787 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
789 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
790 compensate a compiler bug
792 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
794 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
797 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
799 Definitions for creating asm symbols with Apple's CC
801 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
802 [APPLE_CC] (VARIABLE): likewise
804 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
806 Disable lnxboot.img when compiled
809 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
810 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
811 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
812 [! APPLE_CC] (CODE_LENG): skip
813 [! APPLE_CC] (setup_sects): likewise
814 [! APPLE_CC]: skip filling
816 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
818 Address in trampolines based on 32-bit registers when compiled
821 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
823 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
825 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
827 Avoid aliases when compiling with Apple's CC for PCBIOS machine
829 * kern/misc.c [APPLE_CC] (memcpy): new function
830 [APPLE_CC] (memmove): likewise
831 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
832 (memcpy): define alias conditionally on !APPLE_CC
835 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
837 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
838 (grub_assert_fail): make prototype conditional
840 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
842 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
844 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
846 (CLEANFILES): add grub-macho2img
847 (grub_macho2img_SOURCES): new variable
848 * kern/i386/pc/startup.S (bss_start): new variable
850 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
851 * util/grub-macho2img.c: new file
853 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
855 Use objconv when compiling with Apple's CC
857 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
858 (efiemu64.o): likewise
859 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
860 when compiling with Apple's CC
861 (efiemu64_s.o): likewise
862 * configure.ac: check for objconv when compiling with Apple's CC
863 * genmk.rb: use objconv for modules when compiled with Apple's CC
865 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
867 Define segment as well as section when compiling with
870 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
871 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
872 (efiemu_convert_pointer): likewise
873 (efiemu_set_virtual_address_map): likewise
874 (efiemu_convert_pointer): likewise
875 (efiemu_getcrc32): likewise
876 (init_crc32_table): likewise
878 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
879 (GRUB_MOD_DEP): likewise
881 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
883 Allow a compilation without -mcmodel=large
885 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
886 when compiled without -mcmodel=large
887 (filter_memory_map): remove memory post 4 GiB when compiled
888 without -mcmodel=large
889 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
890 TARGET_CFLAGS when -mcmodel=large isn't supported
892 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
894 Remove nested functions in efiemu core
896 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
898 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
900 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
902 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
904 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
906 (grub_cpu_is_tsc_supported): likewise
907 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
909 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
911 Absolute addressing through constant with Apple's cc
913 * kern/i386/pc/startup.S: Define necessary constants
914 and address through it when using ABS with Apple's CC
915 * boot/i386/pc/diskboot.S: likewise
916 * boot/i386/pc/boot.S: likewise
917 * boot/i386/pc/lnxboot.S: likewise
918 * boot/i386/pc/cdboot.S: likewise
919 * mmap/i386/pc/mmap_helper.S: likewise
920 * commands/i386/pc/drivemap_int13h.S: likewise
922 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
924 Check if compiler is apple cc
926 * Makefile.in (ASFLAGS): new variable
927 (TARGET_ASFLAGS): likewise
928 (TARGET_MODULE_FORMAT): likewise
929 (TARGET_APPLE_CC): likewise
931 (TARGET_IMG_CFLAGS): likewise
932 (TARGET_CPPFLAGS): add includedir
933 * configure.ac: call grub_apple_cc and grub_apple_target_cc
934 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
935 Check for linker script only if compiler isn't Apple's CC
936 (TARGET_MODULE_FORMAT): set
937 (TARGET_APPLE_CC): likewise
938 (TARGET_ASFLAGS): likewise
940 Check for objcopy only if compiler isn't Apple's CC
941 Check for BSS symbol only if compiler isn't Apple's CC
942 * genmk.rb: adapt nm options if we use Apple's utils
943 * aclocal.m4 (grub_apple_cc): new test
944 (grub_apple_target_cc): likewise
946 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
948 Simplify sed expressions and improve awk
950 * Makefile.in (install-local): simplify sed expression
951 * gencmdlist.sh: likewise
952 * genmoddep.awk: avoid adding module as a dependency of itself
954 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
956 Add missing start symbols
958 * boot/i386/pc/boot.S: add start
959 * boot/i386/pc/pxeboot.S: likewise
961 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
963 Fix wrong assumptions with grub-mkimage on EFI
965 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
966 (relocate_addresses): consider both r_addend and value at offset
967 (make_mods_section): zerofill modinfo and header
968 (convert_elf): write prefix here
970 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
972 Use .asciz instead of .string
974 * i386/pc/diskboot.S: use .asciz instead of .string
975 * i386/pc/boot.S: likewise
976 * include/grub/dl.h (GRUB_MOD_DEP): likewise
977 (GRUB_MOD_NAME): likewise
979 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
983 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
984 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
985 (grub_video_setup): remove
986 (grub_video_set_mode): new prototype
987 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
989 (linux_vesafb_res): compile only on PCBIOS
990 (grub_linux_boot): support gfxpayload
991 * loader/i386/pc/xnu.c (video_hook): new function
992 (grub_xnu_set_video): support gfxpayload
993 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
994 (DEFAULT_VIDEO_HEIGHT): likewise
995 (DEFAULT_VIDEO_FLAGS): likewise
996 (DEFAULT_VIDEO_MODE): new definition
997 (video_hook): new function
998 (grub_gfxterm_init): use grub_video_set_mode
999 * util/grub.d/30_os-prober.in: remove explicit modesetting before
1001 * video/video.c (grub_video_setup): removed
1002 (grub_video_set_mode): new function based on grub_gfxterm_init and
1005 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1007 Avoid calling biosdisk in drivemap
1009 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
1010 (revparse_biosdisk): likewise
1011 (list_mappings): derive name from id directly
1012 (grub_cmd_drivemap): use tryparse_diskstring
1014 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1018 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
1019 (grub_lexer_param): add tokenonhold
1020 (grub_script_create_cmdline): remove cmdline. All callers updated
1021 (grub_script_function_create): make functionname
1022 grub_script_arg. All callers updated
1023 (grub_script_execute_argument_to_string): new prototype
1024 * kern/parser.c (state_transitions): reorder
1025 (grub_parser_cmdline_state): fix a bug and make more compact
1026 * script/sh/execute.c (grub_script_execute_argument_to_string):
1028 (grub_script_execute_cmdline): use new format
1029 * script/sh/function.c (grub_script_function_create): make functionname
1030 grub_script_arg. All callers updated
1031 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
1032 (grub_script_yylex): remove
1033 (grub_script_yylex2): renamed to ...
1034 (grub_script_yylex): ...renamed
1035 parse the expressions like a${b}c
1036 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
1037 (GRUB_PARSER_TOKEN_VAR): remove
1038 (GRUB_PARSER_TOKEN_NAME): likewise
1039 ("if"): declare as typeless
1041 ("function"): likewise
1046 (argument): likewise
1047 (script): accept empty scripts and make exit on error
1048 (arguments): use GRUB_PARSER_TOKEN_ARG
1049 (function): likewise
1050 (command): move error handling to script
1051 (menuentry): move grub_script_lexer_ref before
1052 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
1053 argument. All callers updated
1055 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
1057 Prevent GRUB from probing floppies during boot.
1059 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
1060 * commands/search.c (options): Add --no-floppy.
1061 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
1062 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
1063 --no-floppy when searching for UUIDs.
1065 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
1067 Simplify the code duplication in commands/search.c.
1069 * commands/search.c (search_label, search_fs_uuid): Merge into ...
1070 (search_fs): ... this. Update all users.
1072 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
1074 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
1076 2009-05-28 Pavel Roskin <proski@gnu.org>
1078 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
1079 Remove the original symlink explicitly.
1081 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
1082 just one slash. That's how grub_fshelp_find_file() does it.
1084 2009-05-26 Pavel Roskin <proski@gnu.org>
1086 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
1089 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
1092 2009-05-25 Christian Franke <franke@computer.org>
1094 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
1096 (grub_atapi_identify): Add wait after drive select.
1097 (grub_ata_identify): Do more strict status register check before
1098 calling grub_atapi_identify (). Suppress error message if status
1099 register is 0x00 after command failure. Add status register
1100 check after PIO read to avoid bogus identify due to stuck DRQ.
1101 Thanks to Pavel Roskin for testing.
1102 (grub_device_initialize): Remove unsafe status register check.
1103 Thanks to 'phcoder' for problem report and patch.
1104 Prevent sign extension in debug message.
1106 2009-05-23 Colin D Bennett <colin@gibibit.com>
1108 Cleaned up `include/grub/normal.h'. Grouped prototypes by
1109 definition file, and functions defined in `normal/menu.c' have had
1110 their prototypes moved to `include/grub/menu.h' for consistency.
1112 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
1114 (grub_menu_get_entry): Likewise.
1115 (grub_menu_get_timeout): Likewise.
1116 (grub_menu_set_timeout): Likewise.
1117 (grub_menu_execute_entry): Likewise.
1118 (grub_menu_execute_with_fallback): Likewise.
1119 (grub_menu_entry_run): Likewise.
1121 * include/grub/normal.h: Re-ordered and grouped function
1122 prototypes by file that the function is defined in.
1123 (grub_menu_execute_callback): Removed; moved to menu.h.
1124 (grub_menu_get_entry): Likewise.
1125 (grub_menu_get_timeout): Likewise.
1126 (grub_menu_set_timeout): Likewise.
1127 (grub_menu_execute_entry): Likewise.
1128 (grub_menu_execute_with_fallback): Likewise.
1129 (grub_menu_entry_run): Likewise.
1130 (grub_menu_addentry): Renamed from this ...
1131 (grub_normal_add_menu_entry): ... to this.
1133 * normal/main.c (grub_menu_addentry): Renamed from this ...
1134 (grub_normal_add_menu_entry): ... to this.
1136 * script/sh/execute.c (grub_script_execute_menuentry): Update
1137 reference to renamed grub_menu_addentry function.
1139 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
1141 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
1143 2009-05-22 Pavel Roskin <proski@gnu.org>
1145 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
1146 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
1147 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
1148 compiling for the i386 targets, but not for the utilities.
1150 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
1152 (grub_root_drive): Likewise.
1153 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
1155 (grub_root_drive): Change size to byte.
1156 (grub_start_addr): Remove.
1157 (grub_end_addr): Likewise.
1158 (grub_apm_bios_info): Likewise.
1160 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
1162 * normal/i386: Remove.
1163 * normal/powerpc: Likewise.
1164 * normal/sparc64: Likewise.
1165 * normal/x86_64: Likewise.
1167 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
1169 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
1170 * loader/i386/linux_trampoline.S: Fix indentation
1171 * loader/i386/xnu_helper.S: Likewise
1173 2009-05-18 Colin D Bennett <colin@gibibit.com>
1175 Display error messages when parsing a Lua statement fails.
1176 Previously, executing a syntactically invalid statement like
1177 ")foo" or "bar;" would silently fail.
1179 * script/lua/grub_main.c (handle_lua_error): New function.
1180 (grub_lua_parse_line): Improved reporting of Lua parser and
1183 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1185 Remove -Werror which causes build to fail on some systems
1187 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
1188 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
1189 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
1191 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1193 trampoline for linux on 64-bit platform
1195 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
1196 loader/i386/efi/linux_trampoline.S
1197 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
1199 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
1201 * loader/i386/linux_trampoline.S: moved here
1202 * loader/i386/efi/linux.c (allocate_pages): reserve space for
1204 (jumpvector): removed
1205 (grub_linux_trampoline_start): new declaration
1206 (grub_linux_trampoline_end): likewise
1207 (grub_linux_boot): use trampoline when on 64-bit platform
1208 * loader/i386/linux.c: likewise
1210 2009-05-16 Pavel Roskin <proski@gnu.org>
1212 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
1213 const to avoid a warning.
1214 (grub_lua_setenv): Likewise.
1215 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
1216 lmsg to fix a warning.
1218 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
1220 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
1221 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
1222 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
1223 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
1224 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
1225 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
1226 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
1227 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
1229 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
1231 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
1233 2009-05-16 Bean <bean123ch@gmail.com>
1235 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
1236 (lua_mod_SOURCES): New variable.
1237 (lua_mod_CFLAGS): Likewise.
1238 (lua_mod_LDFLAGS): Likewise.
1240 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
1241 (setjmp_mod_SOURCES): New variable.
1242 (setjmp_mod_CFLAGS): Likewise.
1243 (setjmp_LDFLAGS): Likewise.
1245 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
1246 (setjmp_mod_SOURCES): New variable.
1247 (setjmp_mod_CFLAGS): Likewise.
1248 (setjmp_LDFLAGS): Likewise.
1250 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
1251 (setjmp_mod_SOURCES): New variable.
1252 (setjmp_mod_CFLAGS): Likewise.
1253 (setjmp_LDFLAGS): Likewise.
1255 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
1256 (setjmp_mod_SOURCES): New variable.
1257 (setjmp_mod_CFLAGS): Likewise.
1258 (setjmp_LDFLAGS): Likewise.
1260 * normal/i386/setjmp.S: Moved from here ...
1261 * lib/i386/setjmp.S: ... Moved here
1262 * normal/x86_64/setjmp.S: Moved from here ...
1263 * lib/x86_64/setjmp.S: ... Moved here
1264 * normal/powerpc/setjmp.S: Moved from here ...
1265 * lib/powerpc/setjmp.S: ... Moved here
1266 * normal/sparc64/setjmp.S: Moved from here ...
1267 * lib/sparc64/setjmp.S: ... Moved here
1269 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
1270 returns_twice in mingw.
1272 * script/lua/grub_lib.c: New file.
1273 * script/lua/grub_lib.h: Likewise.
1274 * script/lua/grub_lua.h: Likewise.
1275 * script/lua/grub_main.c: Likewise.
1276 * script/lua/lapi.c: Likewise.
1277 * script/lua/lapi.h: Likewise.
1278 * script/lua/lauxlib.c: Likewise.
1279 * script/lua/lauxlib.h: Likewise.
1280 * script/lua/lbaselib.c: Likewise.
1281 * script/lua/lcode.c: Likewise.
1282 * script/lua/lcode.h: Likewise.
1283 * script/lua/ldblib.c: Likewise.
1284 * script/lua/ldebug.c: Likewise.
1285 * script/lua/ldebug.h: Likewise.
1286 * script/lua/ldo.c: Likewise.
1287 * script/lua/ldo.h: Likewise.
1288 * script/lua/ldump.c: Likewise.
1289 * script/lua/lfunc.c: Likewise.
1290 * script/lua/lfunc.h: Likewise.
1291 * script/lua/lgc.c: Likewise.
1292 * script/lua/lgc.h: Likewise.
1293 * script/lua/linit.c: Likewise.
1294 * script/lua/liolib.c: Likewise.
1295 * script/lua/llex.c: Likewise.
1296 * script/lua/llex.h: Likewise.
1297 * script/lua/llimits.h: Likewise.
1298 * script/lua/lmathlib.c: Likewise.
1299 * script/lua/lmem.c: Likewise.
1300 * script/lua/lmem.h: Likewise.
1301 * script/lua/loadlib.c: Likewise.
1302 * script/lua/lobject.c: Likewise.
1303 * script/lua/lobject.h: Likewise.
1304 * script/lua/lopcodes.c: Likewise.
1305 * script/lua/lopcodes.h: Likewise.
1306 * script/lua/loslib.c: Likewise.
1307 * script/lua/lparser.c: Likewise.
1308 * script/lua/lparser.h: Likewise.
1309 * script/lua/lstate.c: Likewise.
1310 * script/lua/lstate.h: Likewise.
1311 * script/lua/lstring.c: Likewise.
1312 * script/lua/lstring.h: Likewise.
1313 * script/lua/lstrlib.c: Likewise.
1314 * script/lua/ltable.c: Likewise.
1315 * script/lua/ltable.h: Likewise.
1316 * script/lua/ltablib.c: Likewise.
1317 * script/lua/ltm.c: Likewise.
1318 * script/lua/ltm.h: Likewise.
1319 * script/lua/lua.h: Likewise.
1320 * script/lua/luaconf.h: Likewise.
1321 * script/lua/lualib.h: Likewise.
1322 * script/lua/lundump.c: Likewise.
1323 * script/lua/lundump.h: Likewise.
1324 * script/lua/lvm.c: Likewise.
1325 * script/lua/lvm.h: Likewise.
1326 * script/lua/lzio.c: Likewise.
1327 * script/lua/lzio.h: Likewise.
1329 2009-05-16 Bean <bean123ch@gmail.com>
1331 * include/grub/kernel.h (grub_module_header_types): Add type
1334 * kern/main.c (grub_load_config): New function.
1335 (grub_main): Call grub_load_config to read boot config.
1337 * grub-mkimage (generate_image): New parameter config_path.
1338 (options): New option --config.
1339 (main): Parse --config option, and pass it to generate_image.
1341 2009-05-14 Christian Franke <franke@computer.org>
1343 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
1344 This fixes build on Cygwin.
1346 2009-05-14 Pavel Roskin <proski@gnu.org>
1348 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
1349 jump. This saves two bytes, so the typical case of 2 swapped
1350 drives would fit 32 bytes.
1352 2009-05-13 Pavel Roskin <proski@gnu.org>
1354 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
1355 grub_uint32_t to avoid a warning.
1357 * loader/i386/linux.c (allocate_pages): When assigning
1358 real_mode_mem, cast through grub_size_t to fix a warning. The
1359 code already makes sure that the value would fit a pointer.
1360 (grub_linux_setup_video): Cast render_target->data to
1361 grub_size_t to fix a warning.
1363 2009-05-13 Javier MartÃn <lordhabbit@gmail.com>
1365 * commands/i386/pc/drivemap.c: New file - implement drivemap
1367 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
1368 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
1370 2009-05-13 Pavel Roskin <proski@gnu.org>
1372 * util/i386/pc/grub-setup.c (setup): Remove unused variable
1373 embedding_area_exists.
1375 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
1377 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
1378 it easier to understand / work with.
1379 Improve warning messages for cases where there's no embedding area,
1380 or when it is too small (or core.img too large).
1382 2009-05-13 Pavel Roskin <proski@gnu.org>
1384 * loader/i386/pc/multiboot2.c: Add necessary includes for
1385 grub_multiboot2_real_boot().
1387 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
1388 PX record is always little-endian. We only need the lower 2
1391 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
1392 facilitate code reuse.
1393 (grub_cpio_mount): Use "struct head", not a char buffer. This
1394 fixes a warning reported by gcc 4.4.
1396 * kernel/disk.c (grub_disk_read): Use void pointer for the
1398 (grub_disk_write): Use const void pointer for the buffer.
1399 Adjust all callers. Remove unnecessary casts.
1401 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
1403 * util/i386/pc/grub-install.in: Update copyright year.
1405 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1409 * commands/gptsync.c: new file
1410 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
1411 (gptsync_mod_SOURCES): new variable
1412 (gptsync_mod_CFLAGS): likewise
1413 (gptsync_mod_LDFLAGS): likewise
1414 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
1416 (GRUB_PC_PARTITION_TYPE_HFS): likewise
1417 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
1418 * conf/i386-ieee1275.rmk: likewise
1419 * conf/i386-pc.rmk: likewise
1420 * conf/powerpc-ieee1275.rmk: likewise
1422 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1426 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
1427 (grub_dl_ref): likewise
1429 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
1431 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
1432 split in two functions (one for msdos and one for gpt).
1434 2009-05-08 Pavel Roskin <proski@gnu.org>
1436 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
1439 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
1440 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
1441 Initialize them with -1. Add sanity check for bad1. Eliminate
1444 2009-05-08 David S. Miller <davem@davemloft.net>
1446 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
1448 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
1450 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
1453 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
1455 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1456 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
1458 2009-05-05 David S. Miller <davem@davemloft.net>
1460 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
1462 2009-05-05 Pavel Roskin <proski@gnu.org>
1464 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
1465 of grub_dl_ref() and grub_dl_unref().
1466 * commands/parttool.c: Remove preprocessor conditionals around
1467 grub_dl_ref() and grub_dl_unref().
1468 * fs/affs.c: Likewise.
1469 * fs/afs.c: Likewise.
1470 * fs/cpio.c: Likewise.
1471 * fs/ext2.c: Likewise.
1472 * fs/fat.c: Likewise.
1473 * fs/hfs.c: Likewise.
1474 * fs/hfsplus.c: Likewise.
1475 * fs/iso9660.c: Likewise.
1476 * fs/jfs.c: Likewise.
1477 * fs/minix.c: Likewise.
1478 * fs/ntfs.c: Likewise.
1479 * fs/reiserfs.c: Likewise.
1480 * fs/sfs.c: Likewise.
1481 * fs/udf.c: Likewise.
1482 * fs/ufs.c: Likewise.
1483 * fs/xfs.c: Likewise.
1484 * include/grub/dl.h: Likewise.
1485 * loader/xnu.c: Likewise.
1487 2009-05-04 Pavel Roskin <proski@gnu.org>
1489 * commands/acpi.c: Remove unused variable my_mod.
1490 * partmap/amiga.c: Likewise.
1491 * partmap/apple.c: Likewise.
1492 * partmap/gpt.c: Likewise.
1493 * partmap/pc.c: Likewise.
1494 * partmap/sun.c: Likewise.
1495 * term/gfxterm.c: Likewise.
1496 * term/i386/pc/vesafb.c: Likewise.
1497 * term/i386/pc/vga.c: Likewise.
1499 2009-05-04 David S. Miller <davem@davemloft.net>
1501 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
1502 pointer args to grub_ieee1275_get_property().
1504 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
1506 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
1507 devices, and do not traverse down under controller nodes.
1509 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
1510 (grub_ofdisk_open): Use it to un-escape "," characters.
1511 * kern/disk.c (find_part_sep): New.
1512 (grub_disk_open): Use it to find the first non-escaped ','
1513 character in the disk name.
1514 * util/ieee1275/devicemap.c (escape_of_path): New.
1515 (grub_util_emit_devicemap_entry): Use it.
1516 * util/sparc64/ieee1275/grub-install.in: Update script to
1517 strip partition specifiers properly by not triggering on
1518 '\' escaped ',' characters.
1520 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
1522 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
1524 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
1526 (linux_vesafb_modes): Add a lot of additional modes to the list (based
1527 on documentation from Wikipedia).
1529 2009-05-04 Pavel Roskin <proski@gnu.org>
1531 * disk/ata.c: Spelling fixes.
1532 * disk/raid.c: Likewise.
1533 * disk/usbms.c: Likewise.
1534 * disk/dmraid_nvidia.c: Likewise.
1535 * kern/ieee1275/openfw.c: Likewise.
1536 * kern/ieee1275/init.c: Likewise.
1537 * kern/ieee1275/cmain.c: Likewise.
1538 * boot/i386/pc/cdboot.S: Likewise.
1539 * video/readers/png.c: Likewise.
1540 * video/i386/pc/vbe.c: Likewise.
1541 * fs/udf.c: Likewise.
1542 * fs/hfs.c: Likewise.
1543 * fs/reiserfs.c: Likewise.
1544 * efiemu/runtime/efiemu.c: Likewise.
1545 * efiemu/main.c: Likewise.
1546 * efiemu/mm.c: Likewise.
1547 * include/grub/elf.h: Likewise.
1548 * include/grub/xnu.h: Likewise.
1549 * include/grub/usbdesc.h: Likewise.
1550 * include/grub/usb.h: Likewise.
1551 * include/grub/script_sh.h: Likewise.
1552 * include/grub/lib/LzmaEnc.h: Likewise.
1553 * include/grub/efiemu/efiemu.h: Likewise.
1554 * include/grub/command.h: Likewise.
1555 * normal/menu.c: Likewise.
1556 * normal/main.c: Likewise.
1557 * normal/datetime.c: Likewise.
1558 * bus/usb/uhci.c: Likewise.
1559 * mmap/i386/uppermem.c: Likewise.
1560 * mmap/mmap.c: Likewise.
1561 * commands/acpi.c: Likewise.
1562 * commands/test.c: Likewise.
1563 * partmap/apple.c: Likewise.
1564 * font/font.c: Likewise.
1565 * loader/sparc64/ieee1275/linux.c: Likewise.
1566 * loader/macho.c: Likewise.
1567 * loader/i386/bsd_trampoline.S: Likewise.
1568 * loader/i386/bsd.c: Likewise.
1569 * loader/xnu.c: Likewise.
1570 * term/i386/pc/vesafb.c: Likewise.
1571 * term/usb_keyboard.c: Likewise.
1572 * util/resolve.c: Likewise.
1573 * util/getroot.c: Likewise.
1575 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
1577 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
1579 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
1581 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
1584 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
1586 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
1587 parameter only available on BIOS.
1589 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1591 Removed wrong semicolon in declaration
1593 * grub/misc.h (grub_dprintf): remove semicolon
1595 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
1597 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
1598 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
1599 is done by grub_cmd_linux() now).
1600 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
1601 restore video to text mode.
1602 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
1603 indicates lack of "vga=" parameter. "vga=0" is mapped to
1604 `GRUB_LINUX_VID_MODE_NORMAL'.
1606 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
1608 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
1609 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
1610 and `normal/script.c'. Add `kern/rescue_reader.c',
1611 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
1612 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
1613 `grub_script.tab.c'.
1615 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1616 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
1617 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1618 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
1619 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1621 * Makefile.in: Remove duplicated 2008 in Copyright line.
1623 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
1625 * util/misc.c (grub_util_warn): New function. Emits a warning
1627 * include/grub/util/misc.h (grub_util_warn): New declaration.
1629 * util/i386/pc/grub-install.in: Understand --force and pass it down
1632 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
1634 (setup): Improve error messages and add warnings when requested to
1635 install in odd layouts. Refuse to install using blocklists unless
1638 2009-05-04 martin f. krafft <madduck@madduck.net>
1640 * disk/raid.c (grub_raid_scan_device): Improve debug message.
1642 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1644 Updated copyright year
1646 * fs/hfsplus.c: updated copyright year
1648 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1652 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
1653 in the space previously used by unused3
1654 (grub_hfsplus_uuid): new function
1655 (grub_hfsplus_fs): added uuid field
1657 2009-05-03 Pavel Roskin <proski@gnu.org>
1659 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
1660 suppress warnings. It's no longer needed.
1661 * disk/host.c: Likewise.
1662 * disk/ata_pthru.c: Likewise.
1663 * disk/loopback.c: Likewise.
1664 * hook/datehook.c: Likewise.
1665 * parttool/pcpart.c: Likewise.
1666 * fs/i386/pc/pxe.c: Likewise.
1667 * fs/ntfscomp.c: Likewise.
1668 * efiemu/main.c: Likewise.
1669 * mmap/mmap.c: Likewise.
1670 * commands/crc.c: Likewise.
1671 * commands/hexdump.c: Likewise.
1672 * commands/hdparm.c: Likewise.
1673 * commands/acpi.c: Likewise.
1674 * commands/echo.c: Likewise.
1675 * commands/minicmd.c: Likewise.
1676 * commands/blocklist.c: Likewise.
1677 * commands/memrw.c: Likewise.
1678 * commands/loadenv.c: Likewise.
1679 * commands/usbtest.c: Likewise.
1680 * commands/lsmmap.c: Likewise.
1681 * commands/boot.c: Likewise.
1682 * commands/parttool.c: Likewise.
1683 * commands/configfile.c: Likewise.
1684 * commands/search.c: Likewise.
1685 * commands/ieee1275/suspend.c: Likewise.
1686 * commands/cat.c: Likewise.
1687 * commands/i386/pc/pxecmd.c: Likewise.
1688 * commands/i386/pc/play.c: Likewise.
1689 * commands/i386/pc/halt.c: Likewise.
1690 * commands/i386/pc/vbeinfo.c: Likewise.
1691 * commands/i386/pc/vbetest.c: Likewise.
1692 * commands/lspci.c: Likewise.
1693 * commands/date.c: Likewise.
1694 * commands/handler.c: Likewise.
1695 * commands/ls.c: Likewise.
1696 * commands/test.c: Likewise.
1697 * commands/cmp.c: Likewise.
1698 * commands/efi/loadbios.c: Likewise.
1699 * commands/efi/fixvideo.c: Likewise.
1700 * commands/halt.c: Likewise.
1701 * commands/help.c: Likewise.
1702 * commands/reboot.c: Likewise.
1703 * hello/hello.c: Likewise.
1704 * script/sh/main.c: Likewise.
1705 * loader/xnu.c: Likewise.
1706 * term/terminfo.c: Likewise.
1707 * term/i386/pc/serial.c: Likewise.
1708 * term/usb_keyboard.c: Likewise.
1710 2009-05-03 David S. Miller <davem@davemloft.net>
1712 * normal/menu.c: Include grub/parser.h
1714 2009-05-03 Pavel Roskin <proski@gnu.org>
1716 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
1718 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
1719 Suggested by Javier MartÃn <lordhabbit@gmail.com>
1721 * util/i386/pc/grub-mkrescue.in: Allow for the case when
1722 efiemu??.o doesn't exist.
1723 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
1726 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
1728 FreeBSD 64-bit support
1730 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
1731 and loader/i386/bsd_trampoline.S
1732 (bsd_mod_ASFLAGS): new variable
1733 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
1734 (FREEBSD_MODTYPE_KERNEL64): likewise
1735 (grub_bsd64_trampoline_start): likewise
1736 (grub_bsd64_trampoline_end): likewise
1737 (grub_bsd64_trampoline_selfjump): likewise
1738 (grub_bsd64_trampoline_gdt): likewise
1739 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
1740 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
1741 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
1742 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
1743 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
1745 * loader/i386/bsd_pagetable.c: new file
1746 * loader/i386/bsd_trampoline.S: likewise
1747 * loader/i386/bsd.c (ALIGN_QWORD): new macro
1748 (ALIGN_VAR): likewise
1749 (entry_hi): new variable
1750 (kern_end_mdofs): likewise
1751 (is_64bit): likewise
1752 (grub_freebsd_add_meta): use ALIGN_VAR
1753 (grub_e820_mmap): new declaration
1754 (grub_freebsd_add_mmap): new function
1755 (grub_freebsd_add_meta_module): support 64 bit kernels
1756 (grub_freebsd_list_modules): use ALIGN_VAR
1757 (gdt_descriptor): new declaration
1758 (grub_freebsd_boot): support 64 bit kernels
1759 (grub_bsd_elf64_hook): new function
1760 (grub_bsd_load_elf): support elf64
1762 2009-05-03 Bean <bean123ch@gmail.com>
1764 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
1765 after we get the result of if statement.
1767 2009-05-03 Bean <bean123ch@gmail.com>
1769 * Makefile.in (enable_efiemu): New variable.
1771 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
1773 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
1775 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
1776 path, add -mno-red-zone option.
1777 (efiemu64_s.o): Likewise.
1778 (efiemu64.o): Use macro $^ for source file.
1780 * configure.ac (--enable-efiemu): New option.
1782 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1786 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
1787 (pkglib_MODULES): add xnu.mod
1788 (xnu_mod_SOURCES): new variable
1789 (xnu_mod_CFLAGS): likewise
1790 (xnu_mod_LDFLAGS): likewise
1791 (xnu_mod_ASFLAGS): likewise
1792 * conf/i386-pc.rmk: likewise
1793 * conf/x86_64-efi.rmk: likewise
1794 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
1796 * include/grub/i386/macho.h: new file
1797 * include/grub/i386/xnu.h: likewise
1798 * include/grub/macho.h: likewise
1799 * include/grub/machoload.h: likewise
1800 * include/grub/x86_64/macho.h: likewise
1801 * include/grub/x86_64/xnu.h: likewise
1802 * include/grub/xnu.h: likewise
1803 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
1804 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
1805 * loader/i386/efi/xnu.c: new file
1806 * loader/i386/pc/xnu.c: likewise
1807 * loader/i386/xnu.c: likewise
1808 * loader/i386/xnu_helper.S: likewise
1809 * loader/macho.c: likewise
1810 * loader/xnu.c: likewise
1811 * loader/xnu_resume.c: likewise
1812 * util/grub-dumpdevtree: likewise
1813 * include/grub/i386/pit.h: include grub/err.h
1814 (grub_pit_wait): export
1815 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
1817 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1821 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
1822 _linux_efi, linux_efi.
1823 new files in grub-emu
1824 new targets efiemu32.o and efiemu64.o
1825 * loader/linux_normal_efiemu.c: likewise
1826 * loader/i386/efi/linux.c: added preliminary efiemu support
1827 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
1829 * include/grub/autoefi.h: new file
1830 * include/grub/i386/efiemu.h: likewise
1831 * include/grub/i386/pc/efiemu.h: likewise
1832 * include/grub/efi/api.h: add LL suffix when necessary
1833 new definitions relating to tables
1834 * include/grub/efiemu/efiemu.h: new file
1835 * include/grub/efiemu/runtime.h: likewise
1836 * efiemu/prepare.c: likewise
1837 * efiemu/loadcore_common.c: likewise
1838 * efiemu/loadcore64.c: likewise
1839 * efiemu/runtime/efiemu.sh: likewise
1840 * efiemu/runtime/efiemu.S: likewise
1841 * efiemu/runtime/efiemu.c: likewise
1842 * efiemu/runtime/config.h: likewise
1843 * efiemu/prepare32.c: likewise
1844 * efiemu/main.c: likewise
1845 * efiemu/modules/pnvram.c: likewise
1846 * efiemu/modules/i386: likewise
1847 * efiemu/modules/i386/pc: likewise
1848 * efiemu/modules/acpi.c: likewise
1849 * efiemu/i386/pc/cfgtables.c: likewise
1850 * efiemu/i386/loadcore64.c: likewise
1851 * efiemu/i386/loadcore32.c: likewise
1852 * efiemu/prepare64.c: likewise
1853 * efiemu/loadcore.c: likewise
1854 * efiemu/symbols.c: likewise
1855 * efiemu/mm.c: likewise
1856 * efiemu/loadcore32.c: likewise
1858 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1862 * commands/acpi.c: new file
1863 * commands/i386/pc/acpi.c: likewise
1864 * commands/efi/acpi.c: likewise
1865 * include/grub/acpi.h: likewise
1866 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
1867 (acpi_mod_SOURCES): new variable
1868 (acpi_mod_CFLAGS): likewise
1869 (acpi_mod_LDFLAGS): likewise
1870 * conf/i386-efi.rmk: likewise
1871 * conf/x86_64-efi.rmk: likewise
1873 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1875 Missing part from mmap patch
1877 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
1878 (grub_mmap_unregister)
1879 (grub_mmap_free_and_unregister): use grub_mmap_register
1881 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1885 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
1886 * loader/i386/linux.c (find_mmap_size): likewise
1887 (allocate_pages): likewise
1888 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
1889 (grub_fill_multiboot_mmap): likewise
1890 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
1891 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
1892 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
1893 (OPENBSD_MMAP_RESERVED): likewise
1894 * include/grub/i386/pc/memory.h: include grub/memory.h
1895 (grub_lower_mem): removed
1896 (grub_upper_mem): likewise
1897 (GRUB_MACHINE_MEMORY_ACPI): new definition
1898 (GRUB_MACHINE_MEMORY_NVS): likewise
1899 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
1900 (GRUB_MACHINE_MEMORY_HOLE): likewise
1901 (grub_machine_mmap_register): likewise
1902 (grub_machine_mmap_unregister): likewise
1903 (grub_machine_get_upper): likewise
1904 (grub_machine_get_lower): likewise
1905 (grub_machine_get_post64): likewise
1906 * include/grub/i386/efi/memory.h: new file
1907 * include/grub/x86_64/efi/memory.h: likewise
1908 * include/grub/efi/memory.h: likewise
1909 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
1910 (mmap_mod_SOURCES): new variable
1911 (mmap_mod_LDFLAGS): likewise
1912 (mmap_mod_ASFLAGS): likewise
1913 * conf/i386-coreboot.rmk: likewise
1914 * conf/i386-ieee1275.rmk: likewise
1915 * conf/i386-efi.rmk: likewise
1916 * conf/x86_64-efi.rmk: likewise
1917 * include/grub/types.h (UINT_TO_PTR): new macro
1918 (PTR_TO_UINT32): likewise
1919 (PTR_TO_UINT64): likewise
1920 * include/grub/memory.h: new file
1921 * mmap/i386/pc/mmap.c: likewise
1922 * mmap/i386/pc/mmap_helper.S: likewise
1923 * mmap/i386/uppermem.c: likewise
1924 * mmap/mmap.c: likewise
1925 * mmap/efi/mmap.c: likewise
1926 * kern/i386/coreboot/init.c (grub_machine_init): don't use
1928 * kern/i386/pc/init.c (grub_lower_mem): removed variable
1929 (grub_upper_mem): likewise
1930 (grub_machine_init): don't use grub_upper_mem,
1931 make grub_lower_mem local
1932 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
1933 grub_mmap_iterate and grub_mmap_get_upper
1934 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
1936 2009-05-02 Bean <bean123ch@gmail.com>
1938 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
1940 (pkglib_MODULES): Add normal.mod and sh.mod.
1941 (normal_SOURCES): New variable.
1942 (normal_mod_CFLAGS): Likewise.
1943 (normal_mod_LDFLAGS): Likewise.
1944 (sh_mod_SOURCES): Likewise.
1945 (sh_mod_CFLAGS): Likewise.
1946 (sh_mod_LDFLAGS): Likewise.
1948 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
1949 script/sh/lexer.c_DEPENDENCIES.
1950 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
1951 kern/rescue_reader.c and kern/rescue_parser.c.
1952 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
1953 (grub_emu_SOURCES): Change source files.
1954 (pkglib_MODULES): Remove normal.mod.
1955 (normal_SOURCES): Removed.
1956 (normal_mod_CFLAGS): Likewise.
1957 (normal_mod_LDFLAGS): Likewise.
1958 * conf/i386-coreboot.rmk: Likewise.
1959 * conf/i386-efi.rmk: Likewise.
1960 * conf/i386-ieee1276.rmk: Likewise.
1961 * conf/powerpc-ieee1275.rmk: Likewise.
1962 * conf/sparc64-ieee1275.rmk: Likewise.
1963 * conf/x86_64-efi.rmk: Likewise.
1965 * include/grub/command.h (grub_command_execute): New inline function.
1967 * include/grub/menu.h (grub_menu_entry): Removed commands field.
1969 * include/grub/normal.h: Remove <grub/setjmp.h>.
1970 (grub_fs_module_list): Moved to normal/autofs.c.
1971 (grub_exit_env): Removed.
1972 (grub_command_execute): Likewise.
1973 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
1975 (read_command_list): New function declaration.
1976 (read_fs_list): Likewise.
1978 * include/parser.h: Include <grub/reader.h>.
1979 (grub_parser_split_cmdline): Change type of getline parameter.
1980 (grub_parser): New structure.
1981 (grub_parser_class): New variable.
1982 (grub_parser_execute): New function declaration.
1983 (grub_register_rescue_parser): Likewise.
1984 (grub_parser_register): New inline function.
1985 (grub_parser_unregister): Likewise.
1986 (grub_parser_get_current): Likewise.
1987 (grub_parser_set_current): Likewise.
1989 * include/grub/reader.h: New file.
1990 * kern/reader.c: Likewise.
1991 * kern/rescue_parser.c: Likewise.
1992 * kern/rescue_reader.c: Likewise.
1993 * normal/autofs.c: Likewise.
1994 * normal/dyncmd.c: Likewise.
1996 * include/grub/rescue.h: Removed.
1997 * normal/command.h: Likewise.
1999 * include/grub/script.h: Moved to ...
2000 * include/grub/script_sh.h: ... Moved here.
2001 * normal/execute.c: Moved to ...
2002 * script/sh/execute.c: ... Moved here.
2003 * normal/function.c: Moved to ...
2004 * script/sh/function.c: ... Moved here.
2005 * normal/lexer.c: Moved to ...
2006 * script/sh/lexer.c: ... Moved here.
2007 * normal/parser.y: Moved to ...
2008 * script/sh/parser.y: ... Moved here.
2009 * normal/script.c: Moved to ...
2010 * script/sh/script.c: ... Moved here.
2012 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
2014 (grub_exit_env): Removed.
2015 (fs_module_list): Moved to normal/autofs.c.
2016 (grub_file_getline): Don't handle comment here.
2017 (free_menu): Skip removed field entry->commands.
2018 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
2020 (read_config_file): Removed nested parameter, change getline function.
2021 (grub_enter_normal_mode): Removed.
2022 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
2023 (read_command_list): Likewise.
2024 (autoload_fs_module): Moved to normal/autofs.c.
2025 (read_fs_list): Likewise.
2026 (reader_nested): New variable.
2027 (grub_normal_execute): Run parser.sh to switch to sh parser.
2028 (grub_cmd_rescue): Removed.
2029 (cmd_normal): Removed.
2030 (grub_cmd_normal): Unregister itself at the beginning. Don't register
2032 (grub_cmdline_run): New function.
2033 (grub_normal_reader_init): Likewise.
2034 (grub_normal_read_line): Likewise.
2035 (grub_env_write_pager): Likewise.
2036 (cmdline): New variable.
2037 (grub_normal_reader): Likewise.
2038 (GRUB_MOD_INIT): Register normal reader and set as current, register
2039 pager hook, register normal command with grub_register_command_prio,
2040 so that it won't show up in command.lst.
2041 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
2042 grub_fs_autoload_hook.
2044 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
2045 (grub_menu_execute_entry): Replace grub_script_execute with
2046 grub_parser_execute, change parameter to grub_command_execute.
2048 * normal/menu_text.c: Remove <grub/script.h>.
2050 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
2051 and <grub/parser.h>.
2052 (run): Change editor_getline to use new parser interface. Change
2053 parameter to grub_command_execute.
2055 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
2056 <grub/reader.h> and <grub/parser.h>.
2057 (grub_load_normal_mode): Execute normal command.
2058 (grub_main): Call grub_register_core_commands,
2059 grub_register_rescue_parser and grub_register_rescue_reader, use
2060 grub_reader_loop to enter input loop.
2062 * kern/parser.c (grub_parser_split_cmdline): Change type of
2064 (grub_parser_class): New variable.
2065 (grub_parser_execute): New function.
2067 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
2068 * loader/multiboot2.c: Likewise.
2069 * loader/sparc64/ieee1275/linux.c: Likewise.
2071 * util/grub-emu.c (read_command_list): New dummy function.
2073 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
2075 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
2076 count to 16 for CCISS and IDA.
2078 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
2080 * normal/menu_text.c (grub_wait_after_message): Print a newline
2081 after waiting for user input.
2083 * loader/i386/linux.c: Include `<grub/normal.h>'.
2084 (grub_cmd_linux): Improve the error message about `ask' mode, by
2085 waiting for user input so it's not missed (we can do this, since
2086 user requested interaction).
2088 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2090 Added missing lst to grub-mkrescue
2092 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
2093 and ${input_dir}/parttool.lst
2095 2009-04-30 David S. Miller <davem@davemloft.net>
2097 * util/hostdisk.c (device_is_wholedisk): New function.
2098 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
2099 zero only if device_is_wholedisk() returns true.
2101 * util/hostdisk.c (convert_system_partition_to_system_disk):
2102 Handle virtual disk devices named /dev/vdiskX as found on sparc
2105 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
2106 lettered partition specifier is found, convert to numbered.
2108 2009-04-29 David S. Miller <davem@davemloft.net>
2110 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
2111 * include/grub/sparc64/ieee1275/memory.h: Likewise.
2113 * normal/command.c: Add missing newline at end of file.
2115 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
2117 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
2118 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
2119 grub_ofdisk_read): Likewise, and deal similarly with the fact that
2120 ihandles have a 32-bit type but need to be stored in a "void *".
2122 2009-04-28 Pavel Roskin <proski@gnu.org>
2124 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
2125 not disk. Adjust all dependencies.
2126 (grub_fs_uuid_close): Use grub_device_close(), not
2129 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
2130 parent's partition, don't copy it by reference, as it gets freed
2133 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2135 Preboot hooks support
2137 * commands/boot.c (struct grub_preboot_t): new declaration
2138 (preboots_head): new variable
2139 (preboots_tail): likewise
2140 (grub_loader_register_preboot_hook): new function
2141 (grub_loader_unregister_preboot_hook): likewise
2142 (grub_loader_set): launch preboot hooks
2143 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
2144 (grub_loader_register_preboot_hook): new declaration
2145 (grub_loader_unregister_preboot_hook): likewise
2147 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2151 * disk/scsi.c (grub_scsi_open): added missing cast when
2152 calling grub_dprintf
2154 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2156 Bug and warning fixes
2158 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
2160 * commands/test.c (test_parse): fixed bug with file tests and corrected
2161 declaration of find_file
2163 2009-04-26 Pavel Roskin <proski@gnu.org>
2165 * Makefile.in: Don't install empty manual pages if help2man is
2166 missing. Use help2man option for output, not shell redirection.
2168 2009-04-26 David S. Miller <davem@davemloft.net>
2170 * util/grub-mkdevicemap.c (make_device_map): Add missing
2171 NESTED_FUNC_ATTR to process_device().
2173 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2177 * commands/test.c: rewritten to use bash-like test
2179 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2181 Parttool autoloading and improvements
2183 * Makefile.in (pkglib_DATA): add parttool.lst
2184 (parttool.lst): new target
2185 * genmk.rb: generate parttool-*
2186 (CLEANFILES): add #{parttool}
2187 (PARTTOOLFILES): new variable
2188 * genparttoollist.sh: new file
2189 * parttool/pcpart.c (grub_pcpart_boot): more feedback
2190 (grub_pcpart_type): likewise
2191 * commands/parttool.c (helpmsg): new variable
2192 (grub_cmd_parttool): output help if not enough arguments are supplied
2194 (GRUB_MOD_INIT(parttool)): use helpmsg
2196 2009-04-24 David S. Miller <davem@davemloft.net>
2198 Avoiding opening same device multiple times in device iterator.
2200 * kern/device.c: (grub_device_iterate): Define struct part_ent,
2201 and use it to build a list of partitions in iterate_disk() and
2202 iterate_partition().
2204 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
2207 * disk/ieee1275/nand.c (grub_nand_iterate): Return
2208 grub_devalias_iterate() result instead of unconditional 0.
2209 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
2210 Also, capture hook return value, either directly or via
2211 grub_children_iterate(), and propagate to caller.
2212 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
2213 grub_children_iterate): Return value is now 'int' instead of
2215 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
2216 like a proper iterator, stopping when hooks return non-zero.
2217 (grub_devalias_iterate): Likewise.
2219 2009-04-23 David S. Miller <davem@davemloft.net>
2221 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
2223 2009-04-22 David S. Miller <davem@davemloft.net>
2225 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
2226 is larger than address_cells, use that value for address_cells too.
2228 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
2229 IEEE1275_MAX_PATH_LEN): Define.
2230 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
2231 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
2232 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
2233 'devtype'. Explicitly NULL terminate devalias expansion.
2235 * util/sparc64/ieee1275/misc.c: New file.
2236 * util/sparc64/ieee1275/grub-setup.c: New file.
2237 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
2238 * util/sparc64/ieee1275/grub-mkimage.c: New file.
2239 * util/sparc64/ieee1275/grub-install.in: New file.
2240 * util/ieee1275/ofpath.c: New file.
2241 * util/ieee1275/devicemap.c: New file.
2242 * util/devicemap.c: New file.
2243 * util/deviceiter.c: New file.
2244 * kern/sparc64/ieee1275/init.c: New file.
2245 * include/grub/util/ofpath.h: New file.
2246 * include/grub/util/deviceiter.h: New file.
2247 * util/grub-mkdevicemap.c: Include deviceiter.h.
2248 Implement using grub_util_emit_devicemap_entry and
2249 grub_util_iterate_devices.
2250 * conf/i386-corebook.rmk: Build util/deviceiter.c and
2251 util/devicemap.c into grub-mkdevicemap
2252 * conf/i386-efi.rmk: Likewise.
2253 * conf/i386-ieee1275.rmk: Likewise.
2254 * conf/i386-pc.rmk: Likewise.
2255 * conf/powerpc-ieee1275.rmk: Likewise.
2256 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
2257 images and installation utilities. Build kernel as image
2258 instead of as elf binary. Use common rules as much as possible.
2260 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2262 Correct GPT definition
2264 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
2267 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
2269 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
2271 2009-04-19 David S. Miller <davem@davemloft.net>
2273 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
2274 (grub_rescue_cmd_linux): Rename to...
2275 (grub_cmd_linux): and fix prototype.
2276 (grub_rescue_cmd_initrd): Rename to...
2277 (grub_cmd_initrd): and fix prototype.
2278 (cmd_linux, cmd_initrd): New.
2279 (GRUB_MOD_INIT(linux)): Use grub_register_command().
2280 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
2282 2009-04-17 Pavel Roskin <proski@gnu.org>
2284 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
2286 (grub_ohci_transfer): Likewise.
2288 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
2290 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
2291 return without a value. Fix inconsistent indentation.
2293 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
2294 match struct grub_fs.
2296 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
2297 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
2298 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
2299 * commands/lspci.c (grub_lspci_iter): Likewise.
2301 2009-04-16 Bean <bean123ch@gmail.com>
2303 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
2306 2009-04-15 Pavel Roskin <proski@gnu.org>
2308 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
2309 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
2310 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
2313 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
2315 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
2316 that no multiple data or metadata areas are supported and `Unknown
2319 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2321 Move loader out of the kernel
2323 * kern/loader.c: moved to ...
2324 * commands/boot.c: ... moved here
2325 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
2326 * commands/boot.c (grub_cmd_boot): moved here. All users updated
2327 * include/grub/kernel.h (grub_machine_fini): export
2328 * include/grub/loader.h (grub_loader_is_loaded): update declaration
2329 (grub_loader_set): likewise
2330 (grub_loader_unset): likewise
2331 (grub_loader_boot): likewise
2332 * conf/common.rmk: new module boot.mod
2333 (pkglib_MODULES): add boot.mod
2334 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
2335 (grub_emu_SOURCES): likewise
2336 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
2337 (grub_emu_SOURCES): likewise
2338 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
2339 (grub_emu_SOURCES): likewise
2340 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
2341 (grub_emu_SOURCES): likewise
2342 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
2343 (grub_emu_SOURCES): likewise
2344 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
2345 (grub_emu_SOURCES): likewise
2346 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
2347 (grub_emu_SOURCES): likewise
2349 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2351 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
2353 * kern/misc.c (grub_itoa): Removed function
2354 (grub_ltoa): likewise
2355 (grub_vsprintf): use grub_lltoa
2357 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2361 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
2362 * conf/i386-coreboot.rmk: likewise
2363 * conf/i386-ieee1275.rmk: likewise
2364 * conf/powerpc-ieee1275.rmk: likewise
2366 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
2368 * INSTALL: Add that `./autogen.sh' needs to be run before
2371 2009-04-14 Bean <bean123ch@gmail.com>
2373 * Makefile.in (pkglib_DATA): Add handler.lst.
2374 (handler.lst): New rule.
2376 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
2377 * conf/i386-coreboot.rmk: Likewise.
2378 * conf/i386-ieee1275.rmk: Likewise.
2379 * conf/i386-efi.rmk: Likewise.
2380 * conf/x86_64-efi.rmk: Likewise.
2381 * conf/powerpc-ieee1275.rmk: Likewise.
2382 * conf/sparc64-ieee1275.rmk: Likewise.
2384 * genhandlerlist.sh: New file.
2386 * genmk.rb: Add rules to generate handler.lst.
2388 * include/grub/normal.h (grub_file_getline): New function definition.
2389 (read_handler_list): Likewise.
2390 (free_handler_list): Likewise.
2392 * include/grub/term.h (grub_term_register_input): Add name parameter
2393 for auto generation of handler.lst.
2394 (grub_term_register_output): Likewise.
2396 * normal/handler.c: New file.
2398 * normal/main.c (get_line): Renamed to grub_file_getline.
2399 (read_config_file): Use the newly renamed grub_file_getline.
2400 (read_command_list): Likewise.
2401 (read_fs_list): Likewise.
2402 (grub_normal_execute): Call read_handler_list to parse handler.lst.
2403 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
2405 * term/efi/console.c (grub_console_init): Add name parameter for auto
2406 generation of handler.lst.
2407 * term/gfxterm.c: Likewise.
2408 * term/i386/pc/at_keyboard.c: Likewise.
2409 * term/i386/pc/console.c: Likewise.
2410 * term/i386/pc/serial.c: Likewise.
2411 * term/i386/pc/vesafb.c: Likewise.
2412 * term/i386/pc/vga.c: Likewise.
2413 * term/i386/pc/vga_text.c: Likewise.
2414 * term/ieee1275/ofconsole.c: Likewise.
2415 * term/usb_keyboard.c: Likewise.
2417 2009-04-14 Bean <bean123ch@gmail.com>
2419 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
2420 properly with null character.
2422 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
2424 * configure: Remove.
2425 * config.h.in: Likewise.
2426 * stamp-h.in: Likewise.
2427 * DISTLIST: Likewise.
2428 * conf/common.mk: Likewise.
2429 * conf/i386-coreboot.mk: Likewise.
2430 * conf/i386-efi.mk: Likewise.
2431 * conf/i386-ieee1275.mk: Likewise.
2432 * conf/i386.mk: Likewise.
2433 * conf/i386-pc.mk: Likewise.
2434 * conf/powerpc-ieee1275.mk: Likewise.
2435 * conf/sparc64-ieee1275.mk: Likewise.
2436 * conf/x86_64-efi.mk: Likewise.
2438 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
2441 2009-04-14 John Stanley <jpsinthemix@verizon.net>
2442 David S. Miller <davem@davemloft.net>
2444 * util/hostdisk.c (make_device_name): Fix buffer length
2447 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
2449 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
2450 <sys/param.h> and <sys/sysctl.h>.
2451 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
2452 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
2453 opening the device and reset them afterwards.
2455 2009-04-13 Pavel Roskin <proski@gnu.org>
2457 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
2458 Reported by John Stanley <jpsinthemix@verizon.net>
2460 2009-04-13 Robert Millan <rmh@aybabtu.com>
2462 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
2463 that name for menuentries when appropriate.
2465 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
2467 * util/grub.d/10_freebsd.in: Add a missing `fi'.
2469 2009-04-13 Robert Millan <rmh@aybabtu.com>
2471 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
2472 to Linux, simply abort telling the user it's no longer supported.
2474 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
2476 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
2477 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
2478 `freebsd_loadenv' only when devices.hints exist.
2480 2009-04-13 Pavel Roskin <proski@gnu.org>
2482 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
2484 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
2486 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
2488 (grub_drive): Likewise.
2490 2009-04-13 David S. Miller <davem@davemloft.net>
2492 * kern/sparc64/ieee1275/ieee1275.c: New file.
2493 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
2494 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
2495 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
2496 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
2497 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
2498 grub_ieee1275_alloc_physmem): Declare new exported functions.
2500 * include/grub/sparc64/ieee1275/loader.h: New file.
2501 * include/grub/sparc64/ieee1275/memory.h: Likewise.
2502 * include/grub/sparc64/kernel.h: Likewise.
2503 * loader/sparc64/ieee1275/linux.c: Likewise.
2505 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
2506 (grub_fstest_SOURCES): Likewise.
2508 * util/hostdisk.c (make_device_name): Do not make any assumptions
2509 about the length of drive names.
2511 * kern/dl.c (grub_dl_load_file): Close file immediately when
2512 we are done using it.
2514 2009-04-12 David S. Miller <davem@davemloft.net>
2516 * kern/misc.c (grub_ltoa): Fix cast when handling negative
2517 values. Noticed by Pavel Roskin.
2519 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
2522 * genmk.rb: Add more flexible image type specification, also
2523 pass --strip-unneeded to objcopy.
2524 * conf/i386-pc.rmk: Use *_FORMAT.
2525 * conf/i386-pc.mk: Rebuilt.
2527 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
2528 (OFDISK_HASH_SZ): Define.
2529 (ofdisk_hash): New hash table.
2530 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
2531 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
2532 instead of device phandle which is not unique.
2534 * kern/sparc64/ieee1275/init.c: Delete, replace with...
2535 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
2536 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
2537 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
2538 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
2539 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
2540 GRUB_KERNEL_MACHINE_DATA_END): Define.
2541 (grub_kernel_image_size, grub_total_module_size): Declare.
2543 2009-04-12 Pavel Roskin <proski@gnu.org>
2545 * configure.ac: Change the logic when we check for target tools.
2546 Do it when the target is specified and it's different from the
2547 specified value of the host.
2549 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
2551 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
2552 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
2553 GNU/kFreeBSD. Check if a device is a character device. Use
2554 DIOCGMEDIASIZE to get the size.
2555 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
2556 support for GNU/kFreeBSD.
2557 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
2558 is a character device instead of a block device. Add support for
2559 FreeBSD device names.
2561 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
2562 is a character device instead of a block device.
2564 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
2565 is a character device instead of a block device.
2567 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
2569 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
2570 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
2571 FreeBSD. Check if a device is a character device. Use
2572 DIOCGMEDIASIZE to get the size.
2573 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
2574 support for FreeBSD.
2575 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
2576 is a character device instead of a block device. Add support for
2577 FreeBSD device names.
2579 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
2580 a character device instead of a block device.
2581 (grub_util_check_char_device): New function.
2583 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
2584 a character device instead of a block device.
2586 * include/grub/util/getroot.h (grub_util_check_char_device): New
2589 2009-04-11 David S. Miller <davem@davemloft.net>
2591 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
2593 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
2594 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
2595 function, if present.
2596 (__bswapdi2): Likewise.
2598 * include/grub/sparc64/ieee1275/boot.h: New file.
2599 * boot/sparc64/ieee1275/boot.S: Likewise.
2600 * boot/sparc64/ieee1275/diskboot.S: Likewise.
2602 * kern/misc.c (grub_ltoa): New function.
2603 (grub_vsprintf): Use it to format 'long' integers.
2605 2009-04-10 David S. Miller <davem@davemloft.net>
2607 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
2608 slots are of type grub_ieee1275_cell_t.
2609 (grub_nand_read): Likewise.
2610 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
2611 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
2612 macros are used to compare values in arg/ret block of the call.
2613 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
2614 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
2615 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
2616 grub_ieee1275_instance_to_path, grub_ieee1275_write,
2617 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
2618 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
2619 grub_ieee1275_close, grub_ieee1275_set_property,
2620 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
2621 grub_ieee1275_cell_t.
2622 * kern/ieee1275/openfw.c (grub_map): Likewise.
2623 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
2624 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
2626 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
2627 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
2628 (grub_devalias_iterate): Likewise.
2630 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2634 * fs/ufs.c (INODE_NBLOCKS): new definition
2635 (struct grub_ufs_dirent): added fields for non-BSD dirents
2636 (grub_ufs_get_file_block): fixed double indirect handling
2637 (grub_ufs_lookup_symlink): use more robust way to determine whether
2639 (grub_ufs_find_file): support for non-BSD dirents
2640 (grub_ufs_dir): support for non-BSD dirents
2642 2009-04-10 Bean <bean123ch@gnail.com>
2644 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
2645 attribute, otherwise the size would be wrong for i386 platform.
2647 * include/grub/pci.h (grub_pci_read_word): New inline function.
2648 (grub_pci_read_byte): Likewise.
2649 (grub_pci_write): Likewise.
2650 (grub_pci_write_word): Likewise.
2651 (grub_pci_write_byte): Likewise.
2653 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
2655 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
2656 (find_framebuf): Scan pci to locate the frame buffer address.
2658 * commands/efi/fixvideo.c: New file.
2660 * commands/efi/loadbios.c: Likewise.
2662 * commands/memrw.c: Likewise.
2664 * util/grub-dumpbios.in: Likewise.
2666 * conf/common.rmk (grub-dumpbios): New utility.
2667 (pkglib_MODULES): New module memrw.mod.
2668 (memrw_mod_SOURCE): New macro.
2669 (memrw_mod_CFLAGS): Likewise.
2670 (memrw_mod_LDFLAGS): Likewise.
2672 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
2674 (loadbios_mod_SOURCE): New macro.
2675 (loadbios_mod_CFLAGS): Likewise.
2676 (loadbios_mod_LDFLAGS): Likewise.
2677 (fixvideo_mod_SOURCE): Likewise.
2678 (fixvideo_mod_CFLAGS): Likewise.
2679 (fixvideo_mod_LDFLAGS): Likewise.
2681 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
2683 (loadbios_mod_SOURCE): New macro.
2684 (loadbios_mod_CFLAGS): Likewise.
2685 (loadbios_mod_LDFLAGS): Likewise.
2686 (fixvideo_mod_SOURCE): Likewise.
2687 (fixvideo_mod_CFLAGS): Likewise.
2688 (fixvideo_mod_LDFLAGS): Likewise.
2690 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
2692 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
2694 2009-04-07 David S. Miller <davem@davemloft.net>
2696 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
2697 support for R_SPARC_OLO10 relocations. Fix compile warning for
2698 R_SPARC_WDISP30 case.
2699 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
2701 2009-04-06 Pavel Roskin <proski@gnu.org>
2703 * include/grub/misc.h (ARRAY_SIZE): New macro.
2704 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
2706 * loader/i386/linux.c (allocate_pages): Use free_pages().
2707 (grub_linux_unload): Don't use free_pages().
2708 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
2709 wrong index. Treat all other modes as text modes.
2710 (grub_cmd_linux): Initialize vid_mode unconditionally to
2711 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
2713 * commands/help.c (print_command_help): Use cmd->prio, not
2714 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
2716 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2720 * parttool/pcpart.c: new file
2721 * commands/parttool.c: likewise
2722 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
2723 (parttool_mod_SOURCES): new variable
2724 (parttool_mod_CFLAGS): likewise
2725 (parttool_mod_LDFLAGS): likewise
2726 (pcpart_mod_SOURCES): likewise
2727 (pcpart_mod_CFLAGS): likewise
2728 (pcpart_mod_LDFLAGS): likewise
2729 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
2730 and parttool/pcpart.c
2731 * conf/i386-efi.rmk: likewise
2732 * conf/i386-ieee1275.rmk: likewise
2733 * conf/i386-pc.rmk: likewise
2734 * conf/powerpc-ieee1275.rmk: likewise
2735 * conf/sparc64-ieee1275.rmk: likewise
2736 * conf/x86_64-ieee1275.rmk: likewise
2738 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2740 Support for mtime and further expandability of dir command
2742 * include/grub/lib/datetime.h: moved to ...
2743 * include/grub/datetime.h: ... moved here and added
2744 declaration of grub_unixtime2datetime. All users updated
2745 * include/grub/fs.h: new syntax for dir and mtime functions in
2747 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
2748 and GRUB_FSHELP_FLAGS_MASK
2749 * commands/ls.c (grub_ls_list_files): Write mtime in long format
2750 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
2751 (grub_ext2_mtime): new function
2752 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
2753 (grub_hfsplus_mtime): new function
2754 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
2755 (GRUB_UFS_ATTR_FILE): likewise
2756 (GRUB_UFS_ATTR_LNK): likewise
2757 (struct grub_ufs_sblock): new fields mtime
2758 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
2760 (grub_ufs_dir): mtime support
2761 (grub_ufs_mtime): new function
2762 * fs/affs.c (grub_affs_dir): use new dir syntax
2763 * fs/afs.c (grub_afs_dir): likewise
2764 * fs/cpio.c (grub_cpio_dir): likewise
2765 * fs/fat.c (grub_fat_find_dir): likewise
2766 * fs/hfs.c (grub_hfs_dir): likewise
2767 * fs/iso9660.c (grub_iso9660_dir): likewise
2768 * fs/jfs.c (grub_jfs_dir): likewise
2769 * fs/minix.c (grub_minix_dir): likewise
2770 * fs/ntfs.c (grub_ntfs_dir): likewise
2771 * fs/reiserfs.c (grub_reiserfs_dir): likewise
2772 * fs/sfs.c (grub_sfs_dir): likewise
2773 * fs/xfs.c (grub_xfs_dir): likewise
2774 * util/hostfs.c (grub_hostfs_dir): likewise
2775 * lib/datetime.c: moved to ...
2776 * normal/datetime.c: ... moved here
2777 (grub_unixtime2datetime): new function
2778 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
2779 * normal/completion.c (iterate_dir): use new dir syntax
2780 * normal/misc.c (grub_normal_print_device_info): tell the
2781 last modification time of a volume
2782 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
2783 * conf/common.rmk: added lib/datetime.c to ls.mod
2784 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
2785 (normal_mod_SOURCES): likewise
2786 (datetime_mod_SOURCES): Removed lib/datetime.c
2787 * conf/i386-efi.rmk: likewise
2788 * conf/i386-ieee1275.rmk: likewise
2789 * conf/i386-pc.rmk: likewise
2790 * conf/powerpc-ieee1275.rmk: likewise
2791 * conf/sparc64-ieee1275.rmk: likewise
2792 * conf/x86_64-efi.rmk: likewise
2794 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2796 Trim trailing spaces in FAT label and support mtools-like labels
2798 * fs/fat.c (grub_fat_iterate_dir): New function based
2799 on grub_fat_find_dir
2800 (grub_fat_find_dir): use grub_fat_iterate_dir
2801 (grub_fat_label): likewise
2803 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2805 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
2807 remove extraneous kernel_elf_HEADERS
2809 2009-04-04 Bean <bean123ch@gnail.com>
2811 * include/grub/util/misc.h: Add dummy function fsync for mingw.
2813 * util/misc.c: Likewise.
2815 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
2817 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
2818 instead of grub_printf.
2820 2009-04-03 Robert Millan <rmh@aybabtu.com>
2822 * loader/i386/linux.c (grub_linux_setup_video): Fill
2823 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
2824 values from `mode info' structure instead of hardcoded
2827 2009-04-01 Pavel Roskin <proski@gnu.org>
2829 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
2831 * genmk.rb: Likewise.
2832 * configure.ac: Likewise.
2834 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
2836 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
2837 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
2839 2009-04-01 David S. Miller <davem@davemloft.net>
2841 * normal/sparc64/setjmp.S: Fix setjmp implementation.
2842 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
2843 (grub_setjmp): Mark with 'returns_twice' attribute.
2844 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
2845 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
2846 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
2848 2009-04-01 Robert Millan <rmh@aybabtu.com>
2850 Reapply fix from 2008-07-28 which was accidentally reverted; also
2851 perform the same fix to a similar check in same function.
2853 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
2854 with the same number are found, just use issue a warning with
2855 grub_dprintf(), as this error has been reported to be non-fatal.
2857 2009-03-31 Pavel Roskin <proski@gnu.org>
2859 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
2860 for cross-compilation.
2862 2009-03-30 Robert Millan <rmh@aybabtu.com>
2864 Fix i386-ieee1275 build.
2866 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
2869 2009-03-30 Pavel Roskin <proski@gnu.org>
2871 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
2872 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
2873 zero-terminated, rely only on the strlen value. Fix comparison
2874 of strings differing in length.
2876 2009-03-30 Robert Millan <rmh@aybabtu.com>
2878 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
2879 checking for abi version. Improve error messages on BIOS to notify
2880 user about `linux16' command.
2882 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
2886 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
2887 in case of collision
2888 * disk/scsi.c (grub_scsi_open): free scsi in case of error
2890 2009-03-29 Robert Millan <rmh@aybabtu.com>
2892 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
2893 set `vid_mode' accordingly.
2894 (grub_linux_boot): Process `vid_mode' and set video mode.
2896 2009-03-29 Robert Millan <rmh@aybabtu.com>
2898 * util/grub.d/10_linux.in (linux_entry): New function.
2899 Factorize generation of Linux boot entries.
2901 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
2903 Make the format of Environment Block plain text. The boot loader
2904 part is not tested well yet.
2906 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
2909 (usage): Remove "info" and "clear". Add "unset". Update the
2910 description of "set", as this does not delete variables any
2912 (create_envblk_file): Complete rewrite.
2913 (open_envblk_file): Likewise.
2914 (cmd_info): Removed.
2915 (cmd_list): Likewise.
2916 (cmd_set): Likewise.
2917 (cmd_clear): Likewise.
2918 (list_variables): New function.
2919 (write_envblk): Likewise.
2920 (set_variables): Likewise.
2921 (unset_variables): Likewise.
2922 (main): Complete rewrite.
2924 * commands/loadenv.c (buffer): Removed.
2926 (open_envblk_file): New function.
2927 (read_envblk_file): Complete rewrite.
2928 (grub_cmd_load_env): Likewise.
2929 (grub_cmd_list_env): Likewise.
2930 (struct blocklist): New struct.
2931 (free_blocklists): New function.
2932 (check_blocklists): Likewise.
2933 (write_blocklists): Likewise.
2934 (grub_cmd_save_env): Complete rewrite.
2936 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
2937 a plain text signature.
2938 (GRUB_ENVBLK_MAXLEN): Removed.
2939 (struct grub_envblk): Complete rewrite.
2940 (grub_envblk_find): Removed.
2941 (grub_envblk_insert): Likewise.
2942 (grub_envblk_open): New prototype.
2943 (grub_envblk_set): Likewise.
2944 (grub_envblk_delete): Put const to VALUE.
2945 (grub_envblk_iterate): Put const to NAME and VALUE.
2946 (grub_envblk_close): New prototype.
2947 (grub_envblk_buffer): New inline function.
2948 (grub_envblk_size): Likewise.
2950 * lib/envblk.c: Include grub/mm.h.
2951 (grub_env_find): Removed.
2952 (grub_envblk_open): New function.
2953 (grub_envblk_close): Likewise.
2954 (escaped_value_len): Likewise.
2955 (find_next_line): Likewise.
2956 (grub_envblk_insert): Removed.
2957 (grub_envblk_set): New function.
2958 (grub_envblk_delete): Complete rewrite.
2959 (grub_envblk_iterate): Likewise.
2961 2009-03-28 Robert Millan <rmh@aybabtu.com>
2963 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
2964 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
2965 variables. Use 16-bit loader.
2966 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
2968 * kern/i386/loader.S (grub_linux_boot): Rename to ...
2969 (grub_linux16_boot): ... this. Update all users.
2970 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
2971 (grub_linux_boot): ... this. Update all users.
2973 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
2974 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
2975 commands to `linux16' and `initrd16'.
2976 (GRUB_MOD_FINI(linux)): Rename to ...
2977 (GRUB_MOD_FINI(linux16)): ... this.
2979 2009-03-24 Pavel Roskin <proski@gnu.org>
2981 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
2982 not just for compilation.
2984 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
2986 Move multiboot helper out of kernel
2988 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
2989 `loader/i386/multiboot_helper.S'.
2990 * conf/i386-coreboot.rmk: Likewise
2991 * conf/i386-ieee1275.rmk: Likewise
2993 * kern/i386/loader.S: Move multiboot helpers from here...
2994 * loader/i386/multiboot_helper.S: ...moved here
2995 * include/grub/i386/loader.h: Move declarations of multiboot
2996 helpers from here...
2997 * include/grub/i386/multiboot.h: ...moved here
2998 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
3000 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
3002 * kern/env.c (grub_env_context_open): Added an argument to specify
3003 whether a new context inherits exported variables from current
3004 one. This is useful when making a sandbox to interpret a config
3006 All callers updated.
3008 * include/grub/env.h (grub_env_context_open): Updated the prototype.
3010 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
3012 * kern/env.c (grub_env_context_close): Fix memory leaks.
3014 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
3016 * normal/main.c (grub_normal_execute): Added an argument
3017 BATCH to specify if an interactive interface should be provided
3018 after reading a config file.
3019 All callers updated.
3020 (read_command_list): Prevent being executed twice.
3021 (read_fs_list): Likewise.
3023 * include/grub/normal.h (grub_normal_execute): Updated the
3026 2009-03-22 Pavel Roskin <proski@gno.org>
3028 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
3030 * kern/i386/pc/startup.S: Likewise.
3031 * kern/i386/efi/startup.S: Likewise.
3032 * kern/i386/ieee1275/startup.S: Likewise.
3033 * kern/i386/coreboot/startup.S: Likewise.
3034 * kern/x86_64/efi/startup.S: Likewise.
3036 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
3037 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
3038 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
3040 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
3042 Bugfixes in multiboot for bugs uncovered by solaris kernel.
3044 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
3046 Use vaddr of correct segment for entry_point.
3048 2009-03-21 Bean <bean123ch@gmail.com>
3050 * commands/blocklist.c: Add include file <grub/command.h>, remove
3051 <grub/normal.h> and <grub/arg.h>.
3052 (grub_cmd_blocklist): Use the new command interface.
3053 (GRUB_MOD_INIT): Likewise.
3054 (GRUB_MOD_FINI): Likewise.
3055 * commands/boot.c: Likewise.
3056 * commands/cat.c: Likewise.
3057 * commands/cmp.c: Likewise.
3058 * commands/configfile.c: Likewise.
3059 * commands/crc.c: Likewise.
3060 * commands/echo.c: Likewise.
3061 * commands/halt.c: Likewise.
3062 * commands/handler.c: Likewise.
3063 * commands/hdparm.c: Likewise.
3064 * commands/help.c: Likewise.
3065 * commands/hexdump.c: Likewise.
3066 * commands/loadenv.c: Likewise.
3067 * commands/ls.c: Likewise.
3068 * commands/lsmmap.c: Likewise.
3069 * commands/lspci.c: Likewise.
3070 * commands/loadenv.c: Likewise.
3071 * commands/read.c: Likewise.
3072 * commands/reboot.c: Likewise.
3073 * commands/search.c: Likewise.
3074 * commands/sleep.c: Likewise.
3075 * commands/test.c: Likewise.
3076 * commands/usbtest.c: Likewise.
3077 * commands/videotest.c: Likewise.
3078 * commands/i386/cpuid.c: Likewise.
3079 * commands/i386/pc/halt.c: Likewise.
3080 * commands/i386/pc/play.c: Likewise.
3081 * commands/i386/pc/pxecmd.c: Likewise.
3082 * commands/i386/pc/vbeinfo.c: Likewise.
3083 * commands/i386/pc/vbetest.c: Likewise.
3084 * commands/ieee1275/suspend.c: Likewise.
3085 * disk/loopback.c: Likewise.
3086 * font/font_cmd.c: Likewise.
3087 * hello/hello.c: Likewise.
3088 * loader/efi/appleloader.c: Likewise.
3089 * loader/efi/chainloader.c: Likewise.
3090 * loader/i386/bsd.c: Likewise.
3091 * loader/i386/efi/linux.c: Likewise.
3092 * loader/i386/ieee1275/linux.c: Likewise.
3093 * loader/i386/linux.c: Likewise.
3094 * loader/i386/pc/chainloader.c: Likewise.
3095 * loader/i386/pc/linux.c: Likewise.
3096 * loader/powerpc/ieee1275/linux.c: Likewise.
3097 * loader/multiboot_loader.c: Likewise.
3098 * term/gfxterm.c: Likewise.
3099 * term/i386/pc/serial.c: Likewise.
3100 * term/terminfo.c: Likewise.
3102 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
3103 * term/i386/pc/vga.c: Likewise.
3104 * video/readers/jpeg.c: Likewise.
3105 * video/readers/png.c: Likewise.
3106 * video/readers/tga.c: Likewise.
3108 * util/grub-fstest (cmd_loopback): Removed.
3109 (cmd_blocklist): Likewise.
3111 (grub_register_command): Likewise.
3112 (grub_unregister_command): Likewise.
3113 (execute_command): Use grub_command_find to locate command and execute
3116 * include/grub/efi/chainloader.h: Removed.
3117 * loader/efi/chainloader_normal.c: Likewise.
3118 * loader/i386/bsd_normal.c: Likewise.
3119 * loader/i386/pc/chainloader_normal.c: Likewise.
3120 * loader/i386/pc/multiboot_normal.c: Likewise.
3121 * loader/linux_normal.c: Likewise.
3122 * loader/multiboot_loader_normal.c: Likewise.
3123 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
3125 * gencmdlist.sh: Scan new registration command grub_register_extcmd
3126 and grub_register_command_p1.
3128 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
3129 kern/command.c, lib/arg.c and commands/extcmd.c.
3130 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
3131 (minicmd_mod_SOURCES): New variable.
3132 (minicmd_mod_CFLAGS): Likewise.
3133 (minicmd_mod_LDFLAGS): Likewise.
3134 (extcmd_mod_SOURCES): Likewise.
3135 (extcmd_mod_CFLAGS): Likewise.
3136 (extcmd_mod_LDFLAGS): Likewise.
3137 (boot_mod_SOURCES): Removed.
3138 (boot_mod_CFLAGS): Likewise.
3139 (boot_mod_LDFLAGS): Likewise.
3141 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
3143 (kernel_img_HEADERS): Add command.h.
3144 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
3145 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
3147 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
3148 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
3149 remove the corresponding normal mode command.
3150 (normal_mod_SOURCES): Remove normal/arg.c.
3151 * conf/i386-coreboot.rmk: Likewise.
3152 * conf/i386-efi.rmk: Likewise.
3153 * conf/i386-ieee1275.rmk: Likewise.
3154 * conf/powerpc-ieee1275.rmk: Likewise.
3155 * conf/x86_64-efi.rmk: Likewise.
3157 * include/grub/arg.h: Move from here ...
3158 * include/grub/lib/arg.h: ... to here.
3160 * normal/arg.c: Move from here ...
3161 * lib/arg.c: ... to here.
3163 * commands/extcmd.c: New file.
3164 * commands/minicmd.c: Likewise.
3165 * include/grub/command.h: Likewise.
3166 * include/grub/extcmd.h: Likewise.
3167 * kern/command.c: Likewise.
3168 * kern/corecmd.c: Likewise.
3170 * kern/list.c (grub_list_iterate): Return int instead of void.
3171 (grub_list_insert): New function.
3172 (grub_prio_list_insert): Likewise.
3174 * kern/rescue.c (grub_rescue_command): Removed.
3175 (grub_rescue_command_list): Likewise.
3176 (grub_rescue_register_command): Likewise.
3177 (grub_rescue_unregister_command): Likewise.
3178 (grub_rescue_cmd_boot): Move to minicmd.c
3179 (grub_rescue_cmd_help): Likewise.
3180 (grub_rescue_cmd_info): Likewise.
3181 (grub_rescue_cmd_boot): Likewise.
3182 (grub_rescue_cmd_testload): Likewise.
3183 (grub_rescue_cmd_dump): Likewise.
3184 (grub_rescue_cmd_rmmod): Likewise.
3185 (grub_rescue_cmd_lsmod): Likewise.
3186 (grub_rescue_cmd_exit): Likewise.
3187 (grub_rescue_print_devices): Moved to corecmd.c.
3188 (grub_rescue_print_files): Likewise.
3189 (grub_rescue_cmd_ls): Likewise.
3190 (grub_rescue_cmd_insmod): Likewise.
3191 (grub_rescue_cmd_set): Likewise.
3192 (grub_rescue_cmd_unset): Likewise.
3193 (attempt_normal_mode): Use grub_command_find to get normal module.
3194 (grub_enter_rescue_mode): Use grub_register_core_commands to register
3195 commands, remove grub_rescue_register_command calls.
3197 * normal/command.c (grub_register_command): Removed.
3198 (grub_unregister_command): Likewise.
3199 (grub_command_find): Likewise.
3200 (grub_iterate_commands): Likewise.
3201 (rescue_command): Likewise.
3202 (export_command): Moved to corecmd.c.
3203 (set_command): Removed.
3204 (unset_command): Likewise.
3205 (insmod_command): Likewise.
3206 (rmmod_command): Likewise.
3207 (lsmod_command): Likewise.
3208 (grub_command_init): Likewise.
3210 * normal/completion.c (iterate_command): Use cmd->prio to check for
3212 (complete_arguments): Use grub_extcmd_t structure to find options.
3213 (grub_normal_do_completion): Change function grub_iterate_commands to
3214 grub_command_iterate.
3216 * normal/execute.c (grub_script_execute_cmd): No need to parse
3219 * normal/main.c (grub_dyncmd_dispatcher): New function.
3220 (read_command_list): Register unload commands as dyncmd.
3221 (grub_cmd_normal): Use new command interface, register rescue,
3222 unregister normal at entry, register normal, unregister rescue at exit.
3224 * include/grub/list.h (grub_list_test_t): New type.
3225 (grub_list_iterate): Return int instead of void.
3226 (grub_list_insert): New function.
3227 (GRUB_AS_NAMED_LIST_P): New macro.
3228 (GRUB_AS_PRIO_LIST): Likewise.
3229 (GRUB_AS_PRIO_LIST_P): Likewise.
3230 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
3231 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
3232 (grub_prio_list): New structure.
3233 (grub_prio_list_insert): New function.
3234 (grub_prio_list_remove): New inline function.
3236 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
3237 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
3238 (GRUB_COMMAND_FLAG_MENU): Likewise.
3239 (GRUB_COMMAND_FLAG_BOTH): Likewise.
3240 (GRUB_COMMAND_FLAG_TITLE): Likewise.
3241 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
3242 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
3243 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
3244 (grub_command): Likewise.
3245 (grub_register_command): Likewise.
3246 (grub_command_find): Likewise.
3247 (grub_iterate_commands): Likewise.
3248 (grub_command_init): Likewise.
3249 (grub_arg_parse): Likewise.
3250 (grub_arg_show_help): Likewise.
3252 * include/grub/rescue.h (grub_rescue_register_command): Removed.
3253 (grub_rescue_unregister_command): Likewise.
3255 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
3256 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
3257 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
3259 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
3260 grub_rescue_cmd_initrd.
3261 * include/grub/i386/loader.h: Likewise.
3262 * include/grub/x86_64/loader.h: Likewise.
3264 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
3266 2009-03-21 Bean <bean123ch@gmail.com>
3268 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
3269 instead of stat in mingw environment.
3271 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
3273 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
3275 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
3278 2009-03-21 Bean <bean123ch@gmail.com>
3280 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
3283 2009-03-18 Michel Dänzer <michel@daenzer.net>
3285 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
3286 checking inode flags for EXT4_EXTENTS_FLAG.
3288 2009-03-18 Robert Millan <rmh@aybabtu.com>
3290 * loader/i386/linux.c: Include `<grub/video.h>' and
3291 `<grub/i386/pc/vbe.h>'..
3292 (grub_linux_setup_video): New function. Loosely based on the EFI one.
3293 (grub_linux32_boot): Attempt to configure video settings with
3294 grub_linux_setup_video().
3295 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
3296 to avoid grub_console_fini() which would step out of graphical mode
3299 2009-03-14 Robert Millan <rmh@aybabtu.com>
3301 Fix build on powerpc.
3302 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
3304 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
3306 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
3307 background image command.
3309 2009-03-12 Colin D Bennett <colin@gibibit.com>
3311 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
3312 (grub_gfxterm_putchar): Extract pairs of identical calls to
3313 draw_cursor out of conditional blocks.
3315 2009-03-11 Pavel Roskin <proski@gnu.org>
3317 * fs/hfs.c (grub_hfs_strncasecmp): New function.
3318 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
3320 2009-03-11 Robert Millan <rmh@aybabtu.com>
3322 * loader/i386/multiboot_elfxx.c
3323 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
3325 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
3327 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
3330 2009-03-11 Robert Millan <rmh@aybabtu.com>
3332 * loader/i386/multiboot.c (code_size): New variable.
3333 (grub_multiboot): Define offsets by adding to `code_size' rather
3334 than subtracting from `grub_multiboot_payload_size'. Provide
3335 4-byte alignment to MBI and others by increasing
3336 `boot_loader_name_length' appropriately.
3338 * loader/i386/multiboot_elfxx.c
3339 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
3341 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
3343 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
3346 2009-03-08 Robert Millan <rmh@aybabtu.com>
3348 Make loader/i386/linux.c usable on i386-pc again.
3350 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
3352 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
3355 2009-03-07 Bean <bean123ch@gmail.com>
3357 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
3360 2009-03-06 Robert Millan <rmh@aybabtu.com>
3362 Fix display issue on terminals with screen size other than 80x25
3363 (e.g. gfxterm with resolution higher than 640x480).
3365 * normal/main.c (grub_normal_init_page): Display title text in a
3366 position relative to the center of the terminal instead of relying
3367 on a hardcoded offset.
3369 2009-03-04 Robert Millan <rmh@aybabtu.com>
3371 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
3374 * Makefile.in (host_kernel): New variable.
3375 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
3376 scripts instead of just the windows one.
3377 * configure.ac: Initialize and AC_SUBST `host_kernel'.
3379 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
3381 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
3383 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
3384 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
3385 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
3386 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3387 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3388 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3390 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
3392 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
3393 or if there's no space for the disk label and print the partition number on a
3396 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
3398 * util/misc.c: Include <time.h>.
3399 (grub_millisleep): New function.
3401 2009-03-04 Bean <bean123ch@gmail.com>
3403 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
3404 another option -mno-red-zone.
3406 * commands/handler.c: Change module description.
3408 * kern/handler.c: Add missing space at the end of description line.
3410 * kern/list.c: Likewise.
3412 2009-03-03 Robert Millan <rmh@aybabtu.com>
3414 Move more components to the relocation area, and fix mbi pointer
3415 handling to use the destination rather than the origin (thanks to
3416 Vladimir Serbinenko for spotting).
3418 * loader/i386/multiboot.c (mbi_dest): New variable.
3419 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
3420 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
3423 2009-03-01 Bean <bean123ch@gmail.com>
3425 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
3426 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
3427 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
3428 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
3430 * loader/i386/efi/linux.c (acpi_guid): New variable.
3431 (acpi_guid): Likewise.
3432 (EBDA_SEG_ADDR): New constant.
3433 (LOW_MEM_ADDR): Likewise.
3434 (FAKE_EBDA_SEG): Likewise.
3435 (fake_bios_data): New function.
3436 (grub_linux_boot): Call fake_bios_data.
3438 2009-03-01 Bean <bean123ch@gmail.com>
3440 * commands/terminal.c: Removed.
3442 * commands/handler.c: New file.
3444 * include/grub/list.h: Likewise.
3446 * include/grub/handler.h: Likewise.
3448 * kern/list.c: Likewise.
3450 * kern/handler.c: Likewise.
3452 * kern/term.h: Include header file <grub/handler.h>.
3453 (grub_term_input): Move next field to the beginning.
3454 (grub_term_output): Likewise.
3455 (grub_term_input_class): New variable.
3456 (grub_term_output_class): Likewise.
3457 (grub_term_register_input): Changed to inline function.
3458 (grub_term_register_output): Likewise.
3459 (grub_term_unregister_input): Likewise.
3460 (grub_term_unregister_output): Likewise.
3461 (grub_term_set_current_input): Likewise.
3462 (grub_term_set_current_output): Likewise.
3463 (grub_term_get_current_input): Likewise.
3464 (grub_term_get_current_output): Likewise.
3465 (grub_term_iterate_input): Removed.
3466 (grub_term_iterate_output): Likewise.
3468 * kern/term.c (grub_term_list_input): Removed.
3469 (grub_term_list_output): Likewise.
3470 (grub_term_input_class): New variable.
3471 (grub_term_output_class): Likewise.
3472 (grub_cur_term_input): Change variable as macro.
3473 (grub_cur_term_output): Likewise.
3474 (grub_term_register_input): Removed.
3475 (grub_term_register_output): Likewise.
3476 (grub_term_unregister_input): Likewise.
3477 (grub_term_unregister_output): Likewise.
3478 (grub_term_set_current_input): Likewise.
3479 (grub_term_set_current_output): Likewise.
3480 (grub_term_iterate_input): Likewise.
3481 (grub_term_iterate_output): Likewise.
3482 (grub_term_get_current_input): Likewise.
3483 (grub_term_get_current_output): Likewise.
3485 * util/grub-editenv.c: Include header file <grub/handler.h>.
3486 (grub_term_get_current_input): Removed.
3487 (grub_term_get_current_output): Likewise.
3488 (grub_term_input_class): New variable.
3489 (grub_term_output_class): Likewise.
3491 * util/grub-fstest.c (grub_term_get_current_input): Removed.
3492 (grub_term_get_current_output): Likewise.
3493 (grub_term_input_class): New variable.
3494 (grub_term_output_class): Likewise.
3496 * util/grub-probe.c (grub_term_get_current_input): Removed.
3497 (grub_term_get_current_output): Likewise.
3498 (grub_term_input_class): New variable.
3499 (grub_term_output_class): Likewise.
3501 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
3502 (grub_term_get_current_output): Likewise.
3503 (grub_term_input_class): New variable.
3504 (grub_term_output_class): Likewise.
3506 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
3507 (terminal_mod_SOURCES): Likewise.
3508 (terminal_mod_CFLAGS): Likewise.
3509 (terminal_mod_LDFLAGS): Likewise.
3511 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
3513 (kernel_img_SOURCES): Add list.c and handler.c.
3514 (kernel_img_HEADERS): Add list.h and handler.h.
3516 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
3518 (kernel_mod_SOURCES): Add list.c and handler.c.
3519 (kernel_mod_HEADERS): Add list.h and handler.h.
3521 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
3523 (kernel_elf_SOURCES): Add list.c and handler.c.
3524 (kernel_elf_HEADERS): Add list.h and handler.h.
3526 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
3528 (kernel_elf_SOURCES): Add list.c and handler.c.
3529 (kernel_elf_HEADERS): Add list.h and handler.h.
3531 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
3533 (kernel_mod_SOURCES): Add list.c and handler.c.
3534 (kernel_mod_HEADERS): Add list.h and handler.h.
3536 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
3538 (kernel_elf_SOURCES): Add list.c and handler.c.
3539 (kernel_elf_HEADERS): Add list.h and handler.h.
3541 2009-02-27 Robert Millan <rmh@aybabtu.com>
3543 Factorize elf32 / elf64 code in Multiboot loader. This will
3544 prevent it from getting out of sync again.
3546 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
3547 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
3548 grub_multiboot_load_elf64): Move from here ...
3549 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
3550 grub_multiboot_load_elf): ... to here (new file).
3552 2009-02-27 Robert Millan <rmh@aybabtu.com>
3554 * util/grub.d/10_linux.in: Rename "single-user mode" to
3557 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3559 Don't leak in SCSI code.
3560 * disk/scsi.c (grub_scsi_close): free `scsi'.
3562 2009-02-27 Robert Millan <rmh@aybabtu.com>
3564 * loader/i386/pc/multiboot.c: Move from here ...
3565 * loader/i386/multiboot.c: ... to here. Update all users.
3567 2009-02-27 Robert Millan <rmh@aybabtu.com>
3569 Patch from Alexandre Bique <bique.alexandre@gmail.com>
3570 * util/i386/pc/grub-setup.c (setup): Fix directory path.
3572 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
3574 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
3577 2009-02-27 Robert Millan <rmh@aybabtu.com>
3579 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
3580 `0x' qualifier as 0 when base is specified as parameter).
3582 2009-02-24 Bean <bean123ch@gmail.com>
3584 * configure.ac: Check for -mcmodel=large in x86_64 target.
3586 * include/grub/efi/api.h (efi_call_10): New macro.
3587 (efi_wrap_10): New function.
3589 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
3590 (GRUB_PE32_REL_BASED_HIGH): Likewise.
3591 (GRUB_PE32_REL_BASED_LOW): Likewise.
3592 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
3593 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
3594 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
3595 (GRUB_PE32_REL_BASED_SECTION): Likewise.
3596 (GRUB_PE32_REL_BASED_REL): Likewise.
3597 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
3598 (GRUB_PE32_REL_BASED_DIR64): Likewise.
3599 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
3601 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
3604 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
3605 (efi_wrap_10): New function.
3607 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
3609 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
3610 MB/MBP model (NV chipset).
3611 (devdata_devs): Add devpath_5 to the list.
3613 * load/i386/efi/linux.c (video_base): Remove variable.
3614 (RGB_MASK): New macro.
3615 (RGB_MAGIC): Likewise.
3616 (LINE_MIN): Likewise.
3617 (LINE_MAX): Likewise.
3618 (FBTEST_STEP): Likewise.
3619 (FBTEST_COUNT): Likewise.
3620 (fb_list): New variable.
3621 (grub_find_video_card): Remove function.
3622 (find_framebuf): New function.
3623 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
3626 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
3629 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
3631 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
3633 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
3636 2009-02-22 Robert Millan <rmh@aybabtu.com>
3638 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
3639 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
3640 in our relocation, instead of using it directly from heap. Also
3641 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
3643 2009-02-21 Robert Millan <rmh@aybabtu.com>
3645 Implement USB keyboard support (based on patch by Marco Gerards)
3647 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
3648 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
3649 (usb_keyboard_mod_LDFLAGS): New variables.
3651 * term/usb_keyboard.c: New file.
3653 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3655 Corrected wrong declaration
3657 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
3659 2009-02-14 Christian Franke <franke@computer.org>
3661 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
3662 (grub_lspci_iter): Print class code and programming interface byte.
3664 2009-02-14 Christian Franke <franke@computer.org>
3666 * gendistlist.sh: Ignore `.svn' directories.
3668 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
3670 * fs/fat.c: Add 2009 to Copyright line.
3672 2009-02-14 Christian Franke <franke@computer.org>
3674 * commands/hdparm.c: New file. Provides `hdparm' command
3675 which sends ATA commands via grub_disk_ata_pass_through ().
3677 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
3679 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
3680 and <grub/cpu/io.h> to include/grub/ata.h.
3681 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
3682 (GRUB_CDROM_SECTOR_SIZE): Remove.
3683 (GRUB_ATA_*): Move to include/grub/ata.h.
3684 (GRUB_ATAPI_*): Likewise.
3685 (enum grub_ata_commands): Likewise.
3686 (enum grub_ata_timeout_milliseconds): Likewise.
3687 (struct grub_ata_device): Likewise.
3688 (grub_ata_regset): Likewise.
3689 (grub_ata_regget): Likewise.
3690 (grub_ata_regset2): Likewise.
3691 (grub_ata_regget2): Likewise.
3692 (grub_ata_check_ready): Likewise.
3693 (grub_ata_wait_not_busy): Remove static, exported in
3695 (grub_ata_wait_drq): Likewise.
3696 (grub_ata_pio_read): Likewise.
3698 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
3699 function for hdparm.mod.
3701 * include/grub/ata.h: New file, contains declarations from
3703 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
3705 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
3706 (grub_disk_ata_pass_through): New exported variable.
3708 * kern/disk.c (grub_disk_ata_pass_through): New variable.
3710 2009-02-13 Colin D Bennett <colin@gibibit.com>
3712 Support multiple fallback entries, and provide an API to support
3713 executing default+fallback menu entries. Renamed the `terminal' menu
3716 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
3717 variable declaration.
3718 (grub_menu_execute_callback): New structure declaration.
3719 (grub_menu_execute_callback_t): New typedef.
3720 (grub_menu_execute_with_fallback): New function declaration.
3721 (grub_menu_get_entry): Likewise.
3722 (grub_menu_get_timeout): Likewise.
3723 (grub_menu_set_timeout): Likewise.
3725 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
3727 * normal/menu.c (grub_wait_after_message): Moved to
3728 `normal/menu_text.c'.
3729 (draw_border): Likewise.
3730 (print_message): Likewise.
3731 (print_entry): Likewise.
3732 (print_entries): Likewise.
3733 (grub_menu_init_page): Likewise.
3734 (get_entry_number): Likewise.
3735 (print_timeout): Likewise.
3736 (run_menu): Likewise.
3737 (grub_menu_execute_entry): Likewise.
3738 (show_text_menu): Likewise.
3739 (get_and_remove_first_entry_number): New function.
3740 (grub_menu_execute_with_fallback): Likewise.
3741 (get_entry): Renamed to ...
3742 (grub_menu_get_entry): .. this and made it global.
3743 (get_timeout): Renamed to ...
3744 (grub_menu_get_timeout): ... this and made it global.
3745 (set_timeout): Renamed to ...
3746 (grub_menu_set_timeout): ... this and made it global.
3747 (grub_normal_terminal_menu_viewer): Renamed to ...
3748 (grub_normal_text_menu_viewer): ... this.
3750 * normal/menu_text.c: New file. Extracted text-menu-specific code
3753 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
3754 (normal_mod_SOURCES): Likewise.
3756 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
3757 (normal_mod_SOURCES): Likewise.
3759 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3760 (normal_mod_SOURCES): Likewise.
3762 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
3763 (normal_mod_SOURCES): Likewise.
3765 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3766 (normal_mod_SOURCES): Likewise.
3768 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3769 (normal_mod_SOURCES): Likewise.
3771 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
3772 (normal_mod_SOURCES): Likewise.
3774 2009-02-11 Robert Millan <rmh@aybabtu.com>
3776 * util/grub.d/00_header.in: Update old reference to `font' command.
3778 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
3780 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
3782 Based on patch from Javier MartÃn.
3784 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
3786 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
3787 to avoid false positives with FAT.
3788 (grub_fstest_SOURCES): Likewise.
3789 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
3790 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
3791 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3792 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
3793 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3794 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3796 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
3798 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
3799 bpb.version_specific.fat12_or_fat16.fstype and
3800 bpb.version_specific.fat32.fstype.
3802 2009-02-08 Robert Millan <rmh@aybabtu.com>
3804 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
3806 2009-02-08 Robert Millan <rmh@aybabtu.com>
3808 * Makefile.in (host_os, host_cpu): New variables.
3809 (target_os): Remove. Update all users.
3811 2009-02-08 Marco Gerards <marco@gnu.org>
3813 * Makefile.in (enable_grub_emu_usb): New variable.
3814 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
3815 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
3816 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
3817 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
3818 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
3819 `usbtest.mod' and `usbms.mod'.
3820 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
3821 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
3822 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
3823 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
3824 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
3827 * disk/usbms.c: New file.
3829 * include/grub/usb.h: Likewise.
3831 * include/grub/usbtrans.h: Likewise.
3833 * include/grub/usbdesc.h: Likewise.
3835 * bus/usb/usbtrans.c: Likewise.
3837 * bus/usb/ohci.c: Likewise.
3839 * bus/usb/uhci.c: Likewise.
3841 * bus/usb/usbhub.c: Likewise.
3843 * bus/usb/usb.c: Likewise.
3845 * commands/usbtest.c: Likewise.
3847 * util/usb.c: Likewise.
3849 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
3851 * configure.ac: Test for libusb presence.
3853 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
3855 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
3857 * kern/mm.c: Add more comments.
3859 2009-02-08 Robert Millan <rmh@aybabtu.com>
3861 Patch from Javier MartÃn.
3862 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
3863 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
3865 2009-02-08 Robert Millan <rmh@aybabtu.com>
3867 * fs/cpio.c: Split tar functionality to ...
3868 * fs/tar.c: ... here (new file). Update all users.
3870 2009-02-07 Robert Millan <rmh@aybabtu.com>
3872 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
3873 backward-incompatible features.
3875 Based on patch from Javier MartÃn, with some adjustments.
3877 2009-02-07 Michael Scherer <misc@mandriva.org>
3879 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
3881 2009-02-07 Robert Millan <rmh@aybabtu.com>
3883 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
3884 position of `disk/lvm.c' to ensure grub_init_all() always picks it
3885 after the RAID stuff.
3887 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
3889 Fixes problem when running vbetest command as reported by
3890 Vladimir Serbinenko <phcoder@gmail.com>.
3892 * (grub_vbe_set_video_mode): Fixed problem with text modes.
3894 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
3896 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
3897 /dev/md/NpN style mdraid devices.
3899 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
3901 * util/unifont2pff.rb: Remove.
3903 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
3905 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
3908 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
3910 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
3911 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
3912 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
3913 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
3914 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3915 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3916 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3918 2009-02-02 Christian Franke <franke@computer.org>
3920 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
3922 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
3924 * INSTALL: Note that we now require at least autoconf 2.59 and
3925 that LZO is optional.
3927 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
3929 Base on patch on bug #24154 created by Tomas Tintera
3932 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
3934 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
3936 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
3937 <bero@arklinux.org>.
3939 * normal/parser.y (script_init): Add missing semicolon.
3941 2009-01-31 Colin D Bennett <colin@gibibit.com>
3943 * normal/main.c: Add include to grub/menu_viewer.h.
3944 (free_menu_entry_classes): Added.
3945 (grub_normal_menu_addentry): Added class property handling.
3946 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
3947 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
3949 * normal/menu_viewer.c: New file.
3951 * normal/menu.c (run_menu_entry): Renamed to ...
3952 (grub_menu_execute_entry): ... this and made it as global.
3953 (grub_menu_run): Renamed to ...
3954 (show_text_menu): ... this and made it local.
3955 (show_text_menu): Adapt to new function names.
3956 (grub_normal_terminal_menu_viewer): New global variable.
3958 * include/grub/menu.h: New file.
3960 * include/grub/menu_viewer.h: New file.
3962 * include/grub/normal.h: Added include to grub/menu.h.
3963 (grub_menu_entry): Moved to include/grub/menu.h.
3964 (grub_menu_entry_t): Likewise.
3965 (grub_menu): Likewise.
3966 (grub_menu_t): Likewise.
3967 (grub_normal_terminal_menu_viewer): Added.
3968 (grub_menu_execute_entry): Likewise.
3969 (grub_menu_run): Removed.
3971 * DISTLIST: Added include/grub/menu.h.
3972 Added include/grub/menu_viewer.h.
3973 Added normal/menu_viewer.c.
3975 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
3977 * normal/execute.c (grub_script_execute_menuentry): Changed to use
3978 arglist for menutitle arguments.
3980 * normal/main.c (grub_normal_menu_addentry): Likewise.
3982 * normal/parser.y (menuentry): Likewise.
3984 * normal/script.c (grub_script_create_cmdmenu): Likewise.
3986 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
3987 (grub_script_create_cmdmenu): Likewise.
3989 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
3991 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
3994 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
3996 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
3998 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
4000 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
4002 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
4004 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
4006 2009-01-30 Christian Franke <franke@computer.org>
4008 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
4009 in option help text.
4011 2009-01-27 Pavel Roskin <proski@gnu.org>
4013 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
4015 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
4017 * commands/lsmmap.c: Add include to grub/machine/memory.h.
4019 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
4021 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
4022 unregister function.
4024 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
4026 * disk/scsi.c (grub_scsi_read): Fix sign problem.
4028 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
4030 * util/grub-mkfont.c (usage): Fix typo.
4032 * util/elf/grub-mkimage.c (load_modules): Fix warning.
4034 2009-01-26 Daniel Mierswa <impulze@impulze.org>
4036 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
4038 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
4040 * kern/misc.c (grub_strcasecmp): New function.
4041 (grub_strcasecmp): Use grub_size_t instead of int for length.
4043 * include/grub/misc.h: Update function prototypes.
4045 2009-01-26 Robert Millan <rmh@aybabtu.com>
4047 * configure.ac: Fix cross-compilation check.
4049 2009-01-22 Christian Franke <franke@computer.org>
4051 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
4052 (precision) digit string. Allow `.format2' without `format1' (width).
4053 Limit input chars for `%s' output to `format2' if specified. This is
4054 compatible with standard printf ().
4056 2009-01-22 Christian Franke <franke@computer.org>
4058 * disk/ata.c (grub_ata_wait_status): Replace by ...
4059 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
4060 other status bits may be invalid while BSY is asserted.
4061 (grub_ata_check_ready): New function.
4062 (grub_ata_cmd): Removed.
4063 (grub_ata_wait_drq): New function.
4064 (grub_ata_strncpy): Remove inline.
4065 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
4066 and error check now done by grub_ata_wait_drq ().
4067 (grub_ata_pio_write): Likewise.
4068 (grub_atapi_identify): Set DEV before check for !BSY. Use
4069 grub_ata_wait_drq () to wait for data.
4070 (grub_ata_device_initialize): Add status register check to
4071 detect missing SATA slave devices. Add debug messages.
4072 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
4073 (grub_atapi_packet): Set DEV before check for !BSY. Replace
4074 transfer loop by grub_ata_pio_write ().
4075 (grub_ata_identify): Set DEV before check for !BSY. Use
4076 grub_ata_wait_drq () to wait for data.
4077 (grub_ata_setaddress): Set DEV before check for !BSY.
4078 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
4079 read/write in one loop. Fix invalid command on write. Fix incomplete
4080 command on (size % batch) == 0. Add missing error check after write of
4081 last block. Add debug messages.
4082 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
4084 2009-01-19 Christian Franke <franke@computer.org>
4086 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
4087 (GRUB_ATAPI_IREASON_*): Likewise.
4088 (grub_ata_pio_write): Fix timeout error return.
4089 (grub_atapi_identify): Add grub_ata_wait () after cmd.
4090 (grub_atapi_wait_drq): New function.
4091 (grub_atapi_packet): New parameter `size'.
4092 Use grub_atapi_wait_drq () and direct write instead of
4093 grub_ata_pio_write ().
4094 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
4095 reads the number of bytes requested by the device for each DRQ
4097 (grub_atapi_write): Remove old implementation, return not
4098 implemented instead.
4100 2009-01-19 Christian Franke <franke@computer.org>
4102 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
4103 of 512 to calculate data size.
4104 (grub_scsi_read12): Likewise.
4105 (grub_scsi_write10): Likewise.
4106 (grub_scsi_write12): Likewise.
4107 (grub_scsi_read): Adjust size according to blocksize.
4108 Add checks for invalid blocksize and unaligned transfer.
4110 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
4112 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
4114 * term/gfxterm.c (write_char): Fix background rendering for wide
4117 2009-01-19 Robert Millan <rmh@aybabtu.com>
4119 * config.guess: Update to latest version from config git.
4120 * config.sub: Likewise.
4122 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
4124 * Makefile.in: Change font compilation to use new grub-mkfont instead
4127 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
4128 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
4129 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
4130 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
4131 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
4132 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
4133 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
4134 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
4135 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
4137 2009-01-16 Christian Franke <franke@computer.org>
4139 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
4140 (enum grub_ata_timeout_milliseconds): New enum.
4141 (grub_ata_wait_status): Add parameter milliseconds.
4142 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
4143 recovery from timed-out commands.
4144 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
4145 return grub_errno instead of REG_ERROR.
4146 (grub_ata_pio_write): Add parameter milliseconds.
4147 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
4148 Pass milliseconds to grub_ata_wait_status () and
4149 grub_ata_pio_read ().
4150 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
4151 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
4152 grub_ata_wait_status (). Fix IDENTIFY timeout check.
4153 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
4154 It is not suitable for device detection, because DEV bit is ignored,
4155 the command may run too long, and not all devices set the signature
4157 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
4158 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
4159 Fix device selection, DEV bit must be set first to address the registers
4160 of the correct device.
4161 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
4162 grub_ata_pio_read/write ().
4163 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
4164 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
4166 2009-01-13 Carles Pina i Estany <carles@pina.cat>
4168 * util/grub-editenv.c (main): Use fseeko(), not fseek().
4170 2009-01-13 Bean <bean123ch@gmail.com>
4172 * util/grub-mkfont.c (write_font): forget to remove some debug code.
4174 2009-01-13 Bean <bean123ch@gmail.com>
4176 * Makefile.in: (enable_grub_mkfont): New variable.
4177 (freetype_cflags): Likewise.
4178 (freetype_libs): Likewise.
4180 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
4181 (grub_mkfont_SOURCES): New variable.
4182 (grub_mkfont_CFLAGS): Likewise.
4183 (grub_mkfont_LDFLAGS): Likewise.
4185 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
4186 library if `--enable-grub-mkfont' is requested.
4187 (enable_grub_mkfont): New variable.
4188 (freetype_cflags): Likewise.
4189 (freetype_libs): Likewise.
4191 * util/grub-mkfont.c: New file.
4193 2009-01-12 Christian Franke <franke@computer.org>
4195 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
4196 mode check. Fix setting of compat_use[].
4198 2009-01-10 Robert Millan <rmh@aybabtu.com>
4200 Update a few copyright years which we forgot to do in 2008 (only for
4201 files whose changes made in 2008 were copyright-significant)
4203 * Makefile.in: Add 2008 to Copyright line.
4204 * disk/ieee1275/ofdisk.c: Likewise.
4205 * disk/efi/efidisk.c: Likewise.
4206 * kern/dl.c: Likewise.
4207 * kern/sparc64/ieee1275/init.c: Likewise.
4208 * kern/mm.c: Likewise.
4209 * kern/efi/mm.c: Likewise.
4210 * boot/i386/pc/boot.S: Likewise.
4211 * genfslist.sh: Likewise.
4212 * fs/iso9660.c: Likewise.
4213 * fs/hfs.c: Likewise.
4214 * fs/jfs.c: Likewise.
4215 * fs/minix.c: Likewise.
4216 * fs/ufs.c: Likewise.
4217 * gensymlist.sh.in: Likewise.
4218 * genkernsyms.sh.in: Likewise.
4219 * include/grub/misc.h: Likewise.
4220 * include/grub/types.h: Likewise.
4221 * include/grub/symbol.h: Likewise.
4222 * include/grub/elf.h: Likewise.
4223 * include/grub/kernel.h: Likewise.
4224 * include/grub/disk.h: Likewise.
4225 * include/grub/dl.h: Likewise.
4226 * include/grub/i386/linux.h: Likewise.
4227 * include/grub/i386/pc/biosdisk.h: Likewise.
4228 * include/grub/efi/api.h: Likewise.
4229 * include/grub/efi/pe32.h: Likewise.
4230 * include/grub/util/misc.h: Likewise.
4231 * normal/execute.c: Likewise.
4232 * normal/arg.c: Likewise.
4233 * normal/completion.c: Likewise.
4234 * normal/lexer.c: Likewise.
4235 * normal/parser.y: Likewise.
4236 * normal/misc.c: Likewise.
4237 * commands/i386/pc/vbeinfo.c: Likewise.
4238 * commands/hexdump.c: Likewise.
4239 * commands/terminal.c: Likewise.
4240 * commands/ls.c: Likewise.
4241 * commands/help.c: Likewise.
4242 * partmap/pc.c: Likewise.
4243 * loader/efi/chainloader.c: Likewise.
4244 * loader/multiboot_loader.c: Likewise.
4245 * loader/i386/pc/multiboot2.c: Likewise.
4246 * term/efi/console.c: Likewise.
4247 * term/i386/pc/serial.c: Likewise.
4248 * util/lvm.c: Likewise.
4249 * util/console.c: Likewise.
4250 * util/i386/efi/grub-mkimage.c: Likewise.
4251 * util/raid.c: Likewise.
4253 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
4255 * commands/videotest.c: Removed include to grub/machine/memory.h.
4257 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
4258 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
4259 (video_mod_SOURCES): Removed.
4260 (video_mod_CFLAGS): Likewise.
4261 (video_mod_LDFLAGS): Likewise.
4262 (gfxterm_mod_SOURCES): Likewise.
4263 (gfxterm_mod_CFLAGS): Likewise.
4264 (gfxterm_mod_LDFLAGS): Likewise.
4265 (videotest_mod_SOURCES): Likewise.
4266 (videotest_mod_CFLAGS): Likewise.
4267 (videotest_mod_LDFLAGS): Likewise.
4268 (bitmap_mod_SOURCES): Likewise.
4269 (bitmap_mod_CFLAGS): Likewise.
4270 (bitmap_mod_LDFLAGS): Likewise.
4271 (tga_mod_SOURCES): Likewise.
4272 (tga_mod_CFLAGS): Likewise.
4273 (tga_mod_LDFLAGS): Likewise.
4274 (jpeg_mod_SOURCES): Likewise.
4275 (jpeg_mod_CFLAGS): Likewise.
4276 (jpeg_mod_LDFLAGS): Likewise.
4277 (png_mod_SOURCES): Likewise.
4278 (png_mod_CFLAGS): Likewise.
4279 (png_mod_LDFLAGS): Likewise.
4281 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
4282 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
4283 (video_mod_SOURCES): Added.
4284 (video_mod_CFLAGS): Likewise.
4285 (video_mod_LDFLAGS): Likewise.
4286 (videotest_mod_SOURCES): Likewise.
4287 (videotest_mod_CFLAGS): Likewise.
4288 (videotest_mod_LDFLAGS): Likewise.
4289 (bitmap_mod_SOURCES): Likewise.
4290 (bitmap_mod_CFLAGS): Likewise.
4291 (bitmap_mod_LDFLAGS): Likewise.
4292 (tga_mod_SOURCES): Likewise.
4293 (tga_mod_CFLAGS): Likewise.
4294 (tga_mod_LDFLAGS): Likewise.
4295 (jpeg_mod_SOURCES): Likewise.
4296 (jpeg_mod_CFLAGS): Likewise.
4297 (jpeg_mod_LDFLAGS): Likewise.
4298 (png_mod_SOURCES): Likewise.
4299 (png_mod_CFLAGS): Likewise.
4300 (png_mod_LDFLAGS): Likewise.
4301 (gfxterm_mod_SOURCES): Likewise.
4302 (gfxterm_mod_CFLAGS): Likewise.
4303 (gfxterm_mod_LDFLAGS): Likewise.
4305 * term/gfxterm.c: Removed include to grub/machine/memory.h,
4306 grub/machine/console.h.
4308 2009-01-04 Jerone Young <jerone@gmail.com>
4310 Make on screen instructions clearer
4312 Based on patch created by Jidanni <jidanni@jidanni.org>
4314 * normal/menu.c: print clearer instructions on the screen
4316 2009-01-02 Colin D Bennett <colin@gibibit.com>
4320 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
4321 build system and fixed gfxterm.c to work with different sized fonts.
4323 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
4325 * configure: Re-generated.
4327 * DISTLIST: Removed font/manager.c.
4329 Added font/font_cmd.c.
4331 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
4334 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
4336 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
4338 * kern/term.c: Changed users of grub_utf8_to_ucs4.
4340 * normal/menu.c: Likewise.
4342 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
4343 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
4345 * include/grub/font.h: Replaced with new file.
4347 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
4348 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
4349 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
4350 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
4351 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
4352 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
4353 fg_red, fg_green, fg_blue, fg_alpha.
4354 (grub_video_adapter): Removed blit_glyph.
4355 (grub_video_blit_glyph): Removed.
4357 * font/manager.c: Removed file.
4359 * font/font.c: New file.
4361 * font/font_cmd.c: Likewise.
4363 * video/video.c (grub_video_blit_glyph): Removed.
4365 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
4366 (grub_video_vbe_map_rgba): Likewise.
4367 (grub_video_vbe_unmap_color_int): Likewise.
4368 (grub_video_vbe_blit_glyph): Removed.
4369 (grub_video_vbe_adapter): Removed blit_glyph.
4371 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
4372 (get_pixel): Likewise.
4373 (set_pixel): Likewise.
4375 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
4377 * term/gfxterm.c: Adapted to new font engine.
4379 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
4381 * term/i386/pc/vga.c: Likewise.
4383 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
4385 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
4387 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
4389 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
4391 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
4393 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
4395 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
4397 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
4399 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
4401 * util/grub.d/00_header.in: Changed to use new loadfont command.
4403 * util/grub-mkconfig_lib.in: Changed font extension.
4405 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
4407 * util/getroot.c (grub_util_get_grub_dev): Add support for
4408 /dev/md/dNNpNN style partitionable mdraid devices.
4410 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
4412 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
4413 at a time limit of the PXE TFTP API correctly.
4414 (grub_pxefs_close): Likewise.
4416 2008-11-29 Robert Millan <rmh@aybabtu.com>
4418 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
4419 grub_ata_device_initialize() calls.
4421 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
4423 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
4425 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
4427 2008-11-28 Robert Millan <rmh@aybabtu.com>
4429 Fix build on powerpc-ieee1275. Based on patch created by
4430 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
4431 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
4432 `kern/ieee1275/mmap.c'.
4433 * include/grub/powerpc/ieee1275/memory.h: New file.
4435 Provide grub-install on coreboot.
4436 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
4437 (grub_install_SOURCES): New variable.
4438 * util/i386/pc/grub-install.in: Add a few condition checks to make it
4441 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
4443 * util/grub-fstest.c (grub_term_get_current_input): Change return type
4444 to `grub_term_input_t'.
4445 (grub_term_get_current_output): Change return type to
4446 `grub_term_output_t'.
4448 2008-11-22 Robert Millan <rmh@aybabtu.com>
4450 Fix breakage on coreboot due to declaration mismatch.
4451 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
4452 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
4453 grub_vga_text_cls().
4455 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
4456 comments. Avoid copying one more byte than necessary (just in case).
4458 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
4459 to 0x200000 (avoids trouble with some OFW implementations, and matches
4460 with the one in Yaboot).
4461 Reported by Manoel Abranches
4463 2008-11-20 Robert Millan <rmh@aybabtu.com>
4465 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
4466 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
4468 * util/grub-mkconfig_lib.in (grub_warn): New function.
4469 (convert_system_path_to_grub_path): Use grub_warn() when issuing
4470 warnings, to obtain consistent formatting.
4471 * util/grub.d/00_header.in: Likewise.
4472 * util/update-grub_lib.in: Likewise.
4474 * loader/i386/linux.c (allocate_pages): Fix a warning.
4475 Move comment text to `#error' stanza.
4477 Harmonize ieee1275's grub_available_iterate() with the generic
4478 grub_machine_mmap_iterate() interface (fixes a recently-introduced
4479 build problem on i386-ieee1275):
4480 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
4481 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
4482 parameter `type'. Update all users of this function.
4483 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
4484 `kern/ieee1275/mmap.c'.
4485 * kern/ieee1275/init.c
4486 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
4488 (grub_machine_mmap_iterate): ... this.
4489 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
4490 return type to `grub_err_t'. Update all implementations of this
4492 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
4495 Add `lsmmap' command (lists firmware-provided memory map):
4496 * commands/lsmmap.c: New file.
4497 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
4498 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
4500 * conf/powerpc-ieee1275.rmk: Likewise.
4501 * conf/i386-coreboot.rmk: Likewise.
4502 * conf/i386-ieee1275.rmk: Likewise.
4504 2008-11-19 Robert Millan <rmh@aybabtu.com>
4506 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
4507 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
4508 constraints to initrd allocation (based on code from
4509 loader/i386/pc/linux.c). Without them, initrd was allocated too high
4510 for Linux to find it.
4512 2008-11-14 Robert Millan <rmh@aybabtu.com>
4514 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
4515 order to cope with duplicate slashes.
4517 2008-11-14 Robert Millan <rmh@aybabtu.com>
4519 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
4520 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
4521 don't want to mess with lower memory, because it is used in the Linux
4524 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
4525 an appropriate place in lower memory, between 0x10000 and 0x90000,
4526 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
4527 is in our heap (probably as a result of it being corrupted during
4528 decompression). Add #error instance with comment to explain why this
4529 loader isn't currently usable on PC/BIOS.
4531 2008-11-14 Robert Millan <rmh@aybabtu.com>
4533 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
4534 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
4536 2008-11-12 Robert Millan <rmh@aybabtu.com>
4538 Make loader/i386/linux.c buildable on i386-pc (although disabled).
4540 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
4541 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
4543 * include/grub/i386/pc/memory.h: ... to here.
4545 2008-11-12 Robert Millan <rmh@aybabtu.com>
4547 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
4550 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
4551 (grub_console_cur_color, grub_console_real_putchar)
4552 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
4553 (grub_console_setcolorstate, grub_console_setcolor)
4554 (grub_console_getcolor): Move from here ...
4555 * include/grub/i386/vga_common.h: ... to here (new file).
4557 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
4558 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
4560 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
4561 `<grub/i386/vga_common.h>'.
4563 2008-11-12 Robert Millan <rmh@aybabtu.com>
4565 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
4566 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
4567 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
4569 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
4570 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
4572 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
4573 grub_console_init() with call to grub_vga_text_init().
4574 (grub_machine_fini): Replace call to
4575 grub_console_fini() with call to grub_vga_text_fini() and
4576 grub_at_keyboard_fini().
4578 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
4579 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
4580 (grub_console_setcolorstate, grub_console_setcolor)
4581 (grub_console_getcolor): New function prototypes.
4583 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
4584 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
4585 (grub_vga_text_setcursor): Static-ize.
4586 (grub_vga_text_term): New structure.
4587 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
4589 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
4590 (grub_console_cur_color, grub_console_standard_color)
4591 (grub_console_normal_color, grub_console_highlight_color)
4592 (map_char, grub_console_putchar, grub_console_getcharwidth)
4593 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
4594 (grub_console_getcolor): Move from here ...
4595 * term/i386/vga_common.c: ... to here (same function names).
4597 2008-11-12 Robert Millan <rmh@aybabtu.com>
4599 Use newly-added Multiboot support in coreboot.
4601 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
4602 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
4604 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
4605 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
4606 (codestart): Store the MBI in `startup_multiboot_info' when we're
4607 being loaded using Multiboot.
4609 * kern/i386/coreboot/init.c (grub_machine_init): Move
4610 grub_at_keyboard_init() call to beginning of function (useful for
4611 debugging). Call grub_machine_mmap_init() before attempting to use
4612 grub_machine_mmap_iterate().
4613 (grub_lower_mem, grub_upper_mem): Move from here ...
4614 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
4617 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
4620 2008-11-12 Robert Millan <rmh@aybabtu.com>
4622 Fix a regression introduced by the at_keyboard.mod split. Because
4623 some terminals are default on some platforms and non-default on
4624 others, the first terminal being registered determines which is
4625 going to be default.
4627 * kern/term.c (grub_term_register_input): If this is the first
4628 terminal being registered, set it as the current one.
4629 (grub_term_register_output): Likewise.
4631 * term/efi/console.c (grub_console_init): Do not call
4632 grub_term_set_current_output() or grub_term_set_current_input().
4633 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
4634 * term/i386/pc/console.c (grub_console_init): Likewise.
4635 (grub_console_fini): Do not call grub_term_set_current_input()
4636 (but leave grub_term_set_current_output() to restore text mode).
4638 2008-11-10 Robert Millan <rmh@aybabtu.com>
4640 * util/grub.d/00_header.in: Add backward compatibility check for
4641 versions of terminal.mod that don't understand `terminal_input' or
4644 2008-11-09 Robert Millan <rmh@aybabtu.com>
4646 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
4647 `terminal_input' / `terminal_output', not `terminal'.
4649 2008-11-08 Robert Millan <rmh@aybabtu.com>
4651 * Makefile.in (include_DATA): Fix srcdir=. assumption.
4652 (DISTCLEANFILES): Add `build_env.mk'.
4654 2008-11-08 Robert Millan <rmh@aybabtu.com>
4656 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
4657 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
4658 members. Update all users.
4659 * util/console.c (grub_ncurses_term): Split in ...
4660 (grub_ncurses_term_input): ... this, and ...
4661 (grub_ncurses_term_output): ... this. Update all users.
4662 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
4664 2008-11-08 Robert Millan <rmh@aybabtu.com>
4666 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
4667 (PKGDATA): Add $(pkgdata_SRCDIR).
4668 (pkglib_BUILDDIR): New variable.
4669 (pkgdata_SRCDIR): New variable.
4670 (build_env.mk): New target.
4671 (include_DATA): New variable.
4672 (install-local): Install $(include_DATA) files in $(includedir).
4674 2008-11-07 Pavel Roskin <proski@gnu.org>
4676 * gendistlist.sh: Use C locale for sorting to ensure consistent
4677 output on all systems.
4679 * util/grub.d/00_header.in: Remove incorrect space before
4682 2008-11-07 Robert Millan <rmh@aybabtu.com>
4684 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
4686 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
4687 * loader/multiboot_loader.c (find_multi_boot2_header): New function
4688 (based on find_multi_boot1_header).
4689 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
4690 using find_multi_boot2_header(), and abort if neither Multiboot or
4691 Multiboot headers were found.
4693 2008-11-07 Robert Millan <rmh@aybabtu.com>
4695 Modularize at_keyboard.mod:
4697 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
4698 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
4699 (at_keyboard_mod_LDFLAGS): New variables.
4701 Actual terminal split:
4703 * include/grub/term.h (struct grub_term): Split in ...
4704 (struct grub_term_input): ... this, and ...
4705 (struct grub_term_output): ... this. Update all users.
4706 (grub_term_set_current): Split in ...
4707 (grub_term_set_current_input): ... this, and ...
4708 (grub_term_set_current_output): ... this.
4709 (grub_term_get_current): Split in ...
4710 (grub_term_get_current_input): ... this, and ...
4711 (grub_term_get_current_output): ... this.
4712 (grub_term_register): Split in ...
4713 (grub_term_register_input): ... this, and ...
4714 (grub_term_register_output): ... this.
4715 (grub_term_unregister): Split in ...
4716 (grub_term_unregister_input): ... this, and ...
4717 (grub_term_unregister_output): ... this.
4718 (grub_term_iterate): Split in ...
4719 (grub_term_iterate_input): ... this, and ...
4720 (grub_term_iterate_output): ... this.
4722 * kern/term.c (grub_term_list): Split in ...
4723 (grub_term_list_input): ... this, and ...
4724 (grub_term_list_output): ... this. Update all users.
4725 (grub_cur_term): Split in ...
4726 (grub_cur_term_input): ... this, and ...
4727 (grub_cur_term_output): ... this. Update all users.
4728 (grub_term_set_current): Split in ...
4729 (grub_term_set_current_input): ... this, and ...
4730 (grub_term_set_current_output): ... this.
4731 (grub_term_get_current): Split in ...
4732 (grub_term_get_current_input): ... this, and ...
4733 (grub_term_get_current_output): ... this.
4734 (grub_term_register): Split in ...
4735 (grub_term_register_input): ... this, and ...
4736 (grub_term_register_output): ... this.
4737 (grub_term_unregister): Split in ...
4738 (grub_term_unregister_input): ... this, and ...
4739 (grub_term_unregister_output): ... this.
4740 (grub_term_iterate): Split in ...
4741 (grub_term_iterate_input): ... this, and ...
4742 (grub_term_iterate_output): ... this.
4744 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
4745 a check for input and one for output (and only attempt to get keys
4746 from user when input works).
4748 * util/grub-probe.c (grub_term_get_current): Split in ...
4749 (grub_term_get_current_input): ... this, and ...
4750 (grub_term_get_current_output): ... this.
4751 * util/grub-fstest.c: Likewise.
4752 * util/i386/pc/grub-setup.c: Likewise.
4753 * util/grub-editenv.c: Likewise.
4755 Portability adjustments:
4757 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
4758 `term/i386/pc/at_keyboard.c'.
4759 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
4760 grub_keyboard_controller_init() (now handled by terminal .init).
4761 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
4762 grub_at_keyboard_init().
4763 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
4764 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
4765 at_keyboard.mod via input terminal interface).
4766 * include/grub/i386/coreboot/console.h: Convert into a stub for
4767 `<grub/i386/pc/console.h>'.
4769 Migrate full terminals to new API:
4771 * term/efi/console.c (grub_console_term): Split into ...
4772 (grub_console_term_input): ... this, and ...
4773 (grub_console_term_output): ... this. Update all users.
4774 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
4775 (grub_ofconsole_init): Split into ...
4776 (grub_ofconsole_init_input): ... this, and ...
4777 (grub_ofconsole_init_output): ... this.
4778 (grub_ofconsole_term): Split into ...
4779 (grub_ofconsole_term_input): ... this, and ...
4780 (grub_ofconsole_term_output): ... this. Update all users.
4781 * term/i386/pc/serial.c (grub_serial_term): Split into ...
4782 (grub_serial_term_input): ... this, and ...
4783 (grub_serial_term_output): ... this. Update all users.
4784 * term/i386/pc/console.c (grub_console_term): Split into ...
4785 (grub_console_term_input): ... this, and ...
4786 (grub_console_term_output): ... this. Update all users.
4787 (grub_console_term_input): Only enable it on PC/BIOS platform.
4788 (grub_console_init): Remove grub_keyboard_controller_init() call.
4790 Migrate input terminals to new API:
4792 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
4793 `i386' and `i386/pc' to enable build on x86_64 (this driver is
4794 i386-specific anyway).
4795 (grub_console_checkkey): Rename to ...
4796 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
4798 (grub_keyboard_controller_orig): New variable.
4799 (grub_console_getkey): Rename to ...
4800 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
4802 (grub_keyboard_controller_init): Static-ize. Save original
4803 controller value so that it can be restored ...
4804 (grub_keyboard_controller_fini): ... here (new function).
4805 (grub_at_keyboard_term): New structure.
4806 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
4809 Migrate output terminals to new API:
4811 * term/i386/pc/vga.c (grub_vga_term): Change type to
4812 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
4813 members. Update all users.
4814 * term/gfxterm.c (grub_video_term): Change type to
4815 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
4816 members. Update all users.
4817 * include/grub/i386/pc/console.h (grub_console_checkkey)
4818 (grub_console_getkey): Do not export (no longer needed by gfxterm,
4821 Migrate `terminal' command and userland tools to new API:
4823 * commands/terminal.c (grub_cmd_terminal): Split into ...
4824 (grub_cmd_terminal_input): ... this, and ...
4825 (grub_cmd_terminal_output): ... this.
4826 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
4827 `terminal_input' and `terminal_output'.
4828 * util/grub.d/00_header.in: Adjust `terminal' calls to new
4829 `terminal_input' / `terminal_output' API.
4830 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
4831 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
4832 provided ${GRUB_TERMINAL}, convert it).
4834 2008-11-04 Robert Millan <rmh@aybabtu.com>
4836 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
4838 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
4840 2008-11-03 Bean <bean123ch@gmail.com>
4842 * kern/elf.c (grub_elf32_load): Revert to previous code.
4843 (grub_elf64_load): Likewise.
4845 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
4847 2008-11-01 Robert Millan <rmh@aybabtu.com>
4849 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
4850 (TARGET_CPPFLAGS): Likewise.
4851 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
4853 2008-11-01 Carles Pina i Estany <carles@pina.cat>
4855 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
4857 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
4859 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
4860 addition of objects until the code is not going to be able to fail.
4862 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
4864 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
4865 (add a missing NULL check, and correct them by moving the pointer
4866 operations after the actual check).
4868 2008-10-29 Robert Millan <rmh@aybabtu.com>
4870 * util/i386/pc/grub-install.in: Handle empty string as output from
4871 make_system_path_relative_to_its_root().
4873 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
4875 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
4876 circular metadata worst case scenario. If the metadata is circular
4877 then copy the wrap in place.
4878 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
4879 project lib/format_text/layout.h
4880 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
4882 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
4884 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
4886 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
4888 * util/update-grub_lib.in: Mention filename in warning message.
4890 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
4892 * NEWS: Update for rename of update-grub to grub-mkconfig.
4894 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
4896 * util/update-grub_lib.in: Copy to ...
4897 * util/grub-mkconfig_lib.in: ... this. Update all users.
4898 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
4899 * util/update-grub.in: Rename to ...
4900 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
4901 option. Add `--output' option to allow users to specify the generated
4902 configuration file. Default to stdout.
4903 (update_grub_dir): Rename to ...
4904 (grub_mkconfig_dir): ... this.
4905 (grub_cfg): Default to an empty string.
4906 * conf/common.rmk (update-grub): Rename to ...
4907 (grub-mkconfig): ... this.
4908 (update-grub_lib): Copy to ...
4909 (grub-mkconfig_lib): ... this.
4910 (update-grub_SCRIPTS): Copy to ...
4911 (grub-mkconfig_SCRIPTS): ... this. Update all users.
4912 (update-grub_DATA): Rename to ...
4913 (grub-mkconfig_DATA): ... this.
4915 2008-09-28 Robert Millan <rmh@aybabtu.com>
4917 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
4918 to `modified'. Add the real `created' field.
4919 (grub_iso9660_uuid): Use `modified' rather than `created' for
4920 constructing the UUID.
4922 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
4924 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
4925 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
4927 2008-09-28 Bean <bean123ch@gmail.com>
4929 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
4930 Thanks to Christian Franke for finding this bug.
4932 2008-09-25 Robert Millan <rmh@aybabtu.com>
4934 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
4935 instances of grub_util_get_disk_name() (see previous commit).
4937 2008-09-25 Robert Millan <rmh@aybabtu.com>
4939 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
4940 `util/i386/get_disk_name.c'.
4941 * conf/i386-efi.rmk: Likewise.
4942 * conf/x86_64-efi.rmk: Likewise.
4943 * conf/i386-coreboot.rmk: Likewise.
4944 * conf/i386-ieee1275.rmk: Likewise.
4945 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
4946 `util/ieee1275/get_disk_name.c'.
4947 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
4948 * util/ieee1275/get_disk_name.c: Remove file.
4949 * util/i386/get_disk_name.c: Remove file.
4950 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
4951 "hd%d" for device.map entries, rather than using
4952 grub_util_get_disk_name().
4954 2008-09-24 Carles Pina i Estany <carles@pina.cat>
4956 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
4958 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
4960 2008-09-24 Carles Pina i Estany <carles@pina.cat>
4962 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
4964 (GRUB_TERM_PPAGE): Changed to 0x4900.
4966 2008-09-24 Robert Millan <rmh@aybabtu.com>
4968 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
4969 macros (they were i386-pc specific).
4970 * include/grub/sparc64/ieee1275/console.h: Likewise.
4971 * include/grub/efi/console.h: Likewise.
4973 2008-09-22 Bean <bean123ch@gmail.com>
4975 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
4976 resident and in attribute list.
4978 * include/grub/ntfs.h (BMP_LEN): Removed.
4980 2008-09-22 Bean <bean123ch@gmail.com>
4982 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
4983 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
4985 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
4986 error occurs, as grub_disk_open will call grub_disk_close, which will
4987 call p->close (scsi).
4989 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
4991 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
4992 (AC_PREREQ): Bumped to 2.59.
4993 (AC_TRY_COMPILE): Replace obsolete macro with ...
4994 (AC_COMPILE_IFELSE): ... this.
4995 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
4996 (AC_LINK_IFELSE): ... this.
4998 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
5000 * autogen.sh: Add a call to `gendistlist.sh'.
5002 2008-09-19 Christian Franke <franke@computer.org>
5004 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
5005 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
5006 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
5007 Export __enable_execute_stack() to modules.
5008 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
5011 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
5013 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
5016 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
5018 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
5019 #include <grub/util/hostdisk.h>.
5021 2008-09-08 Robert Millan <rmh@aybabtu.com>
5023 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
5024 segments when their filesz is zero (grub_file_read() interprets
5025 zero-size as "read until EOF", which results in memory corruption).
5026 Use `lowest_segment' rather than 0 for calculating the current
5027 segment load address.
5029 2008-09-08 Robert Millan <rmh@aybabtu.com>
5031 * util/hostdisk.c (open_device): Replace a grub_util_info() call
5032 with grub_dprintf("hostdisk", ...), as it was so verbose that it
5033 clobbered useful information.
5035 2008-09-08 Robert Millan <rmh@aybabtu.com>
5037 * include/grub/util/biosdisk.h: Move to ...
5038 * include/grub/util/hostdisk.h: ... here. Update all users.
5039 * util/biosdisk.c: Move to ...
5040 * util/hostdisk.c: ... here. Update all users.
5042 2008-09-07 Robert Millan <rmh@aybabtu.com>
5044 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
5046 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
5047 and length can be stored directly in the `mbi->mmap_addr' and
5048 `mbi->mmap_length' struct fields.
5050 2008-09-07 Robert Millan <rmh@aybabtu.com>
5052 * conf/i386.rmk: New file. Provides declaration for building
5054 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
5055 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
5057 Include `conf/i386.mk'.
5058 * conf/i386-efi.rmk: Likewise.
5059 * conf/x86_64-efi.rmk: Likewise.
5060 * conf/i386-coreboot.rmk: Likewise.
5061 * conf/i386-ieee1275.rmk: Likewise.
5063 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
5065 Based on patch created by Colin D Bennett <colin@gibibit.com>.
5066 Adds optimization support for BGR based modes.
5068 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
5069 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
5070 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
5071 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
5072 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
5073 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
5074 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
5075 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
5076 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
5077 (grub_video_i386_vbeblit_index_index): Likewise.
5078 (grub_video_i386_vbeblit_replace_directN): Added.
5079 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
5080 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
5081 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
5082 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
5083 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
5084 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
5085 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
5086 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
5087 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
5088 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
5089 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
5090 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
5091 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
5093 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
5094 (grub_video_i386_vbefill_R8G8B8): Likewise.
5095 (grub_video_i386_vbefill_index): Likewise.
5096 (grub_video_i386_vbefill_direct32): Added.
5097 (grub_video_i386_vbefill_direct24): Likewise.
5098 (grub_video_i386_vbefill_direct16): Likewise.
5099 (grub_video_i386_vbefill_direct8): Likewise.
5101 * include/grub/video.h (grub_video_blit_format): Removed
5102 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
5103 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
5104 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
5105 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
5106 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
5108 * video/video.c (grub_video_get_blit_format): Updated to use new
5109 blit formats. Added handling for 16 bit color modes.
5111 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
5113 (common_blitter): Updated to use new blitters.
5115 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
5117 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
5118 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
5119 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
5120 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
5121 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
5122 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
5123 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
5124 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
5125 (grub_video_i386_vbeblit_index_index): Likewise.
5126 (grub_video_i386_vbeblit_replace_directN): Added.
5127 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
5128 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
5129 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
5130 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
5131 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
5132 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
5133 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
5134 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
5135 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
5136 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
5137 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
5138 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
5139 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
5141 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
5142 (grub_video_i386_vbefill_R8G8B8): Likewise.
5143 (grub_video_i386_vbefill_index): Likewise.
5144 (grub_video_i386_vbefill_direct32): Added.
5145 (grub_video_i386_vbefill_direct24): Likewise.
5146 (grub_video_i386_vbefill_direct16): Likewise.
5147 (grub_video_i386_vbefill_direct8): Likewise.
5149 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
5152 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
5155 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
5158 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
5161 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
5163 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
5166 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
5168 * fs/iso9660.c (grub_iso9660_date): New structure.
5169 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
5170 (grub_iso9660_uuid): New function.
5172 2008-09-05 Bean <bean123ch@gmail.com>
5174 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
5176 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
5177 insensitive bit for names in Win32 and Win32 & DOS namespace.
5179 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
5181 * include/grub/types.h (LONG_MAX): Likewise.
5183 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
5185 * util/getroot.c: Include <config.h>.
5186 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
5187 add support for /dev/md/N devices and handle LVM double dash escaping.
5189 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
5191 * config.guess: Update to latest version from config git.
5192 * config.sub: Likewise.
5194 2008-09-03 Robert Millan <rmh@aybabtu.com>
5196 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
5197 `disk->total_sectors'.
5199 2008-09-01 Colin D Bennett <colin@gibibit.com>
5201 * include/grub/normal.h: Fixed incorrect comment for
5202 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
5204 2008-09-01 Colin D Bennett <colin@gibibit.com>
5206 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
5207 values with defines.
5209 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
5210 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
5211 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
5212 (GRUB_VBE_MODEATTR_COLOR): Likewise.
5213 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
5214 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
5215 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
5216 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
5217 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
5218 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
5219 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
5220 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
5221 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
5222 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
5223 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
5224 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
5225 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
5226 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
5227 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
5229 2008-08-31 Robert Millan <rmh@aybabtu.com>
5231 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
5233 (grub_multiboot): Fix a few warnings.
5235 2008-08-31 Robert Millan <rmh@aybabtu.com>
5237 * loader/i386/pc/multiboot.c: Update comment not to say that
5238 boot_device support is unimplemented.
5240 2008-08-31 Robert Millan <rmh@aybabtu.com>
5242 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
5243 or memory map support are unimplemented.
5245 2008-08-31 Colin D Bennett <colin@gibibit.com>
5247 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
5249 2008-08-31 Colin D Bennett <colin@gibibit.com>
5251 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
5252 total video memory in 'vbeinfo' output; show color format details for
5255 2008-08-30 Pavel Roskin <proski@gnu.org>
5257 * util/genmoddep.c: Remove for real this time.
5258 * DISTLIST: Remove util/genmoddep.c.
5260 2008-08-30 Robert Millan <rmh@aybabtu.com>
5262 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
5263 as required by Multiboot spec (it was already 4-byte aligned, but
5266 2008-08-29 Pavel Roskin <proski@gnu.org>
5268 * kern/powerpc/ieee1275/crt0.S: Rename to ...
5269 * kern/powerpc/ieee1275/startup.S: ... this.
5270 * conf/powerpc-ieee1275.rmk: Adjust for the above.
5271 * DISTLIST: Likewise.
5273 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
5274 grub/cpu/kernel.h. Add start label for consistency with other
5275 platforms. Add grub_prefix immediately after start. Add jump
5276 to the code after grub_prefix.
5277 * include/grub/powerpc/kernel.h: Provide valid values for
5278 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
5280 2008-08-29 Bean <bean123ch@gmail.com>
5282 * configure.ac: Change host_os to cygwin for mingw.
5283 (asprintf): New check for function.
5285 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
5286 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
5288 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
5289 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
5290 sync, sleep and grub_util_get_disk_size for mingw.
5292 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
5293 to get size in mingw.
5294 (open_device): Use flag O_BINARY if it's defined.
5295 (find_root_device): Add dummy code for mingw.
5297 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
5298 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
5299 (get_scsi_disk_name): Return 0 for mingw.
5301 * util/hostfs.c: #include <grub/util/misc.h>.
5302 (grub_hostfs_open): Use "rb" flag to open file, use
5303 grub_util_get_disk_size to get disk size for mingw.
5305 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
5306 (asprintf): New function if HAVE_ASPRINTF is not set.
5307 (sync): New function for mingw.
5309 (grub_util_get_disk_size): Likewise.
5311 2008-08-28 Pavel Roskin <proski@gnu.org>
5313 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
5316 2008-08-28 Robert Millan <rmh@aybabtu.com>
5318 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
5320 2008-08-28 Robert Millan <rmh@aybabtu.com>
5322 Change find_grub_drive() syntax so it doesn't prevent it from
5323 detecting NULL names as errors.
5325 * util/biosdisk.c (find_grub_drive): Move free slot search code
5327 (find_free_slot): ... to here.
5328 (read_device_map): Use find_free_slot() to search for free slots.
5330 2008-08-27 Marco Gerards <marco@gnu.org>
5332 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
5333 (scsi_mod_SOURCES): New variable.
5334 (scsi_mod_CFLAGS): Likewise
5335 (scsi_mod_LDFLAGS): Likewise.
5337 * disk/scsi.c: New file.
5339 * include/grub/scsi.h: Likewise.
5341 * include/grub/scsicmd.h: Likewise.
5343 * disk/ata.c: Include <grub/scsi.h>.
5344 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
5346 (grub_ata_iterate): Skip ATAPI devices.
5347 (grub_ata_open): Only handle ATAPI devices.
5348 (struct grub_atapi_read): Removed.
5349 (grub_atapi_readsector): Likewise.
5350 (grub_ata_read): No longer handle ATAPI devices.
5351 (grub_ata_write): Likewise.
5352 (grub_atapi_iterate): New function.
5353 (grub_atapi_read): Likewise.
5354 (grub_atapi_write): Likewise.
5355 (grub_atapi_open): Likewise.
5356 (grub_atapi_close): Likewise.
5357 (grub_atapi_dev): New variable.
5358 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
5359 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
5361 * include/grub/disk.h (enum grub_disk_dev_id): Add
5362 `GRUB_DISK_DEVICE_SCSI_ID'.
5364 2008-08-26 Robert Millan <rmh@aybabtu.com>
5366 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
5367 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
5370 2008-08-23 Bean <bean123ch@gmail.com>
5372 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
5373 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
5374 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
5375 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
5377 (raid5rec_mod_SOURCES): New macro.
5378 (raid5rec_mod_CFLAGS): Likewise.
5379 (raid5rec_mod_LDFLAGS): Likewise.
5380 (raid6rec_mod_SOURCES): Likewise.
5381 (raid6rec_mod_CFLAGS): Likewise.
5382 (raid6rec_mod_LDFLAGS): Likewise.
5383 (mdraid_mod_SOURCES): Likewise.
5384 (mdraid_mod_CFLAGS): Likewise.
5385 (mdraid_mod_LDFLAGS): Likewise.
5386 (dm_nv_mod_SOURCES): Likewise.
5387 (dm_nv_mod_CFLAGS): Likewise.
5388 (dm_nv_mod_LDFLAGS): Likewise.
5390 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
5391 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
5392 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
5394 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
5395 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
5397 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5399 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5401 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5403 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5405 * disk/raid5_recover.c: New file.
5407 * disk/raid6_recover.c: Likewise.
5409 * disk/mdraid_linux.c: Likewise.
5411 * disk/dmraid_nvidia.c: Likewise.
5413 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
5416 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
5417 calculate the size of raid device.
5418 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
5419 different layout of raid5.
5420 (grub_raid_scan_device): Remove code specific to mdraid.
5421 (grub_raid_list): New variable.
5422 (free_array): New function.
5423 (grub_raid_register): Likewise.
5424 (grub_raid_unregister): Likewise.
5425 (grub_raid_rescan): Likewise.
5426 (GRUB_MOD_INIT): Don't iterate device here.
5427 (GRUB_MOD_FINI): Use free_array to release resource.
5429 * include/grub/raid.h: Remove macro and structure specific to mdraid.
5430 (grub_raid5_recover_func_t): New function variable type.
5431 (grub_raid6_recover_func_t): Likewise.
5432 (grub_raid5_recover_func): New variable.
5433 (grub_raid6_recover_func): Likewise.
5434 (grub_raid_register): New function.
5435 (grub_raid_unregister): Likewise.
5436 (grub_raid_rescan): Likewise.
5437 (grub_raid_block_xor): Likewise.
5439 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
5440 (CMD_CRC): New macro.
5442 (read_file): Handle device as well as file.
5443 (cmd_crc): New function.
5444 (fstest): Handle multiple disks.
5445 (options): Remove part, raw and long, add root and diskcount.
5446 (usage): Add crc, remove -p, -r, -l, add -r and -c.
5447 (main): Find the first non option entry and ignore subsequent options,
5448 add handling for the new options, support multiple disks.
5450 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
5452 2008-08-23 Bean <bean123ch@gmail.com>
5454 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
5456 * genfslist.sh: Ignore kernel.mod.
5458 * genpartmaplist.sh: Likewise.
5460 2008-08-23 Robert Millan <rmh@aybabtu.com>
5462 * util/getroot.c (find_root_device): Skip anything that starts with
5463 a dot, not just directories. This avoids things like /dev/.tmp.md0.
5465 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
5467 * util/update-grub.in (GRUB_GFXMODE): Export variable.
5468 * util/grub.d/00_header.in: Allow the administrator to change default
5469 gfxmode via ${GRUB_GFXMODE}.
5471 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
5473 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
5475 2008-08-21 Robert Millan <rmh@aybabtu.com>
5477 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
5479 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
5480 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
5482 2008-08-20 Carles Pina i Estany <carles@pina.cat>
5484 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
5485 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
5487 2008-08-19 Robert Millan <rmh@aybabtu.com>
5489 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
5490 (struct grub_virtual_screen): Remove `cursor_color'.
5491 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
5493 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
5495 2008-08-18 Robert Millan <rmh@aybabtu.com>
5497 Unify (identical) linux_normal.c files.
5498 * loader/i386/efi/linux_normal.c: Move from here ...
5499 * loader/linux_normal.c: ... to here. Update all users.
5500 * loader/i386/pc/linux_normal.c: Delete. Update all users.
5501 * loader/i386/ieee1275/linux_normal.c: Likewise.
5503 2008-08-18 Robert Millan <rmh@aybabtu.com>
5505 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
5506 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
5507 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
5508 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
5509 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
5511 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
5512 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
5513 (GRUB_LINUX_CL_END_OFFSET): ... to here.
5514 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
5515 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
5516 (GRUB_EFI_CL_END_OFFSET): Rename to ...
5517 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
5518 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
5519 Initialize `params->video_cursor_x' and `params->video_cursor_y'
5520 portably using grub_getxy().
5521 Replace `-EFI' with `-bzImage' in boot message.
5523 2008-08-17 Robert Millan <rmh@aybabtu.com>
5525 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
5527 2008-08-17 Robert Millan <rmh@aybabtu.com>
5529 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
5531 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
5532 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
5533 (grub_machine_mmap_iterate): New function declaration.
5534 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
5536 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
5539 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
5540 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
5541 Move e820 parsing from here ...
5542 * kern/i386/pc/mmap.c: New file.
5543 (grub_machine_mmap_iterate): ... to here.
5545 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
5546 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
5547 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
5548 (grub_available_iterate): Redeclare to return `void', and redeclare
5549 its hook to use grub_uint64_t as addr and size parameters, and rename
5551 (grub_machine_mmap_iterate): ... this. Update all users.
5553 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
5554 to make it more readable. Rename to ...
5555 (grub_machine_mmap_iterate): ... this.
5557 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
5558 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
5559 (grub_multiboot): Allocate an extra region after the payload, and fill
5560 it with a Multiboot memory map. Adjust a.out loader to calculate size
5561 with the extra space.
5562 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
5563 with the extra space.
5565 2008-08-17 Carles Pina i Estany <carles@pina.cat>
5567 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
5569 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
5571 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
5572 mdate-sh to the list `find' searches for.
5573 * DISTLIST: Regenerated.
5575 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
5577 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
5578 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
5579 genmoddep.awk, gensymlist.sh.in.
5580 (DISTDIRS): Add bus, docs, hook, lib.
5581 * DISTLIST: Regenerated.
5582 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
5584 2008-08-16 Robert Millan <rmh@aybabtu.com>
5586 * disk/raid.c (grub_raid_init): Handle/report errors set by
5587 grub_device_iterate().
5588 * disk/lvm.c (grub_lvm_init): Likewise.
5590 2008-08-15 Bean <bean123ch@gmail.com>
5592 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
5594 (datetime_mod_SOURCES): New macro.
5595 (datetime_mod_CFLAGS): Likewise.
5596 (datetime_mod_LDFLAGS): Likewise.
5597 (date_mod_SOURCES): Likewise.
5598 (date_mod_CFLAGS): Likewise.
5599 (date_mod_LDFLAGS): Likewise.
5600 (datehook_mod_SOURCES): Likewise.
5601 (datehook_mod_CFLAGS): Likewise.
5602 (datehook_mod_LDFLAGS): Likewise.
5604 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
5606 (datetime_mod_SOURCES): New macro.
5607 (datetime_mod_CFLAGS): Likewise.
5608 (datetime_mod_LDFLAGS): Likewise.
5609 (date_mod_SOURCES): Likewise.
5610 (date_mod_CFLAGS): Likewise.
5611 (date_mod_LDFLAGS): Likewise.
5612 (datehook_mod_SOURCES): Likewise.
5613 (datehook_mod_CFLAGS): Likewise.
5614 (datehook_mod_LDFLAGS): Likewise.
5616 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
5618 (datetime_mod_SOURCES): New macro.
5619 (datetime_mod_CFLAGS): Likewise.
5620 (datetime_mod_LDFLAGS): Likewise.
5621 (date_mod_SOURCES): Likewise.
5622 (date_mod_CFLAGS): Likewise.
5623 (date_mod_LDFLAGS): Likewise.
5624 (datehook_mod_SOURCES): Likewise.
5625 (datehook_mod_CFLAGS): Likewise.
5626 (datehook_mod_LDFLAGS): Likewise.
5628 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
5630 (datetime_mod_SOURCES): New macro.
5631 (datetime_mod_CFLAGS): Likewise.
5632 (datetime_mod_LDFLAGS): Likewise.
5633 (date_mod_SOURCES): Likewise.
5634 (date_mod_CFLAGS): Likewise.
5635 (date_mod_LDFLAGS): Likewise.
5636 (datehook_mod_SOURCES): Likewise.
5637 (datehook_mod_CFLAGS): Likewise.
5638 (datehook_mod_LDFLAGS): Likewise.
5640 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
5642 (datetime_mod_SOURCES): New macro.
5643 (datetime_mod_CFLAGS): Likewise.
5644 (datetime_mod_LDFLAGS): Likewise.
5645 (date_mod_SOURCES): Likewise.
5646 (date_mod_CFLAGS): Likewise.
5647 (date_mod_LDFLAGS): Likewise.
5648 (datehook_mod_SOURCES): Likewise.
5649 (datehook_mod_CFLAGS): Likewise.
5650 (datehook_mod_LDFLAGS): Likewise.
5652 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
5654 * commands/date.c: New file.
5656 * hook/datehook.c: Likewise.
5658 * include/grub/lib/datetime.h: Likewise.
5660 * include/grub/i386/cmos.h: Likewise.
5662 * lib/datetime.c: Likewise.
5664 * lib/i386/datetime.c: Likewise.
5666 * lib/efi/datetime.c: Likewise.
5668 2008-08-14 Robert Millan <rmh@aybabtu.com>
5670 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
5671 (grub_mkelfimage_SOURCES): New variable.
5672 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
5674 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
5675 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
5676 * conf/powerpc-ieee1275.rmk: Likewise.
5677 * conf/i386-ieee1275.rmk: Likewise.
5679 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
5680 * kern/i386/coreboot/init.c: Likewise.
5682 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
5683 with `<grub/cpu/kernel.h>'.
5684 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
5686 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
5687 * kern/i386/coreboot/startup.S: Likewise.
5689 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
5690 (GRUB_MOD_GAP): Remove.
5691 * include/grub/powerpc/kernel.h: New file.
5692 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
5693 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
5694 * include/grub/i386/kernel.h: New file.
5695 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
5696 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
5697 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
5699 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
5701 Use --directory when invoking grub_mkimage.
5703 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
5704 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
5705 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
5706 and GRUB_KERNEL_CPU_PREFIX.
5708 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
5710 * include/grub/err.h (grub_err_printf): New function prototype.
5711 * util/misc.c (grub_err_printf): New function.
5712 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
5714 * kern/err.c (grub_print_error): Use grub_err_printf.
5716 2008-08-13 Robert Millan <rmh@aybabtu.com>
5718 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
5720 2008-08-13 Robert Millan <rmh@aybabtu.com>
5722 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
5725 2008-08-12 Robert Millan <rmh@aybabtu.com>
5727 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
5728 of the relocation code from here ...
5729 (grub_multiboot): ... to here.
5730 (forward_relocator, backward_relocator): Move from here ...
5731 * kern/i386/loader.S (grub_multiboot_forward_relocator)
5732 (grub_multiboot_backward_relocator): ... to here.
5733 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
5734 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
5735 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
5736 (grub_multiboot_forward_relocator_end)
5737 (grub_multiboot_backward_relocator)
5738 (grub_multiboot_backward_relocator_end): New variables.
5740 2008-08-12 Bean <bean123ch@gmail.com>
5742 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
5744 2008-08-11 Robert Millan <rmh@aybabtu.com>
5746 * kern/i386/linuxbios/startup.S: Move from here ...
5747 * kern/i386/coreboot/startup.S: ... to here.
5749 * kern/i386/linuxbios/init.c: Move from here ...
5750 * kern/i386/coreboot/init.c: ... to here.
5752 * kern/i386/linuxbios/table.c: Move from here ...
5753 * kern/i386/coreboot/mmap.c: ... to here.
5755 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
5757 2008-08-11 Robert Millan <rmh@aybabtu.com>
5759 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
5760 errors. Leave it to the upper layer to handle them.
5762 2008-08-09 Christian Franke <franke@computer.org>
5764 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
5765 * conf/common.rmk: Install `grub-pe2elf' only if requested.
5766 Install `grub.d/10_windows' only on Cygwin.
5767 * configure.ac: Add subst of `target_os'.
5768 Check `target_os' also before setting TARGET_OBJ2ELF.
5769 Add `--enable-grub-pe2elf'.
5771 2008-08-08 Robert Millan <rmh@aybabtu.com>
5773 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
5774 (grub_last_time): Change type to grub_uint64_t.
5775 (grub_disk_open): Migrate code from to using grub_get_time_ms().
5776 (grub_disk_close): Likewise.
5778 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
5779 (run_menu): Migrate code from to using grub_get_time_ms().
5781 * util/misc.c (grub_get_time_ms): New function.
5783 2008-08-08 Marco Gerards <marco@gnu.org>
5785 * disk/ata.c (grub_ata_regget): Change return type to
5787 (grub_ata_regget2): Likewise.
5788 (grub_ata_wait_status): New function.
5789 (grub_ata_wait_busy): Removed function, updated all users to use
5790 `grub_ata_wait_status'.
5791 (grub_ata_wait_drq): Likewise.
5792 (grub_ata_cmd): New function.
5793 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
5795 (grub_ata_pio_write): Add error handling.
5796 (grub_atapi_identify): Likewise.
5797 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
5799 (grub_ata_identify): Use `grub_ata_cmd' and improve error
5800 handling. Actually use the detected registers. Reorder the
5801 detection logic such that it is easier to read.
5802 (grub_ata_pciinit): Do not assign the same ID to each controller.
5803 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
5805 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
5807 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
5809 2008-08-08 Marco Gerards <marco@gnu.org>
5813 2008-08-07 Bean <bean123ch@gmail.com>
5815 * include/grub/x86_64/pci.h: New file.
5817 2008-08-07 Christian Franke <franke@computer.org>
5819 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
5820 (TIMER2_GATE): Likewise.
5821 (grub_pit_wait): Add enable/disable of the timer2 gate
5822 bit of port 0x61. This fixes a possible infinite loop.
5824 2008-08-07 Bean <bean123ch@gmail.com>
5826 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
5827 kern/i386/tsc.c and kern/i386/pit.c.
5829 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
5832 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
5835 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
5837 2008-08-07 Bean <bean123ch@gmail.com>
5839 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
5841 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
5843 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
5844 multiple inclusion. Add #include <grub/types.h>.
5846 2008-08-06 Christian Franke <franke@computer.org>
5848 * conf/common.rmk: Build and install `10_windows'.
5849 * util/grub.d/10_windows.in: New script.
5851 2008-08-06 Pavel Roskin <proski@gnu.org>
5853 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
5855 2008-08-06 Robert Millan <rmh@aybabtu.com>
5857 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
5858 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
5860 2008-08-06 Bean <bean123ch@gmail.com>
5862 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
5863 (grub_pxefs_fs_int): Remove dummy definition.
5864 (grub_pxefs_open): Use data->block_size to store the current block
5866 (grub_pxefs_read): Use block size stored in data->block_size. As the
5867 value of grub_pxe_blksize can be changed after the file is opened.
5869 2008-08-06 Bean <bean123ch@gmail.com>
5871 * fs/i386/pc/pxe.c (curr_file): new variable.
5872 (grub_pxefs_open): Simply the handling of pxe file system. Don't
5873 require the dummy internal file system anymore.
5874 (grub_pxefs_read): Removed.
5875 (grub_pxefs_close): Likewise.
5876 (grub_pxefs_fs_int): Likewise.
5877 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
5878 connection when we switch file.
5879 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
5881 2008-08-06 Robert Millan <rmh@aybabtu.com>
5883 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
5885 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
5886 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
5888 * kern/i386/halt.c: New file.
5889 * kern/i386/reboot.c: Likewise.
5890 * include/grub/i386/reboot.h: Likewise.
5891 * include/grub/i386/halt.h: Likewise.
5893 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
5894 Include `<grub/cpu/halt.h>'.
5895 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
5896 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
5898 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
5899 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
5900 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
5901 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
5902 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
5903 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
5905 * include/grub/i386/at_keyboard.h: ... to here.
5907 2008-08-05 Robert Millan <rmh@aybabtu.com>
5909 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
5910 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
5911 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
5912 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
5913 `kern/generic/millisleep.c'.
5915 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
5916 instead of grub_get_rtc().
5917 (grub_tsc_init): Initialize `tsc_boot_time'.
5919 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
5920 (grub_machine_init): Use grub_tsc_init() rather than
5921 installing an RTC-based handler via grub_install_get_time_ms().
5923 * kern/i386/pit.c: New file.
5924 * include/grub/i386/pit.h: Likewise.
5926 2008-08-05 Bean <bean123ch@gmail.com>
5928 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
5930 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
5931 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
5932 (pxe_mod_SOURCES): New macro.
5933 (pxe_mod_CFLAGS): Likewise.
5934 (pxe_mod_LDFLAGS): Likewise.
5935 (pxecmd_mod_SOURCES): Likewise.
5936 (pxecmd_mod_CFLAGS): Likewise.
5937 (pxecmd_mod_LDFLAGS): Likewise.
5939 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
5940 (grub_pxe_call): Likewise.
5942 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
5944 * commands/i386/pc/pxecmd.c: New file.
5946 * fs/i386/pc/pxe.c: Likewise.
5948 * include/grub/i386/pc/pxe.h: Likewise.
5950 2008-08-05 Bean <bean123ch@gmail.com>
5952 * util/console.c (grub_console_cur_color): New variable.
5953 (grub_console_standard_color): Likewise.
5954 (grub_console_normal_color): Likewise.
5955 (grub_console_highlight_color): Likewise.
5956 (color_map): Likewise.
5957 (use_color): Likewise.
5958 (NUM_COLORS): New macro.
5959 (grub_ncurses_setcolorstate): Handle color properly.
5960 (grub_ncurses_setcolor): Don't change color here, just remember the
5961 settings, color will be set in grub_ncurses_setcolorstate.
5962 (grub_ncurses_getcolor): New function.
5963 (grub_ncurses_init): Initialize color pairs.
5964 (grub_ncurses_term): New member grub_ncurses_getcolor.
5966 2008-08-05 Colin D Bennett <colin@gibibit.com>
5968 High resolution timer support. Implemented for x86 CPUs using TSC.
5969 Extracted generic grub_millisleep() so it's linked in only as needed.
5970 This requires a Pentium compatible CPU; if the RDTSC instruction is
5971 not supported, then it falls back on the generic grub_get_time_ms()
5972 implementation that uses the machine's RTC.
5974 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
5975 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
5976 `kern/generic/millisleep.c'.
5978 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
5979 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
5981 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
5982 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
5984 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
5986 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
5987 `kern/generic/millisleep.c'.
5989 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
5991 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
5993 * kern/generic/rtc_get_time_ms.c: New file.
5995 * kern/generic/millisleep.c: New file.
5997 * kern/misc.c: Don't include
5998 <kern/time.h> anymore.
5999 (grub_millisleep_generic): Removed.
6001 * commands/sleep.c (grub_interruptible_millisleep): Uses
6002 grub_get_time_ms() instead of grub_get_rtc().
6004 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
6006 (grub_cpu_is_cpuid_supported): New inline function.
6007 (grub_cpu_is_tsc_supported): New inline function.
6008 (grub_tsc_init): New function prototype.
6009 (grub_tsc_get_time_ms): New function prototype.
6011 * kern/i386/tsc.c (grub_get_time_ms): New file.
6013 * include/grub/time.h: Include <grub/types.h.
6014 (grub_millisleep_generic): Removed.
6015 (grub_get_time_ms): New prototype.
6016 (grub_install_get_time_ms): New prototype.
6017 (grub_rtc_get_time_ms): New prototype.
6019 * kern/time.c (grub_get_time_ms): New function.
6020 (grub_install_get_time_ms): New function.
6022 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
6023 <grub/time.h> anymore.
6024 (grub_millisleep): Removed.
6025 (grub_machine_init): Call grub_tsc_init.
6027 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
6028 get_time_ms() implementation.
6030 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
6031 (ieee1275_get_time_ms): New function.
6032 (grub_machine_init): Install get_time_ms() implementation.
6034 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
6035 (grub_machine_init): Call grub_tsc_init().
6036 (grub_millisleep): Removed.
6038 * kern/ieee1275/init.c (grub_millisleep): Removed.
6039 (grub_machine_init): Install ieee1275_get_time_ms()
6041 (ieee1275_get_time_ms): New function.
6042 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
6045 2008-08-05 Marco Gerards <marco@gnu.org>
6047 * disk/ata.c: Include <grub/pci.h>.
6048 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
6049 (grub_ata_initialize): Rewritten.
6050 (grub_ata_device_initialize): New function.
6052 2008-08-04 Pavel Roskin <proski@gnu.org>
6054 * kern/main.c: Include grub/mm.h.
6056 2008-08-04 Robert Millan <rmh@aybabtu.com>
6058 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
6059 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
6060 corruption problem).
6062 2008-08-04 Robert Millan <rmh@aybabtu.com>
6064 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
6065 warnings introduced in my last commit.
6067 2008-08-03 Robert Millan <rmh@aybabtu.com>
6069 Make PCI available on all i386 architectures.
6071 * include/grub/i386/pc/pci.h: Move from here ...
6072 * include/grub/i386/pci.h: ... to here.
6074 * include/grub/i386/pc/pci.h: Remove.
6075 * include/grub/i386/efi/pci.h: Remove.
6076 * include/grub/x86_64/efi/pci.h: Remove.
6078 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
6081 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
6082 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
6083 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
6085 * conf/i386-ieee1275.rmk: Likewise.
6087 2008-08-03 Robert Millan <rmh@aybabtu.com>
6089 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
6090 (grub_console_setcursor): Make it possible to set cursor off.
6092 2008-08-03 Robert Millan <rmh@aybabtu.com>
6094 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
6095 of modules instead of assuming which platform provides what.
6096 * util/update-grub.in: Likewise.
6098 2008-08-03 Robert Millan <rmh@aybabtu.com>
6100 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
6101 instead of `grub_install_dos_part' to determine whether a drive needs
6102 to be prepended to prefix (`grub_install_dos_part' is not reliable,
6103 because it can be overridden when loading GRUB via Multiboot).
6105 2008-08-02 Robert Millan <rmh@aybabtu.com>
6107 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
6109 2008-08-02 Robert Millan <rmh@aybabtu.com>
6111 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
6112 of informational grub_dprintf() calls.
6114 2008-08-02 Robert Millan <rmh@aybabtu.com>
6116 * disk/memdisk.c (memdisk_size): Don't initialize.
6117 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
6119 * include/grub/i386/pc/kernel.h
6120 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
6121 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
6122 (grub_memdisk_image_size, grub_arch_memdisk_addr)
6123 (grub_arch_memdisk_size): Remove.
6125 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
6126 field (was only used to transfer a constant). Add `type' field to
6127 support multiple module types.
6128 (grub_module_iterate): New function.
6130 * kern/device.c (grub_device_open): Do not hide error messages
6131 when grub_disk_open() fails. Use grub_print_error() instead.
6133 * kern/i386/pc/init.c (grub_arch_modules_addr)
6134 (grub_arch_memdisk_size): Remove functions.
6135 (grub_arch_modules_addr): Return the module address in high memory
6136 (now that it isn't copied anymore).
6138 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
6139 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
6140 decompression routine (grub_total_module_size already includes that
6141 now). Don't copy modules back to low memory.
6143 * kern/main.c: Include `<grub/mm.h>'.
6144 (grub_load_modules): Split out (and use) ...
6145 (grub_module_iterate): ... this function, which iterates through
6146 module objects and runs a hook.
6147 Comment out grub_mm_init_region() call, as it would cause non-ELF
6148 modules to be overwritten.
6150 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
6151 the memdisk image in its own region, make it part of the module list.
6152 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
6153 (main): Parse --memdisk|-m option, and pass user-provided path as
6154 parameter to generate_image().
6155 (add_segments): Pass `memdisk_path' down to load_modules().
6156 (load_modules): Embed memdisk image in module section when requested.
6157 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
6158 `header.type' instead of `header.offset'.
6160 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
6161 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
6162 (memdisk_mod_LDFLAGS): New variables.
6163 * conf/i386-coreboot.rmk: Likewise.
6164 * conf/i386-ieee1275.rmk: Likewise.
6166 2008-08-02 Robert Millan <rmh@aybabtu.com>
6168 * loader/i386/pc/multiboot.c (playground, forward_relocator)
6169 (backward_relocator): New variables. Used to allocate and relocate
6170 the payload, respectively.
6171 (grub_multiboot_load_elf32): Load into heap instead of requested
6172 address, install the appropriate relocator code in each bound of
6173 the payload, and set the entry point such that
6174 grub_multiboot_real_boot() will jump to one of them.
6176 * kern/i386/loader.S (grub_multiboot_payload_size)
6177 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
6178 (grub_multiboot_payload_entry_offset): New variables.
6179 (grub_multiboot_real_boot): Set cpu context to what the relocator
6180 expects, and jump to the relocator instead of the payload.
6182 * include/grub/i386/loader.h (grub_multiboot_payload_size)
6183 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
6184 (grub_multiboot_payload_entry_offset): Export.
6186 2008-08-01 Bean <bean123ch@gmail.com>
6188 * normal/menu_entry.c (editor_getline): Don't return the original
6189 string as result, as it will be released by lexer once it has done
6192 2008-08-01 Robert Millan <rmh@aybabtu.com>
6194 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
6195 within menuentries, not before them.
6196 util/grub.d/10_hurd.in: Likewise.
6198 2008-08-01 Bean <bean123ch@gmail.com>
6200 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
6201 (bufio_mod_SOURCES): New macro.
6202 (bufio_mod_CFLAGS): Likewise.
6203 (bufio_mod_LDFLAGS): Likewise.
6205 * include/grub/bufio.h: New file.
6207 * io/bufio.c: Likewise.
6209 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
6210 (grub_video_reader_png): Use grub_buffile_open to open file.
6212 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
6213 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
6215 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
6216 (grub_video_reader_tga): Use grub_buffile_open to open file.
6218 * font/manager.c: Include <grub/bufio.h>.
6219 (add_font): Use grub_buffile_open to open file.
6221 2008-07-31 Robert Millan <rmh@aybabtu.com>
6223 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
6224 ELF segments, use a macro for arbitrarily accessing any of them instead
6225 of preparing a pointer that allows access to one at a time.
6226 (grub_multiboot_load_elf64): Likewise.
6228 2008-07-31 Bean <bean123ch@gmail.com>
6230 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
6231 GRUB_KERNEL_MACHINE_DATA_END.
6233 2008-07-30 Robert Millan <rmh@aybabtu.com>
6235 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
6236 Increase from 0x50 to 0x60.
6237 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
6238 use UUIDs to identify the root drive for them. If that's not
6240 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
6241 check, for cross-disk installs.
6243 2008-07-30 Robert Millan <rmh@aybabtu.com>
6245 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
6246 is non-empty, use it to set the `prefix' environment variable instead
6247 of the usual approach.
6248 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
6249 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
6250 environment variable instead of dummy make_install_device().
6252 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
6253 (start): Insert a data section, with `grub_prefix' variable.
6254 * kern/i386/linuxbios/startup.S: Likewise.
6256 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
6257 New variable reference.
6258 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
6259 New macro. Defines offset of `grub_prefix' within startup.S (relative
6261 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
6262 section within startup.S (relative to `start').
6263 * include/grub/i386/coreboot/kernel.h: Likewise.
6265 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
6266 Overwrite grub_prefix with its contents, at the beginning of the
6268 (main): Understand -p|--prefix.
6270 2008-07-30 Robert Millan <rmh@aybabtu.com>
6272 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
6274 2008-07-30 Robert Millan <rmh@aybabtu.com>
6276 * term/i386/pc/vga_text.c (grub_console_cls): Use
6277 grub_console_gotoxy() to go back to beginning of the screen.
6278 Found by Patrick Georgi <patrick.georgi@coresystems.de>
6280 2008-07-29 Christian Franke <franke@computer.org>
6282 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
6283 Add conversion of emulated mount points on Cygwin.
6285 2008-07-29 Christian Franke <franke@computer.org>
6287 * util/update-grub.in: Add a check for admin
6289 Remove old `grub.cfg.new' before creation.
6290 Add `-f' to `mv' to handle the different filesystem
6291 semantics of Windows.
6293 2008-07-29 Bean <bean123ch@gmail.com>
6295 * normal/main.c (get_line): Fix buffer overflow bug.
6297 2008-07-28 Robert Millan <rmh@aybabtu.com>
6299 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
6300 (struct grub_apple_header): New struct. Describes the layout of
6302 (apple_partition_map_iterate): Check the header magic as well as the
6303 partition magic (which was already being checked).
6305 2008-07-28 Pavel Roskin <proski@gnu.org>
6307 * genmk.rb: Add a warning to the beginning of the output that
6308 it's a generated file and should not be edited.
6310 2008-07-28 Robert Millan <rmh@aybabtu.com>
6312 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
6313 with the same number are found, just use issue a warning with
6314 grub_dprintf(), as this error has been reported to be non-fatal.
6316 2008-07-27 Robert Millan <rmh@aybabtu.com>
6318 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
6321 2008-07-27 Bean <bean123ch@gmail.com>
6323 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
6324 (grub_fat_find_dir): Ignore case when comparing filename.
6326 2008-07-27 Bean <bean123ch@gmail.com>
6328 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
6329 smallino, as it's more descriptive, and i8count can be confused with
6330 the other field count.
6331 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
6334 2008-07-27 Bean <bean123ch@gmail.com>
6336 * commands/crc.c: New file.
6338 * lib/crc.c: Likewise.
6340 * include/grub/lib/crc.h: Likewise.
6342 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
6344 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
6345 (hexdump): Move this function to ...
6347 * lib/hexdump.c: ... here.
6349 * include/grub/hexdump.h: Renamed to ...
6351 * include/grub/lib/hexdump.h: ... this.
6353 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
6355 * util/grub-editenv.c: Likewise.
6357 * include/envblk.h: Renamed to ...
6359 * include/lib/envblk.h: ... this.
6361 * util/envblk.c: Renamed to ...
6363 * lib/envblk.c: ... this.
6365 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
6367 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
6368 (pkglib_MODULES): Add crc.mod.
6369 (hexdump_mod_SOURCES): Add lib/hexdump.c.
6370 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
6371 (crc_mod_SOURCES): New macro.
6372 (crc_mod_CFLAGS): Likewise.
6373 (crc_mod_LDFLAGS): Likewise.
6375 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
6377 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6379 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6381 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6383 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6385 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
6387 * commands/help.c: Include <grub/term.h>.
6388 (TERM_WIDTH): Removed. Updated all users.
6390 2008-07-27 Pavel Roskin <proski@gnu.org>
6392 * util/getroot.c (find_root_device): Rephrase a comment to avoid
6393 spurious warnings about a comment within a comment.
6395 2008-07-25 Robert Millan <rmh@aybabtu.com>
6397 * util/getroot.c (find_root_device): Skip devices that match
6398 /dev/dm-[0-9]. This lets the real device be found for any type of
6399 abstraction (LVM, EVMS, RAID..).
6400 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
6401 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
6402 device is found first, find_root_device() will now skip it.
6404 2008-07-24 Pavel Roskin <proski@gnu.org>
6406 * include/grub/types.h: Use __builtin_bswap32() and
6407 __builtin_bswap64() with gcc 4.3 and newer.
6409 2008-07-24 Christian Franke <franke@computer.org>
6411 * util/i386/pc/grub-install.in: If `--debug' is specified,
6412 pass `--verbose' to grub-setup.
6413 Abort script if make_system_path_relative_to_its_root() fails.
6415 2008-07-24 Bean <bean123ch@gmail.com>
6417 * configure.ac: Fixed a bug caused by the previous cygwin patch,
6418 variable `target_platform' should be `platform'.
6420 2008-07-24 Bean <bean123ch@gmail.com>
6422 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
6423 (grub_png_init_fixed_block): New function.
6424 (grub_png_decode_image_data): Handle fixed huffman code compression.
6426 2008-07-24 Bean <bean123ch@gmail.com>
6428 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
6429 (grub_pe2elf_SOURCES): New macro.
6430 (CLEANFILES): Add grub-pe2elf.
6432 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
6433 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
6434 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
6435 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
6436 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
6437 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
6438 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
6439 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
6440 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
6441 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
6442 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
6443 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
6444 (GRUB_PE32_DT_FUNCTION): Likewise.
6445 (GRUB_PE32_REL_I386_DIR32): Likewise.
6446 (GRUB_PE32_REL_I386_REL32): Likewise.
6447 (grub_pe32_symbol): New structure.
6448 (grub_pe32_reloc): Likewise.
6450 * util/grub-pe2elf.c: New file.
6452 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
6453 start symbol in non pc platform.
6455 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
6457 The following patches are from Christian Franke.
6459 * include/grub/dl.h: Remove .previous, gas supports this only
6462 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
6463 Remove .type, gas supports this only for ELF format.
6465 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
6466 nullbytes in symbol table. This fixes an infinite loop if table is
6469 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
6470 TARGET_IMG_LDFLAGS and EXEEXT.
6472 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
6473 TARGET_IMG_LDFLAGS_AC.
6474 (grub_CHECK_STACK_ARG_PROBE): New function.
6476 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
6478 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
6480 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
6481 to set TARGET_IMG_LD* accordingly.
6482 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
6483 Add call to grub_CHECK_STACK_ARG_PROBE.
6484 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
6486 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
6488 * genmk.rb: Add EXEEXT to CLEANFILES.
6490 2008-07-23 Robert Millan <rmh@aybabtu.com>
6492 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
6493 define the codes for arrows and lines used for the menu).
6494 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
6497 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
6498 fonts, because the latter are too slow.
6500 2008-07-21 Bean <bean123ch@gmail.com>
6502 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
6503 a20. Run keyboard test last, as it will cause macbook to halt.
6505 2008-07-18 Pavel Roskin <proski@gnu.org>
6507 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
6508 load foreign architecture modules correctly anyway. Keep
6509 support for loading host architecture modules, whether we
6510 compile them or not.
6512 2008-07-17 Pavel Roskin <proski@gnu.org>
6514 * configure.ac: Use -m32 or -m64 regardless of whether we had to
6515 change target_cpu. The compiler default can mismatch target_cpu
6518 * disk/efi/efidisk.c: Fix format warnings on x86_64.
6519 * kern/efi/efi.c: Likewise.
6521 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
6522 target compiler is functional.
6523 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
6526 * configure.ac: Default to efi platform for x86_64-apple. Allow
6527 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
6528 adjustments from the rest, only do them if target is not
6529 explicitly given. Merge other adjustments with the final sanity
6530 check. Remove an extraneous check for supported CPU. Be
6531 specific which CPU and which platform is not supported.
6533 * configure.ac: Default to pc platform for x86_64.
6535 2008-07-17 Robert Millan <rmh@aybabtu.com>
6537 Partial LinuxBIOS -> Coreboot rename.
6539 * conf/i386-linuxbios.rmk: Renamed to ...
6540 * conf/i386-coreboot.rmk: ... this.
6541 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
6542 * configure.ac: Accept "coreboot" as input platform (but maintain
6543 compatibility with "linuxbios").
6544 * include/grub/i386/linuxbios: Renamed to ...
6545 * include/grub/i386/coreboot: ... this.
6547 2008-07-17 Bean <bean123ch@gmail.com>
6549 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
6550 (appleldr_mod_SOURCE): New variable.
6551 (appleldr_mod_CFLAGS): Likewise.
6552 (appleldr_mod_LDFLAGS): Likewise.
6553 (pci_mod_SOURCES): Likewise.
6554 (pci_mod_CFLAGS): Likewise.
6555 (pci_mod_LDFLAGS): Likewise.
6556 (lspci_mod_SOURCES): Likewise.
6557 (lspci_mod_CFLAGS): Likewise.
6558 (lspci_mod_LDFLAGS): Likewise.
6560 * conf/x86_64-efi.rmk: New file.
6562 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
6564 (grub_efidisk_write): Likewise.
6566 * include/efi/api.h (efi_call_0): New macro.
6567 (efi_call_1): Likewise.
6568 (efi_call_2): Likewise.
6569 (efi_call_3): Likewise.
6570 (efi_call_4): Likewise.
6571 (efi_call_5): Likewise.
6572 (efi_call_6): Likewise.
6574 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
6575 grub_rescue_cmd_chainloader.
6577 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
6578 (grub_pe32_optional_header): Change some fields based on i386 or
6580 (GRUB_PE32_PE32_MAGIC): Likewise.
6582 * include/grub/efi/uga_draw.h: New file.
6584 * include/grub/elf.h (STN_ABS): New constant.
6585 (R_X86_64_NONE): Relocation constant for x86_64.
6586 (R_X86_64_64): Likewise.
6587 (R_X86_64_PC32): Likewise.
6588 (R_X86_64_GOT32): Likewise.
6589 (R_X86_64_PLT32): Likewise.
6590 (R_X86_64_COPY): Likewise.
6591 (R_X86_64_GLOB_DAT): Likewise.
6592 (R_X86_64_JUMP_SLOT): Likewise.
6593 (R_X86_64_RELATIVE): Likewise.
6594 (R_X86_64_GOTPCREL): Likewise.
6595 (R_X86_64_32): Likewise.
6596 (R_X86_64_32S): Likewise.
6597 (R_X86_64_16): Likewise.
6598 (R_X86_64_PC16): Likewise.
6599 (R_X86_64_8): Likewise.
6600 (R_X86_64_PC8): Likewise.
6602 * include/grub/i386/efi/pci.h: New file.
6604 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
6605 Change it value based on platform.
6606 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
6607 (GRUB_E820_RAM): Likewise.
6608 (GRUB_E820_RESERVED): Likewise.
6609 (GRUB_E820_ACPI): Likewise.
6610 (GRUB_E820_NVS): Likewise.
6611 (GRUB_E820_EXEC_CODE): Likewise.
6612 (GRUB_E820_MAX_ENTRY): Likewise.
6613 (grub_e820_mmap): New structure.
6614 (linux_kernel_header): Change the efi field according to different
6615 kernel version, also field from linux_kernel_header.
6617 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
6619 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
6620 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
6621 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
6622 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
6623 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
6624 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
6625 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
6626 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
6627 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
6628 (GRUB_PCI_ADDR_IO_MASK): Likewise.
6630 * include/grub/x86_64/efi/kernel.h: New file.
6632 * include/grub/x86_64/efi/loader.h: Likewise.
6634 * include/grub/x86_64/efi/machine.h: Likewise.
6636 * include/grub/x86_64/efi/pci.h: Likewise.
6638 * include/grub/x86_64/efi/time.h: Likewise.
6640 * include/grub/x86_64/linux.h: Likewise.
6642 * include/grub/x86_64/setjmp.h: Likewise.
6644 * include/grub/x86_64/time.h: Likewise.
6646 * include/grub/x86_64/types.h: Likewise.
6648 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
6649 GRUB_TARGET_SIZEOF_VOID_P.
6651 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
6652 (grub_efi_locate_handle): Likewise.
6653 (grub_efi_open_protocol): Likewise.
6654 (grub_efi_set_text_mode): Likewise.
6655 (grub_efi_stall): Likewise.
6656 (grub_exit): Likewise.
6657 (grub_reboot): Likewise.
6658 (grub_halt): Likewise.
6659 (grub_efi_exit_boot_services): Likewise.
6660 (grub_get_rtc): Likewise.
6662 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
6663 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
6664 (grub_efi_allocate_pages): Wrap efi calls.
6665 (grub_efi_free_pages): Wrap efi calls.
6666 (grub_efi_get_memory_map): Wrap efi calls.
6668 * kern/x86_64/dl.c: New file.
6670 * kern/x86_64/efi/callwrap.S: Likewise.
6672 * kern/x86_64/efi/startup.S: Likewise.
6674 * loader/efi/appleloader.c: Likewise.
6676 * loader/efi/chainloader.c (cmdline): New variable.
6677 (grub_chainloader_unload): Wrap efi calls.
6678 (grub_chainloader_boot): Likewise.
6679 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
6682 * loader/efi/chainloader_normal.c (chainloader_command):
6683 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
6686 * loader/i386/efi/linux.c (allocate_pages): Change allocation
6688 (grub_e820_add_region): New function.
6689 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
6691 (grub_find_video_card): New function.
6692 (grub_linux_setup_video): New function.
6693 (grub_rescue_cmd_linux): Probe for video information.
6695 * normal/x86_64/setjmp.S: New file.
6697 * term/efi/console.c (map_char): New function.
6698 (grub_console_putchar): Map unicode char.
6699 (grub_console_checkkey): Wrap efi calls.
6700 (grub_console_getkey): Likewise.
6701 (grub_console_getwh): Likewise.
6702 (grub_console_gotoxy): Likewise.
6703 (grub_console_cls): Likewise.
6704 (grub_console_setcolorstate): Likewise.
6705 (grub_console_setcursor): Likewise.
6707 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
6709 2008-07-16 Pavel Roskin <proski@gnu.org>
6711 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
6714 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
6715 pointer, not an integer. This fixes a warning and prevents
6716 precision loss on 64-bit systems.
6717 (relocate_addresses): Remove unneeded cast.
6719 2008-07-15 Pavel Roskin <proski@gnu.org>
6721 * kern/i386/ieee1275/init.c: Include grub/cache.h.
6723 * term/ieee1275/ofconsole.c: Disable code unused on i386.
6725 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
6726 Fix comparison between signed and unsigned.
6728 * include/grub/i386/ieee1275/console.h: Declare
6729 grub_console_init() and grub_console_fini().
6731 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
6732 It's empty and unused.
6734 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
6735 beginning to avoid warnings with some compilers.
6737 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
6738 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
6740 2008-07-14 Pavel Roskin <proski@gnu.org>
6742 * kern/env.c (grub_register_variable_hook): Don't copy empty
6743 string, it leaks memory. Pass "" to grub_env_set(), it should
6744 handle constant strings.
6746 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
6747 * commands/cmp.c (grub_cmd_cmp): Likewise.
6748 * kern/dl.c (grub_dl_flush_cache): Likewise.
6749 (grub_dl_load_core): Likewise.
6750 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
6751 (grub_elf64_load_phdrs): Likewise.
6753 2008-07-13 Pavel Roskin <proski@gnu.org>
6755 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
6756 between signed and unsigned.
6757 (LzmaEnc_Finish): Fix warning about an unused parameter.
6759 2008-07-13 Bean <bean123ch@gmail.com>
6761 * Makefile.in (enable_lzo): New rule.
6763 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
6765 * configure.ac (ENABLE_LZO): New option --enable-lzo.
6767 * boot/i386/pc/lnxboot.S: #include <config.h>.
6769 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
6770 its value according to the compression algorithm used, lzo or lzma.
6772 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
6773 compression algorithm according to configure macro.
6775 * kern/i386/pc/startup.S (codestart): Likewise.
6777 * kern/i386/pc/lzma_decode.S: New file.
6779 * include/grub/lib/LzFind.h: Likewise.
6781 * include/grub/lib/LzHash.h: Likewise.
6783 * include/grub/lib/LzmaDec.h: Likewise.
6785 * include/grub/lib/LzmaEnc.h: Likewise.
6787 * include/grub/lib/LzmaTypes.h: Likewise.
6789 * lib/LzFind.c: Likewise.
6791 * lib/LzmaDec.c: Likewise.
6793 * lib/LzmaEnc.c: Likewise.
6795 2008-07-13 Bean <bean123ch@gmail.com>
6797 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
6798 (grub_ext4_extent_header): New structure.
6799 (grub_ext4_extent): Likewise.
6800 (grub_ext4_extent_idx): Likewise.
6801 (grub_ext4_find_leaf): New function.
6802 (grub_ext2_read_block): Handle extents.
6804 2008-07-12 Robert Millan <rmh@aybabtu.com>
6806 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
6808 2008-07-11 Robert Millan <rmh@aybabtu.com>
6810 * util/grub.d/40_custom.in: New file. Example on how to add custom
6811 entries to /etc/grub.d.
6812 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
6813 40_custom (implicitly, by merging all the grub.d rules).
6815 2008-07-11 Pavel Roskin <proski@gnu.org>
6817 * commands/read.c (grub_getline): Fix invalid memory access.
6818 Don't add newline to the variable value.
6820 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
6821 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
6822 (serial_hw_get_port): Check validity of the port number.
6823 (grub_cmd_serial): Check return value of serial_hw_get_port().
6825 2008-07-07 Pavel Roskin <proski@gnu.org>
6827 * boot/i386/pc/diskboot.S (notification_string): Replace
6828 "Loading kernel" with just "loading". This is shorter, less
6829 confusing and saves a few bytes for possible future changes.
6831 2008-07-05 Pavel Roskin <proski@gnu.org>
6833 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
6834 size for ATAPI devices, they are undefined. Output sector
6835 number in decimal form.
6837 * disk/ata.c: Use named constants for status bits.
6839 2008-07-04 Pavel Roskin <proski@gnu.org>
6841 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
6842 grub_addr_t before casting it to the void pointer to fix a
6843 warning. Non-addressable regions are discarded earlier.
6844 (grub_arch_modules_addr): Cast _end to grub_addr_t.
6845 * kern/i386/linuxbios/table.c: Include grub/misc.h.
6846 (check_signature): Don't shadow table_header.
6847 (grub_linuxbios_table_iterate): Cast numeric constants to
6848 grub_linuxbios_table_header_t.
6849 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
6852 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
6855 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
6856 pointer, which can cause warnings. Support 64-bit addresses.
6858 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
6859 of sizeof(long). This fixes PowerPC image generation on x86_64.
6861 2008-07-04 Robert Millan <rmh@aybabtu.com>
6863 This fixes a performance issue when pc & gpt partmap iterators
6864 didn't abort iteration even after our hook found what it was
6865 looking for (often causing expensive probes of non-existent drives).
6867 Some callers relied on previous buggy behaviour, since they would
6868 raise an error when their own hooks caused early abortion of its
6871 * kern/device.c (grub_device_open): Improve error message.
6872 * disk/lvm.c (grub_lvm_open): Likewise.
6873 * disk/raid.c (grub_raid_open): Likewise.
6875 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
6876 when hook requests it, independently of grub_errno.
6877 (pc_partition_map_probe): Do not fail when find_func() caused
6878 early abortion of pc_partition_map_iterate().
6880 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
6881 when hook requests it, independently of grub_errno.
6882 (gpt_partition_map_probe): Do not fail when find_func() caused
6883 early abortion of gpt_partition_map_iterate().
6885 * kern/partition.c (grub_partition_iterate): Abort parent iteration
6886 when hook requests it, independently of grub_errno. Do not fail when
6887 part_map_iterate_hook() caused early abortion of p->iterate().
6889 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
6890 when grub_partition_iterate() returned with non-zero.
6892 2008-07-03 Pavel Roskin <proski@gnu.org>
6894 * disk/ata.c (grub_ata_pio_write): Check status before writing,
6895 like we do in grub_ata_pio_read().
6896 (grub_ata_readwrite): Always write individual sectors. Fix the
6897 sector count for the remainder.
6898 (grub_ata_write): Enable writing to ATA devices. Correctly
6899 report error for ATAPI devices.
6901 2008-07-02 Pavel Roskin <proski@gnu.org>
6903 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
6906 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
6907 for every read sector, we already increment it for the whole
6908 batch. This fixes reading more than 256 sectors at once.
6910 * util/grub-editenv.c (cmd_info): Cast argument to long
6911 explicitly. ptrdiff_t reduces to int on i386.
6913 * util/grub-editenv.c (main): Be specific which parameter is
6916 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
6917 (memdisk): Make memdisk_orig_addr a pointer.
6919 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
6920 for file offsets, use grub_off_t instead. Fix printf format
6923 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
6924 there. Real unexpected warnings should not drown in the noise
6925 about known problems.
6927 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
6928 grub_disk_addr_t for memory addresses.
6930 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
6931 explicitly to fix a warning.
6933 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
6935 * Makefile.in (MODULE_LDFLAGS): New variable.
6936 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
6937 the linker accepts --build-id=none.
6938 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
6940 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
6942 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
6943 those in Linux XFS code. Provide a way to access 64-bit parent
6945 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
6946 the end of struct grub_xfs_dir_header.
6948 2008-07-02 Bean <bean123ch@gmail.com>
6950 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
6951 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
6952 and GRUB_IEEE1275_FLAG_NO_ANSI.
6954 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
6955 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
6956 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
6958 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
6959 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
6961 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
6962 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
6964 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
6965 esc sequence on non ANSI terminal.
6966 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
6968 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
6971 2008-07-02 Bean <bean123ch@gmail.com>
6973 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
6974 (grub_editenv_SOURCES): New variable.
6975 (pkglib_MODULES): Add loadenv.mod.
6976 (loadenv_mod_SOURCES): New variable.
6977 (loadenv_mod_CFLAGS): Likewise.
6978 (loadenv_mod_LDFLAGS): Likewise.
6980 * include/grub/envblk.h: New file.
6982 * util/envblk.c: New file.
6984 * util/grub-editenv.c: New file.
6986 * commands/loadenv.c: New file.
6988 2008-07-01 Pavel Roskin <proski@gnu.org>
6990 * include/multiboot2.h (struct multiboot_tag_module): Use char,
6991 not unsigned char. This fixes warnings and is consistent with
6994 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
6996 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
6998 * term/tparm.c (analyze): Always set *popcount.
7000 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
7001 cast to fix a warning.
7003 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
7004 cast to suppress a warning.
7006 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
7007 grub_fshelp_read_file() expects.
7009 * fs/fat.c: Fix UUID calculation on big-endian systems. We
7010 write uuid as a 32-bit value in CPU byte order, so declare and
7013 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
7014 long if the format specifier expects it.
7015 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
7016 * partmap/pc.c (pc_partition_map_iterate): Likewise.
7017 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
7018 long to fix a warning.
7019 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
7020 grub_dprintf() arguments to fix warnings.
7022 2008-06-30 Pavel Roskin <proski@gnu.org>
7024 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
7025 install_bsd_part immediately before core.img is embedded or
7026 modified on disk. This fixes core.img verification if core.img
7029 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
7030 core_path to calculate the blocklist.
7031 Patch from Javier MartÃn <lordhabbit@gmail.com>
7033 2008-06-29 Robert Millan <rmh@aybabtu.com>
7035 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
7036 block to disk block.
7037 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
7038 Patch from Niels Böhm <bitbucket@arcor.de>
7040 2008-06-29 Robert Millan <rmh@aybabtu.com>
7042 * util/update-grub_lib.in (font_path): Search for fonts in
7043 /boot/grub first, which is more likely to be readable (we aren't
7044 deciding where fonts live, just looking for them).
7046 2008-06-26 Pavel Roskin <proski@gnu.org>
7048 * util/biosdisk.c (read_device_map): Don't leave dead map
7049 entries for devices failing stat() check.
7051 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
7052 core_path_dev for the core.img path on the target device.
7054 2008-06-26 Robert Millan <rmh@aybabtu.com>
7056 * disk/fs_uuid.c: New file.
7057 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
7058 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
7059 (fs_uuid_mod_LDFLAGS): New variables.
7060 * include/grub/disk.h (grub_disk_dev_id): Add
7061 `GRUB_DISK_DEVICE_UUID_ID'.
7062 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
7063 implement iterate().
7065 2008-06-26 Robert Millan <rmh@aybabtu.com>
7067 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
7068 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
7069 Linux image includes no initrd.
7071 2008-06-21 Javier MartÃn <lordhabbit@gmail.com>
7073 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
7074 call to resolve the core image location that effectively appended the
7077 2008-06-21 Robert Millan <rmh@aybabtu.com>
7079 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
7082 * util/grub.d/10_hurd.in: ... to here ...
7083 * util/grub.d/10_linux.in: ... and here.
7085 2008-06-19 Robert Millan <rmh@aybabtu.com>
7087 * kern/main.c (grub_main): Export `prefix' variable immediately
7088 after it has been set by grub_machine_set_prefix().
7090 2008-06-19 Robert Millan <rmh@aybabtu.com>
7092 * commands/search.c (search_label, search_fs_uuid, search_file): Print
7093 search result when not saving to variable, not the other way around.
7094 When saving to variable, abort iteration as soon as a match is found.
7096 2008-06-19 Robert Millan <rmh@aybabtu.com>
7098 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
7099 check for partition that provides /boot/grub. Its logic is flawed,
7100 as it prevents prepare_grub_to_access_device() from being called
7103 2008-06-19 Robert Millan <rmh@aybabtu.com>
7105 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
7106 "insmod" command directly when abstraction modules are needed,
7107 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
7108 since it had already been processed).
7110 2008-06-19 Pavel Roskin <proski@gnu.org>
7112 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
7113 changed. This is needed in case GRUB_LIBDIR changes.
7114 * conf/i386-ieee1275.rmk: Likewise.
7115 * conf/i386-linuxbios.rmk: Likewise.
7116 * conf/i386-pc.rmk: Likewise.
7117 * conf/powerpc-ieee1275.rmk: Likewise.
7119 2008-06-18 Pavel Roskin <proski@gnu.org>
7121 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
7122 kernel_elf_symlist.c to symlist.c for consistency with other
7123 architectures. Update all users.
7124 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
7126 2008-06-18 Robert Millan <rmh@aybabtu.com>
7128 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
7131 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
7132 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
7133 a RAID device, run setup() for all members independently on whether
7134 LVM abstraction is being used.
7135 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
7136 If grub-mkimage has set `*install_dos_part == -2', don't override this
7138 Perform *install_dos_part adjustments independently on whether
7139 we're embedding or not.
7140 Clarify error message when image is too big for embedding.
7141 Remove duplicate *install_dos_part stanza.
7143 2008-06-17 Robert Millan <rmh@aybabtu.com>
7145 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
7146 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
7148 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
7149 values in grub_ofconsole_normal_color and
7150 grub_ofconsole_highlight_color (they're not directly related to
7151 background and foreground).
7152 (grub_ofconsole_setcolorstate): Extract background and foreground
7153 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
7155 2008-06-17 Robert Millan <rmh@aybabtu.com>
7157 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
7158 /boot/grub for the check in last commit, not /boot (they could be
7159 different partitions).
7161 2008-06-16 Robert Millan <rmh@aybabtu.com>
7163 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
7164 asked to setup access for the same partition that provides /boot,
7165 don't bother using UUIDs since our root already has the value we
7168 2008-06-16 Robert Millan <rmh@aybabtu.com>
7170 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
7172 Patch from Sven Mueller <sven@debian.org>.
7174 2008-06-16 Robert Millan <rmh@aybabtu.com>
7176 * util/update-grub.in: Check for $EUID instead of $UID.
7177 Reported by Vincent Zweije.
7179 2008-06-16 Bean <bean123ch@gmail.com>
7181 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
7182 (grub_ext2_read_block): Likewise.
7183 (grub_ext2_read_inode): Likewise.
7184 (grub_ext2_mount): Likewise.
7185 (grub_ext2_close): Likewise.
7186 (grub_ext3_get_journal): Removed.
7188 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
7189 (grub_reiserfs_read_symlink): Likewise.
7190 (grub_reiserfs_mount): Likewise.
7191 (grub_reiserfs_open): Likewise.
7192 (grub_reiserfs_read): Likewise.
7193 (grub_reiserfs_close): Likewise.
7194 (grub_reiserfs_get_journal): Removed.
7196 * fs/fshelp.c (grub_fshelp_read): Removed.
7197 (grub_fshelp_map_block): Likewise.
7199 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
7200 (grub_fshelp_journal): Likewise.
7201 (grub_fshelp_read): Likewise.
7202 (grub_fshelp_map_block): Likewise.
7204 2008-06-16 Pavel Roskin <proski@gnu.org>
7206 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
7207 floating point anymore.
7208 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
7210 2008-06-15 Pavel Roskin <proski@gnu.org>
7212 * commands/ls.c (grub_ls_list_files): Use integer calculations
7213 for human readable format, avoid floating point use.
7214 * kern/misc.c (grub_ftoa): Remove.
7215 (grub_vsprintf): Remove floating point support.
7217 2008-06-15 Robert Millan <rmh@aybabtu.com>
7219 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
7221 Reported by Max Vozeler.
7223 2008-06-15 Robert Millan <rmh@aybabtu.com>
7225 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
7226 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
7228 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
7229 the beginning of the prefix.
7231 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
7232 It is assumed that if we have a memdisk, grub-mkimage has set
7233 grub_prefix to include the "(memdisk)" drive in it.
7235 2008-06-15 Robert Millan <rmh@aybabtu.com>
7237 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
7238 Initialize keyboard controller after registering the terminal, so that
7239 grub_printf() can be called from grub_keyboard_controller_init().
7241 2008-06-15 Robert Millan <rmh@aybabtu.com>
7243 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
7244 extent-btree which is written as big endian on disk.
7245 Reported by Alain Greppin <al@chilibi.org>.
7247 2008-06-14 Robert Millan <rmh@aybabtu.com>
7249 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
7250 * util/i386/pc/grub-install.in (modules): Likewise.
7252 2008-06-13 Pavel Roskin <proski@gnu.org>
7254 * commands/ls.c (grub_ls_list_files): Fix format warnings.
7256 2008-06-13 Bean <bean123ch@gmail.com>
7258 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
7260 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
7262 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
7263 to indicate sparse block.
7265 2008-06-12 Pavel Roskin <proski@gnu.org>
7267 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
7268 number, grub_fshelp_read() does it for us.
7270 * fs/fshelp.c (grub_fshelp_read): New function. Implement
7271 linear disk read with journal translation.
7272 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
7273 * include/grub/fshelp.h: Declare grub_fshelp_read().
7275 2008-06-09 Pavel Roskin <proski@gnu.org>
7277 * fs/minix.c (grub_minix_mount): Handle error reading
7280 2008-06-08 Robert Millan <rmh@aybabtu.com>
7282 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
7283 don't append the RAID prefix afterwards.
7284 Reported by Clint Adams.
7286 2008-06-08 Robert Millan <rmh@aybabtu.com>
7288 Based on description from Pavel:
7289 * kern/disk.c (grub_disk_check_range): Rename to ...
7290 (grub_disk_adjust_range): ... this. Add a comment explaining the
7291 tasks performed by this function.
7293 2008-06-08 Robert Millan <rmh@aybabtu.com>
7295 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
7296 `num_serial' (for consistency with other variables).
7297 (struct grub_ntfs_data): Add `uuid' member.
7298 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
7299 (grub_ntfs_uuid): New function.
7300 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
7302 2008-06-07 Pavel Roskin <proski@gnu.org>
7304 * util/biosdisk.c (open_device): Revert last change to the
7305 function, it broke installation. The sector needs to be
7306 different dependent on which device is opened.
7308 2008-06-06 Robert Millan <rmh@aybabtu.com>
7310 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
7311 rest of GRUB, and breakage doesn't happen if its value were modified.
7313 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
7314 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
7315 a constant (same value).
7316 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
7317 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
7319 2008-06-06 Robert Millan <rmh@aybabtu.com>
7321 * util/biosdisk.c (open_device): Do not modify sector offset when
7322 accessing a partition. kern/disk.c already handles this for us.
7324 2008-06-06 Robert Millan <rmh@aybabtu.com>
7326 * util/grub-emu.c (grub_machine_init): Move code in this function from
7328 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
7329 segfault in case grub_printf() is called).
7331 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
7332 grub_probe. Update all users not to explicitly add it again.
7333 (grub_device): New variable; contains corresponding device for grubdir.
7334 (fs_module, partmap_module, devabstraction_module): Pass
7335 `--device ${grub_device}' to grub_probe to avoid traversing /dev
7338 2008-06-05 Robert Millan <rmh@aybabtu.com>
7340 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
7341 is found, print it (same layout as with labels).
7343 2008-06-04 Robert Millan <rmh@aybabtu.com>
7345 * util/biosdisk.c (get_drive): Rename to ...
7346 (find_grub_drive): ... this. Update all users.
7348 (get_os_disk): Rename to ...
7349 (convert_system_partition_to_system_disk): ... this. Update all users.
7351 (find_drive): Rename to ...
7352 (find_system_device): ... this. Update all users.
7354 2008-06-04 Robert Millan <rmh@aybabtu.com>
7356 * util/biosdisk.c (get_os_disk): Handle IDA devices.
7357 * util/grub-mkdevicemap.c (get_mmc_disk_name)
7358 (make_device_map): Likewise.
7360 2008-06-01 Robert Millan <rmh@aybabtu.com>
7362 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
7363 before dereferencing it.
7365 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
7366 union with fat12/fat16-specific ones. Add some new fields, including
7367 `num_serial' for both versions.
7368 (struct grub_fat_data): Add `uuid' member.
7369 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
7370 names. Initialize `data->uuid' using `num_serial'.
7371 (grub_fat_uuid): New function.
7372 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
7374 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
7375 (grub_reiserfs_uuid): New function.
7376 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
7379 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
7380 (grub_xfs_uuid): New function.
7381 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
7383 2008-06-01 Robert Millan <rmh@aybabtu.com>
7385 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
7386 code that is backward compatible with pre-uuid search command.
7388 2008-05-31 Robert Millan <rmh@aybabtu.com>
7390 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
7391 floppies after everything else, to ensure floppy drive isn't accessed
7392 unnecessarily (patch from Bean).
7394 2008-05-31 Robert Millan <rmh@aybabtu.com>
7396 * commands/search.c (search_label, search_fs_uuid, search_file): Do
7397 not print device names when we were asked to set a variable.
7399 2008-05-31 Robert Millan <rmh@aybabtu.com>
7401 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
7402 using "cursor-on" and "cursor-off" commands (understood at least by
7403 the Open Firmware flavour on OLPC).
7405 2008-05-31 Michael Gorven <michael@gorven.za.net>
7407 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
7408 on and off sequences.
7410 2008-05-31 Robert Millan <rmh@aybabtu.com>
7412 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
7413 * util/update-grub.in: Likewise.
7415 2008-05-30 Pavel Roskin <proski@gnu.org>
7417 * util/biosdisk.c (linux_find_partition): Simplify logic and
7418 make the code more universal. Keep special processing for
7419 devfs, but use a simple rule for all other devices. If the
7420 device ends with a number, append 'p' and the partition number.
7421 Otherwise, append only the partition number.
7423 2008-05-30 Robert Millan <rmh@aybabtu.com>
7425 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
7426 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
7427 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
7428 the `root' parameter to Linux.
7430 2008-05-30 Robert Millan <rmh@aybabtu.com>
7432 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
7433 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
7434 --fs_uuid with --fs-uuid.
7435 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
7436 all filesystems support them).
7438 2008-05-30 Robert Millan <rmh@aybabtu.com>
7440 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
7441 grub_printf() flags, since we're printing in units of 2 bytes.
7443 2008-05-30 Robert Millan <rmh@aybabtu.com>
7445 * util/grub.d/00_header.in: Remove obsolete comment referencing
7446 convert_system_path_to_grub_path().
7447 * util/update-grub.in: Likewise.
7448 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
7449 (convert_system_path_to_grub_path): Add a warning message explaining
7450 that this function is deprecated. Rely on is_path_readable_by_grub()
7451 for the readability checks.
7452 (font_path): Use is_path_readable_by_grub() for the readability
7453 check rather than convert_system_path_to_grub_path().
7455 2008-05-30 Robert Millan <rmh@aybabtu.com>
7457 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
7458 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
7459 converting it first.
7460 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
7461 grub.cfg for access to font file, and afterwards call it again to set
7464 2008-05-30 Robert Millan <rmh@aybabtu.com>
7466 * commands/search.c (options): Add --fs_uuid option.
7467 (search_fs_uuid): New function.
7468 (grub_cmd_search): Fix --set argument passing.
7469 Use search_fs_uuid() when requested via --fs_uuid.
7470 (grub_search_init): Update help message.
7471 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
7472 and redeclare it as an array of 16-bit words.
7473 (grub_ext2_uuid): New function.
7474 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
7475 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
7476 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
7477 (GRUB_DEVICE_BOOT_UUID): New variables.
7478 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
7479 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
7481 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
7482 just assume `root' variable has the right value.
7483 * util/grub.d/10_linux.in: Likewise.
7484 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
7486 (main): Recognise `-t fs_uuid' argument.
7488 2008-05-30 Robert Millan <rmh@aybabtu.com>
7490 * util/biosdisk.c (map): Redefine structure to hold information
7491 about GRUB drive name.
7492 (get_drive): Reimplement without assuming (and verifying) BIOS-like
7494 (call_hook): Remove.
7495 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
7496 member. Assume drive has partitions.
7497 (grub_util_biosdisk_open): Access device names via `.device' struct
7499 (open_device): Likewise.
7500 (find_drive): Likewise.
7501 (read_device_map): Adjust map[] usage to match the new struct
7502 definition. Don't check for duplicates (still possible, but not cheap
7504 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
7505 (make_device_name): Remove assumption of BIOS-like drive names.
7507 2008-05-30 Pavel Roskin <proski@gnu.org>
7509 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
7510 compiling execute.c doesn't need grub_script.tab.h anymore.
7511 (normal/command.c_DEPENDENCIES): Likewise.
7512 (normal/function.c_DEPENDENCIES): Likewise.
7513 * conf/i386-ieee1275.rmk: Likewise.
7514 * conf/i386-linuxbios.rmk: Likewise.
7515 * conf/i386-pc.rmk: Likewise.
7516 * conf/powerpc-ieee1275.rmk: Likewise.
7517 * conf/sparc64-ieee1275.rmk: Likewise.
7519 2008-05-29 Pavel Roskin <proski@gnu.org>
7521 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
7522 when scanning metadata for volume group name.
7524 * include/grub/script.h: Don't include grub_script.tab.h. It's
7525 a generated file, which may only be included from the files with
7526 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
7527 use union YYSTYPE, as the later allows forward declaration.
7528 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
7530 2008-05-29 Robert Millan <rmh@aybabtu.com>
7532 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
7533 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
7534 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
7535 (grub_console_checkkey): Add grub_dprintf() call to report unknown
7538 2008-05-29 Robert Millan <rmh@aybabtu.com>
7540 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
7541 control key combinations.
7543 2008-05-29 Robert Millan <rmh@aybabtu.com>
7545 * util/powerpc/ieee1275/grub-install.in: Move from here ...
7546 * util/ieee1275/grub-install.in: ... to here.
7547 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
7548 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
7549 (grub_install_SOURCES): Likewise.
7551 2008-05-29 Robert Millan <rmh@aybabtu.com>
7553 * fs/affs.c: Update copyright year.
7554 * fs/ext2.c: Likewise.
7555 * fs/fshelp.c: Likewise.
7556 * fs/hfsplus.c: Likewise.
7557 * fs/ntfs.c: Likewise.
7558 * fs/xfs.c: Likewise.
7559 * include/grub/fshelp.h: Likewise.
7560 * util/grub-mkdevicemap.c: Likewise.
7562 2008-05-28 Robert Millan <rmh@aybabtu.com>
7564 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
7565 might need to be fatfs to support some firmware implementations
7568 2008-05-28 Robert Millan <rmh@aybabtu.com>
7570 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
7572 * util/grub-mkdevicemap.c (get_mmc_disk_name)
7573 (make_device_map): Likewise.
7575 2008-05-20 Bean <bean123ch@gmail.com>
7577 * fs/fshelp.c (grub_fshelp_map_block): New function.
7578 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
7579 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
7581 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
7582 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
7583 (grub_fshelp_journal): New structure.
7584 (grub_fshelp_map_block): New function prototype.
7585 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
7586 (grub_fshelp_map_block): Likewise.
7588 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
7589 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
7590 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
7591 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
7592 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
7593 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
7594 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
7595 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
7596 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
7597 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
7598 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
7599 (grub_ext2_sblock): New members for journal support.
7600 (grub_ext3_journal_header): New structure.
7601 (grub_ext3_journal_revoke_header): Likewise.
7602 (grub_ext3_journal_block_tag): Likewise.
7603 (grub_ext3_journal_sblock): Likewise.
7604 (grub_fshelp_node): New members logfile and journal.
7605 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
7606 grub_fshelp_map_block to get real block number.
7607 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
7609 (grub_ext2_read_inode): Likewise.
7610 (grub_ext3_get_journal): New function.
7611 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
7612 (grub_ext2_close): Release memory used by journal.
7614 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
7615 (REISERFS_MAGIC_DESC_BLOCK): New macro.
7616 (grub_reiserfs_transaction_header): Renamed to
7617 grub_reiserfs_description_block, replace field data with real_blocks.
7618 (grub_reiserfs_commit_block): New structure.
7619 (grub_reiserfs_data): New member journal.
7620 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
7622 (grub_reiserfs_read_symlink): Likewise.
7623 (grub_reiserfs_iterate_dir): Likewise.
7624 (grub_reiserfs_open): Likewise.
7625 (grub_reiserfs_read): Likewise.
7626 (grub_reiserfs_get_journal): New function.
7627 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
7628 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
7629 using grub_reiserfs_get_journal.
7630 (grub_reiserfs_close): Release memory used by journal.
7632 * fs/affs.c (grub_affs_read_block): Change block type to
7633 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
7635 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
7637 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
7639 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
7641 * fs/udf.c (grub_udf_read_block): Change block type to
7642 grub_disk_addr_t. Use type cast to avoid warning.
7644 * fs/xfs.c (grub_xfs_read_block): Likewise.
7646 2008-05-16 Christian Franke <franke@computer.org>
7648 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
7649 to ensure that break with ESC will always work.
7650 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
7651 Remove ESC from keyboard queue.
7653 2008-05-16 Christian Franke <franke@computer.org>
7655 * util/biosdisk.c: [__CYGWIN__] Add includes.
7656 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
7657 (get_os_disk): Move variable declarations to OS specific
7658 parts to avoid warning.
7659 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
7660 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
7661 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
7663 * util/getroot.c: [__CYGWIN__] Add includes.
7664 (strip_extra_slashes): Fix "/" case.
7665 [__CYGWIN__] (get_win32_path): New function.
7666 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
7667 [__CYGWIN__] (find_root_device): Disable.
7668 [__CYGWIN__] (get_bootsec_serial): New function.
7669 [__CYGWIN__] (find_cygwin_root_device): Likewise.
7670 [__linux__] (grub_guess_root_device): Add early returns to simplify
7672 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
7673 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
7674 check for Linux only.
7676 2008-05-15 Bean <bean123ch@gmail.com>
7678 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
7679 keyboard hang problem in apple's intel mac.
7681 2008-05-09 Robert Millan <rmh@aybabtu.com>
7683 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
7685 * util/grub-mkdevicemap.c (get_virtio_disk_name)
7686 (make_device_map): Likewise.
7687 Reported by Aurelien Jarno <aurel32@debian.org>
7689 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
7691 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
7692 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
7693 (make_device_map): Output entries for xvd type disks.
7695 2008-05-07 Robert Millan <rmh@aybabtu.com>
7697 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
7699 * util/grub-mkdevicemap.c (get_cciss_disk_name)
7700 (make_device_map): Likewise.
7701 Reported by Roland Dreier <rdreier@cisco.com>
7703 2008-05-07 Robert Millan <rmh@aybabtu.com>
7705 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
7706 grub_strstr() call. Correct a few mistakes in failure path handling.
7708 2008-05-06 Robert Millan <rmh@aybabtu.com>
7710 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
7711 Do not print a trailing slash (therefore, the root directory is an
7713 (convert_system_path_to_grub_path): Do not remove trailing slash
7714 from make_system_path_relative_to_its_root() output.
7716 * util/i386/pc/grub-install.in: Add trailing slash to output from
7717 make_system_path_relative_to_its_root().
7719 2008-05-06 Robert Millan <rmh@aybabtu.com>
7721 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
7722 ensures that output lines aren't intermangled with those sent to
7723 stderr (via grub_util_info()).
7724 * util/grub-probe.c (grub_refresh): Likewise.
7725 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
7727 2008-05-05 Christian Franke <franke@computer.org>
7729 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
7730 Add Cygwin device names.
7731 (get_ide_disk_name) [__CYGWIN__]: Likewise.
7732 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
7733 (check_device): Return error instead of success on empty name.
7734 (make_device_map): Move label inside linux specific code to
7735 prevent compiler warning.
7737 2008-04-30 Robert Millan <rmh@aybabtu.com>
7739 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
7740 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
7742 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
7744 2008-04-29 Robert Millan <rmh@aybabtu.com>
7746 * docs/grub.cfg: New file (example GRUB configuration).
7748 2008-04-26 Robert Millan <rmh@aybabtu.com>
7750 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
7751 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
7752 and `disk/ieee1275/nand.c'.
7754 2008-04-25 Bean <bean123ch@gmail.com>
7756 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
7759 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
7760 change the buffer size to 4096 for cdrom device.
7762 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
7764 (_linux_mod_SOURCES): New variable.
7765 (_linux_mod_CFLAGS): Likewise.
7766 (_linux_mod_LDFLAGS): Likewise.
7767 (linux_mod_SOURCES): Likewise.
7768 (linux_mod_CFLAGS): Likewise.
7769 (linux_mod_LDFLAGS): Likewise.
7770 (nand_mod_SOURCES): Likewise.
7771 (nand_mod_CFLAGS): Likewise.
7772 (nand_mod_LDFLAGS): Likewise.
7774 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
7775 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
7776 type property. (nand device in olpc don't have this property)
7778 * include/grub/disk.h (grub_disk_dev_id): New macro
7779 GRUB_DISK_DEVICE_NAND_ID.
7781 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
7783 (grub_rescue_cmd_initrd): Likewise.
7785 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
7786 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
7787 ofw_cif_handler and ofw_idt, adjust padding number.
7789 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
7790 GRUB_MACHINE_IEEE1275 is defined.
7792 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
7793 Use NESTED_FUNC_ATTR attribute on the hook parameter.
7795 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
7796 on nested function heap_init.
7797 (grub_upper_mem): New variable for i386-ieee1275.
7798 (grub_get_extended_memory): New function for i386-ieee1275.
7799 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
7801 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
7802 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
7805 * loader/i386/ieee1275/linux.c: New file.
7807 * loader/i386/ieee1275/linux_normal.c: New file.
7809 * disk/ieee1275/nand.c: New file.
7811 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
7813 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
7815 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
7817 2008-04-18 Robert Millan <rmh@aybabtu.com>
7819 Restructures early code path on ieee1275 to unify grub_main() as
7820 the first C function that is executed in every platform.
7822 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
7823 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
7825 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
7826 * kern/ieee1275/cmain.c (cmain): Rename to ...
7827 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
7828 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
7831 2008-04-18 Robert Millan <rmh@aybabtu.com>
7833 * util/update-grub.in: Fix syntax error when setting
7834 `GRUB_PRELOAD_MODULES'.
7835 Reported by Stephane Chazelas <stephane@artesyncp.com>
7837 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
7839 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
7840 section into account, newer toolchains generate unique build ids
7841 * configure.ac: remove the test for --build-id=none acceptance,
7842 we want build ids to be preserved
7843 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
7844 far from other sections don't cause the raw binary images grow
7847 2008-04-15 Robert Millan <rmh@aybabtu.com>
7849 * disk/lvm.c: Update copyright year.
7850 * kern/misc.c: Likewise.
7852 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
7854 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
7855 there is no memory left for physical volume name.
7857 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
7859 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
7860 volume name mapping to support bigger than 9 character names properly.
7862 2008-04-13 Robert Millan <rmh@aybabtu.com>
7864 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
7865 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
7867 2008-04-13 Christian Franke <franke@computer.org>
7869 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
7870 to create a floppy emulation boot CD when non emulation mode
7872 Enable Joliet CD filesystem extension.
7874 2008-04-13 Robert Millan <rmh@aybabtu.com>
7876 * kern/misc.c (grub_strncat): Fix off-by-one error.
7877 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
7879 * kern/env.c (grub_env_context_close): Clear current context, not
7881 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
7883 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
7885 2008-04-13 Robert Millan <rmh@aybabtu.com>
7887 Improve robustness when handling LVM.
7889 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
7890 (and leave `*p' unmodified).
7891 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
7893 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
7894 iterating through it.
7895 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
7897 (grub_lvm_scan_device): Check the return value (and fail gracefully
7898 when due) on each grub_lvm_getvalue() or grub_strstr() call.
7899 Don't assume `vg->pvs != NULL' when iterating through it.
7901 2008-04-13 Robert Millan <rmh@aybabtu.com>
7903 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
7904 * genmk.rb (partmap): New variable.
7905 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
7906 (#{partmap}): New target rule.
7907 * genpartmaplist.sh: New file.
7908 * Makefile.in (pkglib_DATA): Add partmap.lst.
7909 (partmap.lst): New target rule.
7910 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
7911 modules (including all partition maps), instead of preloading them.
7913 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
7915 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
7916 `linux-boot-prober' (if installed) to detect other operating
7917 systems which are installed on the computer and add them to
7919 * conf/common.rmk: Build and install 30_os-prober.
7921 2008-04-12 Robert Millan <rmh@aybabtu.com>
7923 * kern/powerpc/ieee1275/init.c: Move from here ...
7924 * kern/ieee1275/init.c: ... to here. Update all users.
7926 * kern/powerpc/ieee1275/cmain.c: Move from here ...
7927 * kern/ieee1275/cmain.c: ... to here. Update all users.
7929 * kern/powerpc/ieee1275/openfw.c: Move from here ...
7930 * kern/ieee1275/openfw.c: ... to here. Update all users.
7932 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
7933 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
7935 2008-04-10 Pavel Roskin <proski@gnu.org>
7937 * configure.ac: Always use "_cv_" in cache variables for
7938 compatibility with Autoconf 2.62.
7940 2008-04-07 Robert Millan <rmh@aybabtu.com>
7942 Revert grub/machine/init.h addition by Pavel (since it breaks on
7943 i386-ieee1275 and others):
7944 * util/i386/pc/misc.c: Remove grub/machine/init.h.
7945 * util/powerpc/ieee1275/misc.c: Likewise.
7947 2008-04-07 Robert Millan <rmh@aybabtu.com>
7949 * util/grub-probe.c (probe): Improve error message.
7951 2008-04-07 Robert Millan <rmh@aybabtu.com>
7953 * util/biosdisk.c (read_device_map): Skip devices that don't exist
7954 (this prevents the presence of a bogus entry from ruining the whole
7957 2008-04-06 Pavel Roskin <proski@gnu.org>
7959 * util/biosdisk.c: Include grub/util/biosdisk.h.
7960 * util/grub-fstest.c (execute_command): Make static.
7961 * util/grub-mkdevicemap.c (check_device): Likewise.
7962 * util/i386/pc/misc.c: Include grub/machine/init.h.
7963 * util/powerpc/ieee1275/misc.c: Likewise.
7964 * util/lvm.c: Include grub/util/lvm.h.
7965 * util/misc.c: Include grub/kernel.h, grub/misc.h and
7967 * util/raid.c: Include grub/util/raid.h.
7968 (grub_util_getdiskname): Make static.
7970 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
7971 grub_hostfs_fini(), as they are called from grub_init_all() and
7972 grub_fini_all() respectively. This fixes an infinite loop in
7973 grub-fstest due to double registration of hostfs.
7974 Reported by Christian Franke <Christian.Franke@t-online.de>
7976 2008-04-05 Pavel Roskin <proski@gnu.org>
7978 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
7979 all 8 functions. Otherwise, probe function 0 only.
7981 2008-04-04 Pavel Roskin <proski@gnu.org>
7983 * commands/lspci.c (grub_lspci_iter): Print the bus number
7986 * commands/lspci.c (grub_pci_classes): Fix typos.
7987 (grub_lspci_iter): Don't print func twice. Print vendor ID
7988 before device ID, as it's normally done.
7990 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
7991 Fix signedness warnings.
7992 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
7994 * util/ieee1275/get_disk_name.c: Include config.h so that
7995 _GNU_SOURCE is defined and getline() is declared. Mark an
7996 unused argument as such. Fix a signedness warning.
7998 2008-04-02 Pavel Roskin <proski@gnu.org>
8000 * genkernsyms.sh.in: Use more robust assignments for CC and
8001 srcdir. Quote srcdir.
8002 * gensymlist.sh.in: Likewise. Assert at the compile time that
8003 the symbol table is not empty.
8005 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
8006 * fs/cpio.c (grub_cpio_read): Likewise.
8008 2008-04-01 Pavel Roskin <proski@gnu.org>
8010 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
8011 * disk/host.c (grub_host_open): Likewise.
8012 * disk/loopback.c (grub_loopback_open): Likewise.
8013 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
8014 disk->id as in disk/host.c, not a multi-character constant.
8016 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
8017 later is obsolete, potentially dangerous and sets a bad example.
8018 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
8019 * util/misc.c (grub_util_get_image_size): Likewise.
8021 * disk/loopback.c (options): Improve help for "--partitions".
8023 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
8024 options to align them with the short options, e.g. "echo -e".
8026 2008-03-31 Bean <bean123ch@gmail.com>
8028 * video/reader/png.c (grub_png_data): New member is_16bit and
8030 (grub_png_decode_image_header): Detect 16 bit png image.
8031 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
8032 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
8033 (grub_video_reader_png): Release memory occupied by image_data.
8035 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
8037 (grub_nfs_mount): Skip the test for sector per cluster.
8039 * include/grub/ntfs.h (MAX_SPC): Removed.
8041 2008-03-31 Bean <bean123ch@gmail.com>
8043 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
8044 (grub_probe_SOURCES): Add fs/afs.c.
8045 (grub_fstest_SOURCES): Likewise.
8046 (afs_mod_SOURCES): New variable.
8047 (afs_mod_CFLAGS): Likewise.
8048 (afs_mod_LDFLAGS): Likewise.
8050 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
8051 (grub_emu_SOURCES): Likewise.
8053 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8055 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8057 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
8059 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8061 * fs/afs.c: New file.
8063 2008-03-30 Pavel Roskin <proski@gnu.org>
8065 * disk/host.c: Include grub/misc.h to fix a warning.
8066 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
8067 warnings about implicit declarations.
8069 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
8071 * include/grub/i386/loader.h: Change declaration of
8072 grub_linux_boot() to match what grub_loader_set() expects.
8073 * util/getroot.c (grub_guess_root_device): Return const char* to
8075 * util/grub-probe.c (probe): Fix a warning about uninitialized
8076 abstraction_name variable.
8077 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
8078 second argument as unused to fix a warning.
8080 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
8081 missing grub_error() call.
8083 * util/update-grub_lib.in: Define datarootdir, since Autoconf
8084 2.60 and newer uses it to define datadir.
8086 * commands/sleep.c: Fix warning about implicit declaration.
8087 * disk/memdisk.c: Likewise.
8088 * loader/aout.c: Likewise.
8089 * loader/i386/bsd_normal.c: Likewise.
8090 * util/grub-probe.c: Likewise.
8092 * commands/i386/cpuid.c (has_longmode): Make static.
8093 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
8094 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
8096 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
8097 GDT. This is more robust, as %ds can change.
8098 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
8099 calling real_to_prot().
8100 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
8102 2008-03-28 Pavel Roskin <proski@gnu.org>
8104 * kern/i386/pc/startup.S: Assert that uncompressed functions
8105 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
8106 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
8107 code, as they push parts of the code (error handlers) beyond
8108 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
8109 code as correctness and size.
8111 2008-03-28 Pavel Roskin <proski@gnu.org>
8113 * kern/i386/pc/startup.S
8114 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
8115 data block address to the real mode, keep offset minimal. This
8116 works around a bug in AWARD BIOS on old Athlon systems, which
8117 makes CD detection hang.
8119 2008-03-26 Pavel Roskin <proski@gnu.org>
8121 * normal/color.c (grub_parse_color_name_pair): Make `name' a
8123 * include/grub/normal.h: Add grub_parse_color_name_pair()
8126 2008-03-24 Bean <bean123ch@gmail.com>
8128 * disk/i386/pc/biosdisk.c (cd_start): Removed.
8129 (cd_count): Removed.
8130 (cd_drive): New variable.
8131 (grub_biosdisk_get_drive): Don't check for (cdN) device.
8132 (grub_biosdisk_call_hook): Likewise.
8133 (grub_biosdisk_iterate): Change cdrom detection method.
8134 (grub_biosdisk_open): Replace cd_start with cd_drive.
8135 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
8136 detect cdrom device.
8138 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
8140 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
8141 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
8142 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
8143 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
8144 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
8145 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
8146 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
8147 (grub_biosdisk_cdrp): New structure.
8148 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
8150 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
8152 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
8155 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
8158 2008-03-20 Robert Millan <rmh@aybabtu.com>
8160 Remove 2 TiB limit in ata.mod.
8161 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
8162 (grub_ata_dumpinfo): Print sector count with 0x%llx.
8163 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
8164 grub_uint64_t instead of grub_uint32_t.
8166 2008-03-05 Bean <bean123ch@gmail.com>
8168 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
8169 (grub_multiboot): Set boot device.
8171 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
8173 2008-03-02 Bean <bean123ch@gmail.com>
8175 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
8178 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
8180 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
8183 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
8186 * docs/fdl.texi: New file.
8188 * docs/mdate-sh: New file. Copied from gnulib.
8189 * docs/texinfo.tex: Likewise.
8191 * config.guess: Updated from gnulib.
8192 * install-sh: Likewise.
8194 2008-02-28 Robert Millan <rmh@aybabtu.com>
8196 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
8197 (aout_mod_SOURCES): New variable.
8198 (aout_mod_CFLAGS): Likewise.
8199 (aout_mod_LDFLAGS): Likewise.
8201 * conf/i386-ieee1275.rmk: Likewise.
8203 2008-02-28 Robert Millan <rmh@aybabtu.com>
8205 * util/update-grub.in: Reorganise terminal validity check. Accept
8206 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
8207 Based on suggestion by Franklin PIAT.
8209 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
8211 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
8213 * util/getroot.c (grub_util_check_block_device): New function that
8214 returns the given argument if it is a block device and returns NULL else.
8215 * util/grub-probe.c (argument_is_device): New variable.
8216 (probe): Promote device_name from a variable to an argument. Receive
8217 device_name from grub_util_check_block_device() if path is NULL and from
8218 grub_guess_root_device() else. Do not free() device_name anymore.
8219 (options): Introduce new parameter '-d, --device'.
8220 (main): Add description of the new parameter to the help screen.
8221 Rename path variable to argument. Set argument_is_device if the '-d'
8222 option is given. Pass argument to probe() depending on
8225 2008-02-24 Bean <bean123ch@gmail.com>
8227 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
8228 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
8229 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
8230 (GRUB_ISO9660_VOLDESC_PART): Likewise.
8231 (GRUB_ISO9660_VOLDESC_END): Likewise.
8232 (grub_iso9660_primary_voldesc): New member escape.
8233 (grub_iso9660_data): New member joliet.
8234 (grub_iso9660_convert_string): New function.
8235 (grub_iso9660_mount): Detect joliet extension.
8236 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
8237 (grub_iso9660_iso9660_label): Likewise.
8239 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
8240 (grub_setup_SOURCES): Add fs/udf.c.
8241 (grub_fstest_SOURCES): Likewise.
8242 (udf_mod_SOURCES): New variable.
8243 (udf_mod_CFLAGS): Likewise.
8244 (udf_mod_LDFLAGS): Likewise.
8246 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
8247 (grub_emu_SOURCES): Likewise.
8249 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8251 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8253 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
8255 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8257 * fs/udf.c: New file.
8259 2008-02-24 Robert Millan <rmh@aybabtu.com>
8261 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
8262 (normal/lexer.c_DEPENDENCIES): New variables.
8263 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
8264 (normal/lexer.c_DEPENDENCIES): Likewise.
8265 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
8266 (normal/lexer.c_DEPENDENCIES): Likewise.
8267 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
8268 (normal/lexer.c_DEPENDENCIES): Likewise.
8269 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
8270 (normal/lexer.c_DEPENDENCIES): Likewise.
8271 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
8272 (normal/lexer.c_DEPENDENCIES): Likewise.
8274 2008-02-23 Robert Millan <rmh@aybabtu.com>
8276 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
8277 since they were intended to be in hex. This didn't break previously
8278 because of a bug in gpt_partition_map_iterate() (see below).
8280 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
8281 when checking the validity of GPT header.
8282 Remove `partno', since it always provides the same information as `i'.
8284 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
8286 * include/grub/efi/time.h: Fix a wrong comment.
8288 2008-02-19 Pavel Roskin <proski@gnu.org>
8290 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
8293 2008-02-19 Bean <bean123ch@gmail.com>
8295 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
8296 (aout_mod_SOURCES): New variable.
8297 (aout_mod_CFLAGS): Likewise.
8298 (aout_mod_LDFLAGS): Likewise.
8299 (_bsd_mod_SOURCES): New variable.
8300 (_bsd_mod_CFLAGS): Likewise.
8301 (_bsd_mod_LDFLAGS): Likewise.
8302 (bsd_mod_SOURCES): New variable.
8303 (bsd_mod_CFLAGS): Likewise.
8304 (bsd_mod_LDFLAGS): Likewise.
8306 * include/grub/aout.h: New file.
8308 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
8310 * include/grub/i386/bsd.h: New file.
8312 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
8315 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
8316 function is called, so that it's possible to change it inside the hook.
8317 (grub_elf64_load): Likewise.
8318 (grub_elf_file): Don't close the file if elf header is not found.
8319 (grub_elf_close): Close the file if grub_elf_file fails (The new
8320 grub_elf_file won't close it).
8321 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
8322 (grub_elf64_size): Likewise.
8324 * kern/i386/loader.S (grub_unix_real_boot): New function.
8326 * loader/aout.c: New file.
8328 * loader/i386/bsd.c: New file.
8330 * loader/i386/bsd_normal.c: New file.
8332 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
8334 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
8335 can test other formats.
8337 2008-02-19 Robert Millan <rmh@aybabtu.com>
8339 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
8340 (grub_gpt_partition_type_empty): Redefine with macro from
8341 `<grub/gpt_partition.h>'.
8342 (gpt_partition_map_iterate): Adjust partition type comparison.
8344 Export `entry' as partmap-specific `part.data' struct.
8345 (grub_gpt_header, grub_gpt_partentry): Move from here ...
8347 * include/grub/gpt_partition.h (grub_gpt_header)
8348 (grub_gpt_partentry): ... to here (new file).
8350 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
8352 (grub_gpt_partition_type_bios_boot): New const variable, defined
8353 with macro from `<grub/gpt_partition.h>'.
8355 (setup): Replace `first_start' with `embed_region', which keeps
8356 track of the embed region (and is partmap-agnostic).
8358 Replace find_first_partition_start() with find_usable_region(),
8359 which finds a usable region for embedding using partmap-specific
8360 knowledge (supports PC/MSDOS and GPT).
8362 Fix all assumptions that the embed region start at sector 1, using
8363 `embed_region.start' from now on. Similarly, use `embed_region.end'
8364 rather than `first_start' to calculate available size.
8366 In grub_util_info() message, replace "into after the MBR" with an
8367 indication of the specific sector our embed region starts at.
8369 2008-02-19 Robert Millan <rmh@aybabtu.com>
8371 * DISTLIST: Replace `commands/ieee1275/halt.c' and
8372 `commands/ieee1275/reboot.c' with `commands/halt.c' and
8373 `commands/reboot.c'.
8374 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
8375 (halt_mod_SOURCES): Likewise.
8376 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
8377 (halt_mod_SOURCES): Likewise.
8379 2008-02-17 Christian Franke <franke@computer.org>
8381 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
8383 2008-02-17 Robert Millan <rmh@aybabtu.com>
8385 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
8386 set `first_start' to 0 for non-PC/MSDOS partition maps.
8388 2008-02-16 Robert Millan <rmh@aybabtu.com>
8390 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
8391 do not assume partition map is PC/MSDOS before performing checks that
8392 are specific to that layout.
8394 2008-02-13 Robert Millan <rmh@aybabtu.com>
8396 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
8397 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
8398 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
8400 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
8402 * configure.ac: Only a cosmetic change on the handling of
8403 -fno-stack-protector.
8405 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
8407 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
8408 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
8410 (grub_install_SOURCES): Add halt.mod and reboot.mod.
8411 (halt_mod_SOURCES): New variable.
8412 (halt_mod_CFLAGS): Likewise.
8413 (halt_mod_LDFLAGS): Likewise.
8414 (reboot_mod_SOURCES): Likewise.
8415 (reboot_mod_CFLAGS): Likewise.
8416 (reboot_mod_LDFLAGS): Likewise.
8418 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
8419 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
8421 (halt_mod_SOURCES): Likewise.
8422 (reboot_mod_SOURCES): Likewise.
8424 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
8425 commands/i386/pc/reboot.c by commands/reboot.c.
8426 (reboot_mod_SOURCES): Likewise.
8428 * commands/i386/pc/reboot.c: merge this file ...
8430 * commands/ieee1275/reboot.c: ... and this file ...
8432 * commands/reboot.c: ... to this file.
8433 Add some precompiler directive to include the correct header for
8436 * commands/ieee1275/halt.c: move this file ...
8438 * commands/halt.c: ... to here.
8439 Add some precompiler directive to include the correct header for
8442 * include/grub/efi/efi.h (grub_reboot): New function declaration.
8443 (grub_halt): Likewise.
8445 * kern/efi/efi.c (grub_reboot): New function.
8446 (grub_halt): Likewise.
8448 2008-02-12 Robert Millan <rmh@aybabtu.com>
8450 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
8451 /dev (like it is done for /dev/mapper). This doesn't provide support
8452 for EVMS, but at least it is now easy to identify the problem when it
8455 2008-02-11 Robert Millan <rmh@aybabtu.com>
8457 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
8458 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
8459 comparing it with -1, not 0.
8461 2008-02-10 Robert Millan <rmh@aybabtu.com>
8463 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
8465 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8466 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8468 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
8469 `disk/lvm.c' to the end of the list.
8470 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
8471 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8473 2008-02-10 Robert Millan <rmh@aybabtu.com>
8475 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
8476 grub_print_error() instead. This will let user know why we're entering
8478 Based on suggestions from Sam Morris.
8480 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
8482 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
8483 on remaining N args, instead of "--" arg N times.
8485 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
8487 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
8488 (fill_with_default_glyph): Changed to use unknown_glyph for fill
8489 pattern for unknown glyphs.
8491 2008-02-09 Robert Millan <rmh@aybabtu.com>
8493 * configure.ac: Probe for `help2man'.
8494 * Makefile.in (builddir): New variable.
8495 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
8496 or otherwise add a few flags/options to it.
8497 (install-local): For every executable utility or script that is
8498 installed, invoke $(HELP2MAN) to install a manpage based on --help
8501 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
8502 that it doesn't prevent --help from working in build tree.
8504 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
8505 with `bug-grub@gnu.org'.
8506 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
8507 * util/update-grub.in (usage): New function.
8508 Implement proper argument check, with support for --help and --version
8509 (as well as existing -y).
8511 2008-02-09 Christian Franke <franke@computer.org>
8513 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
8514 avoid overwriting previous output.
8515 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
8517 2008-02-09 Robert Millan <rmh@aybabtu.com>
8519 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
8522 2008-02-09 Robert Millan <rmh@aybabtu.com>
8524 * commands/sleep.c: New file.
8525 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
8526 (sleep_mod_SOURCES): New variable.
8527 (sleep_mod_CFLAGS): Likewise.
8528 (sleep_mod_LDFLAGS): Likewise.
8530 2008-02-09 Robert Millan <rmh@aybabtu.com>
8532 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
8533 situations in which we can deduce the RAID size and the superblock
8536 2008-02-09 Robert Millan <rmh@aybabtu.com>
8538 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
8539 and return a grub_diskmemberlist_t composed of LVM physical volumes.
8540 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
8542 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
8543 and return a grub_diskmemberlist_t composed of physical array members.
8544 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
8546 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
8548 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
8549 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
8550 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
8552 * util/grub-probe.c (probe): Move partmap probing code from here ...
8553 (probe_partmap): ... to here.
8554 (probe): Use probe_partmap() once for the disk we're probing, and
8555 additionally, when such disk contains a memberlist() struct member,
8556 once for each disk that is contained in the structure returned by
8559 2008-02-09 Robert Millan <rmh@aybabtu.com>
8561 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
8562 environment variable to 'all' in order to obtain debug output from
8564 * util/i386/pc/grub-setup.c (main): Likewise.
8566 2008-02-08 Robert Millan <rmh@aybabtu.com>
8568 * disk/raid.c (grub_raid_scan_device): Check for
8569 `array->device[sb.this_disk.number]' rather than for
8570 `array->device[sb.this_disk.number]->name', since the latter is not
8571 guaranteed to be accessible.
8573 2008-02-08 Robert Millan <rmh@aybabtu.com>
8575 * disk/raid.c: Update copyright.
8576 * fs/cpio.c: Likewise.
8577 * include/grub/raid.h: Likewise.
8578 * loader/i386/pc/multiboot.c: Likewise.
8579 * util/hostfs.c: Likewise.
8581 2008-02-08 Robert Millan <rmh@aybabtu.com>
8583 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
8584 to a grub_disk_t array.
8585 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
8587 (grub_raid_scan_device): Replace `device[x].name' accesses with
8588 `device[x]->name'. Simplify initialization of `array->device[x]'.
8590 2008-02-08 Robert Millan <rmh@aybabtu.com>
8592 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
8593 grub_dprintf() calls.
8594 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
8597 2008-02-07 Christian Franke <franke@computer.org>
8599 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
8600 instead of fseek and ftell to support large files.
8601 (grub_hostfs_read): Likewise.
8603 2008-02-07 Robert Millan <rmh@aybabtu.com>
8605 Patch from Jeroen Dekkers.
8606 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
8607 failure, since successfully reading all array members might not be
8610 2008-02-06 Robert Millan <rmh@aybabtu.com>
8612 * util/grub-probe.c (probe): Simplify partmap probing (with the
8613 assumption that the first word up to the underscore equals to
8616 2008-02-06 Christian Franke <franke@computer.org>
8618 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
8619 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
8620 last block of a cpio or tar stream.
8621 Check for "TRAILER!!!" instead of any empty data
8622 block to detect last block of a cpio stream.
8623 (grub_cpio_dir): Fix constness of variable np.
8624 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
8625 cpio or tar trailer is detected. This fixes a crash
8626 on open of a non existing file.
8628 2008-02-05 Bean <bean123ch@gmail.com>
8630 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
8632 (grub_multiboot_load_elf64): Likewise.
8633 (grub_multiboot): Initialize mbi structure.
8635 * util/grub-fstest.c: Don't include unused header file script.h.
8637 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
8639 (grub_fstest_SOURCES): Likewise.
8641 2008-02-05 Robert Millan <rmh@aybabtu.com>
8643 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
8644 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
8645 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
8646 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
8648 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
8649 (translation_table): Replace hardcoded values with macros
8650 provided by `<grub/term.h>'.
8652 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
8653 (keyboard_map): Correct/add a few values, with macros provided
8655 (keyboard_map_shift): Zero values that don't differ from their
8656 `keyboard_map' equivalents.
8657 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
8658 Discard the second scan code that is always sent by Caps lock.
8659 Only use `keyboard_map_shift' when it provides a non-zero value,
8660 otherwise fallback to `keyboard_map'.
8662 2008-02-04 Bean <bean123ch@gmail.com>
8664 * Makefile.in (enable_grub_fstest): New variable.
8666 * conf/common.rmk (grub_fstest_init.lst): New rule.
8667 (grub_fstest_init.h): Likewise.
8668 (grub_fstest_init.c): Likewise.
8669 (util/grub-fstest.c_DEPENDENCIES): New variable.
8670 (grub_fstest_SOURCES): Likewise.
8672 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
8674 * util/grub-fstest.c: New file.
8676 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
8678 Make grub-setup handle a separate root device.
8680 * util/i386/pc/grub-setup.c (setup): Always open the root device,
8681 so that the root device can be compared with the destination
8683 When embedding the core image, if the root and destination devices
8684 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
8686 When not embedding, set ROOT_DRIVE to 0xFF.
8688 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
8690 Add support for having a grub directory in a different drive. This
8691 is still only the data handling part.
8693 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
8694 (codestart): Save %dh in GRUB_ROOT_DRIVE.
8695 (grub_root_drive): New variable.
8697 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
8698 instead of GRUB_BOOT_DRIVE to construct a device name. Set
8699 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
8702 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
8704 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
8706 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
8708 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
8709 is bogus, because PXE booting does not specify any drive
8712 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
8713 am not sure if this is really correct.
8715 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
8716 is always identical to the boot drive when booting from a CD.
8718 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
8720 (root_drive): New variable.
8721 (real_start): Unconditionally set %dh to ROOT_DRIVE.
8722 (setup_sectors): Push %dx right after popping it, because %dh will
8724 (copy_buffer): Restore %dx.
8726 2008-02-03 Robert Millan <rmh@aybabtu.com>
8728 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
8729 use `cdboot.img' for cdrom images.
8731 2008-02-03 Robert Millan <rmh@aybabtu.com>
8733 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
8734 only setup gfxterm when `font' command has succeeded.
8736 2008-02-03 Robert Millan <rmh@aybabtu.com>
8738 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
8739 (grub_rescue_cmd_multiboot_loader)
8740 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
8742 2008-02-03 Pavel Roskin <proski@gnu.org>
8744 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
8745 %edx and %esi from stack only after grub_gate_a20() is called.
8746 grub_gate_a20() clobbers %edx.
8748 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
8750 * configure.ac (AC_INIT): Bumped to 1.96.
8752 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
8753 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
8754 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
8755 video/readers/png.c.
8757 2008-02-03 Bean <bean123ch@gmail.com>
8759 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
8760 (cdboot_img_SOURCES): New variable.
8761 (cdboot_img_ASFLAGS): New variable.
8762 (cdboot_img_LDFLAGS): New variable.
8764 * boot/i386/pc/cdboot.S: New file.
8766 * disk/i386/pc/biosdisk.c (cd_start): New variable.
8767 (cd_count): Likewise.
8768 (grub_biosdisk_get_drive): Add support for cd device.
8769 (grub_biosdisk_call_hook): Likewise.
8770 (grub_biosdisk_iterate): Likewise.
8771 (grub_biosdisk_open): Likewise.
8772 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
8773 (grub_biosdisk_rw): Support reading from cd device.
8774 (GRUB_MOD_INIT): Iterate cd devices.
8776 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
8777 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
8778 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
8780 * kern/i386/pc/init.c (make_install_device): Check for cd device.
8782 2008-02-02 Robert Millan <rmh@aybabtu.com>
8784 * commands/read.c: New file.
8785 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
8786 (read_mod_SOURCES): New variable.
8787 (read_mod_CFLAGS): Likewise.
8788 (read_mod_LDFLAGS): Likewise.
8790 2008-02-02 Robert Millan <rmh@aybabtu.com>
8792 * normal/main.c (grub_normal_execute): Check for `menu->size' when
8793 determining whether menu has to be displayed.
8795 2008-02-02 Marco Gerards <marco@gnu.org>
8797 * bus/pci.c: New file.
8799 * include/grub/pci.h: Likewise.
8801 * include/grub/i386/pc/pci.h: Likewise.
8803 * commands/lspci.c: Likewise.
8805 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
8807 (pci_mod_SOURCES): New variable.
8808 (pci_mod_CFLAGS): Likewise.
8809 (pci_mod_LDFLAGS): Likewise.
8810 (lspci_mod_SOURCES): Likewise.
8811 (lspci_mod_CFLAGS): Likewise.
8812 (lspci_mod_LDFLAGS): Likewise.
8814 2008-02-02 Bean <bean123ch@gmail.com>
8816 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
8817 (grub_ufs_get_file_block): Fix indirect block calculation problem.
8819 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
8820 (grub_xfs_btree_node): New structure.
8821 (grub_xfs_btree_root): New structure.
8822 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
8823 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
8824 (GRUB_XFS_EXTENT_BLOCK): Likewise.
8825 (GRUB_XFS_EXTENT_SIZE): Likewise.
8826 (grub_xfs_read_block): Support btree format type.
8827 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
8828 Use directory block as basic unit.
8830 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
8832 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
8833 __attribute__ ((__regparm__ (1))).
8835 2008-02-01 Robert Millan <rmh@aybabtu.com>
8837 Correct a mistake in previous commit.
8839 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
8841 (normal/command.c_DEPENDENCIES): New variable.
8843 2008-02-01 Robert Millan <rmh@aybabtu.com>
8845 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
8847 (normal/command.c_DEPENDENCIES): New variable.
8848 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
8849 * conf/i386-ieee1275.rmk: Likewise.
8850 * conf/i386-linuxbios.rmk: Likewise.
8851 * conf/i386-pc.rmk: Likewise.
8852 * conf/sparc64-ieee1275.rmk: Likewise.
8853 * conf/powerpc-ieee1275.rmk: Likewise.
8854 (grub_emu_SOURCES): Add `fs/fshelp.c'.
8856 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
8858 2008-02-01 Robert Millan <rmh@aybabtu.com>
8860 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
8861 call at beginning of function.
8863 2008-01-31 Pavel Roskin <proski@gnu.org>
8865 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
8866 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
8867 (grub_mkrescue_SOURCES): Likewise.
8868 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
8870 2008-01-30 Robert Millan <rmh@aybabtu.com>
8872 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
8873 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
8874 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
8875 (grub_probe_SOURCES): ... to here.
8877 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
8878 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
8879 * conf/i386-ieee1275.rmk: Likewise.
8880 * conf/i386-linuxbios.rmk: Likewise.
8881 * conf/powerpc-ieee1275.rmk: Likewise.
8883 2008-01-30 Tristan Gingold <gingold@free.fr>
8885 * kern/rescue.c: Silently accept empty lines.
8887 2008-01-29 Bean <bean123ch@gmail.com>
8889 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
8890 (real_code_2): Code cleanup and change comment style.
8891 (move_memory): Avoid using 32-bit address mode.
8893 2008-01-29 Bean <bean123ch@gmail.com>
8895 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
8896 (png_mod_SOURCES): New variable.
8897 (png_mod_CFLAGS): Likewise.
8898 (png_mod_LDFLAGS): Likewise.
8900 * video/readers/png.c: New file.
8902 2008-01-28 Robert Millan <rmh@aybabtu.com>
8904 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
8905 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
8906 `ifndef GRUB_MOD_GAP' hack.
8907 * util/elf/grub-mkimage.c (add_segments): Likewise.
8909 2008-01-27 Robert Millan <rmh@aybabtu.com>
8911 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
8912 `GRUB_MOD_GAP' for platforms in which it's not defined.
8913 * util/elf/grub-mkimage.c (add_segments): Likewise.
8915 2008-01-27 Robert Millan <rmh@aybabtu.com>
8917 Get grub-emu to build again (including parallel builds).
8919 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
8921 (util/grub-emu.c_DEPENDENCIES): ... this, ...
8922 (normal/execute.c_DEPENDENCIES): ... this, ...
8923 (grub-emu_DEPENDENCIES): ... and this.
8925 * conf/i386-efi.rmk: Likewise.
8926 * conf/i386-linuxbios.rmk: Likewise.
8927 * conf/i386-ieee1275.rmk: Likewise.
8928 * conf/powerpc-ieee1275.rmk: Likewise.
8929 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
8931 2008-01-27 Robert Millan <rmh@aybabtu.com>
8933 * NEWS: Add a few items.
8935 2008-01-27 Robert Millan <rmh@aybabtu.com>
8937 Fix parallel builds with grub-emu. Based on earlier commit for
8938 grub-probe and grub-setup.
8940 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
8941 (util/grub-emu.c_DEPENDENCIES): ... this.
8942 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
8943 (util/grub-emu.c_DEPENDENCIES): ... this.
8944 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
8945 (util/grub-emu.c_DEPENDENCIES): ... this.
8946 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
8947 (util/grub-emu.c_DEPENDENCIES): ... this.
8948 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
8949 (util/grub-emu.c_DEPENDENCIES): ... this.
8951 2008-01-27 Pavel Roskin <proski@gnu.org>
8953 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
8954 to create a gap between _end and the modules added to the image
8955 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
8956 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
8957 * util/elf/grub-mkimage.c (add_segments): Likewise.
8959 2008-01-26 Pavel Roskin <proski@gnu.org>
8961 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
8962 just return an error.
8964 2008-01-26 Bean <bean123ch@gmail.com>
8966 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
8967 (grub_reiserfs_get_item): Save offset of the next item.
8968 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
8970 2008-01-25 Robert Millan <rmh@aybabtu.com>
8972 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
8973 make all filesystem sources appear together (possibly fixing omissions
8975 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8976 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8977 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
8978 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8980 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
8982 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
8983 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
8984 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
8985 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
8987 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
8988 (probe): Add a sanity check to make sure of our ability to read
8989 requested files when probing for filesystem type.
8991 * genmk.rb: Update copyright year (2007).
8993 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
8994 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
8995 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
8996 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
8997 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
8998 : Remove function prototypes.
9000 2008-01-25 Robert Millan <rmh@aybabtu.com>
9002 Revert my previous commits (based on wrong assumption of how grub_errno
9005 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
9006 * kern/file.c (grub_file_open): Likewise.
9008 2008-01-24 Pavel Roskin <proski@gnu.org>
9010 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
9011 that hang if GRUB tries to setup colors.
9012 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
9013 colors for firmwares that don't support it.
9014 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
9015 Recognize Open Hack'Ware, set flags to work around its
9018 2008-01-24 Robert Millan <rmh@aybabtu.com>
9020 * kern/file.c (grub_file_open): Do not account previous failures of
9021 unrelated functions when grub_errno is checked for.
9022 Reported by Oleg Strikov.
9024 2008-01-24 Bean <bean123ch@gmail.com>
9026 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
9027 (grub_ufs_sblock): New member volume name.
9028 (grub_ufs_find_file): Fix string copy bug.
9029 (grub_ufs_label): Implement this function properly.
9031 * fs/hfs.c (grub_hfs_cnid_type): New enum.
9032 (grub_hfs_iterate_records): Use the correct file number for extents
9033 and catalog file. Fix problem in next index calculation.
9034 (grub_hfs_find_node): Replace recursive function call with loop.
9035 (grub_hfs_iterate_dir): Replace recursive function call with loop.
9037 2008-01-23 Robert Millan <rmh@aybabtu.com>
9039 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
9040 `<grub/symbol.h>' and `<grub/multiboot.h>'.
9041 (grub_multiboot2_real_boot): New function prototype.
9043 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
9044 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
9046 * kern/i386/ieee1275/init.c (grub_os_area_addr)
9047 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
9049 2008-01-23 Robert Millan <rmh@aybabtu.com>
9051 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
9052 #ifdef'ed out grub_printf().
9054 2008-01-23 Robert Millan <rmh@aybabtu.com>
9056 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
9057 grub_dprintf calls, since they make "debug=all" mode unusable.
9058 (grub_console_checkkey): Likewise.
9060 2008-01-23 Robert Millan <rmh@aybabtu.com>
9062 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
9063 `term/i386/pc/at_keyboard.c'.
9064 (pkglib_MODULES): Add `serial.mod'.
9065 (serial_mod_SOURCES): New variable.
9066 (serial_mod_CFLAGS): Likewise.
9067 (serial_mod_LDFLAGS): Likewise.
9069 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
9070 `<grub/powerpc/ieee1275/console.h>'.
9071 (grub_keyboard_controller_init): New function prototype.
9072 (grub_console_checkkey): Likewise.
9073 (grub_console_getkey): Likewise.
9075 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
9078 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
9079 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
9081 2008-01-23 Robert Millan <rmh@aybabtu.com>
9083 * kern/i386/pc/init.c (make_install_device): When memdisk image is
9084 present, "(memdisk)/boot/grub" becomes the default prefix.
9086 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
9087 a memdisk tarball with all the modules. Add --overlay=DIR option that
9088 allows users to overlay additional files into the image.
9090 2008-01-23 Robert Millan <rmh@aybabtu.com>
9092 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
9093 and `machine/memory.h'.
9094 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
9095 (_multiboot_mod_SOURCES): New variable.
9096 (_multiboot_mod_CFLAGS): Likewise.
9097 (_multiboot_mod_LDFLAGS): Likewise.
9098 (multiboot_mod_SOURCES): Likewise.
9099 (multiboot_mod_CFLAGS): Likewise.
9100 (multiboot_mod_LDFLAGS): Likewise.
9102 * include/grub/i386/ieee1275/loader.h: New file.
9104 * include/grub/i386/ieee1275/machine.h: Likewise.
9106 * include/grub/i386/ieee1275/memory.h: Likewise.
9108 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
9109 variable declaration.
9110 (grub_os_area_size): Likewise.
9112 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
9113 (grub_lower_mem, grub_upper_mem): New variables.
9114 (grub_stop_floppy): New function (just to make
9115 grub_multiboot2_real_boot() happy).
9117 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
9118 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
9119 (grub_stop): New function.
9120 Include `"../realmode.S"' and `"../loader.S"'.
9122 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
9123 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
9125 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
9126 rely on grub_multiboot2_real_boot() for final boot.
9128 2008-01-22 Robert Millan <rmh@aybabtu.com>
9130 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
9131 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
9132 device that doesn't look like an SD card.
9133 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
9134 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
9135 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
9136 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
9139 2008-01-22 Robert Millan <rmh@aybabtu.com>
9141 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
9142 avoid claiming over our own code.
9144 2008-01-22 Bean <bean123ch@gmail.com>
9146 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
9147 (jpeg_mod_SOURCES): New variable.
9148 (jpeg_mod_CFLAGS): Likewise.
9149 (jpeg_mod_LDFLAGS): Likewise.
9151 * video/readers/jpeg.c : New file.
9153 2008-01-22 Bean <bean123ch@gmail.com>
9155 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
9156 there are no more items.
9158 2008-01-21 Robert Millan <rmh@aybabtu.com>
9160 * kern/mm.c (grub_mm_init_region): Improve debug message.
9162 2008-01-21 Robert Millan <rmh@aybabtu.com>
9164 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
9165 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
9167 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
9169 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
9170 Indicates start of upper memory.
9171 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
9172 (generate_image): Abort when image size is big enough to corrupt
9175 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
9176 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
9177 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
9178 instead of hardcoding 0xA0000.
9179 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
9180 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
9181 instead of hardcoding 0xA0000.
9183 2008-01-21 Robert Millan <rmh@aybabtu.com>
9185 * disk/memdisk.c (memdisk_size): New variable.
9186 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
9188 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
9189 image to dynamic memory.
9190 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
9191 `memdisk_size'. Free memdisk block.
9193 2008-01-21 Robert Millan <rmh@aybabtu.com>
9195 Fix detection of very small filesystems (like tar).
9197 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
9198 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
9199 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
9200 a problem with this disk).
9202 2008-01-21 Robert Millan <rmh@aybabtu.com>
9204 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
9205 on grub_biosdisk_rw_standard() error.
9207 2008-01-21 Robert Millan <rmh@aybabtu.com>
9209 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
9211 * kern/elf.c: Likewise.
9212 * kern/ieee1275/ieee1275.c: Likewise.
9213 * kern/powerpc/ieee1275/openfw.c: Likewise.
9214 * term/ieee1275/ofconsole.c: Likewise.
9216 2008-01-21 Robert Millan <rmh@aybabtu.com>
9218 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
9220 * include/grub/kernel.h (grub_arch_memdisk_addr)
9221 (grub_arch_memdisk_size): Moved from here ...
9223 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
9224 (grub_arch_memdisk_size): ... to here.
9226 2008-01-21 Robert Millan <rmh@aybabtu.com>
9228 Mostly based on bugfix from Bean.
9230 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
9231 attribute with hook() parameter.
9232 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
9234 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
9235 attribute with hook() parameter.
9236 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
9239 2008-01-21 Robert Millan <rmh@aybabtu.com>
9241 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
9242 (pkglib_MODULES): Add `memdisk.mod'.
9243 (memdisk_mod_SOURCES): New variable.
9244 (memdisk_mod_CFLAGS): Likewise.
9245 (memdisk_mod_LDFLAGS): Likewise.
9247 * disk/memdisk.c: New file.
9249 * include/grub/disk.h (grub_disk_dev_id): Add
9250 `GRUB_DISK_DEVICE_MEMDISK_ID'.
9252 * include/grub/i386/pc/kernel.h
9253 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
9254 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
9255 (grub_kernel_image_size): New variable declaration.
9256 (grub_total_module_size): Likewise.
9257 (grub_memdisk_image_size): Likewise.
9259 * include/grub/i386/pc/memory.h
9260 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
9262 * include/grub/kernel.h: Include `<grub/symbol.h>'.
9263 (grub_arch_memdisk_addr): New variable declaration.
9264 (grub_arch_memdisk_size): Likewise.
9266 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
9267 (grub_arch_memdisk_size): Likewise.
9269 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
9270 (codestart): Replace hardcoded `0x100000' with
9271 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
9273 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
9274 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
9275 not NULL, append the contents of the file it refers to, at the end of
9276 the compressed kernel image. Initialize `grub_memdisk_image_size'
9277 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
9278 (options): Add "memdisk"|'m' option.
9279 (main): Parse --memdisk|-m option, and pass user-provided path as
9280 parameter to generate_image().
9282 2008-01-20 Robert Millan <rmh@aybabtu.com>
9284 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
9285 grub_dprintf() calls from here ...
9286 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
9288 2008-01-20 Robert Millan <rmh@aybabtu.com>
9290 Fix detection of "real mode" when /options/real-mode? doesn't exist.
9292 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
9294 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
9295 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
9296 `GRUB_IEEE1275_FLAG_REAL_MODE'.
9297 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
9299 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
9300 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
9302 2008-01-19 Robert Millan <rmh@aybabtu.com>
9304 Get rid of confusing function (superseded by
9305 `grub_ieee1275_get_integer_property')
9306 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
9308 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
9310 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
9311 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
9312 in native endianness from grub_ieee1275_get_integer_property().
9314 2008-01-19 Robert Millan <rmh@aybabtu.com>
9316 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
9317 command after "shut-down", since implementations differ on which
9318 the command for halt is.
9320 2008-01-19 Robert Millan <rmh@aybabtu.com>
9322 * include/grub/i386/linuxbios/console.h: Add header protection.
9323 (grub_keyboard_controller_init): New function prototype.
9324 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
9325 (KEYBOARD_COMMAND_READ): Likewise.
9326 (KEYBOARD_COMMAND_WRITE): Likewise.
9327 (KEYBOARD_SCANCODE_SET1): Likewise.
9328 (grub_keyboard_controller_write): New function.
9329 (grub_keyboard_controller_read): Likewise.
9330 (grub_keyboard_controller_init): Likewise.
9332 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
9333 (grub_console_init): On coreboot/LinuxBIOS, call
9334 grub_keyboard_controller_init().
9336 2008-01-19 Robert Millan <rmh@aybabtu.com>
9338 PowerPC changes provided by Pavel Roskin.
9340 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
9341 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
9342 don't rely on cmain() doing it.
9343 * kern/i386/ieee1275/startup.S (_start): Store %eax in
9344 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
9346 2008-01-16 Robert Millan <rmh@aybabtu.com>
9348 * include/grub/i386/linuxbios/memory.h
9349 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
9350 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
9351 receive `table_header' as argument. Instead, probe for it in the
9352 known memory ranges where it can be present.
9353 (grub_available_iterate): Do not pass a fixed `table_header' address
9354 to grub_linuxbios_table_iterate().
9356 2008-01-15 Robert Millan <rmh@aybabtu.com>
9358 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
9359 * conf/i386-ieee1275.rmk: New file.
9360 * include/grub/i386/ieee1275/console.h: Likewise.
9361 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
9362 * include/grub/i386/ieee1275/kernel.h: Likewise.
9363 * include/grub/i386/ieee1275/time.h: Likewise.
9364 * kern/i386/ieee1275/init.c: Likewise.
9365 * kern/i386/ieee1275/startup.S: Likewise.
9367 2008-01-15 Robert Millan <rmh@aybabtu.com>
9369 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
9370 when pointers are 32-bit (but still do set it to one when they are
9373 2008-01-15 Robert Millan <rmh@aybabtu.com>
9375 * include/grub/ieee1275/ieee1275.h
9376 (grub_ieee1275_get_integer_property): New function prototype.
9378 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
9379 (grub_ieee1275_get_integer_property): New function. Wraps around
9380 grub_ieee1275_get_property() to handle endianness.
9382 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
9383 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
9385 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
9386 (grub_map): Likewise.
9387 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
9389 2008-01-15 Bean <bean123ch@gmail.com>
9391 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
9392 (grub_script_execute_cmdline): Reset grub_errno.
9394 * normal/main.c (read_config_file): Reset grub_errno.
9396 * normal/parse.y (script_init): New.
9397 (script): Move function and menuentry here.
9399 (command): Add delimiter at the end of command.
9400 (commands): Adjust to match the new command.
9401 (commandblock): Remove grub_script_lexer_record_start.
9402 (menuentry): Add grub_script_lexer_record_start, use the new commands.
9403 (if): Use the new commands.
9405 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
9407 2008-01-15 Robert Millan <rmh@aybabtu.com>
9409 * normal/menu.c (run_menu): Move timeout message from here ...
9410 (print_timeout): ... to here.
9411 (run_menu): Use print_timeout() once during initial draw to print
9412 the whole message, and again in every clock tick to update only
9413 the number of seconds.
9415 2008-01-15 Robert Millan <rmh@aybabtu.com>
9417 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
9418 actual size of `available' from grub_ieee1275_get_property(), and
9419 restrict parsing to that bound.
9421 2008-01-15 Christian Franke <franke@computer.org>
9423 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
9424 (argp_program_version): Remove variable.
9425 (argp_program_bug_address): Likewise.
9426 (options): Convert from struct argp_option to struct option.
9427 (struct arguments): Remove.
9428 (parse_opt): Remove.
9429 (usage): New function.
9430 (main): Replace struct args members by simple variables.
9431 Replace argp_parse() by getopt_long().
9432 Add switch to evaluate options.
9433 Add missing "(...)" around root_dev in prefix string.
9435 2008-01-14 Robert Millan <rmh@aybabtu.com>
9437 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
9438 for grub_ieee1275_exit(), in order to improve portability.
9440 2008-01-14 Robert Millan <rmh@aybabtu.com>
9442 * util/grub.d/10_linux.in (prefix): Define.
9443 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
9445 2008-01-13 Pavel Roskin <proski@gnu.org>
9447 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
9448 grub_errno if no errors have been detected.
9450 2008-01-12 Robert Millan <rmh@aybabtu.com>
9452 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
9453 (grub_util_get_dev_abstraction): New function prototype.
9455 * util/getroot.c: Include `<grub/util/getroot.h>'
9456 (grub_util_get_grub_dev): Move detection of abstraction type to ...
9457 (grub_util_get_dev_abstraction): ... here (new function).
9459 * util/grub-probe.c: Convert PRINT_* to an enum. Add
9460 `PRINT_ABSTRACTION'.
9461 (probe): Probe for abstraction type when requested.
9462 (main): Understand `--target=abstraction'.
9464 * util/i386/efi/grub-install.in: Add abstraction module to core
9465 image when it is found to be necessary.
9466 * util/i386/pc/grub-install.in: Likewise.
9467 * util/powerpc/ieee1275/grub-install.in: Likewise.
9469 * util/update-grub_lib.in (font_path): Return system path without
9470 converting to GRUB path.
9471 * util/update-grub.in: Convert system path returned by font_path()
9472 to a GRUB path. Use `grub-probe -t abstraction' to determine what
9473 abstraction module is needed for loading fonts (if any). Export
9474 that as `GRUB_PRELOAD_MODULES'.
9475 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
9478 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
9480 Remove some unused code from reiserfs.
9482 * fs/reiserfs.c (struct grub_reiserfs_key)
9483 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
9484 (struct grub_reiserfs_node_body): Removed.
9485 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
9487 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
9489 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
9491 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
9493 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
9495 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
9497 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
9498 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
9499 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
9501 2008-01-10 Robert Millan <rmh@aybabtu.com>
9503 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
9504 Determines if a file is garbage left by packaging systems, etc.
9505 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
9506 for processing /etc/grub.d scripts.
9507 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
9508 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
9509 as a condition for processing Linux images.
9511 2008-01-10 Pavel Roskin <proski@gnu.org>
9513 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
9514 to compile reiserfs.c on PowerPC.
9516 2008-01-10 Robert Millan <rmh@aybabtu.com>
9518 * kern/device.c (grub_device_iterate): Do not abort device iteration
9519 when one of the devices cannot be opened.
9520 * kern/disk.c (grub_disk_open): Do not account previous failures of
9521 unrelated functions when grub_errno is checked for.
9523 2008-01-08 Robert Millan <rmh@aybabtu.com>
9525 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
9526 `! grub_linux_is_bzimage', change order of address comparison to make
9527 it more intuitive, and improve "too big zImage" error message.
9529 2008-01-08 Robert Millan <rmh@aybabtu.com>
9531 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
9532 `$(update-grub_DATA)'.
9533 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
9536 2008-01-07 Robert Millan <rmh@aybabtu.com>
9538 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
9539 which instruction is modified by grub-setup during installation
9540 (since it wasn't obvious by only looking at this file).
9542 2008-01-07 Robert Millan <rmh@aybabtu.com>
9544 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
9545 listing actual TODO items.
9547 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
9549 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
9551 (grub_reiserfs_get_key_offset): Likewise.
9552 (grub_reiserfs_set_key_offset): Likewise.
9553 (grub_reiserfs_set_key_type): Likewise.
9554 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
9556 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
9557 better to remove the bitfield version completely.
9559 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
9561 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
9562 allocated from the heap, due to the fshelp implementation.
9563 (grub_reiserfs_dir): Free NODE, due to the same reason.
9565 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
9567 Mostly from Vincent Pelletier:
9569 * fs/reiserfs.c: New file.
9571 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
9572 (reiserfs_mod_SOURCES): New variable.
9573 (reiserfs_mod_CFLAGS): Likewise.
9574 (reiserfs_mod_LDFLAGS): Likewise.
9576 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
9577 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
9578 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
9581 2008-01-06 Robert Millan <rmh@aybabtu.com>
9583 * normal/color.c: Remove `<grub/env.h>'.
9585 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
9587 * include/grub/normal.h: Include <grub/env.h>.
9589 2008-01-05 Robert Millan <rmh@aybabtu.com>
9591 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
9592 usage example with `(hd0,1)'.
9593 Reported by Samuel Thibault.
9595 2008-01-05 Robert Millan <rmh@aybabtu.com>
9597 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
9598 (grub_linux_boot_zimage): Rename to ...
9599 (grub_linux_boot): ... this.
9600 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
9601 (grub_linux_boot_zimage): Conditionalize zImage copy.
9603 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
9604 (grub_linux_boot_bzimage): Remove prototype.
9605 (grub_linux_boot_zimage): Rename to ...
9606 (grub_linux_boot): ... this.
9608 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
9609 (grub_linux_boot): Remove function.
9611 2008-01-05 Robert Millan <rmh@aybabtu.com>
9613 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
9614 (grub_env_write_color_highlight): Likewise.
9615 (grub_wait_after_message): Likewise.
9617 * normal/color.c: New file.
9619 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
9620 (normal_mod_DEPENDENCIES): Likewise.
9622 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
9623 (normal_mod_DEPENDENCIES): Likewise.
9625 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
9626 (normal_mod_DEPENDENCIES): Likewise.
9628 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
9629 (normal_mod_DEPENDENCIES): Likewise.
9631 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
9632 for waiting after a message is printed.
9633 * normal/main.c (read_config_file): Likewise.
9634 (grub_normal_init): Register grub_env_write_color_normal() and
9635 grub_env_write_color_highlight() hooks. Mark `color_normal' and
9636 `color_highlight' variables as global.
9638 * normal/menu.c (grub_wait_after_message): New function.
9639 (grub_color_menu_normal): New variable. Replaces ...
9640 (GRUB_COLOR_MENU_NORMAL): ... this macro.
9641 (grub_color_menu_highlight): New variable. Replaces ...
9642 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
9643 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
9644 `GRUB_TERM_COLOR_STANDARD'.
9645 (print_message): Use `grub_setcolorstate' to reload colors. Rename
9646 `normal_code' and `highlight_code' to `old_color_normal' and
9647 `old_color_highlight', respectively.
9648 (grub_menu_init_page): Update colors when drawing the menu, based on
9649 `menu_color_normal' and `menu_color_highlight' variables.
9650 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
9651 a message is printed.
9653 2008-01-05 Robert Millan <rmh@aybabtu.com>
9655 * kern/env.c (grub_env_context_open): Propagate hooks for global
9656 variables to new context.
9658 * kern/main.c (grub_set_root_dev): Export `root' variable.
9660 2008-01-05 Robert Millan <rmh@aybabtu.com>
9662 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
9663 discs unconditionally, since udev and others have options to provide
9666 2008-01-05 Robert Millan <rmh@aybabtu.com>
9668 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
9670 2008-01-04 Christian Franke <franke@computer.org>
9672 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
9675 2008-01-03 Pavel Roskin <proski@gnu.org>
9677 * kern/i386/linuxbios/init.c: Put "void" to all function
9678 declarations with no arguments.
9679 * kern/powerpc/ieee1275/init.c: Likewise.
9680 * term/i386/pc/at_keyboard.c: Likewise.
9681 * term/i386/pc/vga_text.c: Likewise.
9682 * util/grub-mkdevicemap.c: Likewise.
9684 2008-01-02 Robert Millan <rmh@aybabtu.com>
9686 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
9687 message when loaded image is out of bounds.
9688 (grub_multiboot_load_elf64): Likewise.
9690 2008-01-02 Pavel Roskin <proski@gnu.org>
9692 * util/grub.d/10_linux.in: Try version without ".old" when
9693 looking for initrd. It's better to use initrd from the newer
9694 kernel of the same version than no initrd at all.
9696 2008-01-01 Robert Millan <rmh@aybabtu.com>
9698 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
9700 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
9702 * include/grub/video.h: Added grub_video_unmap_color and
9703 grub_video_get_active_render_target.
9704 (grub_video_adapter): Added unmap_color and get_active_render_target.
9706 * video/video.c: Added grub_video_unmap_color and
9707 grub_video_get_active_render_target.
9708 (grub_video_get_info): Changed method to accept NULL pointer as an
9709 argument to allow detection of active video adapter.
9711 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
9712 grub_video_vbe_unmap_color_int.
9713 Added grub_video_vbe_unmap_color and
9714 grub_video_vbe_get_active_render_target.
9715 (grub_video_vbe_adapter): Added unmap_color and
9716 get_active_render_target.
9718 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
9719 with grub_video_vbe_unmap_color_int.
9721 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
9722 (DEFAULT_NORMAL_COLOR): Likewise.
9723 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
9724 (DEFAULT_FG_COLOR): Removed.
9725 (DEFAULT_BG_COLOR): Likewise.
9726 (DEFAULT_CURSOR_COLOR): Changed value.
9727 (grub_virtual_screen): Added standard_color_setting,
9728 normal_color_setting, highlight_color_setting and term_color.
9729 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
9730 (bitmap_width): Added.
9731 (bitmap_height): Likewise.
9733 (set_term_color): Likewise.
9734 (grub_virtual_screen_setup): Changed to use new terminal coloring
9736 (grub_gfxterm_init): Added init for bitmap.
9737 (grub_gfxterm_fini): Added destroy for bitmap.
9738 (redraw_screen_rect): Updated to use background bitmap and new
9740 (scroll_up): Added optimization for case when there is no bitmap.
9741 (grub_gfxterm_cls): Fixed to use correct background color.
9742 (grub_virtual_screen_setcolorstate): Changed to use new terminal
9744 (grub_virtual_screen_setcolor): Likewise.
9745 (grub_virtual_screen_getcolor): Added.
9746 (grub_gfxterm_background_image_cmd): Likewise.
9747 (grub_video_term): Added setcolor and getcolor.
9748 (MOD_INIT): Added registration of background_image command.
9749 (MOD_TERM): Added unregistration for background_image command.
9751 2007-12-30 Pavel Roskin <proski@gnu.org>
9753 * loader/multiboot_loader.c: Fix multiboot command
9754 unregistration. Fix all typos in the word "multiboot".
9756 2007-12-29 Pavel Roskin <proski@gnu.org>
9758 * util/grub.d/10_linux.in: Refactor search for initrd. Add
9759 support for initrd names used in Fedora.
9761 2007-12-26 Bean <bean123ch@gmail.com>
9763 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
9764 (cpio_mod_SOURCES): New variable.
9765 (cpio_mod_CFLAGS): Likewise.
9766 (cpio_mod_LDFLAGS): Likewise.
9768 * fs/cpio.c: New file.
9770 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
9772 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9774 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
9776 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9778 2007-12-25 Robert Millan <rmh@aybabtu.com>
9780 * include/grub/term.h (struct grub_term): Add `getcolor' function.
9781 (grub_getcolor): New function.
9783 * kern/term.c (grub_getcolor): New function.
9784 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
9785 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
9786 (print_entry): Set normal and highlight colors to
9787 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
9788 respectively, before printing and restore them to old
9790 (grub_menu_init_page): Likewise. Fill an additional colored space
9791 that would otherwise be left blank.
9793 * term/efi/console.c (grub_console_getcolor): New function.
9794 (struct grub_console_term.getcolor): New variable.
9795 * term/i386/pc/console.c (grub_console_getcolor): New function.
9796 (struct grub_console_term.getcolor): New variable.
9797 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
9798 (struct grub_console_term.getcolor): New variable.
9800 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
9801 (struct grub_console_term.setcolor): Remove variable.
9802 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
9803 (struct grub_console_term.setcolor): Remove variable.
9804 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
9805 (struct grub_console_term.setcolor): Remove variable.
9806 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
9807 (struct grub_console_term.setcolor): Remove variable.
9809 2007-12-25 Robert Millan <rmh@aybabtu.com>
9811 * configure.ac: Search for possible unifont.hex locations, and
9812 define UNIFONT_HEX if found.
9814 * Makefile.in (UNIFONT_HEX): Define variable.
9815 (DATA): Rename to ...
9816 (PKGLIB): ... this. Update all users.
9817 (PKGDATA): New variable.
9818 (pkgdata_IMAGES): Rename to ...
9819 (pkglib_IMAGES): ... this. Update all users.
9820 (pkgdata_MODULES): Rename to ...
9821 (pkglib_MODULES): ... this. Update all users.
9822 (pkgdata_PROGRAMS): Rename to ...
9823 (pkglib_PROGRAMS): ... this. Update all users.
9824 (pkgdata_DATA): Rename to ...
9825 (pkglib_DATA): ... this. Update all users.
9826 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
9827 (unicode.pff, ascii.pff): New rules.
9828 (all-local): Add `$(PKGDATA)' dependency.
9829 (install-local): Process `$(PKGDATA)'.
9831 * util/update-grub_lib.in (font_path): Search for *.pff files in
9832 a few more locations, including `${pkgdata}'.
9834 2007-12-23 Robert Millan <rmh@aybabtu.com>
9836 Patch from Bean <bean123ch@gmail.com>:
9837 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
9840 2007-12-21 Bean <bean123ch@gmail.com>
9842 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
9843 (ntfscomp_mod_SOURCES): New variable.
9844 (ntfscomp_mod_CFLAGS): Likewise.
9845 (ntfscomp_mod_LDFLAGS): Likewise.
9847 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
9848 (grub_probe_SOURCES): Likewise.
9849 (grub_emu_SOURCES): Likewise.
9851 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
9852 (grub_emu_SOURCES): Likewise.
9854 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
9855 (grub_emu_SOURCES): Likewise.
9857 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
9858 (grub_emu_SOURCES): Likewise.
9860 * fs/ntfs.c (grub_ntfscomp_func): New variable.
9861 (read_run_list): Renamed to grub_ntfs_read_run_list.
9862 (decomp_nextvcn): Moved to ntfscomp.c.
9863 (decomp_getch): Likewise.
9864 (decomp_get16): Likewise.
9865 (decomp_block): Likewise.
9866 (read_block): Likewise.
9867 (read_data): Partially moved to ntfscomp.c.
9868 (fixup): Change unsigned to grub_uint16_t.
9869 (read_mft): Change unsigned long to grub_uint32_t.
9870 (read_attr): Likewise.
9871 (read_data): Likewise.
9872 (read_run_data): Likewise.
9873 (read_run_list): Likewise.
9874 (read_mft): Likewise.
9876 * fs/ntfscomp.c: New file.
9878 * include/grub/ntfs.h: New file.
9880 2007-12-16 Robert Millan <rmh@aybabtu.com>
9882 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
9883 IDE disk check, since Linux is known to support 20 IDE disks.
9884 Reported by Colin Watson.
9886 2007-12-15 Bean <bean123ch@gmail.com>
9888 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
9889 (lnxboot_img_SOURCES): New variable.
9890 (lnxboot_img_ASFLAGS): Likewise.
9891 (lnxboot_img_LDFLAGS): Likewise.
9893 * boot/i386/pc/lnxboot.S: New file.
9895 2007-11-24 Pavel Roskin <proski@gnu.org>
9897 * configure.ac: Test if '--build-id=none' is supported by the
9898 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
9899 objcopy to generate incorrect binary files (binutils
9900 2.17.50.0.18-1 as shipped by Fedora 8).
9901 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
9902 linking, so that build ID doesn't break the test.
9904 2007-11-24 Pavel Roskin <proski@gnu.org>
9906 * include/grub/i386/time.h: use "void" in the argument list
9908 * include/grub/powerpc/time.h: Likewise.
9909 * include/grub/sparc64/time.h: Likewise.
9911 2007-11-18 Christian Franke <franke@computer.org>
9913 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
9914 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
9915 This fixes the problem that function keys did not work in grub-emu.
9917 2007-11-18 Christian Franke <franke@computer.org>
9919 * disk/host.c (grub_host_open): Remove attribute unused from
9920 name parameter. Add check for "host". This fixes the problem
9921 that grub-emu does not find partitions.
9923 2007-11-18 Christian Franke <franke@computer.org>
9925 * util/hostfs.c (is_dir): New function.
9926 (grub_hostfs_dir): Handle missing dirent.d_type case.
9927 (grub_hostfs_read): Add missing fseek().
9928 (grub_hostfs_label): Clear label pointer. This fixes a crash
9929 of grub-emu on "ls (host)".
9931 2007-11-18 Christian Franke <franke@computer.org>
9933 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
9934 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
9935 to 64 bit boundary by default.
9937 2007-11-18 Bean <bean123ch@gmail.com>
9939 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
9940 (hexdump_mod_SOURCES): New variable.
9941 (hexdump_mod_CFLAGS): Likewise.
9942 (hexdump_mod_LDFLAGS): Likewise.
9944 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
9946 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
9948 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
9950 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
9952 * include/grub/hexdump.h: New file.
9954 * commands/hexdump.c: New file.
9956 2007-11-10 Robert Millan <rmh@aybabtu.com>
9958 * commands/i386/pc/play.c (beep_off): Switch order of arguments
9959 in grub_outb() calls.
9960 (beep_on): Likewise.
9962 2007-11-10 Christian Franke <franke@computer.org>
9964 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
9965 (grub_menu_run): Likewise.
9967 2007-11-10 Robert Millan <rmh@aybabtu.com>
9969 * include/grub/i386/efi/machine.h: New file.
9970 * include/grub/i386/linuxbios/machine.h: Likewise.
9971 * include/grub/i386/pc/machine.h: Likewise.
9972 * include/grub/powerpc/ieee1275/machine.h: Likewise.
9973 * include/grub/sparc64/ieee1275/machine.h: Likewise.
9975 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
9976 (serial_hw_io_addr): New variable.
9977 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
9978 instead of `(unsigned short *) 0x400'.
9980 2007-11-10 Bean <bean123ch@gmail.com>
9982 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
9984 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
9986 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
9987 (vga_mod_SOURCES): Added.
9988 (vga_mod_CFLAGS): Likewise.
9989 (vga_mod_LDFLAGS): Likewise.
9991 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
9993 (set_map_mask): Likewise.
9994 (set_read_map): Likewise.
9995 (set_read_address): Likewise.
9996 (vga_font): Removed variable.
9997 (get_vga_glyph): Removed function.
9998 (invalidate_char): Likewise.
9999 (write_char): Changed to use grub_font_get_glyph() for font
10001 (grub_vga_putchar): Likewise.
10002 (grub_vga_getcharwidth): Likewise.
10004 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
10006 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
10008 (pxeboot_img_LDFLAGS): Likewise.
10009 (diskboot_img_LDFLAGS): Likewise.
10010 (kernel_img_LDFLAGS): Likewise.
10012 2007-11-06 Robert Millan <rmh@aybabtu.com>
10014 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
10015 in grub_outb() calls.
10016 (serial_hw_init): Likewise.
10018 2007-11-05 Robert Millan <rmh@aybabtu.com>
10020 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
10021 spaces. Skip non-regular files.
10023 2007-11-05 Robert Millan <rmh@aybabtu.com>
10025 * kern/disk.c (grub_disk_firmware_fini)
10026 (grub_disk_firmware_is_tainted): New variables.
10028 * include/grub/disk.h (grub_disk_firmware_fini)
10029 (grub_disk_firmware_is_tainted): Likewise.
10031 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
10032 (grub_disk_biosdisk_fini): ... to here.
10033 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
10034 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
10035 is set. Register grub_disk_biosdisk_fini() in
10036 `grub_disk_firmware_fini'.
10038 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
10039 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
10040 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
10041 to finish existing firmware disk interface.
10043 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
10044 (ata_mod_SOURCES): New variable.
10045 (ata_mod_CFLAGS): Likewise.
10046 (ata_mod_LDFLAGS): Likewise.
10048 2007-11-05 Robert Millan <rmh@aybabtu.com>
10050 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
10051 (grub_ata_wait): Reimplement using grub_millisleep().
10053 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
10054 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
10056 2007-11-03 Marco Gerards <marco@gnu.org>
10058 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
10059 (CRTC_ADDR_PORT): New macro.
10060 (CRTC_DATA_PORT): Likewise.
10061 (CRTC_CURSOR): Likewise.
10062 (CRTC_CURSOR_ADDR_HIGH): Likewise.
10063 (CRTC_CURSOR_ADDR_LOW): Likewise.
10064 (update_cursor): New function.
10065 (grub_console_real_putchar): Call `update_cursor'.
10066 (grub_console_gotoxy): Likewise.
10067 (grub_console_cls): Set the default color when clearing the
10069 (grub_console_setcursor): Implemented.
10071 2007-11-03 Marco Gerards <marco@gnu.org>
10073 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
10075 (grub_ata_pio_write): Likewise.
10077 (grub_atapi_identify): Wait after issuing an ATA command.
10078 (grub_atapi_packet): Likewise.
10079 (grub_ata_identify): Likewise.
10080 (grub_ata_readwrite): Likewise.
10082 2007-11-03 Marco Gerards <marco@gnu.org>
10084 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
10085 (grub_ata_pio_write): Likewise.
10086 (grub_ata_readwrite): Use `grub_error', instead of
10087 returning `grub_errno'.
10089 2007-11-03 Marco Gerards <marco@gnu.org>
10091 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
10092 grub_ata_pio_write once for every single sector, instead of for
10095 2007-10-31 Robert Millan <rmh@aybabtu.com>
10097 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
10099 * conf/i386-linuxbios.rmk: New file.
10101 * kern/i386/pc/hardware.c: Likewise.
10102 * term/i386/pc/at_keyboard.c: Likewise.
10103 * term/i386/pc/vga_text.c: Likewise.
10105 * include/grub/i386/linuxbios/boot.h: Likewise.
10106 * include/grub/i386/linuxbios/console.h: Likewise.
10107 * include/grub/i386/linuxbios/init.h: Likewise.
10108 * include/grub/i386/linuxbios/kernel.h: Likewise.
10109 * include/grub/i386/linuxbios/loader.h: Likewise.
10110 * include/grub/i386/linuxbios/memory.h: Likewise.
10111 * include/grub/i386/linuxbios/serial.h: Likewise.
10112 * include/grub/i386/linuxbios/time.h: Likewise.
10114 * kern/i386/linuxbios/init.c: Likewise.
10115 * kern/i386/linuxbios/startup.S: Likewise.
10116 * kern/i386/linuxbios/table.c: Likewise.
10118 2007-10-31 Marco Gerards <marco@gnu.org>
10120 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
10121 (ata_mod_SOURCES): New variable.
10122 (ata_mod_CFLAGS): Likewise.
10123 (ata_mod_LDFLAGS): Likewise.
10125 * disk/ata.c: New file.
10127 * include/grub/disk.h (grub_disk_dev_id): Add
10128 `GRUB_DISK_DEV_ATA_ID'.
10130 2007-10-31 Robert Millan <rmh@aybabtu.com>
10132 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
10133 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
10135 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
10136 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
10138 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
10141 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
10143 2007-10-27 Robert Millan <rmh@aybabtu.com>
10145 * include/grub/types.h (ULONG_MAX): Define macro.
10147 2007-10-22 Robert Millan <rmh@aybabtu.com>
10149 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
10151 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
10153 2007-10-22 Robert Millan <rmh@aybabtu.com>
10155 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
10156 (pkgdata_MODULES): Add `biosdisk.mod'.
10157 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
10160 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
10161 (grub_biosdisk_init): Replace with ...
10162 (GRUB_MOD_INIT(biosdisk)): ... this.
10163 (grub_biosdisk_fini): Replace with ...
10164 (GRUB_MOD_FINI(biosdisk)): ... this.
10166 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
10167 (grub_machine_init): Remove call to grub_biosdisk_init().
10168 (grub_machine_fini): Remove call to grub_machine_fini().
10170 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
10172 2007-10-22 Robert Millan <rmh@aybabtu.com>
10174 * include/grub/time.h: New file.
10175 * include/grub/i386/time.h: Likewise.
10176 * include/grub/powerpc/time.h: Likewise.
10177 * include/grub/sparc64/time.h: Likewise.
10179 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
10181 (KERNEL_MACHINE_TIME_HEADER): ... this.
10182 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
10184 (KERNEL_MACHINE_TIME_HEADER): ... this.
10185 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
10187 (KERNEL_MACHINE_TIME_HEADER): ... this.
10189 * kern/i386/efi/init.c: Include `<grub/time.h>'.
10190 (grub_millisleep): New function.
10191 * kern/i386/pc/init.c: Include `<grub/time.h>'.
10192 (grub_millisleep): New function.
10193 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
10194 Remove `grub/machine/time.h' include.
10195 (grub_millisleep): New function.
10196 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
10197 Remove `grub/machine/time.h' include.
10198 (grub_millisleep): New function.
10200 * include/grub/misc.h (grub_div_roundup): New function.
10202 * kern/misc.c: Include `<grub/time.h>'.
10203 (grub_millisleep_generic): New function.
10205 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
10207 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
10209 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
10210 `machine/time.h'. Add `time.h'.
10211 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
10213 2007-10-21 Robert Millan <rmh@aybabtu.com>
10215 * include/grub/misc.h (grub_max): New function.
10217 2007-10-21 Robert Millan <rmh@aybabtu.com>
10219 * util/misc.c (grub_util_info): Call fflush() before returning.
10221 2007-10-20 Robert Millan <rmh@aybabtu.com>
10223 * genmk.rb (Image): Copy `extra_flags' from here ...
10224 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
10226 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
10227 to `argc' and `args' arguments.
10229 2007-10-17 Robert Millan <rmh@aybabtu.com>
10231 * kern/i386/loader.S: New file.
10233 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
10234 * kern/i386/loader.S (grub_linux_prot_size)... to here.
10235 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
10236 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
10237 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
10238 * kern/i386/loader.S (grub_linux_real_addr)... to here.
10239 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
10240 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
10241 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
10242 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
10243 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
10244 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
10245 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
10246 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
10248 * kern/i386/realmode.S: New file.
10250 * kern/i386/pc/startup.S (protstack): Moved from here ...
10251 * kern/i386/realmode.S (protstack)... to here.
10252 * kern/i386/pc/startup.S (gdt): Moved from here ...
10253 * kern/i386/realmode.S (gdt)... to here.
10254 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
10255 * kern/i386/realmode.S (prot_to_real)... to here.
10257 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
10258 `kern/i386/realmode.S'.
10260 2007-10-17 Robert Millan <rmh@aybabtu.com>
10262 * include/grub/i386/loader.h: New file.
10264 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
10265 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
10266 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
10267 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
10268 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
10269 * include/grub/i386/loader.h (grub_linux_prot_size)
10270 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
10271 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
10272 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
10273 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
10275 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
10277 2007-10-15 Robert Millan <rmh@aybabtu.com>
10279 * normal/misc.c (grub_normal_print_device_info): Do not probe for
10280 filesystem when dev->disk is unset.
10281 Do probe for filesystem even when dev->disk->has_partitions is set.
10282 In case a filesystem is found, always report it.
10283 In case it isn't, if dev->disk->has_partitions is set, report that
10284 a partition table was found instead of reporting that no filesystem
10285 could be identified.
10287 2007-10-12 Robert Millan <rmh@aybabtu.com>
10289 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
10290 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
10292 * include/grub/types.h (grub_host_to_target16): New macro.
10293 (grub_host_to_target32): Likewise.
10294 (grub_host_to_target64): Likewise.
10295 (grub_target_to_host16): Likewise.
10296 (grub_target_to_host32): Likewise.
10297 (grub_target_to_host64): Likewise.
10299 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
10300 Renamed from to ...
10301 (GRUB_MOD_ALIGN): ...this. Update all users.
10303 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
10304 grub_host_to_target32.
10305 Replace grub_be_to_cpu32 with grub_target_to_host32.
10306 (load_modules): Likewise.
10307 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
10308 Replace grub_be_to_cpu32 with grub_target_to_host32.
10309 Replace grub_cpu_to_be16 with grub_host_to_target16.
10310 Replace grub_cpu_to_be32 grub_host_to_target32.
10312 2007-10-12 Robert Millan <rmh@aybabtu.com>
10314 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
10315 * util/elf/grub-mkimage.c: ... here.
10317 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
10318 `util/powerpc/ieee1275/grub-mkimage.c'.
10320 2007-10-07 Robert Millan <rmh@aybabtu.com>
10322 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
10323 and make it easier to figure out.
10324 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
10325 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
10326 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
10327 leave us with less than HEAP_MIN_SIZE total heap.
10328 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
10330 2007-10-03 Robert Millan <rmh@aybabtu.com>
10332 * include/grub/i386/io.h: New file.
10333 * commands/i386/pc/play.c (inb): Removed.
10335 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
10337 * term/i386/pc/serial.c (inb): Removed.
10339 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
10341 * term/i386/pc/vga.c (inb): Removed.
10343 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
10346 2007-10-02 Robert Millan <rmh@aybabtu.com>
10348 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
10349 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10350 Reported by Marcin Kurek.
10352 2007-09-07 Robert Millan <rmh@aybabtu.com>
10354 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
10355 SmartFirmware version updates (as released by Sven Luther), and avoid
10356 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
10357 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
10360 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
10362 From Hitoshi Ozeki:
10363 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
10364 when merging two regions.
10366 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
10368 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
10369 * normal/completion.c (grub_normal_do_completion): Likewise.
10370 Reported by Hitoshi Ozeki.
10372 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
10374 Do not use devices at boot in chainloading.
10376 * loader/i386/pc/chainloader.c (boot_drive): New variable.
10377 (boot_part_addr): Likewise.
10378 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
10379 with BOOT_DRIVE and BOOT_PART_ADDR.
10380 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
10381 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
10383 2007-08-29 Robert Millan <rmh@aybabtu.com>
10385 Patch from Simon Peter <dn.tlp@gmx.net>:
10386 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
10387 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
10388 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
10389 util/i386/pc/grub-setup.c_DEPENDENCIES.
10390 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
10391 util/grub-probe.c_DEPENDENCIES.
10392 * conf/powerpc-ieee1275.rmk: Likewise.
10394 2007-08-28 Robert Millan <rmh@aybabtu.com>
10396 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
10397 to tell grub-mkdevicemap how to name devices.
10398 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
10401 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
10402 util/i386/get_disk_name.c.
10403 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
10404 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
10405 util/ieee1275/get_disk_name.c.
10407 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
10409 * DISTLIST: Add util/i386/get_disk_name.c and
10410 util/ieee1275/get_disk_name.c.
10412 * util/grub-mkdevicemap.c: Replace device naming logic with
10413 grub_util_get_disk_name() calls.
10415 2007-08-20 Robert Millan <rmh@aybabtu.com>
10417 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
10418 (so that it works for both plural and singular quantities).
10420 2007-08-05 Robert Millan <rmh@aybabtu.com>
10422 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
10423 so that [xz] isn't taken into account when determining order.
10425 2007-08-02 Marco Gerards <marco@gnu.org>
10427 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
10428 `include/multiboot2.h', `include/grub/elfload.h',
10429 `include/multiboot.h', `include/grub/multiboot.h',
10430 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
10431 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
10432 `kern/elf.c', `loader/multiboot_loader.c',
10433 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
10434 `loader/i386/pc/multiboot2.c',
10435 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
10436 `util/i386/pc/grub-mkrescue.in'. Remove
10437 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
10438 `include/grub/i386/pc/util/biosdisk.h' and
10439 `include/grub/powerpc/ieee1275/multiboot.h'.
10441 2007-08-02 Bean <bean123ch@gmail.com>
10443 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
10444 (ntfs_mod_SOURCES): New variable.
10445 (ntfs_mod_CFLAGS): Likewise.
10446 (ntfs_mod_LDFLAGS): Likewise.
10448 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
10449 (grub_probe_SOURCES): Likewise.
10450 (grub_emu_SOURCES): Likewise.
10452 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
10453 (grub_emu_SOURCES): Likewise.
10455 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
10456 (grub_emu_SOURCES): Likewise.
10458 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
10460 * fs/ntfs.c: New file.
10462 2007-08-02 Bean <bean123ch@gmail.com>
10464 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
10466 * file.h (grub_file): Likewise.
10468 * fshelp.h (grub_fshelp_read_file): Likewise.
10470 * util/i386/pc/grub-setup.c (setup): Likewise.
10471 (save_first_sector): Likewise.
10472 (save_blocklists): Likewise.
10474 * fs/affs.c (grub_affs_read_file): Likewise.
10476 * fs/ext2.c (grub_ext2_read_file): Likewise.
10478 * fs/fat.c (grub_fat_read_data): Likewise.
10480 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
10482 * fs/hfs.c (grub_hfs_read_file): Likewise.
10484 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
10486 * fs/jfs.c (grub_jfs_read_file): Likewise.
10488 * fs/minix.c (grub_minix_read_file): Likewise.
10490 * fs/sfs.c (grub_sfs_read_file): Likewise.
10492 * fs/ufs.c (grub_ufs_read_file): Likewise.
10494 * fs/xfs.c (grub_xfs_read_file): Likewise.
10496 * command/blocklist.c (read_blocklist): Likewise.
10497 (print_blocklist): Likewise.
10499 2007-08-02 Marco Gerards <marco@gnu.org>
10501 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
10504 * disk/host.c: New file.
10506 * util/hostfs.c: Likewise.
10508 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
10509 return `GRUB_ERR_BAD_FS'.
10510 * fs/sfs.c (grub_sfs_mount): Likewise.
10511 * fs/xfs.c (grub_xfs_mount): Likewise.
10513 * include/grub/disk.h (enum grub_disk_dev_id): Add
10514 `GRUB_DISK_DEVICE_HOST_ID'.
10516 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
10518 2007-07-24 Jerone Young <jerone@gmail.com>
10520 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
10521 modules for compilation.
10522 * conf/powerpc-ieee1275.rmk: Likewise.
10524 * include/multiboot.h: Move multiboot definitions to one file. Rename
10525 many definitions to not get grub specific.
10526 * include/multiboot2.h: Create header with multiboot 2 definitions.
10527 * include/grub/multiboot.h: Header for grub specific function
10528 prototypes and definitions.
10529 * include/grub/multiboot2.h: Likewise.
10530 * include/grub/multiboot_loader.h: Likewise.
10531 * include/grub/i386/pc/multiboot.h: Removed.
10532 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
10534 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
10535 and 2 to allow for one multiboot and module commands.
10536 * loader/multiboot2.c: Add multiboot2 functionality.
10537 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
10538 and definition names.
10539 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
10541 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
10542 ieee1275 specific multiboot2 code.
10544 * kern/i386/pc/startup.S: Change headers and definition names for
10545 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
10547 2007-07-22 Robert Millan <rmh@aybabtu.com>
10549 * geninitheader.sh: Process file specified in first parameter rather
10550 than hardcoding grub_modules_init.lst.
10551 * geninit.sh: Likewise. Also, construct header name dynamically rather
10552 than hardcoding grub_modules_init.h.
10554 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
10555 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
10556 grub_probe_init.[ch] and grub_setup_init.[ch].
10558 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
10559 grub_modules_init.h with grub_emu_init.h.
10560 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
10561 grub_probe_init.[ch] files.
10562 * conf/i386-efi.rmk: Likewise.
10563 * conf/i386-pc.rmk: Likewise.
10564 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
10565 grub_setup_init.[ch] files.
10567 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
10568 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
10569 to initialize modules rather than a list of hardcoded functions.
10570 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
10571 grub_init_all() to initialize modules rather than a list of hardcoded
10574 2007-07-22 Robert Millan <rmh@aybabtu.com>
10576 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10577 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
10579 2007-07-22 Robert Millan <rmh@aybabtu.com>
10581 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
10582 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
10583 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
10584 flag when running on SmartFirmware.
10585 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
10586 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
10589 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10590 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
10591 rather than decreasing it.
10593 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
10594 there's not enough space to do it, fail in the same way as when it
10595 can't be done because there are no partitions.
10597 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
10598 when nvsetenv failed.
10600 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
10602 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
10603 because this rule is automatically generated.
10604 (grub-mkrescue): Removed for the same reason as above.
10606 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
10608 Migrate to GNU General Public License Version 3.
10610 * COPYING: Replaced with the plain text version of GPLv3.
10612 * config.guess: Updated from gnulib.
10613 * config.sub: Likewise.
10615 * geninit.sh: Output a GPLv3 copyright notice.
10616 * geninitheader.sh: Likewise.
10617 * genmodsrc.sh: Likewise.
10618 * gensymlist.sh.in: Likewise.
10620 * boot/i386/pc/boot.S: Upgraded to GPLv3.
10621 * boot/i386/pc/diskboot.S: Likewise.
10622 * boot/i386/pc/pxeboot.S: Likewise.
10623 * commands/blocklist.c: Likewise.
10624 * commands/boot.c: Likewise.
10625 * commands/cat.c: Likewise.
10626 * commands/cmp.c: Likewise.
10627 * commands/configfile.c: Likewise.
10628 * commands/echo.c: Likewise.
10629 * commands/help.c: Likewise.
10630 * commands/ls.c: Likewise.
10631 * commands/search.c: Likewise.
10632 * commands/terminal.c: Likewise.
10633 * commands/test.c: Likewise.
10634 * commands/videotest.c: Likewise.
10635 * commands/i386/cpuid.c: Likewise.
10636 * commands/i386/pc/halt.c: Likewise.
10637 * commands/i386/pc/play.c: Likewise.
10638 * commands/i386/pc/reboot.c: Likewise.
10639 * commands/i386/pc/vbeinfo.c: Likewise.
10640 * commands/i386/pc/vbetest.c: Likewise.
10641 * commands/ieee1275/halt.c: Likewise.
10642 * commands/ieee1275/reboot.c: Likewise.
10643 * commands/ieee1275/suspend.c: Likewise.
10644 * disk/loopback.c: Likewise.
10645 * disk/lvm.c: Likewise.
10646 * disk/raid.c: Likewise.
10647 * disk/efi/efidisk.c: Likewise.
10648 * disk/i386/pc/biosdisk.c: Likewise.
10649 * disk/ieee1275/ofdisk.c: Likewise.
10650 * font/manager.c: Likewise.
10651 * fs/affs.c: Likewise.
10652 * fs/ext2.c: Likewise.
10653 * fs/fat.c: Likewise.
10654 * fs/fshelp.c: Likewise.
10655 * fs/hfs.c: Likewise.
10656 * fs/hfsplus.c: Likewise.
10657 * fs/iso9660.c: Likewise.
10658 * fs/jfs.c: Likewise.
10659 * fs/minix.c: Likewise.
10660 * fs/sfs.c: Likewise.
10661 * fs/ufs.c: Likewise.
10662 * fs/xfs.c: Likewise.
10663 * hello/hello.c: Likewise.
10664 * include/grub/acorn_filecore.h: Likewise.
10665 * include/grub/arg.h: Likewise.
10666 * include/grub/bitmap.h: Likewise.
10667 * include/grub/boot.h: Likewise.
10668 * include/grub/cache.h: Likewise.
10669 * include/grub/device.h: Likewise.
10670 * include/grub/disk.h: Likewise.
10671 * include/grub/dl.h: Likewise.
10672 * include/grub/elfload.h: Likewise.
10673 * include/grub/env.h: Likewise.
10674 * include/grub/err.h: Likewise.
10675 * include/grub/file.h: Likewise.
10676 * include/grub/font.h: Likewise.
10677 * include/grub/fs.h: Likewise.
10678 * include/grub/fshelp.h: Likewise.
10679 * include/grub/gzio.h: Likewise.
10680 * include/grub/hfs.h: Likewise.
10681 * include/grub/kernel.h: Likewise.
10682 * include/grub/loader.h: Likewise.
10683 * include/grub/lvm.h: Likewise.
10684 * include/grub/misc.h: Likewise.
10685 * include/grub/mm.h: Likewise.
10686 * include/grub/net.h: Likewise.
10687 * include/grub/normal.h: Likewise.
10688 * include/grub/parser.h: Likewise.
10689 * include/grub/partition.h: Likewise.
10690 * include/grub/pc_partition.h: Likewise.
10691 * include/grub/raid.h: Likewise.
10692 * include/grub/rescue.h: Likewise.
10693 * include/grub/script.h: Likewise.
10694 * include/grub/setjmp.h: Likewise.
10695 * include/grub/symbol.h: Likewise.
10696 * include/grub/term.h: Likewise.
10697 * include/grub/terminfo.h: Likewise.
10698 * include/grub/tparm.h: Likewise.
10699 * include/grub/types.h: Likewise.
10700 * include/grub/video.h: Likewise.
10701 * include/grub/efi/api.h: Likewise.
10702 * include/grub/efi/chainloader.h: Likewise.
10703 * include/grub/efi/console.h: Likewise.
10704 * include/grub/efi/console_control.h: Likewise.
10705 * include/grub/efi/disk.h: Likewise.
10706 * include/grub/efi/efi.h: Likewise.
10707 * include/grub/efi/pe32.h: Likewise.
10708 * include/grub/efi/time.h: Likewise.
10709 * include/grub/i386/linux.h: Likewise.
10710 * include/grub/i386/setjmp.h: Likewise.
10711 * include/grub/i386/types.h: Likewise.
10712 * include/grub/i386/efi/kernel.h: Likewise.
10713 * include/grub/i386/efi/loader.h: Likewise.
10714 * include/grub/i386/efi/time.h: Likewise.
10715 * include/grub/i386/pc/biosdisk.h: Likewise.
10716 * include/grub/i386/pc/boot.h: Likewise.
10717 * include/grub/i386/pc/chainloader.h: Likewise.
10718 * include/grub/i386/pc/console.h: Likewise.
10719 * include/grub/i386/pc/init.h: Likewise.
10720 * include/grub/i386/pc/kernel.h: Likewise.
10721 * include/grub/i386/pc/loader.h: Likewise.
10722 * include/grub/i386/pc/memory.h: Likewise.
10723 * include/grub/i386/pc/multiboot.h: Likewise.
10724 * include/grub/i386/pc/serial.h: Likewise.
10725 * include/grub/i386/pc/time.h: Likewise.
10726 * include/grub/i386/pc/vbe.h: Likewise.
10727 * include/grub/i386/pc/vbeblit.h: Likewise.
10728 * include/grub/i386/pc/vbefill.h: Likewise.
10729 * include/grub/i386/pc/vbeutil.h: Likewise.
10730 * include/grub/i386/pc/vga.h: Likewise.
10731 * include/grub/ieee1275/ieee1275.h: Likewise.
10732 * include/grub/ieee1275/ofdisk.h: Likewise.
10733 * include/grub/powerpc/libgcc.h: Likewise.
10734 * include/grub/powerpc/setjmp.h: Likewise.
10735 * include/grub/powerpc/types.h: Likewise.
10736 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
10737 * include/grub/powerpc/ieee1275/console.h: Likewise.
10738 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
10739 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
10740 * include/grub/powerpc/ieee1275/loader.h: Likewise.
10741 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
10742 * include/grub/powerpc/ieee1275/time.h: Likewise.
10743 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
10744 * include/grub/sparc64/libgcc.h: Likewise.
10745 * include/grub/sparc64/setjmp.h: Likewise.
10746 * include/grub/sparc64/types.h: Likewise.
10747 * include/grub/sparc64/ieee1275/console.h: Likewise.
10748 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
10749 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
10750 * include/grub/sparc64/ieee1275/time.h: Likewise.
10751 * include/grub/util/biosdisk.h: Likewise.
10752 * include/grub/util/getroot.h: Likewise.
10753 * include/grub/util/lvm.h: Likewise.
10754 * include/grub/util/misc.h: Likewise.
10755 * include/grub/util/raid.h: Likewise.
10756 * include/grub/util/resolve.h: Likewise.
10757 * io/gzio.c: Likewise.
10758 * kern/device.c: Likewise.
10759 * kern/disk.c: Likewise.
10760 * kern/dl.c: Likewise.
10761 * kern/elf.c: Likewise.
10762 * kern/env.c: Likewise.
10763 * kern/err.c: Likewise.
10764 * kern/file.c: Likewise.
10765 * kern/fs.c: Likewise.
10766 * kern/loader.c: Likewise.
10767 * kern/main.c: Likewise.
10768 * kern/misc.c: Likewise.
10769 * kern/mm.c: Likewise.
10770 * kern/parser.c: Likewise.
10771 * kern/partition.c: Likewise.
10772 * kern/rescue.c: Likewise.
10773 * kern/term.c: Likewise.
10774 * kern/efi/efi.c: Likewise.
10775 * kern/efi/init.c: Likewise.
10776 * kern/efi/mm.c: Likewise.
10777 * kern/i386/dl.c: Likewise.
10778 * kern/i386/efi/init.c: Likewise.
10779 * kern/i386/efi/startup.S: Likewise.
10780 * kern/i386/pc/init.c: Likewise.
10781 * kern/i386/pc/lzo1x.S: Likewise.
10782 * kern/i386/pc/startup.S: Likewise.
10783 * kern/ieee1275/ieee1275.c: Likewise.
10784 * kern/powerpc/cache.S: Likewise.
10785 * kern/powerpc/dl.c: Likewise.
10786 * kern/powerpc/ieee1275/cmain.c: Likewise.
10787 * kern/powerpc/ieee1275/crt0.S: Likewise.
10788 * kern/powerpc/ieee1275/init.c: Likewise.
10789 * kern/powerpc/ieee1275/openfw.c: Likewise.
10790 * kern/sparc64/cache.S: Likewise.
10791 * kern/sparc64/dl.c: Likewise.
10792 * kern/sparc64/ieee1275/init.c: Likewise.
10793 * kern/sparc64/ieee1275/openfw.c: Likewise.
10794 * loader/efi/chainloader.c: Likewise.
10795 * loader/efi/chainloader_normal.c: Likewise.
10796 * loader/i386/efi/linux.c: Likewise.
10797 * loader/i386/efi/linux_normal.c: Likewise.
10798 * loader/i386/pc/chainloader.c: Likewise.
10799 * loader/i386/pc/chainloader_normal.c: Likewise.
10800 * loader/i386/pc/linux.c: Likewise.
10801 * loader/i386/pc/linux_normal.c: Likewise.
10802 * loader/i386/pc/multiboot.c: Likewise.
10803 * loader/i386/pc/multiboot_normal.c: Likewise.
10804 * loader/powerpc/ieee1275/linux.c: Likewise.
10805 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
10806 * normal/arg.c: Likewise.
10807 * normal/cmdline.c: Likewise.
10808 * normal/command.c: Likewise.
10809 * normal/completion.c: Likewise.
10810 * normal/execute.c: Likewise.
10811 * normal/function.c: Likewise.
10812 * normal/lexer.c: Likewise.
10813 * normal/main.c: Likewise.
10814 * normal/menu.c: Likewise.
10815 * normal/menu_entry.c: Likewise.
10816 * normal/misc.c: Likewise.
10817 * normal/parser.y: Likewise.
10818 * normal/script.c: Likewise.
10819 * normal/i386/setjmp.S: Likewise.
10820 * normal/powerpc/setjmp.S: Likewise.
10821 * normal/sparc64/setjmp.S: Likewise.
10822 * partmap/acorn.c: Likewise.
10823 * partmap/amiga.c: Likewise.
10824 * partmap/apple.c: Likewise.
10825 * partmap/gpt.c: Likewise.
10826 * partmap/pc.c: Likewise.
10827 * partmap/sun.c: Likewise.
10828 * term/gfxterm.c: Likewise.
10829 * term/terminfo.c: Likewise.
10830 * term/efi/console.c: Likewise.
10831 * term/i386/pc/console.c: Likewise.
10832 * term/i386/pc/serial.c: Likewise.
10833 * term/i386/pc/vesafb.c: Likewise.
10834 * term/i386/pc/vga.c: Likewise.
10835 * term/ieee1275/ofconsole.c: Likewise.
10836 * util/biosdisk.c: Likewise.
10837 * util/console.c: Likewise.
10838 * util/genmoddep.c: Likewise.
10839 * util/getroot.c: Likewise.
10840 * util/grub-emu.c: Likewise.
10841 * util/grub-mkdevicemap.c: Likewise.
10842 * util/grub-probe.c: Likewise.
10843 * util/lvm.c: Likewise.
10844 * util/misc.c: Likewise.
10845 * util/raid.c: Likewise.
10846 * util/resolve.c: Likewise.
10847 * util/update-grub.in: Likewise.
10848 * util/update-grub_lib.in: Likewise.
10849 * util/grub.d/00_header.in: Likewise.
10850 * util/grub.d/10_hurd.in: Likewise.
10851 * util/grub.d/10_linux.in: Likewise.
10852 * util/i386/efi/grub-install.in: Likewise.
10853 * util/i386/efi/grub-mkimage.c: Likewise.
10854 * util/i386/pc/grub-install.in: Likewise.
10855 * util/i386/pc/grub-mkimage.c: Likewise.
10856 * util/i386/pc/grub-mkrescue.in: Likewise.
10857 * util/i386/pc/grub-setup.c: Likewise.
10858 * util/i386/pc/misc.c: Likewise.
10859 * util/powerpc/ieee1275/grub-install.in: Likewise.
10860 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
10861 * util/powerpc/ieee1275/misc.c: Likewise.
10862 * video/bitmap.c: Likewise.
10863 * video/video.c: Likewise.
10864 * video/i386/pc/vbe.c: Likewise.
10865 * video/i386/pc/vbeblit.c: Likewise.
10866 * video/i386/pc/vbefill.c: Likewise.
10867 * video/i386/pc/vbeutil.c: Likewise.
10868 * video/readers/tga.c: Likewise.
10870 2007-07-02 Robert Millan <rmh@aybabtu.com>
10872 * conf/i386-efi.rmk: Replace obsolete reference to
10873 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
10874 with util/getroot.c.
10875 * conf/powerpc-ieee1275.rmk: Likewise.
10876 * conf/sparc64-ieee1275.rmk: Likewise.
10878 * util/grub-emu.c (main): Fix unchecked pointer handling.
10880 2007-07-02 Robert Millan <rmh@aybabtu.com>
10882 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
10883 invocation to fail, in order to support partition-less media.
10885 * util/i386/pc/grub-install.in: Likewise.
10887 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
10888 which fs or partmap modules are needed (akin to its sister scripts).
10890 Also use grub-probe to get rid of unportable /proc/mounts check.
10892 Print the same informational message that the other scripts do, before
10895 2007-06-23 Robert Millan <rmh@aybabtu.com>
10897 * util/update-grub_lib.in (font_path): New function. Determine whether
10898 a font file can be found and, if so, echo the GRUB path to it.
10900 * util/update-grub.in: Handle multiple terminals depending on user
10901 input, platform availability and font file presence. Propagate
10902 variables of our findings to /etc/grub.d/ children.
10904 * util/grub.d/00_header.in: Handle multiple terminals, based on
10905 environment setup by update-grub.
10907 2007-06-23 Robert Millan <rmh@aybabtu.com>
10909 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
10911 2007-06-21 Robert Millan <rmh@aybabtu.com>
10913 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
10914 indicate end of data section in kernel image.
10915 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
10916 GRUB_KERNEL_MACHINE_DATA_END.
10918 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
10920 * kern/i386/efi/startup.S: Likewise.
10922 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
10923 during image generation. Implement --prefix option to override this
10925 * util/i386/efi/grub-mkimage.c: Likewise.
10927 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
10928 code to make path relative to its root into a separate function.
10930 * util/i386/pc/grub-install.in: Use newly provided
10931 make_system_path_relative_to_its_root() to convert ${grubdir}, then
10932 pass the result to grub-install --prefix.
10934 2007-06-13 Robert Millan <rmh@aybabtu.com>
10936 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
10937 DEFAULT_DEVICE_MAP.
10938 * util/grub-emu.c: Use above definitions from misc.h instead of
10940 * util/grub-mkdevicemap.c: Likewise.
10941 * util/i386/pc/grub-setup.c: Likewise.
10942 * util/grub-probe.c: Likewise.
10943 (probe): Abort with grub_util_error() when either
10944 grub_guess_root_device or grub_util_get_grub_dev fails.
10946 2007-06-12 Robert Millan <rmh@aybabtu.com>
10948 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
10949 "pager" assignment.
10950 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
10952 * util/grub-probe.c (probe): Likewise for "drive_name".
10954 2007-06-11 Robert Millan <rmh@aybabtu.com>
10956 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
10957 not just the cdrom one.
10959 2007-06-11 Robert Millan <rmh@aybabtu.com>
10961 * util/i386/pc/grub-mkrescue.in: Add "set -e".
10962 Add --pkglibdir=DIR option to override pkglibdir.
10963 Mention --image-type=TYPE in help output.
10964 Fix --grub-mkimage (it was a no-op).
10965 Abort gracefully when no parameter is given.
10967 2007-06-11 Robert Millan <rmh@aybabtu.com>
10969 * util/i386/pc/grub-mkrescue.in: New file.
10970 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
10971 * Makefile.in: Handle bin_SCRIPTS.
10973 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
10975 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
10976 list of video modes.
10978 2007-06-06 Robert Millan <rmh@aybabtu.com>
10980 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
10981 file doesn't exist, or if it is in a filesystem grub can't read.
10983 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
10984 not abort if GRUB_DRIVE could not be defined. Rearrange generated
10985 header comment to fit in 80 columns when the variables are resolved.
10987 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
10988 could be identified by update-grub. Remove redundant check for
10989 unifont.pff existence (since convert_system_path_to_grub_path now
10992 2007-06-04 Robert Millan <rmh@aybabtu.com>
10994 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
10996 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
10998 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
11000 2007-06-04 Robert Millan <rmh@aybabtu.com>
11002 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
11004 * include/grub/partition.h: Declare grub_apple_partition_map_init and
11005 grub_apple_partition_map_fini.
11008 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
11009 to access >2 TiB disks).
11011 Print disk->total_sectors with %llu instead of %lu, since this
11012 variable is always 64-bit (prevents wrong disk size from being displayed
11013 on either >2 TiB disk or big-endian CPU).
11015 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
11016 into a generic case that supports all (sane) partition maps.
11018 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
11021 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
11022 and grub_apple_partition_map_fini() after that.
11024 2007-06-01 Robert Millan <rmh@aybabtu.com>
11026 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
11028 * util/grub.d/00_header.in: Only enable gfxterm when
11029 convert_system_path_to_grub_path() succeeds.
11031 2007-05-20 Robert Millan <rmh@aybabtu.com>
11033 * util/update-grub_lib.in: New file.
11034 * DISTLIST: Add update-grub_lib.in.
11035 * conf/common.rmk: Generate update-grub_lib and install it in
11037 * Makefile.in: Add install routine for $(lib_DATA).
11039 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
11040 function provided by update-grub_lib to support arbitrary paths of
11042 * util/update-grub.in: Use convert_system_path_to_grub_path() to
11043 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
11045 2007-05-19 Robert Millan <rmh@aybabtu.com>
11047 * commands/i386/cpuid.c: New module.
11048 * DISTLIST: Add it.
11049 * conf/i386-efi.rmk: Enable cpuid.mod.
11050 * conf/i386-pc.rmk: Likewise.
11052 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
11054 * kern/disk.c (grub_disk_read): Check return value of
11057 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
11059 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
11061 * disk/raid.c (grub_raid_open): Likewise.
11063 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
11065 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
11066 stack instead of on the heap.
11068 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
11069 before doing a read on it.
11071 * configure.ac: Only use -fno-stack-protector for the target
11074 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
11076 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
11077 __attribute_ ((unused)) to mode_type argument.
11079 * util/getroot.c (grub_guess_root_device): Fix #endif.
11081 * kern/misc.c (memcmp): Fix prototype.
11083 * include/grub/partition.h [GRUB_UTIL]
11084 (grub_gpt_partition_map_init): Add prototype.
11085 (grub_gpt_partition_map_fini): Likewise.
11087 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
11088 at the right place.
11090 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
11091 (grub_fat_read_data): Likewise.
11092 (grub_fat_find_dir): Likewise.
11094 * font/manager.c (find_glyph): Make table a const.
11095 (grub_font_get_glyph): Remove bitmap from if statement.
11097 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
11099 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
11100 code, first search for device in /dev/mapper, then in /dev.
11101 (grub_util_get_grub_dev): New function.
11102 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
11104 * util/grub-probe.c (probe): Remove check for RAID, call
11105 grub_util_get_grub_dev() instead of
11106 grub_util_biosdisk_get_grub_dev().
11107 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
11108 grub_util_biosdisk_get_grub_dev().
11109 * util/i386/pc/grub-setup.c (main): Likewise.
11111 2007-05-16 Robert Millan <rmh@aybabtu.com>
11113 * DISTLIST: Update for the latest changes.
11114 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
11115 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
11116 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
11117 grub/util/biosdisk.h.
11118 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
11119 grub/util/biosdisk.h.
11121 2007-05-16 Robert Millan <rmh@aybabtu.com>
11123 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
11125 2007-05-16 Robert Millan <rmh@aybabtu.com>
11127 * util/i386/efi/grub-install.in: New.
11128 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
11129 newly added grub-install.
11130 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
11132 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
11133 grub/util/biosdisk.h.
11134 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
11135 grub/util/biosdisk.h.
11137 2007-05-16 Robert Millan <rmh@aybabtu.com>
11139 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
11140 * include/grub/util/biosdisk.h: ... here.
11141 * util/i386/pc/biosdisk.c: Moved to ...
11142 * util/biosdisk.c: ... here.
11143 * util/i386/pc/getroot.c: Moved to ...
11144 * util/getroot.c: ... here.
11145 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
11146 * util/grub-mkdevicemap.c: ... here.
11147 * util/i386/pc/grub-probe.c: Moved to ...
11148 * util/grub-probe.c: ... here.
11150 2007-05-15 Robert Millan <rmh@aybabtu.com>
11152 * util/update-grub.in: Remove duplicated line in grub.cfg header
11155 2007-05-13 Robert Millan <rmh@aybabtu.com>
11157 * util/update-grub.in: Fix a few assumptions about the devices holding
11158 /, /boot and /boot/grub being the same.
11159 * util/grub.d/00_header.in: Likewise.
11160 * util/grub.d/10_hurd.in: Likewise.
11161 * util/grub.d/10_linux.in: Likewise.
11163 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
11164 patterns. Use that to define the `.old' suffix as older than `'.
11166 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
11168 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
11169 the grub.cfg header message.
11171 2007-05-11 Robert Millan <rmh@aybabtu.com>
11173 * util/update-grub.in: Create device.map if it doesn't already exist,
11174 before attempting to run grub-probe.
11175 Check for grub-probe and grub-mkdevicemap with the same code
11176 grub-install is using.
11179 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
11181 * Makefile.in: Add the datarootdir autoconf variable.
11183 2007-05-09 Robert Millan <rmh@aybabtu.com>
11185 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
11186 fail gracefully if dev->disk->partition == NULL.
11188 2007-05-07 Robert Millan <rmh@aybabtu.com>
11190 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
11191 determine partition map module.
11192 * util/i386/pc/grub-install.in: Use this feature to decide which
11193 partition module to load, instead of hardcoding pc and gpt.
11195 2007-05-07 Robert Millan <rmh@aybabtu.com>
11197 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
11198 source directory differs from build directory.
11200 2007-05-05 Robert Millan <rmh@aybabtu.com>
11202 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
11205 2007-05-05 Robert Millan <rmh@aybabtu.com>
11207 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
11209 2007-05-05 Robert Millan <rmh@aybabtu.com>
11211 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
11212 command-line arguments via ${GRUB_CMDLINE_LINUX}.
11214 2007-05-05 Robert Millan <rmh@aybabtu.com>
11216 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
11217 (grub_probe_SOURCES): Likewise.
11218 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
11219 GPT and initialize dos_part and bsd_part accordingly.
11220 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
11222 (main): Activate gpt module for use during partition identification,
11223 and deactivate it afterwards.
11224 * util/i386/pc/grub-install.in: Add gpt module to core.img.
11225 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
11226 partition identification, and deactivate it afterwards.
11228 2007-05-05 Robert Millan <rmh@aybabtu.com>
11230 * term/i386/pc/console.c (grub_console_fini): Call
11231 grub_term_set_current() before grub_term_unregister().
11233 2007-05-04 Robert Millan <rmh@aybabtu.com>
11235 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
11236 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
11237 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
11238 and update-grub_DATA.
11239 * conf/common.rmk: Build and install update-grub components.
11240 * conf/common.mk: Regenerate.
11241 * util/update-grub.in: New. Core of update-grub.
11242 * util/grub.d/00_header.in: New. Generates grub.cfg header.
11243 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
11244 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
11245 * util/grub.d/README: New. Document grub.d directory layout.
11247 2007-05-01 Robert Millan <rmh@aybabtu.com>
11249 * util/grub-emu.c: Move initialization functions
11250 grub_util_biosdisk_init() and grub_init_all() before
11251 grub_util_biosdisk_get_grub_dev(), which relies on them.
11253 2007-04-19 Robert Millan <rmh@aybabtu.com>
11255 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
11258 2007-04-18 Jerone Young <jerone@gmail.com>
11260 * kernel/elf.c: Add missing parenthesis for conditional statement
11263 2007-04-10 Jerone Young <jerone@gmail.com>
11265 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
11266 continue on and look for device node with real device name.
11268 2007-04-10 Jerone Young <jerone@gmail.com>
11270 * configure.ac: Add argument for autoconf to use transformation
11272 * Makefile.in: Add autoconf package transformation code.
11273 * util/i386/pc/grub-install.in: Likewise.
11274 * util/powerpc/ieee1275/grub-install.in: Likewise.
11276 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
11278 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
11279 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
11280 (EXT2_REVISION): Likewise.
11281 (EXT2_INODE_SIZE): Likewise.
11282 (struct grub_ext2_block_group): Added a missing member
11284 (grub_ext2_read_inode): Divide by the inode size in a superblock
11285 instead of 128 to obtain INODES_PER_BLOCK.
11286 Use the macro EXT2_INODE_SIZE instead of directly using
11287 SBLOCK->INODE_SIZE.
11289 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
11291 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
11292 superblock instead of the structure size to compute an
11293 offset. This fixes the problem that GRUB could not read a
11294 filesystem when inode size is different from 128-byte.
11296 2007-03-05 Marco Gerards <marco@gnu.org>
11298 * normal/main.c (read_config_file): When "menu" is not set, create
11299 an initial context.
11301 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
11303 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
11304 (HEAP_LIMIT): New macro.
11305 (grub_claim_heap): Claim memory up to `heaplimit'.
11307 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
11309 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
11310 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
11311 (_start): Likewise.
11312 (grub_arch_modules_addr): Return address after `_end'.
11313 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
11314 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
11315 (add_segments): Calculate `_end' from phdr size and location.
11316 (ALIGN_UP): Moved to ...
11317 * include/grub/misc.h: here.
11318 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
11320 (GRUB_IEEE1275_MODULE_BASE): Removed.
11322 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
11324 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
11327 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
11329 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
11331 (grub_elf64_load_hook_t): Likewise.
11332 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
11335 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
11337 * kern/mm.c: Update copyright.
11338 (grub_mm_debug): Correct syntax error.
11339 (grub_mm_dump_free): New function.
11340 (grub_debug_free): Call `grub_free'.
11341 * include/grub/mm.h: Update copyright.
11342 (grub_mm_dump_free): Add declaration.
11344 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
11346 * include/grub/ieee1275/ieee1275.h: Update copyright.
11347 * kern/powerpc/ieee1275/init.c: Likewise.
11348 * kern/powerpc/ieee1275/openfw.c: Likewise.
11350 * loader/powerpc/ieee1275/linux.c: Likewise.
11351 * include/grub/elfload.h: Likewise.
11352 * kern/elf.c: Likewise.
11353 (grub_elf32_load): Pass `base' and `size' parameters. Update all
11355 (grub_elf64_load): Likewise.
11356 (grub_elf32_load_segment): Move to a nested function.
11357 (grub_elf64_load_segment): Likewise.
11359 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
11361 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
11363 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
11364 (grub_heap_len): Likewise.
11365 (HEAP_SIZE): New macro.
11366 (grub_claim_heap): New function.
11367 (grub_machine_init): Don't claim heap directly. Call
11369 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
11370 (grub_available_iterate): New function.
11372 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
11374 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
11375 * configure.ac: Use it for testing the HOST and TARGET compilers.
11377 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
11379 * Makefile.in (enable_grub_emu): New variable.
11380 * configure.ac (--enable-grub-emu): New option.
11381 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
11382 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
11383 * conf/i386-pc.rmk: Likewise.
11384 * conf/powerpc-ieee1275.rmk: Likewise.
11385 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
11387 2006-12-12 Marco Gerards <marco@gnu.org>
11389 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
11391 * kern/env.c (grub_env_unset): Don't free the member `value' when
11392 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
11395 * normal/main.c (current_menu): Removed.
11396 (free_menu): Unset the `menu' environment variable.
11397 (grub_normal_menu_addentry): Make use of the environment variable
11398 `menu', instead of using the global `current_menu'. Allocate
11399 memory for the sourcecode of this entry.
11400 (read_config_file): New argument `nested', changed all callers.
11401 Only in the case of a new context, initialize a new menu. Set the
11402 `menu' environment variable.
11403 (grub_normal_execute): Don't set and unset the environment
11404 variable `menu' here anymore. Only free the menu when leaving the
11407 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
11410 2006-12-11 Marco Gerards <marco@gnu.org>
11412 * normal/menu_entry.c (run): Fix off by one bug so the last line
11413 is executed. Move the loader check to outside the loop.
11415 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
11417 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
11419 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
11421 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
11422 the number of sectors. Reported by Andrey Shuvikov
11423 <mr_hyro@yahoo.com>.
11425 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
11427 * kern/disk.c (grub_disk_read): When there is a read error, always
11428 try to read only the necessary data.
11430 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
11432 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
11434 [GRUB_UTIL] (grub_raid_fini): Likewise.
11435 [GRUB_UTIL] (grub_lvm_init): Likewise.
11436 [GRUB_UTIL] (grub_lvm_fini): Likewise.
11437 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
11438 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
11439 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
11440 and grub_raid_fini().
11442 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
11444 * include/grub/types.h (__unused): Rename to UNUSED.
11445 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
11446 (grub_elf64_size): Likewise.
11448 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
11450 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
11451 grub_error_push and grub_error_pop in the error-handling path.
11452 (grub_elf32_load_segment): Only call grub_file_read with non-zero
11455 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
11457 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
11458 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
11459 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11460 (kernel_elf_SOURCES): Likewise.
11461 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
11462 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
11463 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
11464 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
11465 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
11466 (elf_mod_SOURCES): New variable.
11467 (elf_mod_CFLAGS): Likewise.
11468 (elf_mod_LDFLAGS): Likewise.
11469 * include/grub/types.h (__unused): New macro.
11470 * include/grub/elfload.h: New file.
11471 * kern/elf.c: Likewise.
11472 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
11473 (ELF32_LOADMASK): New macro.
11474 (ELF64_LOADMASK): Likewise.
11475 (vmlinux): Removed.
11476 (grub_linux_load32): New function.
11477 (grub_linux_load64): Likewise.
11478 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
11479 Use grub_elf_t instead of grub_file_t.
11481 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
11483 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
11484 `catch_result' to struct set_color_args.
11486 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
11488 * normal/menu.c: Include grub/script.h.
11489 * normal/menu_entry.c: Likewise.
11490 * include/grub/normal.h: Do not include grub/script.h.
11492 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
11494 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
11496 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
11498 * kern/disk.c (grub_disk_open): Print debug messages when opening a
11500 (grub_disk_close): Print debug messages when closing a disk.
11501 (grub_disk_read): Print debug messages when disk read fails.
11502 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
11504 * kern/partition.c: Include misc.h.
11505 (grub_partition_iterate): Print debug messages when detecting
11508 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
11510 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
11512 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
11514 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
11516 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
11517 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
11519 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
11521 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
11522 instead of sizeof(lv). Patch by Michael Guntsche.
11524 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
11526 * disk/lvm.c: Rename VGS to VG_LIST.
11527 (grub_lvm_iterate): Change VGS->LV to VG-LV.
11528 (grub_lvm_open): Likewise.
11529 Thanks to Michael Guntsche for finding this bug.
11531 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
11533 * configure.ac (AC_INIT): Bumped to 1.95.
11535 2006-10-14 Robert Millan <rmh@aybabtu.com>
11537 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
11538 with "/dev/.static/dev/md".
11540 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
11542 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
11543 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
11544 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
11545 DRIVE_NAME are always freed.
11547 * util/i386/pc/biosdisk.c (make_device_name): Add one into
11548 DOS_PART, as a DOS partition is counted from one instead of zero
11549 now. Reported by Robert Millan.
11551 2006-10-14 Robert Millan <rmh@aybabtu.com>
11553 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
11554 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
11555 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
11556 string returned by grub_guess_root_device.
11557 * util/i386/pc/grub-setup.c: Likewise.
11558 * util/i386/pc/grub-probefs.c: Likewise.
11560 * util/i386/pc/grub-probefs.c: Rename to ...
11561 * util/i386/pc/grub-probe.c: ... this.
11562 * DISTLIST: Remove grub-probefs, add grub-probe.
11563 * conf/i386-efi.rmk: Likewise.
11564 * conf/i386-pc.rmk: Likewise.
11565 * util/i386/pc/grub-install.in: Likewise.
11567 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
11568 choose which information we want to print.
11570 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
11572 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
11573 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
11574 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
11575 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
11576 video/readers/tga.c and video/i386/pc/vbeutil.c.
11578 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
11580 Added support for RAID and LVM.
11582 * disk/lvm.c: New file.
11583 * disk/raid.c: Likewise.
11584 * include/grub/lvm.h: Likewise.
11585 * include/grub/raid.h: Likewise.
11586 * include/grub/util/lvm.h: Likewise.
11587 * include/grub/util/raid.h: Likewise.
11588 * util/lvm.c: Likewise.
11589 * util/raid.c: Likewise.
11591 * include/grub/disk.h (grub_disk_dev_id): Add
11592 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
11593 (grub_disk_get_size): New prototype.
11594 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
11595 returns a partition.
11596 (grub_disk_get_size): New function.
11598 * kern/i386/pc/init.c (make_install_device): Copy the prefix
11599 verbatim if grub_install_dos_part is -2.
11601 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
11604 * util/i386/pc/grub-setup.c (setup): New argument
11605 MUST_EMBED. Force embedding of GRUB when the argument is
11606 true. Close FILE before returning.
11607 (main): Add support for RAID and LVM.
11609 * conf/common.rmk: Add RAID and LVM modules.
11610 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
11612 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
11614 * kern/misc.c (grub_strstr): New function.
11615 * include/grub/misc.h (grub_strstr): New prototype.
11617 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
11619 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
11621 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
11623 * kern/misc.c (grub_strtoull): Guess the base only if not
11626 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
11628 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
11631 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
11633 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
11635 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
11636 Remove `flags' argument. All callers changed.
11637 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
11638 (IEEE1275_IHANDLE_INVALID): New variable.
11639 (IEEE1275_CELL_INVALID): New variable.
11640 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
11641 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
11642 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
11643 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
11644 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
11645 codes from Open Firmware. All callers updated.
11646 (grub_ieee1275_next_property): Directly return Open Firmware return
11648 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
11649 Standardize error checking from `grub_ieee1275_get_property'.
11650 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
11651 `devalias' to `aliases'. Correct comments. Consolidate error paths.
11653 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
11655 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
11656 `instance_to_package_args' to `instance_to_path_args'.
11658 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
11659 `grub_ieee1275_chosen'.
11661 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
11662 `grub_ieee1275_interpret'.
11664 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
11666 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
11668 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
11670 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
11671 (__cmpdi): Likewise.
11673 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
11674 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
11677 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
11679 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
11680 to type `grub_ssize_t'.
11681 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
11683 2006-09-22 Marco Gerards <marco@gnu.org>
11685 * normal/script.c (grub_script_create_cmdmenu): Skip leading
11688 2006-09-22 Marco Gerards <marco@gnu.org>
11690 * commands/echo.c: New file.
11692 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
11694 * conf/common.rmk (echo_mod_SOURCES): New variable.
11695 (echo_mod_CFLAGS): Likewise.
11696 (echo_mod_LDFLAGS): Likewise.
11698 2006-09-22 Marco Gerards <marco@gnu.org>
11700 * normal/main.c (get_line): Malloc memory instead of using
11701 preallocated memory. Removed the arguments `cmdline' and
11702 `max_len'. Updated all callers.
11704 2006-09-22 Marco Gerards <marco@gnu.org>
11706 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
11707 (normal_mod_DEPENDENCIES): Likewise.
11709 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
11710 (normal_mod_DEPENDENCIES): Likewise.
11712 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
11714 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
11716 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
11718 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
11719 (normal_mod_DEPENDENCIES): Likewise.
11720 * conf/i386-pc.mk: Regenerate.
11721 * conf/i386-efi.mk: Likewise
11722 * conf/common.mk: Likewise.
11723 * conf/powerpc-ieee1275.mk: Likewise.
11724 * conf/sparc64-ieee1275.mk: Likewise.
11726 2006-09-22 Robert Millan <rmh@aybabtu.com>
11728 Sync with i386 version.
11729 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
11730 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
11732 2006-09-21 Robert Millan <rmh@aybabtu.com>
11734 Import from GRUB Legacy (lib/device.c):
11735 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
11736 (init_device_map) [__linux__]: Add support for I2O devices.
11738 2006-09-14 Marco Gerards <marco@gnu.org>
11740 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
11743 2006-09-14 Robert Millan <rmh@aybabtu.com>
11745 * util/i386/pc/grub-install.in: Skip menu.lst when removing
11748 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
11750 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
11751 before adding it to device.map.
11753 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
11755 * genmk.rb: Let GCC generate dependencies the first time it
11756 compiles a file; using the -MD option.
11757 * conf/common.mk: Regenerate.
11758 * conf/i386-pc.mk: Likewise.
11759 * conf/i386-efi.mk: Likewise.
11760 * conf/powerpc-ieee1275.mk: Likewise.
11761 * conf/sparc64-ieee1275.mk: Likewise.
11763 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
11765 Move the prototypes of grub_setjmp and grub_longjmp to
11766 cpu/setjmp.h, so that each architecture may specify different
11769 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
11770 (grub_longjmp): Likewise.
11771 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
11772 (grub_longjmp): Likewise.
11773 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
11774 (grub_longjmp): Likewise.
11776 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
11777 [!GRUB_UTIL] (grub_longjmp): Removed.
11779 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
11781 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
11782 "color!" method does not return any value.
11784 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
11786 * include/grub/bitmap.h: New file.
11788 * include/grub/i386/pc/vbeutil.h: Likewise.
11790 * video/bitmap.c: Likewise.
11792 * video/readers/tga.c: Likewise.
11794 * video/i386/pc/vbeutil.c: Likewise.
11796 * commands/videotest.c: Code cleanup and updated to reflect to new
11799 * term/gfxterm.c: Likewise.
11801 * video/video.c: Likewise.
11803 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
11804 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
11805 (bitmap_mod_SOURCES): New entry.
11806 (bitmap_mod_CFLAGS): Likewise.
11807 (bitmap_mod_LDFLAGS): Likewise.
11808 (tga_mod_SOURCES): Likewise.
11809 (tga_mod_CFLAGS): Likewise.
11810 (tga_mod_LDFLAGS): Likewise.
11812 * include/grub/video.h (grub_video_blit_operators): New enum type.
11813 (grub_video_render_target): Changed as forward declaration and moved
11814 actual definition to be video driver specific.
11815 (grub_video_adapter.blit_bitmap): Added blitting operator.
11816 (grub_video_adapter.blit_render_target): Likewise.
11817 (grub_video_blit_bitmap): Likewise.
11818 (grub_video_blit_render_target): Likewise.
11820 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
11821 driver specific render target definition.
11822 (grub_video_vbe_map_rgba): Added driver internal helper.
11823 (grub_video_vbe_unmap_color): Updated to use
11824 grub_video_i386_vbeblit_info.
11825 (grub_video_vbe_get_video_ptr): Likewise.
11827 * include/grub/i386/pc/vbeblit.h
11828 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
11829 grub_video_i386_vbeblit_info.
11830 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
11831 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
11832 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
11833 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
11834 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
11835 (grub_video_i386_vbeblit_index_index): Likewise.
11836 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
11837 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
11838 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
11839 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
11841 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
11844 * video/i386/pc/vbeblit.c: Updated to reflect changes on
11845 include/grub/i386/pc/vbeblit.h.
11847 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
11848 Updated to use grub_video_i386_vbeblit_info.
11849 (grub_video_i386_vbefill_R8G8B8): Likewise.
11850 (grub_video_i386_vbefill_index): Likewise.
11851 (grub_video_i386_vbefill): Added generic filler.
11853 * video/i386/pc/vbefill.c: Updated to reflect changes on
11854 include/grub/i386/pc/vbefill.h.
11856 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
11857 grub_video_i386_vbeblit_info.
11858 (grub_video_vbe_unmap_color): Likewise.
11859 (grub_video_vbe_blit_glyph): Likewise.
11860 (grub_video_vbe_scroll): Likewise.
11861 (grub_video_vbe_draw_pixel): Removed function.
11862 (grub_video_vbe_get_pixel): Likewise.
11863 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
11864 updated code to use it.
11865 (common_blitter): Added common blitter for render target and bitmap.
11866 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
11867 (grub_video_vbe_blit_render_target): Likewise.
11869 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
11871 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
11872 is in text mode if there is no console control protocol instance
11875 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
11877 * include/grub/video.h: Code cleanup.
11879 * include/grub/i386/pc/vbe.h: Likewise.
11881 * video/i386/pc/vbe.c: Likewise.
11883 * video/i386/pc/vbeblit.c: Likewise.
11885 * video/i386/pc/vbefill.c: Likewise.
11887 * video/video.c: Likewise. Also added more comments.
11889 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
11891 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
11892 (struct grub_biosdisk_dap): Likewise.
11894 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
11895 linkage settings for all functions.
11897 2006-07-12 Marco Gerards <marco@gnu.org>
11899 * configure.ac (--enable-mm-debug): Fix typo.
11901 * genkernsyms.sh.in: Use proper quoting for `CC'.
11903 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
11905 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
11906 (normal_mod_ASFLAGS): Remove "-m32".
11908 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
11910 * util/misc.c: Include config.h.
11911 [!HAVE_MEMALIGN]: Do not include malloc.h.
11912 (grub_memalign): Use posix_memalign, if present. Then, use
11913 memalign, if present. Otherwise, emit an error.
11915 * util/grub-emu.c: Do not include malloc.h.
11917 * include/grub/util/misc.h: Include unistd.h. This is required for
11918 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
11919 D. Eades III <hde@foobar-qux.org>.
11921 * configure.ac (AC_GNU_SOURCE): Added.
11922 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
11925 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
11927 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
11928 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
11930 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
11932 * include/grub/types.h (grub_host_addr_t): Rename to
11933 grub_target_addr_t.
11934 (grub_host_off_t): Rename to grub_target_off_t.
11935 (grub_host_size_t): Rename to grub_target_size_t.
11936 (grub_host_ssize_t): Rename to grub_target_ssize_t.
11937 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
11939 * include/grub/kernel.h (struct grub_module_header): Change type
11940 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
11941 (grub_module_info): Likewise.
11943 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
11945 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
11946 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
11947 Velazquez <jesus.velazquez@gmail.com>.
11949 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
11951 Count partitions from 1 instead of 0 in the string representation
11952 of partitions. Still use 0-based internally.
11954 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
11955 (sun_partition_map_iterate): Use grub_partition_t instead of
11956 struct grub_partition *. Cast DESC->START_CYLINDER to
11957 grub_uint64_t after converting the endian.
11958 (sun_partition_map_probe): Subtract 1 for PARTNUM.
11959 (sun_partition_map_get_name): Add 1 to P->INDEX.
11961 * partmap/pc.c (grub_partition_parse): Subtract 1 for
11963 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
11965 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
11966 zero instead of one.
11967 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
11968 (gpt_partition_map_get_name): Add 1 into P->INDEX.
11970 * partmap/apple.c (apple_partition_map_iterate): Change the type
11971 of POS to unsigned.
11972 (apple_partition_map_probe): Subtract 1 for PARTNUM.
11973 (apple_partition_map_get_name): Add 1 into P->INDEX.
11975 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
11976 of POS to unsigned.
11977 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
11978 calculate the offset of a partition.
11979 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
11980 (amiga_partition_map_get_name): Add 1 into P->INDEX.
11982 * partmap/acorn.c (acorn_partition_map_find): Change the type of
11983 SECTOR to grub_disk_addr_t.
11984 (acorn_partition_map_iterate): Likewise.
11985 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
11986 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
11988 (acorn_partition_map_get_name): Add 1 into P->INDEX.
11990 * kern/i386/pc/init.c (make_install_device): Add 1 into
11991 GRUB_INSTALL_DOS_PART.
11993 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
11996 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
11998 Clean up the code to support 64-bit addressing in disks and
11999 files. This change is not enough for filesystems yet.
12001 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
12002 type of "start" to grub_uint64_t.
12003 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
12004 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
12005 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
12008 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
12009 to grub_disk_addr_t.
12011 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
12014 * partmap/pc.c (pc_partition_map_iterate): Likewise.
12016 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
12019 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
12021 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
12023 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
12025 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
12026 to grub_off_t, to detect an error from grub_file_seek.
12027 (grub_multiboot_load_elf32): Likewise.
12029 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
12030 maximum unsigned long value when an overflow is detected.
12031 (grub_strtoull): New function.
12032 (grub_divmod64): Likewise.
12033 (grub_lltoa): use grub_divmod64.
12035 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
12037 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
12038 the pointer to next character. Use grub_strtoull instead of
12040 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
12041 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
12044 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
12045 return value is signed.
12046 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
12047 test if OFFSET is less than zero, as OFFSET is unsigned now.
12049 * kern/disk.c (struct grub_disk_cache): Change the type of
12050 "sector" to grub_disk_addr_t.
12051 (grub_disk_cache_get_index): Change the type of SECTOR to
12052 grub_disk_addr_t. Calculate the hash with SECTOR casted to
12053 unsigned after shifting.
12054 (grub_disk_cache_invalidate): Change the type of SECTOR to
12056 (grub_disk_cache_unlock): Likewise.
12057 (grub_disk_cache_store): Likewise.
12058 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
12059 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
12060 grub_disk_addr_t and grub_uint64_t, respectively.
12061 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
12062 body, as the value of OFFSET is tweaked by
12063 grub_disk_check_range. Change the types of START_SECTOR, LEN and
12064 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
12066 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
12067 body, as the value of OFFSET is tweaked by
12068 grub_disk_check_range. Change the types of LEN and N to
12071 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
12072 and "saved_offset" to grub_off_t.
12073 (test_header): Cast BUF to char *.
12074 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
12076 (grub_gzio_read): Change the types of OFFSET and SIZE to
12077 grub_off_t and grub_size_t, respectively.
12079 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
12081 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
12082 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
12083 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
12084 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
12085 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
12087 * include/grub/types.h (grub_off_t): Unconditionally set to
12089 (grub_disk_addr_t): Changed to grub_uint64_t.
12091 * include/grub/partition.h (struct grub_partition): Change the
12092 types of "start", "len" and "offset" to grub_disk_addr_t,
12093 grub_uint64_t and grub_disk_addr_t, respectively.
12094 (grub_partition_get_start): Return grub_disk_addr_t.
12095 (grub_partition_get_len): Return grub_uint64_t.
12097 * include/grub/misc.h (grub_strtoull): New prototype.
12098 (grub_divmod64): Likewise.
12100 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
12101 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
12102 grub_off_t, respectively.
12103 All callers and references changed.
12105 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
12106 grub_size_t in "read".
12107 All callers and references changed.
12109 * include/grub/file.h (struct grub_file): Change the types of
12110 "offset" and "size" to grub_off_t and grub_off_t,
12111 respectively. Change the type of SECTOR to grub_disk_addr_t in
12113 (grub_file_read): Change the type of LEN to grub_size_t.
12114 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
12116 (grub_file_size): Return grub_off_t.
12117 (grub_file_tell): Likewise.
12118 All callers and references changed.
12120 * include/grub/disk.h (struct grub_disk_dev): Change the types of
12121 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
12123 (struct grub_disk): Change the type of "total_sectors" to
12124 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
12126 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
12127 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
12128 (grub_disk_write): Likewise.
12129 All callers and references changed.
12131 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
12132 char * for grub_strncmp to silence gcc.
12133 (grub_iso9660_mount): Likewise.
12134 (grub_iso9660_mount): Likewise.
12135 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
12137 (grub_iso9660_iterate_dir): Likewise.
12138 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
12140 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
12141 LEN to grub_disk_addr_t and grub_size_t, respectively.
12143 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
12145 * fs/jfs.c (grub_jfs_read_file): Likewise.
12147 * fs/minix.c (grub_jfs_read_file): Likewise.
12149 * fs/sfs.c (grub_jfs_read_file): Likewise.
12151 * fs/ufs.c (grub_jfs_read_file): Likewise.
12153 * fs/xfs.c (grub_jfs_read_file): Likewise.
12155 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
12156 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
12159 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
12160 BLKNR to -1 instead of returning GRUB_ERRNO.
12161 (grub_ext2_read_file): Change the types of SECTOR and
12162 LEN to grub_disk_addr_t and grub_size_t, respectively.
12164 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
12165 LEN to grub_disk_addr_t and grub_size_t, respectively.
12167 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
12170 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
12171 string. Do not cast SECTOR explicitly.
12173 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
12174 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
12175 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
12176 grub_disk_addr_t and grub_size_t, respectively. If the sector is
12177 over 2TB and LBA mode is not supported, raise an error.
12178 (get_safe_sectors): New function.
12179 (grub_biosdisk_read): Use get_safe_sectors.
12180 (grub_biosdisk_write): Likewise.
12182 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
12183 (grub_efidisk_write): Likewise.
12185 * disk/loopback.c (delete_loopback): Cosmetic changes.
12186 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
12188 (grub_loopback_open): Likewise.
12189 (grub_loopback_read): Likewise. Also, change the type of POS to
12190 grub_off_t, and fix the usage of grub_memset.
12192 * commands/i386/pc/play.c: Include grub/machine/time.h.
12194 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
12197 * commands/configfile.c: Include grub/env.h.
12199 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
12200 GRUB_ERRNO directly instead. Change the type of POS to
12201 grub_off_t. Follow the coding standard.
12203 * commands/blocklist.c: Include grub/partition.h.
12204 (grub_cmd_blocklist): Return an error if the underlying device is
12205 not a disk. Take the starting sector of a partition into account,
12206 if a partition is used.
12208 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
12210 (lba_mode): Support 64-bit addresses.
12211 (chs_mode): Likewise.
12212 (copy_buffer): Adapted to the new offsets of a length field and a
12214 (blocklist_default_start): Allocate 64-bit space.
12216 * boot/i386/pc/boot.S (force_lba): Removed.
12217 (boot_drive): Moved to under KERNEL_SECTOR.
12218 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
12220 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
12222 (lba_mode): Refactored to support a 64-bit address. More size
12224 (setup_sectors): Likewise.
12226 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
12228 * DISTLIST: Added include/grub/i386/linux.h. Removed
12229 include/grub/i386/pc/linux.h
12231 * configure.ac (AC_INIT): Bumped to 1.94.
12233 * config.guess: Updated from gnulib.
12234 * config.sub: Likewise.
12235 * install-sh: Likewise.
12236 * mkinstalldirs: Likewise.
12238 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
12240 * conf/common.rmk (grub_modules_init.lst): Depended on
12241 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
12244 * genmk.rb (PModule::rule): Reverted the previous change.
12246 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
12248 * conf/common.rmk (grub_modules_init.lst): Depends on
12249 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
12250 that the target does not exist before producing.
12251 (grub_modules_init.h): Remove the target before generating.
12252 (grub_emu_init.c): Likewise.
12254 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
12256 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
12258 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
12259 for the target-specific tests. Make sure that we also have the
12260 up-to-date target variables for those tests.
12262 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
12264 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
12265 (PModule::rule): Likewise.
12267 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
12269 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
12270 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
12271 target-specific flags should be prefixed.
12272 (PModule::rule): Likewise.
12274 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
12276 * configure.ac (CMP): Check if cmp is available explicitly.
12278 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
12280 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
12281 (target_cpu): New variable.
12282 (pkglibdir): Use target_cpu instead of host_cpu.
12284 * util/i386/pc/grub-install.in (host_cpu): Removed.
12285 (target_cpu): New variable.
12286 (pkglibdir): Use target_cpu instead of host_cpu.
12288 * util/genmoddep.c: Removed.
12290 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
12291 instead of GRUB_HOST_SIZEOF_VOID_P.
12292 * kern/dl.c: Likewise.
12294 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
12296 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
12297 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
12298 (GRUB_TARGET_SIZEOF_LONG): ... this.
12299 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
12300 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
12301 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
12303 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
12304 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
12305 (GRUB_TARGET_SIZEOF_LONG): ... this.
12306 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
12307 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
12308 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
12310 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
12311 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
12312 (GRUB_TARGET_SIZEOF_LONG): ... this.
12313 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
12314 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
12316 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
12317 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
12318 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
12319 instead of GRUB_HOST_SIZEOF_LONG.
12320 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
12321 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
12322 GRUB_CPU_WORDS_BIGENDIAN.
12323 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
12324 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
12327 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
12328 (genmoddep_SOURCES): Likewise.
12329 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
12330 (genmoddep_SOURCES): Likewise.
12331 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
12332 (genmoddep_SOURCES): Likewise.
12333 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
12335 (genmoddep_SOURCES): Likewise.
12337 * genmoddep.awk: New file.
12339 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
12340 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
12341 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
12342 (PModule::rule): Likewise.
12343 (Program::rule): Likewise.
12344 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
12345 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
12348 * configure.ac: Rewritten intensively to use host and target
12349 instead of build and host, respectively.
12351 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
12352 (host_cpu): Removed.
12353 (target_cpu): New variable.
12354 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
12355 (BUILD_CC): Removed.
12356 (BUILD_CFLAGS): Likewise.
12357 (BUILD_CPPFLAGS): Likewise.
12358 (TARGET_CC): New variable.
12359 (TARGET_CFLAGS): Likewise.
12360 (TARGET_CPPFLAGS): Likewise.
12361 (TARGET_LDFLAGS): Likewise.
12363 (include): Use target_cpu instead of host_cpu.
12364 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
12366 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
12368 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
12370 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
12371 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
12372 field 'false' to 'exec_on_false'.
12373 (grub_script_create_cmdif): Renamed argument names to reflect above
12376 * normal/execute.c (grub_script_execute_cmdif): Likewise.
12378 * normal/script.c (grub_script_create_cmdif): Likewise.
12380 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
12382 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
12384 (grub_hfsplus_btree_recptr): Likewise.
12385 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
12386 FILEBLOCK both to pass a block number and store next block
12388 (grub_hfsplus_read_block): Rewritten heavily to support an extent
12389 overflow file correctly. Specify errors appropriately, because
12390 fshelp expects that GRUB_ERRNO is set when fails. Reuse
12391 grub_hfsplus_btree_recptr to get the pointer to a found key.
12392 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
12395 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
12397 (_linux_mod_SOURCES): New variable.
12398 (_linux_mod_CFLAGS): Likewise.
12399 (_linux_mod_LDFLAGS): Likewise.
12400 (linux_mod_SOURCES): Likewise.
12401 (linux_mod_CFLAGS): Likewise.
12402 (linux_mod_LDFLAGS): Likewise.
12404 * DISTLIST: Added loader/i386/efi/linux.c,
12405 loader/i386/efi/linux_normal.c and
12406 include/grub/i386/efi/loader.h.
12408 * loader/i386/efi/linux.c: New file.
12409 * loader/i386/efi/linux_normal.c: Likewise.
12410 * include/grub/i386/efi/loader.h: Likewise.
12412 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
12414 * commands/blocklist.c: New file.
12416 * DISTLIST: Added commands/blocklist.c.
12418 * term/efi/console.c (grub_console_highlight_color): Use a lighter
12419 color for the background, and a darker color for the foreground.
12420 (grub_console_checkkey): Return READ_KEY.
12421 (grub_console_cls): Set the background to
12422 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
12424 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
12426 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
12427 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
12429 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
12432 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
12433 BG. The spec is wrong again.
12435 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
12437 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
12439 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
12440 commands/blocklist.c.
12441 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12443 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
12444 (blocklist_mod_SOURCES): New variable.
12445 (blocklist_mod_CFLAGS): Likewise.
12446 (blocklist_mod_LDFLAGS): Likewise.
12448 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
12450 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
12452 (lba_mode): Use %eax more intensively to reduce the code size.
12454 2006-05-20 Marco Gerards <marco@gnu.org>
12456 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
12458 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
12460 (script): Accept leading newlines.
12461 (newlines): New rule to describe 0 or more newlines.
12462 (commands): Accept `command' with trailing newline. Fixed the
12463 order in which arguments were passed to `grub_script_add_cmd'.
12464 Accept commands separated by newlines.
12465 (function): Changed to accept newlines.
12466 (menuentry) Rewritten.
12468 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
12469 front of the list, instead of to the end.
12471 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
12473 * util/i386/pc/grub-install.in (bindir): New variable.
12474 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
12475 Shaver <lbgwjl@gmail.com>.
12477 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
12479 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
12480 grub/machine/linux.h
12481 * loader/i386/pc/linux.c: Likewise.
12483 * include/grub/i386/pc/linux.h: Moved to ...
12484 * include/grub/i386/linux.h: ... here.
12486 * include/grub/i386/linux.h (struct linux_kernel_params): New
12489 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
12491 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
12493 (grub_video_vbe_blit_glyph): Likewise.
12494 (grub_video_vbe_blit_bitmap): Likewise.
12495 (grub_video_vbe_blit_render_target): Likewise.
12497 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
12499 * configure.ac (--with-platform): Properly quote the square
12502 2006-05-08 Marco Gerards <marco@gnu.org>
12504 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
12506 (kernel_elf_HEADERS): ...to this. Updated all users.
12507 (grubof_symlist.c): Renamed from this...
12508 (kernel_elf_symlist.c): ...to this. Updated all users.
12509 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
12510 (grubof_SOURCES): Renamed from this...
12511 (kernel_elf_SOURCES): ...to this.
12512 (grubof_HEADERS): Renamed from this...
12513 (kernel_elf_HEADERS): ...to this.
12514 (grubof_CFLAGS): Renamed from this...
12515 (kernel_elf_CFLAGS): ...to this.
12516 (grubof_ASFLAGS): Renamed from this...
12517 (kernel_elf_ASFLAGS): ...to this.
12518 (grubof_LDFLAGS): Renamed from this...
12519 (kernel_elf_LDFLAGS): ...to this.
12521 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
12523 (kernel_elf_HEADERS): ...to this. Updated all users.
12524 (grubof_symlist.c): Renamed from this...
12525 (kernel_elf_symlist.c): ...to this. Updated all users.
12526 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
12527 (grubof_SOURCES): Renamed from this...
12528 (kernel_elf_SOURCES): ...to this.
12529 (grubof_HEADERS): Renamed from this...
12530 (kernel_elf_HEADERS): ...to this.
12531 (grubof_CFLAGS): Renamed from this...
12532 (kernel_elf_CFLAGS): ...to this.
12533 (grubof_ASFLAGS): Renamed from this...
12534 (kernel_elf_ASFLAGS): ...to this.
12535 (grubof_LDFLAGS): Renamed from this...
12536 (kernel_elf_LDFLAGS): ...to this.
12538 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
12539 `kernel.elf' instead of `grubof'.
12541 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
12543 Add --with-platform to configure. Use pkglibdir instead of
12544 pkgdatadir. This is reported by Roger Leigh.
12546 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
12547 (host_vendor): Likewise.
12548 (host_os): Likewise.
12549 (pkgdatadir): Likewise.
12550 (platform): New variable.
12551 (pkglibdir): Likewise.
12552 Use PKGLIBDIR instead of PKGDATADIR.
12554 * util/i386/pc/grub-install.in (datadir): Removed.
12555 (host_vendor): Likewise.
12556 (host_os): Likewise.
12557 (pkgdatadir): Likewise.
12558 (platform): New variable.
12559 (pkglibdir): Likewise.
12560 Use PKGLIBDIR instead of PKGDATADIR.
12562 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
12563 instead of GRUB_DATADIR.
12565 * util/i386/pc/grub-mkimage.c (usage): Likewise.
12567 * util/i386/efi/grub-mkimage.c (usage): Likewise.
12570 * configure.ac (--with-platform): New option.
12571 Use PLATFORM instead of HOST_VENDOR to specify a platform.
12573 * Makefile.in: Include a makefile based on PLATFORM instead of
12575 (pkgdatadir): Not appended by the machine type.
12576 (pkglibdir): Appended by the machine type.
12577 (host_vendor): Removed.
12578 (platform): New variable.
12579 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
12580 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
12581 (uninstall): Likewise.
12583 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
12585 Use the environment context in the menu. Remove the commands
12586 "default" and "timeout", and use variables instead.
12588 * normal/menu.c: Include grub/env.h.
12589 (print_entry): Cast TITLE to silence gcc.
12590 (get_timeout): New function.
12591 (set_timeout): Likewise.
12592 (get_entry_number): Likewise.
12593 (run_menu): Use a default entry, a fallback entry and a timeout
12594 in the environment variables "default", "fallback" and
12595 "timeout". Also, tweak the default entry if it is not within the
12596 current menu entries.
12597 (grub_menu_run): Use a fallback entry in the environment variable
12600 * normal/main.c (read_config_file): Do not initialize
12601 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
12603 (grub_normal_execute): Use a data slot to store the menu.
12605 * include/grub/normal.h (struct grub_menu): Removed default_entry,
12606 fallback_entry and timeout.
12607 (struct grub_menu_list): Removed.
12608 (grub_menu_list_t): Likewise.
12609 (struct grub_context): Likewise.
12610 (grub_context_t): Likewise.
12611 (grub_context_get): Likewise.
12612 (grub_context_get_current_menu): Likewise.
12613 (grub_context_push_menu): Likewise.
12614 (grub_context_pop_menu): Likewise.
12615 (grub_default_init): Likewise.
12616 (grub_default_fini): Likewise.
12617 (grub_timeout_init): Likewise.
12618 (grub_timeout_fini): Likewise.
12620 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
12622 (normal_mod_SOURCES): Removed normal/context.c.
12624 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
12625 commands/default.c, commands/timeout.c and normal/context.c.
12626 (normal_mod_SOURCES): Removed normal/context.c.
12628 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
12629 commands/timeout.c and normal/context.c.
12630 (normal_mod_SOURCES): Removed normal/context.c.
12632 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
12633 commands/default.c, commands/timeout.c and normal/context.c.
12634 (normal_mod_SOURCES): Removed normal/context.c.
12636 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
12638 (default_mod_SOURCES): Removed.
12639 (default_mod_CFLAGS): Likewise.
12640 (default_mod_LDFLAGS): Likewise.
12641 (timeout_mod_SOURCES): Removed.
12642 (timeout_mod_CFLAGS): Likewise.
12643 (timeout_mod_LDFLAGS): Likewise.
12645 * DISTLIST: Removed commands/default.c, commands/timeout.c and
12648 * commands/default.c: Removed.
12649 * commands/timeout.c: Likewise.
12650 * normal/context.c: Likewise.
12652 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
12654 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
12656 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
12658 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
12659 "next" to "prev" for readability.
12660 (struct grub_env_sorted_var): New struct.
12661 (grub_env_context): Renamed to ...
12662 (initial_context): ... this.
12663 (grub_env_var_context): Renamed to ...
12664 (current_context): ... this.
12665 (grub_env_find): Look only at CURRENT_CONTEXT.
12666 (grub_env_context_open): Rewritten to copy exported variables from
12668 (grub_env_context_close): Rewritten according to the new
12669 scheme. Also, add an assertion to prevent the initial context from
12671 (grub_env_insert): Removed the code for the sorted list.
12672 (grub_env_remove): Likewise.
12673 (grub_env_export): Simply mark the variable with
12674 GRUB_ENV_VAR_GLOBAL.
12675 (grub_env_set): A cosmetic change for naming consistency.
12676 (grub_env_get): Likewise.
12677 (grub_env_unset): Likewise.
12678 (grub_env_iterate): Rewritten to sort variables within this
12680 (grub_register_variable_hook): Fixed for naming consistency. Call
12681 grub_env_find again, only if NAME is not found at the first time.
12682 (mangle_data_slot_name): New function.
12683 (grub_env_set_data_slot): Likewise.
12684 (grub_env_get_data_slot): Likewise.
12685 (grub_env_unset_data_slot): Likewise.
12687 * include/grub/env.h (grub_env_var_type): New enum.
12688 (GRUB_ENV_VAR_LOCAL): New constant.
12689 (GRUB_ENV_VAR_GLOBAL): Likewise.
12690 (GRUB_ENV_VAR_DATA): Likewise.
12691 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
12693 (grub_env_set): Replace VAR with NAME for consistency.
12694 (grub_register_variable_hook): Likewise.
12695 (grub_env_export): Specify the name of the argument.
12696 (grub_env_set_data_slot): New prototype.
12697 (grub_env_get_data_slot): Likewise.
12698 (grub_env_unset_data_slot): Likewise.
12700 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
12702 Extend the loader so that GRUB can accept a loader which comes
12703 back to GRUB when a loaded image exits. Also, this change adds
12704 support for a chainloader on EFI.
12706 * term/efi/console.c: Include grub/misc.h.
12707 (grub_console_checkkey): Display a scan code on the top for
12708 debugging. This will be removed once the EFI port gets stable.
12709 Correct the scan code mapping.
12711 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
12712 allocate memory from larger regions, in order to reduce the number
12713 of allocated regions. Otherwise, the MacOSX loader panics.
12714 (filter_memory_map): Avoid less than 1MB for compatibility with
12716 (add_memory_regions): Allocate from the tail of a region, if
12717 possible, to avoid allocating a region near to 1MB, for the MacOSX
12720 * kern/efi/init.c (grub_efi_set_prefix): Specify
12721 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
12723 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
12724 argument IMAGE_HANDLE and specify it to get a loaded image.
12725 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
12726 grub_efi_get_loaded_image.
12727 (grub_efi_get_filename): Divide the length by the size of
12729 (grub_efi_get_device_path): New function.
12730 (grub_efi_print_device_path): Print End Device Path nodes. Divide
12731 the length by the size of grub_efi_char16_t for a file path device
12734 * kern/loader.c (grub_loader_noreturn): New variable.
12735 (grub_loader_set): Accept a new argument NORETURN. Set
12736 GRUB_LOADER_NORETURN to NORETURN.
12737 All callers changed.
12738 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
12741 * include/grub/efi/efi.h (grub_efi_get_device_path): New
12743 (grub_efi_get_loaded_image): Take an argument to specify an image
12746 * include/grub/loader.h (grub_loader_set): Added one more argument
12749 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
12750 instead of grub_efi_open_protocol.
12751 (grub_efidisk_get_device_name): Likewise.
12752 (grub_efidisk_close): Print a newline.
12753 (grub_efidisk_get_device_handle): Fixed to use
12754 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
12755 GRUB_EFI_DEVICE_PATH_TYPE.
12757 * disk/efi/efidisk.c (device_path_guid): Moved to ...
12758 * kern/efi/efi.c (device_path_guid): ... here.
12760 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
12762 (kernel_mod_HEADERS): Added efi/disk.h.
12763 (_chain_mod_SOURCES): New variable.
12764 (_chain_mod_CFLAGS): Likewise.
12765 (_chain_mod_LDFLAGS): Likewise.
12766 (chain_mod_SOURCES): Likewise.
12767 (chain_mod_CFLAGS): Likewise.
12768 (chain_mod_LDFLAGS): Likewise.
12770 * DISTLIST: Added include/grub/efi/chainloader.h,
12771 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
12773 * include/grub/efi/chainloader.h: New file.
12774 * loader/efi/chainloader.c: Likewise.
12775 * loader/efi/chainloader_normal.c: Likewise.
12777 2006-04-30 Marco Gerards <marco@gnu.org>
12779 * commands/configfile.c (grub_cmd_source): New function.
12780 (GRUB_MOD_INIT): Register the commands `source' and `.'.
12781 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
12783 2006-04-30 Marco Gerards <marco@gnu.org>
12785 * normal/execute.c (grub_script_execute_cmd): Change the return
12786 type to `grub_err_t'. Correctly return the error.
12787 (grub_script_execute_cmdline): In case a command line is not a
12788 command or a function, try to interpret it as an assignment.
12790 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
12792 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
12793 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
12794 skip a node whose name is obviously invalid as UTF-16,
12795 i.e. contains a NUL character. Stop the iteration when the last
12796 directory entry is found. Instead of using the return value of
12797 grub_hfsplus_btree_iterate_node, store the value in RET and use
12798 it, because the iterator can be stopped by the last directory
12801 2006-04-30 Marco Gerards <marco@gnu.org>
12803 * include/grub/env.h (grub_env_export): New prototype. Reported
12804 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
12806 2006-04-30 Marco Gerards <marco@gnu.org>
12808 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
12809 size of the extents in a catalog file record.
12811 2006-04-29 Marco Gerards <marco@gnu.org>
12813 * commands/configfile.c (grub_cmd_configfile): Execute the
12814 configfile within its own context.
12816 * include/grub/env.h (grub_env_context_open): New prototype.
12817 (grub_env_context_close): Likewise.
12819 * kern/env.c (grub_env): Removed.
12820 (grub_env_sorted): Likewise.
12821 (grub_env_context): New variable.
12822 (grub_env_var_context): Likewise.
12823 (grub_env_find): Search both the active context and the global
12825 (grub_env_context_open): New function.
12826 (grub_env_context_close): Likewise.
12827 (grub_env_insert): Likewise.
12828 (grub_env_remove): Likewise.
12829 (grub_env_export): Likewise.
12830 (grub_env_set): Changed to use helper functions to avoid code
12832 (grub_env_iterate): Rewritten so both the current context and the
12833 global context are being used.
12835 * normal/command.c (export_command): New function.
12836 (grub_command_init): Register the `export' function.
12838 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
12840 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
12841 explicitly to suppress gcc's warnings.
12842 * fs/fat.c (grub_fat_find_dir): Likewise.
12843 (grub_fat_label): Likewise.
12844 * fs/xfs.c (grub_xfs_read_inode): Likewise.
12845 (grub_xfs_mount): Likewise.
12846 (grub_xfs_label): Likewise.
12847 * fs/affs.c (grub_affs_mount): Likewise.
12848 (grub_affs_label): Likewise.
12849 (grub_affs_iterate_dir): Likewise.
12850 * fs/sfs.c (grub_sfs_mount): Likewise.
12851 (grub_sfs_iterate_dir): Likewise.
12852 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
12853 * fs/hfs.c (grub_hfs_mount): Likewise.
12854 (grub_hfs_cmp_catkeys): Likewise.
12855 (grub_hfs_find_dir): Likewise.
12856 (grub_hfs_dir): Likewise.
12857 (grub_hfs_label): Likewise.
12858 * fs/jfs.c (grub_jfs_mount): Likewise.
12859 (grub_jfs_opendir): Likewise.
12860 (grub_jfs_getent): Likewise.
12861 (grub_jfs_lookup_symlink): Likewise.
12862 (grub_jfs_label): Likewise.
12863 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
12864 (grub_hfsplus_iterate_dir): Likewise.
12865 (grub_hfsplus_btree_iterate_node): Made static.
12867 * util/grub-emu.c (prefix): New variable.
12868 (grub_machine_set_prefix): New function.
12869 (main): Do not set the environment variable "prefix" here. Only
12870 set PREFIX, which is used later by grub_machine_set_prefix.
12872 * include/grub/video.h: Do not include grub/symbol.h.
12873 (grub_video_register): Not exported. This symbol is not defined in
12875 (grub_video_unregister): Likewise.
12876 (grub_video_iterate): Likewise.
12877 (grub_video_setup): Likewise.
12878 (grub_video_restore): Likewise.
12879 (grub_video_get_info): Likewise.
12880 (grub_video_get_blit_format): Likewise.
12881 (grub_video_set_palette): Likewise.
12882 (grub_video_get_palette): Likewise.
12883 (grub_video_set_viewport): Likewise.
12884 (grub_video_get_viewport): Likewise.
12885 (grub_video_map_color): Likewise.
12886 (grub_video_map_rgb): Likewise.
12887 (grub_video_map_rgba): Likewise.
12888 (grub_video_fill_rect): Likewise.
12889 (grub_video_blit_glyph): Likewise.
12890 (grub_video_blit_bitmap): Likewise.
12891 (grub_video_blit_render_target): Likewise.
12892 (grub_video_scroll): Likewise.
12893 (grub_video_swap_buffers): Likewise.
12894 (grub_video_create_render_target): Likewise.
12895 (grub_video_delete_render_target): Likewise.
12896 (grub_video_set_active_render_target): Likewise.
12898 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
12900 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
12902 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
12903 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
12904 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
12905 instead of $(srcdir)/genkernsyms.sh.
12907 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
12908 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
12909 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
12910 instead of $(srcdir)/genkernsyms.sh.
12912 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
12913 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
12914 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
12915 instead of $(srcdir)/genkernsyms.sh.
12917 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
12918 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
12919 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
12920 instead of $(srcdir)/genkernsyms.sh.
12922 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
12925 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
12927 (gensymlist.sh): New target.
12928 (genkernsyms.sh): Likewise.
12930 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
12931 genkernsyms.sh.in and gensymlist.sh.in.
12933 * genkernsyms.sh: Removed.
12934 * gensymlist.sh: Likewise.
12936 * genkernsyms.sh.in: New file.
12937 * gensymlist.sh.in: Likewise.
12939 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
12941 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
12942 clobber "prefix", since we may have already set it manually.
12944 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
12946 * kern/misc.c (abort): New alias for grub_abort.
12948 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
12950 A new machine-specific function "grub_machine_set_prefix" is
12951 defined. This is called after loading modules, so that a prefix
12952 initialization can use modules. Also, this change adds an
12953 intensive debugging feature for the memory manager via the
12954 configure option "--enable-mm-debug".
12956 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
12959 * kern/sparc64/ieee1275/init.c (abort): Removed.
12960 (grub_stop): Likewise.
12961 (grub_exit): New function.
12962 (grub_set_prefix): Renamed to ...
12963 (grub_machine_set_prefix): ... this.
12964 (grub_machine_init): Do not call grub_set_prefix.
12966 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
12967 (grub_machine_set_prefix): ... this.
12968 (grub_machine_init): Do not call grub_set_prefix.
12970 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
12971 (grub_machine_init): Do not set the prefix here.
12973 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
12975 * kern/efi/init.c: Include grub/mm.h.
12976 (grub_efi_set_prefix): New function.
12978 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
12979 (grub_efi_get_filename): New function.
12980 (grub_print_device_path): Renamed to ...
12981 (grub_efi_print_device_path): ... this.
12983 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
12984 [MM_DEBUG] (grub_realloc): Likewise.
12985 [MM_DEBUG] (grub_free): Likewise.
12986 [MM_DEBUG] (grub_memalign): Likewise.
12987 [MM_DEBUG] (grub_mm_debug): New variable.
12988 [MM_DEBUG] (grub_debug_malloc): New function.
12989 [MM_DEBUG] (grub_debug_free): New function.
12990 [MM_DEBUG] (grub_debug_realloc): New function.
12991 [MM_DEBUG] (grub_debug_memalign): New function.
12993 * kern/misc.c (grub_abort): Print a newline to distinguish
12996 * kern/main.c (grub_main): Call grub_machine_set_prefix and
12997 grub_set_root_dev after loading modules. This is necessary when
12998 setting a prefix depends on modules.
13000 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
13001 (grub_efi_print_device_path): ... this.
13002 (grub_efi_get_filename): New prototype.
13003 (grub_efi_set_prefix): Likewise.
13005 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
13007 (grub_efidisk_get_device_handle): New prototype.
13008 (grub_efidisk_get_device_name): Likewise.
13010 * include/grub/mm.h: Include config.h.
13011 (MM_DEBUG): Removed.
13012 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
13013 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
13014 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
13015 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
13016 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
13017 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
13018 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
13019 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
13020 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
13022 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
13024 * disk/efi/efidisk.c: Include grub/partition.h.
13025 (iterate_child_devices): New function.
13026 (add_device): First, compare only last device path nodes, so that
13027 devices are sorted by the types.
13028 (grub_efidisk_get_device_handle): New function.
13029 (grub_efidisk_get_device_name): Likewise.
13031 * configure.ac (--enable-mm-debug): New option to enable the
13032 memory manager debugging feature. This makes the binary much
13033 bigger, so is disabled by default.
13035 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
13037 Use grub_abort instead of grub_stop, and grub_exit must be
13038 define in each architecture now. Also, this change adds support
13041 * util/i386/pc/grub-probefs.c: Include grub/term.h.
13042 (grub_getkey): New function.
13043 (grub_term_get_current): Likewise.
13045 * util/i386/pc/grub-setup.c: Include grub/term.h.
13046 (grub_getkey): New function.
13047 (grub_term_get_current): Likewise.
13049 * util/misc.c (grub_stop): Renamed to ...
13050 (grub_exit): ... this.
13052 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
13053 (grub_exit): ... this.
13054 (grub_machine_init): Use grub_abort instead of abort.
13055 (grub_stop): Removed.
13057 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
13060 * kern/i386/pc/startup.S (grub_exit): New function.
13061 (cold_reboot): New label.
13063 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
13064 (grub_efi_init): Call grub_efidisk_init.
13065 (grub_efi_fini): Call grub_efidisk_fini.
13067 * kern/efi/efi.c: Include grub/mm.h.
13068 (grub_efi_console_control_guid): Renamed to ...
13069 (console_control_guid): ... this.
13070 (grub_efi_loaded_image_guid): Renamed to ...
13071 (loaded_image_guid): ... this.
13072 (grub_efi_locate_handle): New function.
13073 (grub_efi_open_protocol): Likewise.
13074 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
13075 GRUB_EFI_CONSOLE_CONTROL_GUID.
13076 (grub_efi_exit): Removed.
13077 (grub_stop): Likewise.
13078 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
13079 (grub_exit): New function.
13080 (grub_print_device_path): Likewise.
13082 * kern/rescue.c (grub_rescue_cmd_exit): New function.
13083 (grub_enter_rescue_mode): Register "exit".
13085 * kern/misc.c (grub_real_dprintf): A cosmetic change.
13086 (grub_abort): New function.
13088 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
13090 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
13092 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
13094 * include/grub/efi/efi.h (grub_efi_exit): Removed.
13095 (grub_print_device_path): New prototype.
13096 (grub_efi_locate_handle): Likewise.
13097 (grub_efi_open_protocol): Likewise.
13099 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
13100 * disk/efi/efidisk.c: Likewise.
13102 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
13104 * include/grub/efi/console_control.h
13105 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
13107 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
13108 last 8 bytes as an array.
13109 (GRUB_EFI_DISK_IO_GUID): New macro.
13110 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
13111 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
13112 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
13114 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
13115 (struct grub_efi_device_path): Rename the member "sub_type" to
13117 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
13118 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
13119 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
13120 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
13121 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
13122 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
13123 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
13124 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
13125 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
13126 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
13127 (struct grub_efi_pci_device_path): New structure.
13128 (grub_efi_pci_device_path_t): New type.
13129 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
13130 (struct grub_efi_pccard_device_path): New structure.
13131 (grub_efi_pccard_device_path_t): New type.
13132 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
13133 (struct grub_efi_memory_mapped_device_path): New structure.
13134 (grub_efi_memory_mapped_device_path_t): New type.
13135 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
13136 (struct grub_efi_vendor_device_path): New structure.
13137 (grub_efi_vendor_device_path_t): New type.
13138 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
13139 (struct grub_efi_controller_device_path): New structure.
13140 (grub_efi_controller_device_path_t): New type.
13141 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
13142 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
13143 (struct grub_efi_acpi_device_path): New structure.
13144 (grub_efi_acpi_device_path_t): New type.
13145 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
13146 (struct grub_efi_expanded_acpi_device_path): New structure.
13147 (grub_efi_expanded_acpi_device_path_t): New type.
13148 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
13149 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
13150 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
13151 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
13152 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
13153 (struct grub_efi_atapi_device_path): New structure.
13154 (grub_efi_atapi_device_path_t): New type.
13155 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
13156 (struct grub_efi_fibre_channel_device_path): New structure.
13157 (grub_efi_fibre_channel_device_path_t): New type.
13158 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
13159 (struct grub_efi_1394_device_path): New structure.
13160 (grub_efi_1394_device_path_t): New type.
13161 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
13162 (struct grub_efi_usb_device_path): New structure.
13163 (grub_efi_usb_device_path_t): New type.
13164 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
13165 (struct grub_efi_usb_class_device_path): New structure.
13166 (grub_efi_usb_class_device_path_t): New type.
13167 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
13168 (struct grub_efi_i2o_device_path): New structure.
13169 (grub_efi_i2o_device_path_t): New type.
13170 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
13171 (struct grub_efi_mac_address_device_path): New structure.
13172 (grub_efi_mac_address_device_path_t): New type.
13173 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
13174 (struct grub_efi_ipv4_device_path): New structure.
13175 (grub_efi_ipv4_device_path_t): New type.
13176 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
13177 (struct grub_efi_ipv6_device_path): New structure.
13178 (grub_efi_ipv6_device_path_t): New type.
13179 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
13180 (struct grub_efi_infiniband_device_path): New structure.
13181 (grub_efi_infiniband_device_path_t): New type.
13182 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
13183 (struct grub_efi_uart_device_path): New structure.
13184 (grub_efi_uart_device_path_t): New type.
13185 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
13186 (struct grub_efi_vendor_messaging_device_path): New structure.
13187 (grub_efi_vendor_messaging_device_path_t): New type.
13188 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
13189 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
13190 (struct grub_efi_hard_drive_device_path): New structure.
13191 (grub_efi_hard_drive_device_path_t): New type.
13192 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
13193 (struct grub_efi_cdrom_device_path): New structure.
13194 (grub_efi_cdrom_device_path_t): New type.
13195 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
13196 (struct grub_efi_vendor_media_device_path): New structure.
13197 (grub_efi_vendor_media_device_path_t): New type.
13198 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
13199 (struct grub_efi_file_path_device_path): New structure.
13200 (grub_efi_file_path_device_path_t): New type.
13201 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
13202 (struct grub_efi_protocol_device_path): New structure.
13203 (grub_efi_protocol_device_path_t): New type.
13204 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
13205 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
13206 (struct grub_efi_bios_device_path): New structure.
13207 (grub_efi_bios_device_path_t): New type.
13208 (struct grub_efi_disk_io): New structure.
13209 (grub_efi_disk_io_t): New type.
13210 (struct grub_efi_block_io_media): New structure.
13211 (grub_efi_block_io_media_t): New type.
13212 (struct grub_efi_block_io): New structure.
13213 (grub_efi_block_io_t): New type.
13215 * include/grub/misc.h (grub_stop): Removed.
13216 (grub_exit): New prototype.
13217 (grub_abort): Likewise.
13219 * include/grub/disk.h (enum grub_disk_dev_id): Added
13220 GRUB_DISK_DEVICE_EFIDISK_ID.
13222 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
13223 disk/efi/efidisk.c.
13224 (kernel_syms.lst): Remove the target if an error occurs.
13226 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
13228 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
13229 as it was simply too buggy.
13231 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
13233 * kern/misc.c (grub_lltoa): New function.
13234 (grub_vsprintf): Added support for the long long suffix,
13237 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
13239 * Makefile.in (LDFLAGS): Add variable.
13240 (LD): Remove variable.
13241 * configure.ac: Add -m32 to LDFLAGS.
13242 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
13243 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
13244 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
13245 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
13246 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
13248 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
13249 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
13250 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
13252 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
13254 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
13255 length for unknown glyph.
13257 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
13259 Add support for pre-loaded modules into the EFI port.
13261 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
13262 completely. Accept one more argument DIR. The caller has changed.
13264 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
13266 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
13267 (grub_efi_loaded_image_guid): New variable.
13268 (grub_efi_get_loaded_image): New function.
13269 (grub_arch_modules_addr): Likewise.
13271 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
13274 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
13275 (struct grub_efi_loaded_image): New structure.
13276 (grub_efi_loaded_image_t): New type.
13278 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
13280 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
13281 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
13282 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
13284 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
13286 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
13288 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
13290 * DISTLIST: Added include/grub/efi/console.h,
13291 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
13292 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
13294 * include/grub/efi/console.h: New file.
13295 * include/grub/efi/time.h: Likewise.
13296 * include/grub/i386/efi/kernel.h: Likewise.
13297 * kern/efi/init.c: Likewise.
13298 * kern/efi/mm.c: Likewise.
13299 * term/efi/console.c: Likewise.
13301 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
13302 (grub_stop): Removed.
13303 (grub_get_rtc): Likewise.
13304 (grub_machine_init): Simply call grub_efi_init.
13305 (grub_machine_fini): Call grub_efi_fini.
13307 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
13308 (grub_efi_output_string): Removed.
13309 (grub_efi_stall): New function.
13310 (grub_stop): Likewise.
13311 (grub_get_rtc): Likewise.
13313 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
13314 (grub_efi_stall): New prototype.
13315 (grub_efi_allocate_pages): Likewise.
13316 (grub_efi_free_pages): Likewise.
13317 (grub_efi_get_memory_map): Likewise.
13318 (grub_efi_mm_init): Likewise.
13319 (grub_efi_mm_fini): Likewise.
13320 (grub_efi_init): Likewise.
13321 (grub_efi_fini): Likewise.
13323 * include/grub/i386/efi/time.h: Do not include
13324 grub/symbol.h. Include grub/efi/time.h.
13325 (GRUB_TICKS_PER_SECOND): Removed.
13326 (grub_get_rtc): Likewise.
13328 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
13329 Added padding. The EFI spec is buggy.
13330 (GRUB_EFI_BLACK): New macro.
13331 (GRUB_EFI_BLUE): Likewise.
13332 (GRUB_EFI_GREEN): Likewise.
13333 (GRUB_EFI_CYAN): Likewise.
13334 (GRUB_EFI_RED): Likewise.
13335 (GRUB_EFI_MAGENTA): Likewise.
13336 (GRUB_EFI_BROWN): Likewise.
13337 (GRUB_EFI_LIGHTGRAY): Likewise.
13338 (GRUB_EFI_BRIGHT): Likewise.
13339 (GRUB_EFI_DARKGRAY): Likewise.
13340 (GRUB_EFI_LIGHTBLUE): Likewise.
13341 (GRUB_EFI_LIGHTGREEN): Likewise.
13342 (GRUB_EFI_LIGHTCYAN): Likewise.
13343 (GRUB_EFI_LIGHTRED): Likewise.
13344 (GRUB_EFI_LIGHTMAGENTA): Likewise.
13345 (GRUB_EFI_YELLOW): Likewise.
13346 (GRUB_EFI_WHITE): Likewise.
13347 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
13348 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
13349 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
13350 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
13351 (GRUB_EFI_BACKGROUND_RED): Likewise.
13352 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
13353 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
13354 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
13355 (GRUB_EFI_TEXT_ATTR): Likewise.
13357 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
13358 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
13359 (kernel_mod_HEADERS): Added efi/time.h.
13361 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
13363 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
13364 include/grub/efi/api.h, include/grub/efi/console_control.h,
13365 include/grub/efi/efi.h, include/grub/efi/pe32.h,
13366 include/grub/i386/efi/time.h, kern/efi/efi.c,
13367 kern/i386/efi/init.c, kern/i386/efi/startup.S,
13368 and util/i386/efi/grub-mkimage.c.
13370 * Makefile.in (RMKFILES): Added i386-efi.rmk.
13372 * genmk.rb (PModule#rule): Do not export symbols if
13373 #{prefix}_EXPORTS is set to "no".
13375 * conf/i386-efi.mk: New file.
13376 * conf/i386-efi.rmk: Likewise.
13377 * include/grub/efi/api.h: Likewise.
13378 * include/grub/efi/console_control.h: Likewise.
13379 * include/grub/efi/efi.h: Likewise.
13380 * include/grub/efi/pe32.h: Likewise.
13381 * include/grub/i386/efi/time.h: Likewise.
13382 * kern/efi/efi.c: Likewise.
13383 * kern/i386/efi/init.c: Likewise.
13384 * kern/i386/efi/startup.S: Likewise.
13385 * util/i386/efi/grub-mkimage.c: Likewise.
13387 2006-04-17 Marco Gerards <marco@gnu.org>
13389 * include/grub/script.h: Include <grub/parser.h> and
13390 "grub_script.tab.h".
13391 (struct grub_lexer_param): New struct.
13392 (struct grub_parser_param): Likewise.
13393 (grub_script_create_arglist): Pass the state in an argument.
13394 (grub_script_add_arglist): Likewise.
13395 (grub_script_create_cmdline): Likewise.
13396 (grub_script_create_cmdblock): Likewise.
13397 (grub_script_create_cmdif): Likewise.
13398 (grub_script_create_cmdmenu): Likewise.
13399 (grub_script_add_cmd): Likewise.
13400 (grub_script_arg_add): Likewise.
13401 (grub_script_lexer_ref): Likewise.
13402 (grub_script_lexer_deref): Likewise.
13403 (grub_script_lexer_record_start): Likewise.
13404 (grub_script_lexer_record_stop): Likewise.
13405 (grub_script_mem_record): Likewise.
13406 (grub_script_mem_record_stop): Likewise.
13407 (grub_script_malloc): Likewise.
13408 (grub_script_yylex): Likewise.
13409 (grub_script_yyparse): Likewise.
13410 (grub_script_yyerror): Likewise.
13411 (grub_script_yylex): Likewise.
13412 (grub_script_lexer_init): Return the state.
13414 * normal/lexer.c (grub_script_lexer_state): Removed variable.
13415 (grub_script_lexer_done): Likewise.
13416 (grub_script_lexer_getline): Likewise.
13417 (grub_script_lexer_refs): Likewise.
13418 (script): Likewise.
13419 (newscript): Likewise.
13420 (record): Likewise.
13421 (recording): Likewise.
13422 (recordpos): Likewise.
13423 (recordlen): Likewise.
13424 (grub_script_lexer_init): Return the state instead of setting
13426 (grub_script_lexer_ref): Use the newly added argument for state
13427 instead of globals.
13428 (grub_script_lexer_deref): Likewise.
13429 (grub_script_lexer_record_start): Likewise.
13430 (grub_script_lexer_record_stop): Likewise.
13431 (recordchar): Likewise.
13432 (nextchar): Likewise.
13433 (grub_script_yylex2): Likewise.
13434 (grub_script_yylex): Likewise.
13435 (grub_script_yyerror): Likewise.
13437 * normal/parser.y (func_mem): Removed variable.
13438 (menu_entry): Likewise.
13440 (%lex-param): New parser option.
13441 (%parse-param): Likewise.
13442 (script): Always return the AST.
13443 (argument): Pass the state around.
13444 (arguments): Likewise.
13445 (grubcmd): Likewise.
13446 (commands): Likewise.
13447 (function): Likewise.
13448 (menuentry): Likewise.
13449 (if_statement): Likewise.
13452 * normal/script.c (grub_script_memused): Removed variable.
13453 (grub_script_parsed): Likewise.
13454 (grub_script_malloc): Added a state argument. Use that instead of
13456 (grub_script_mem_record): Likewise.
13457 (grub_script_mem_record_stop): Likewise.
13458 (grub_script_arg_add): Likewise.
13459 (grub_script_add_arglist): Likewise.
13460 (grub_script_create_cmdline): Likewise.
13461 (grub_script_create_cmdif): Likewise.
13462 (grub_script_create_cmdmenu): Likewise.
13463 (grub_script_add_cmd): Likewise.
13464 (grub_script_parse): Setup the state before calling the parser.
13466 2006-04-16 Marco Gerards <marco@gnu.org>
13468 * normal/command.c (grub_command_init): Remove the title command.
13470 * normal/lexer.c (grub_script_yylex): Renamed from this...
13471 (grub_script_yylex2): ... to this.
13472 (grub_script_yylex): New function. Temporary
13473 introduced to filter some tokens.
13474 (grub_script_yyerror): Print a newline.
13476 * normal/main.c (read_config_file): Output information about the
13477 lines that contain errors. Wait for a key after all lines have
13478 been processed. Don't return an empty menu.
13480 * normal/parser.y (func_mem): Don't initialize.
13481 (menu_entry): Likewise.
13482 (err): New variable.
13483 (script): Don't return anything when an error was encountered.
13484 (ws, returns): Removed rules.
13485 (argument): Disabled concatenated variable support.
13486 (arguments): Remove explicit separators.
13487 (grubcmd): Likewise.
13488 (function): Likewise.
13489 (menuentry): Likewise.
13491 (commands): Likewise. Add error handling.
13493 * normal/script.c (grub_script_create_cmdline): If
13494 `grub_script_parsed' is 0, assume the parser encountered an error.
13496 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
13498 * configure.ac: Add support for EFI. Fix the typo
13499 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
13501 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
13503 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
13504 foreign multibyte characters should be shown correctly.
13506 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
13508 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
13510 (read_config_file): Made it to close file before returning.
13512 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
13514 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
13515 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
13516 video/i386/pc/vbefill.c.
13518 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
13519 video/i386/pc/vbefill.c.
13521 * include/grub/video.h (grub_video_blit_format): New enum.
13522 (grub_video_mode_info): Added new member blit_format.
13523 (grub_video_get_blit_format): New function prototype.
13525 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
13526 function prototype.
13527 (grub_video_vbe_map_rgb): Likewise.
13528 (grub_video_vbe_unmap_color): Likewise.
13530 * include/grub/i386/pc/vbeblit.h: New file.
13532 * include/grub/i386/pc/vbefill.h: New file.
13534 * video/video.c (grub_video_get_blit_format): New function.
13535 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
13536 (grub_video_vbe_map_rgb): Likewise.
13537 (grub_video_vbe_unmap_color): Likewise.
13539 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
13541 (grub_video_vbe_blit_render_target): Changed to use more optimized
13543 (grub_video_vbe_setup): Added detection for optimized settings.
13544 (grub_video_vbe_create_render_target): Likewise.
13546 * video/i386/pc/vbeblit.c: New file.
13548 * video/i386/pc/vbefill.c: New file.
13550 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
13552 * font/manager.c (grub_font_get_glyph): Removed font fixup from
13555 * util/unifont2pff.rb: ... and moved it to here. Improved argument
13556 parsing to support both hex and dec ranges. If filename was missing
13557 show usage information.
13559 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
13561 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
13562 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
13564 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
13565 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
13566 (video_mod_SOURCES): Added.
13567 (video_mod_CFLAGS): Likewise.
13568 (video_mod_LDFLAGS): Likewise.
13569 (gfxterm_mod_SOURCES): Likewise.
13570 (gfxterm_mod_CFLAGS): Likewise.
13571 (gfxterm_mod_LDFLAGS): Likewise.
13572 (videotest_mod_SOURCES): Likewise.
13573 (videotest_mod_CFLAGS): Likewise.
13574 (videotest_mod_LDFLAGS): Likewise.
13575 (vesafb_mod_SOURCES): Removed.
13576 (vesafb_mod_CFLAGS): Likewise.
13577 (vesafb_mod_LDFLAGS): Likewise.
13578 (vga_mod_SOURCES): Likewise.
13579 (vga_mod_CFLAGS): Likewise.
13580 (vga_mod_LDFLAGS): Likewise.
13582 * commands/videotest.c: New file.
13584 * font/manager.c (fill_with_default_glyph): Modified to use
13586 (grub_font_get_glyph): Likewise.
13587 (fontmanager): Renamed from this...
13588 (font_manager): ... to this.
13590 * include/grub/font.h (grub_font_glyph): Added new structure.
13591 (grub_font_get_glyph): Modified to use grub_font_glyph.
13593 * include/grub/misc.h (grub_abs): Added as inline function.
13595 * include/grub/video.h: New file.
13597 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
13598 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
13599 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
13600 (grub_vbe_get_controller_info): Renamed from this...
13601 (grub_vbe_bios_get_controller_info): ... to this.
13602 (grub_vbe_get_mode_info): Renamed from this...
13603 (grub_vbe_bios_get_mode_info): ... to this.
13604 (grub_vbe_set_mode): Renamed from this...
13605 (grub_vbe_bios_set_mode): ... to this.
13606 (grub_vbe_get_mode): Renamed from this...
13607 (grub_vbe_bios_get_mode): ... to this.
13608 (grub_vbe_set_memory_window): Renamed from this...
13609 (grub_vbe_bios_set_memory_window): ... to this.
13610 (grub_vbe_get_memory_window): Renamed from this...
13611 (grub_vbe_bios_get_memory_window): ... to this.
13612 (grub_vbe_set_scanline_length): Renamed from this...
13613 (grub_vbe_set_scanline_length): ... to this.
13614 (grub_vbe_get_scanline_length): Renamed from this...
13615 (grub_vbe_bios_get_scanline_length): ... to this.
13616 (grub_vbe_set_display_start): Renamed from this...
13617 (grub_vbe_bios_set_display_start): ... to this.
13618 (grub_vbe_get_display_start): Renamed from this...
13619 (grub_vbe_bios_get_display_start): ... to this.
13620 (grub_vbe_set_palette_data): Renamed from this...
13621 (grub_vbe_bios_set_palette_data): ... to this.
13622 (grub_vbe_set_pixel_rgb): Removed.
13623 (grub_vbe_set_pixel_index): Likewise.
13625 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
13627 (grub_vbe_bios_get_controller_info): ... to this.
13628 (grub_vbe_get_mode_info): Renamed from this...
13629 (grub_vbe_bios_get_mode_info): ... to this.
13630 (grub_vbe_set_mode): Renamed from this...
13631 (grub_vbe_bios_set_mode): ... to this.
13632 (grub_vbe_get_mode): Renamed from this...
13633 (grub_vbe_bios_get_mode): ... to this.
13634 (grub_vbe_set_memory_window): Renamed from this...
13635 (grub_vbe_bios_set_memory_window): ... to this.
13636 (grub_vbe_get_memory_window): Renamed from this...
13637 (grub_vbe_bios_get_memory_window): ... to this.
13638 (grub_vbe_set_scanline_length): Renamed from this...
13639 (grub_vbe_set_scanline_length): ... to this.
13640 (grub_vbe_get_scanline_length): Renamed from this...
13641 (grub_vbe_bios_get_scanline_length): ... to this.
13642 (grub_vbe_set_display_start): Renamed from this...
13643 (grub_vbe_bios_set_display_start): ... to this.
13644 (grub_vbe_get_display_start): Renamed from this...
13645 (grub_vbe_bios_get_display_start): ... to this.
13646 (grub_vbe_set_palette_data): Renamed from this...
13647 (grub_vbe_bios_set_palette_data): ... to this.
13648 (grub_vbe_bios_get_controller_info): Fixed problem with registers
13649 getting corrupted after calling it. Added more pushes and pops.
13650 (grub_vbe_bios_set_mode): Likewise.
13651 (grub_vbe_bios_get_mode): Likewise.
13652 (grub_vbe_bios_get_memory_window): Likewise.
13653 (grub_vbe_bios_set_scanline_length): Likewise.
13654 (grub_vbe_bios_get_scanline_length): Likewise.
13655 (grub_vbe_bios_get_display_start): Likewise.
13656 (grub_vbe_bios_set_palette_data): Likewise.
13658 * normal/cmdline.c (cl_set_pos): Refresh the screen.
13659 (cl_insert): Likewise.
13660 (cl_delete): Likewise.
13662 * term/gfxterm.c: New file.
13664 * term/i386/pc/vesafb.c: Removed file.
13666 * video/video.c: New file.
13668 * video/i386/pc/vbe.c (real2pm): Added new function.
13669 (grub_video_vbe_draw_pixel): Likewise.
13670 (grub_video_vbe_get_video_ptr): Likewise.
13671 (grub_video_vbe_get_pixel): Likewise
13672 (grub_video_vbe_init): Likewise.
13673 (grub_video_vbe_fini): Likewise.
13674 (grub_video_vbe_setup): Likewise.
13675 (grub_video_vbe_get_info): Likewise.
13676 (grub_video_vbe_set_palette): Likewise.
13677 (grub_video_vbe_get_palette): Likewise.
13678 (grub_video_vbe_set_viewport): Likewise.
13679 (grub_video_vbe_get_viewport): Likewise.
13680 (grub_video_vbe_map_color): Likewise.
13681 (grub_video_vbe_map_rgb): Likewise.
13682 (grub_video_vbe_map_rgba): Likewise.
13683 (grub_video_vbe_unmap_color): Likewise.
13684 (grub_video_vbe_fill_rect): Likewise.
13685 (grub_video_vbe_blit_glyph): Likewise.
13686 (grub_video_vbe_blit_bitmap): Likewise.
13687 (grub_video_vbe_blit_render_target): Likewise.
13688 (grub_video_vbe_scroll): Likewise.
13689 (grub_video_vbe_swap_buffers): Likewise.
13690 (grub_video_vbe_create_render_target): Likewise.
13691 (grub_video_vbe_delete_render_target): Likewise.
13692 (grub_video_vbe_set_active_render_target): Likewise.
13693 (grub_vbe_set_pixel_rgb): Remove function.
13694 (grub_vbe_set_pixel_index): Likewise.
13695 (index_color_mode): Remove static variable.
13696 (active_mode): Likewise.
13697 (framebuffer): Likewise.
13698 (bytes_per_scan_line): Likewise.
13699 (grub_video_vbe_adapter): Added new static variable.
13700 (framebuffer): Likewise.
13701 (render_target): Likewise.
13702 (initial_mode): Likewise.
13703 (mode_in_use): Likewise.
13704 (mode_list): Likewise.
13706 2006-03-10 Marco Gerards <marco@gnu.org>
13708 * configure.ac (AC_INIT): Bumped to 1.93.
13710 * DISTLIST: Added `include/grub/hfs.h'.
13712 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
13714 * boot/i386/pc/boot.S (general_error): Before looping, try INT
13715 18H, which might help the BIOS falling back to next boot media.
13717 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
13719 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
13720 Poe Chen <poe.poechen@gmail.com>.
13722 2006-01-17 Marco Gerards <marco@gnu.org>
13724 * include/grub/normal.h: Include <grub/script.h>.
13725 (grub_command_list): Removed struct.
13726 (grub_command_list_t): Removed type.
13727 (grub_menu_entry): Remove members `num' and `command_list'. Add
13728 members `commands' and `sourcecode'.
13729 * include/grub/script.h: Add inclusion guards.
13730 (grub_script_cmd_menuentry): New struct.
13731 (grub_script_execute_menuentry): New prototype.
13732 (grub_script_lexer_record_start): Likewise.
13733 (grub_script_lexer_record_stop): Likewise.
13734 * normal/execute.c (grub_script_execute_menuentry): New function.
13735 * normal/lexer.c (record, recording, recordpos, recordlen): New
13737 (grub_script_lexer_record_start): New function.
13738 (grub_script_lexer_record_stop): Likewise.
13739 (recordchar): Likewise.
13740 (nextchar): Likewise.
13741 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
13742 2048 as the buffer size. Add the tokens `menuentry' and `@'.
13743 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
13744 (current_menu): New variable.
13745 (free_menu): Mainly rewritten.
13746 (grub_normal_menu_addentry): New function.
13747 (read_config_file): Rewritten.
13748 * normal/menu.c (run_menu_entry): Mainly rewritten.
13749 * normal/menu_entry.c (make_screen): Rewritten the code to insert
13751 (run): Mainly rewritten.
13752 * normal/parser.y (menu_entry): New variable.
13753 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
13754 (menuentry): New rule.
13755 (command): Add `menuentry'.
13756 (if_statement): Allow additional returns before `fi'.
13757 * normal/script.c (grub_script_create_cmdmenu): New function.
13759 2006-01-03 Marco Gerards <marco@gnu.org>
13761 * INSTALL: GNU Bison is required.
13762 * configure.ac: Rewritten the test to detect Bison.
13763 * Makefile.in (YACC): New variable. Reported by Xun Sun
13764 <xun.sun.cn@gmail.com>.
13766 2006-01-03 Marco Gerards <marco@gnu.org>
13768 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
13769 the HFS+ filesystem to filesystem blocks.
13770 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
13771 GCC warning is silenced.
13773 2006-01-03 Marco Gerards <marco@gnu.org>
13775 * partmap/apple.c (apple_partition_map_iterate): Convert the data
13776 read from disk from big endian to host byte order.
13778 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
13780 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
13782 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
13783 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
13784 embedded HFS+ filesystem.
13785 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
13786 (grub_hfs_sblock): Move from here...
13787 * include/grub/hfs.h: To here... New file.
13788 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
13790 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
13792 (grub_hfsplus_volheader): Change type of member `magic' to
13794 (grub_hfsplus_data): Add new member `embedded_offset'.
13795 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
13797 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
13798 Calculate the offset.
13800 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
13802 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
13804 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
13806 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
13808 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
13809 ENV->NAME is NULL after allocating ENV->VALUE.
13811 2005-12-25 Marco Gerards <marco@gnu.org>
13813 * kern/env.c (grub_env_set): Rewritten the error handling code.
13815 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
13817 * geninit.sh: Made more robust, and more portable.
13819 2005-12-25 Marco Gerards <marco@gnu.org>
13821 Add support for Apple HFS+ filesystems.
13823 * fs/hfsplus.c: New file.
13825 * DISTLIST: Added `fs/hfsplus.c'.
13827 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
13828 (hfsplus_mod_SOURCES): New variable.
13829 (hfsplus_mod_CFLAGS): Likewise.
13830 (hfsplus_mod_LDFLAGS): Likewise.
13831 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
13832 (grub_setup_SOURCES): Likewise.
13833 (grub_mkdevicemap_SOURCES): Likewise.
13834 (grub_emu_SOURCES): Likewise.
13835 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13837 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
13839 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
13841 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
13843 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
13844 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
13845 include/grub/parser.h, include/grub/script.h, kern/parser.c,
13846 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
13847 normal/lexer.c, normal/parser.y, normal/script.c, and
13849 Removed kern/sparc64/cache.c.
13851 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
13852 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
13855 * configure.ac (AC_INIT): Bumped to 1.92.
13857 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
13859 * kern/err.c (grub_error_push): Added new function to support error
13861 (grub_error_pop): Likewise.
13862 (grub_error_stack_items): New local variable to support error stacks.
13863 (grub_error_stack_pos): Likewise.
13864 (grub_error_stack_assert): Likewise.
13865 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
13867 (grub_print_error): Added support to print errors from error stack.
13869 * include/grub/err.h (grub_error_push): Added function prototype.
13870 (grub_error_pop): Likewise.
13872 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
13874 * configure.ac: Accept `powerpc64' as host_cpu.
13875 (amd64): Rename to `biarch32'.
13877 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
13878 non-cacheline-aligned addresses.
13880 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
13881 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
13882 if `size' is non-zero.
13884 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
13886 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
13887 and `cd' to make sure the filename is not prefixed with a
13889 (pkgdata_MODULES): Add `gpt.mod'.
13890 (gpt_mod_SOURCES): New variable.
13891 (gpt_mod_CFLAGS): Likewise.
13892 (gpt_mod_LDFLAGS): Likewise.
13894 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
13896 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
13899 * partmap/gpt.c: New file.
13901 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
13902 GPT partition map is detected.
13904 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
13906 * commands/i386/pc/play.c: New file.
13907 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
13908 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
13911 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
13913 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
13914 ((unused))' to silence gcc warning.
13916 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
13918 * configure.ac: Correct `AC_PROG_YACC' test.
13920 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
13922 * util/powerpc/ieee1275/grub-install.in: Run the mount point
13923 check before installing files.
13925 2005-11-22 Mike Small <smallm@panix.com>
13927 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
13928 number regex so multidigit numbers are recognized correctly.
13930 2005-11-22 Mike Small <smallm@panix.com>
13932 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
13933 debugging message before attempting to claim memory.
13934 (grub_rescue_cmd_initrd): Add a claim debugging message and try
13935 multiple addresses in case of failure.
13937 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
13939 * term/tparm.c (get_space): Remove empty `if' statement.
13941 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
13943 * kern/parser.c (check_varstate): Rename `state' to 's'.
13945 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
13947 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
13948 variable definitions to the beginning of each function. Sort stack
13950 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
13951 `buf' argument to `char *'.
13953 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
13955 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
13956 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
13957 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
13958 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
13959 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
13960 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
13961 configfile.mod, search.mod, gzio.mod and test.mod.
13962 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
13963 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
13964 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
13965 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
13966 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
13967 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
13968 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
13969 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
13970 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
13971 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
13972 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
13973 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
13974 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
13975 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
13976 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
13977 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
13978 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
13979 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
13980 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
13981 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
13982 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
13983 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
13984 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
13986 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
13988 (pkgdata_MODULES): Add test.mod.
13990 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
13992 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
13993 appending to variables with "+=".
13994 (PModule): Use full pathname to generate *.lst filenames.
13996 * Makefile.in: Fixed list rules moved from genmk.rb.
13997 (.DELETE_ON_ERROR): New special target.
13998 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
14000 * conf/i386-pc.rmk: Include conf/common.mk.
14001 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
14002 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
14003 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
14004 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
14005 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
14006 configfile.mod, search.mod, gzio.mod and test.mod.
14007 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
14008 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
14009 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
14010 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
14011 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
14012 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
14013 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
14014 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
14015 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
14016 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
14017 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
14018 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
14019 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
14020 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
14021 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
14022 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
14023 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
14024 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
14025 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
14026 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
14027 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
14028 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
14029 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
14031 * conf/common.rmk: ... to here. New file.
14033 * conf/common.mk: New file.
14035 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
14037 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
14038 (grub_script.tab.c): ... here.
14040 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
14041 (grub_script.tab.c): ... here.
14043 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
14044 (grub_script.tab.c): ... here.
14046 * normal/command.c (grub_command_find): Fixed a memory leak of
14047 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
14049 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
14051 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
14052 "@" which marks the start of a comment on ARM.
14053 (VARIABLE): Likewise.
14055 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
14057 Add support for Linux/ADFS partition tables.
14059 * partmap/acorn.c: New file.
14061 * include/grub/acorn_filecore.h: Likewise.
14063 * DISTLIST: Added `partmap/acorn.c' and
14064 `include/grub/acorn_filecore.h'.
14066 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
14068 (pkgdata_MODULES): Add `acorn.mod'.
14069 (acorn_mod_SOURCES): New variable.
14070 (acorn_mod_CFLAGS): Likewise.
14072 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
14074 (pkgdata_MODULES): Add `acorn.mod'.
14075 (acorn_mod_SOURCES): New variable.
14076 (acorn_mod_CFLAGS): Likewise.
14078 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
14079 (pkgdata_MODULES): Add `acorn.mod'.
14080 (acorn_mod_SOURCES): New variable.
14081 (acorn_mod_CFLAGS): Likewise.
14082 (acorn_mod_LDFLAGS): Likewise.
14084 * include/types.h (grub_disk_addr_t): New typedef.
14086 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
14088 * geninit.sh: New file.
14090 * geninitheader.sh: Likewise.
14092 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
14093 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
14094 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
14095 * commands/configfile.c (grub_configfile_init)
14096 (grub_configfile_fini): Likewise.
14097 * commands/default.c (grub_default_init, grub_default_fini):
14099 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
14100 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
14101 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
14102 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
14104 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
14105 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
14107 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
14108 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
14110 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
14112 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
14114 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
14115 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
14116 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
14117 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
14118 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
14119 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
14120 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
14121 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
14122 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
14123 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
14124 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
14125 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
14126 * partmap/amiga.c (grub_amiga_partition_map_init)
14127 (grub_amiga_partition_map_fini): Likewise.
14128 * partmap/apple.c (grub_apple_partition_map_init)
14129 (grub_apple_partition_map_fini): Likewise.
14130 * partmap/pc.c (grub_pc_partition_map_init)
14131 (grub_pc_partition_map_fini): Likewise.
14132 * partmap/sun.c (grub_sun_partition_map_init,
14133 grub_sun_partition_map_fini): Likewise.
14134 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
14137 * util/grub-emu.c: Include <grub_modules_init.h>.
14138 (main): Don't initialize and de-initialize any modules directly,
14139 use `grub_init_all' and `grub_fini_all' instead.
14141 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
14142 `grub_vesafb_mod_init'.
14143 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
14145 * term/i386/pc/vga.c (grub_vga_init): Renamed to
14146 `grub_vga_mod_init'. Updated all users.
14147 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
14149 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
14150 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
14153 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
14154 Generate a function to initialize the module in utilities.
14155 Updated all callers.
14156 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
14157 initialize the module in utilities. Updated all callers.
14159 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
14161 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
14162 escape sequence and a literal ^L to clear the screen.
14164 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
14165 when returning from Open Firmware.
14167 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
14169 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
14170 (grub_ofconsole_height): Likewise.
14171 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
14172 manually insert a '\n'.
14173 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
14174 `grub_ofconsole_height'. Return early if these are already set.
14176 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
14178 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
14179 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
14180 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
14181 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
14182 and `normal/script.c'.
14183 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
14184 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
14185 (test_mod_SOURCES): New variable.
14186 (test_mod_CFLAGS): Likewise.
14187 (test_mod_LDFLAGS): Likewise.
14188 (pkgdata_MODULES): Add `test.mod'.
14189 (grub_script.tab.c): New rule.
14190 (grub_script.tab.h): Likewise.
14192 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
14194 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
14195 `commands/test.c', `normal/execute.c', `normal/lexer.c',
14196 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
14197 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
14198 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
14199 (test_mod_SOURCES): New variable.
14200 (test_mod_CFLAGS): Likewise.
14201 (pkgdata_MODULES): Add `test.mod'.
14202 (grub_script.tab.c): New rule.
14203 (grub_script.tab.h): Likewise.
14205 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
14207 Add initial scripting support.
14209 * commands/test.c: New file.
14210 * include/grub/script.h: Likewise.
14211 * normal/execute.c: Likewise.
14212 * normal/function.c: Likewise.
14213 * normal/lexer.c: Likewise.
14214 * normal/parser.y: Likewise.
14215 * normal/script.c: Likewise.
14217 * configure.ac: Add `AC_PROG_YACC' test.
14219 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
14220 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
14221 `normal/function.c' and `normal/script.c'.
14222 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
14223 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
14224 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
14226 (pkgdata_MODULES): Add `test.mod'.
14227 (grub_script.tab.c): New rule.
14228 (grub_script.tab.h): Likewise.
14230 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
14232 * include/grub/normal.h (grub_test_init): New prototype.
14233 (grub_test_fini): Likewise.
14235 * normal/command.c: Include <grub/script.h>.
14236 (grub_command_execute): Rewritten.
14238 * util/grub-emu.c (main): Call `grub_test_init' and
14241 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
14243 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
14245 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
14246 there are no pending characters.
14248 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
14250 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
14251 `grub_strndup' to drop device arguments. Replace unnecessary
14252 `grub_strndup' with `grub_strdup'.
14254 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
14256 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
14257 `debug' environment variable has been set.
14259 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
14261 * Makefile.in (install-local): Use $(DATA).
14262 (uninstall): Likewise.
14263 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
14264 (sbin_UTILITIES): ... to here.
14265 (sbin_SCRIPTS): New variable.
14266 (grub_install_SOURCES): New variable.
14267 * util/powerpc/ieee1275/grub-install.in: New file.
14268 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
14270 (add_segments): Call `grub_util_get_path'.
14272 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
14274 From Timothy Baldwin:
14275 * commands/ls.c (grub_ls_list_files): Close FILE with
14277 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
14279 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
14281 * include/grub/parser.h: New file.
14283 * kern/parser.c: Likewise.
14285 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
14286 (grub_setup_SOURCES): Likewise.
14287 (grub_probefs_SOURCES): Likewise.
14288 (grub_emu_SOURCES): Likewise.
14289 (kernel_img_HEADERS): Add `parser.h'.
14291 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
14292 (grub_emu_SOURCES): Add `kern/parser.c'.
14293 (grubof_SOURCES): Likewise.
14295 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
14296 (grubof_SOURCES): Add `kern/parser.c'.
14298 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
14300 * kern/misc.c (grub_split_cmdline): Removed function.
14302 * kern/rescue.c: Include <grub/parser.h>.
14303 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
14304 of `grub_split_cmdline'.
14306 * normal/command.c: Include <grub/parser.h>.
14307 (grub_command_execute): Use `grub_parser_split_cmdline' instead
14308 of `grub_split_cmdline'.
14310 * normal/completion.c: Include <grub/parser.h>.
14311 (cmdline_state): New variable.
14312 (iterate_dir): End the filename with a quote depending on the
14313 command line state.
14314 (get_state): new function.
14315 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
14316 split the arguments and determine the current argument. When the
14317 argument string is not quoted, escape all spaces.
14319 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
14321 * normal/sparc64/setjmp.S: New file.
14323 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
14325 * include/grub/sparc64/libgcc.h: New file.
14326 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
14327 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
14328 normal/sparc64/setjmp.c.
14330 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
14332 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
14333 * kern/sparc64/cache.S: New file.
14334 * kern/sparc64/cache.c: Removed.
14335 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
14336 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
14338 (COMMON_LDFLAGS): Add -melf64_sparc.
14339 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
14340 (grubof_SOURCES): Use cache.S instead of cache.c.
14341 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
14342 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
14343 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
14345 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
14346 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
14347 (linux_mod_CFLAGS): Commented out.
14348 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
14349 out because module isn't built.
14350 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
14351 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
14352 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
14353 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
14354 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
14355 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
14356 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
14357 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
14358 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
14359 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
14360 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
14361 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
14362 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
14363 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
14365 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
14367 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
14368 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
14369 longer, because HFS should not be used on PC.
14371 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
14373 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
14374 consistently within the loop.
14376 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
14378 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
14379 directory can not be read.
14381 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
14383 * configure.ac (AC_INIT): Increase the version number to 1.91.
14385 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
14386 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
14387 term/i386/pc/serial.c.
14389 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
14391 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
14392 file size must be permitted.
14394 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
14395 between %ah and %al.
14397 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
14399 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
14401 Call the hook with a NUL-terminated filename.
14402 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
14405 * kern/term.c (cursor_state): New variable.
14406 (grub_term_set_current): Reset the cursor state on a new
14408 (grub_setcursor): Rewritten to use CURSOR_STATE.
14409 (grub_getcursor): New function.
14411 * include/grub/term.h (grub_getcursor): New prototype.
14413 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
14414 integers on ARM. Reported by Timothy Baldwin
14415 <T.E.Baldwin99@members.leeds.ac.uk>.
14417 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
14419 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
14421 (grub_sfs_dir): Likewise.
14423 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
14425 Add support for the SFS filesystem.
14427 * fs/sfs.c: New file.
14429 * DISTLIST: Added `fs/sfs.c'.
14431 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
14432 (grub_probefs_SOURCES): Likewise.
14433 (grub_emu_SOURCES): Likewise.
14434 (pkgdata_MODULES): Add `sfs.mod'.
14435 (sfs_mod_SOURCES): New variable.
14436 (sfs_mod_CFLAGS): Likewise.
14437 (sfs_mod_LDFLAGS): Likewise.
14439 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
14440 (pkgdata_MODULES): Add `sfs.mod'.
14441 (sfs_mod_SOURCES): New variable.
14442 (sfs_mod_CFLAGS): Likewise.
14444 * util/grub-emu.c (main): Call `grub_sfs_init' and
14447 * include/grub/fs.h (grub_sfs_init): New prototype.
14448 (grub_sfs_fini): Likewise.
14450 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
14452 Add support for the AFFS filesystem.
14454 * fs/affs.c: New file.
14456 * DISTLIST: Added `fs/affs.c'.
14458 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
14459 (grub_probefs_SOURCES): Likewise.
14460 (grub_emu_SOURCES): Likewise.
14461 (pkgdata_MODULES): Add `affs.mod'.
14462 (affs_mod_SOURCES): New variable.
14463 (affs_mod_CFLAGS): Likewise.
14464 (affs_mod_LDFLAGS): Likewise.
14466 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
14467 (pkgdata_MODULES): Add `affs.mod'.
14468 (affs_mod_SOURCES): New variable.
14469 (affs_mod_CFLAGS): Likewise.
14471 * util/grub-emu.c (main): Call `grub_affs_init' and
14474 * include/grub/fs.h (grub_affs_init): New prototype.
14475 (grub_affs_fini): Likewise.
14477 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
14479 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
14481 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
14483 * configure.ac: Accept `x86_64' as host_cpu. In that case add
14486 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
14489 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
14490 (COMMON_LDFLAGS): New variable.
14491 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
14492 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
14493 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
14494 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
14495 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
14496 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
14497 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
14498 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
14499 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
14500 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
14501 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
14502 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
14503 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
14504 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
14505 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
14507 (normal_mod_ASFLAGS): Add `-m32'.
14509 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
14510 (grub_host_size_t, grub_host_ssize_t): New types.
14511 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
14512 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
14513 `GRUB_HOST_SIZEOF_VOID_P'.
14515 * include/grub/kernel.h (struct grub_module_header): Type of
14516 member offset changed to `grub_host_off_t'. Type of member size
14517 changed to `grub_host_size_t'.
14518 (struct grub_module_info): Type of member offset changed to
14519 `grub_host_off_t'. Type of member size changed to
14520 `grub_host_size_t'.
14522 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
14524 Make GRUB's kernel compliant to Multiboot Specification.
14526 * kern/i386/pc/startup.S (multiboot_header): New label.
14527 (multiboot_entry): Likewise.
14528 (multiboot_trampoline): Likewise.
14530 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
14531 Increased to 0x4A0.
14533 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
14534 put parentheses after a question mark.
14535 [!GRUB_UTIL] (my_mod): New variable.
14537 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
14539 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
14541 Adds support for the XFS filesystem. Btrees are not supported
14544 * fs/xfs.c: New file.
14546 * DISTLIST: Added `fs/xfs.c'.
14548 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
14549 (grub_probefs_SOURCES): Likewise.
14550 (grub_emu_SOURCES): Likewise.
14551 (pkgdata_MODULES): Add `xfs.mod'.
14552 (xfs_mod_SOURCES): New variable.
14553 (xfs_mod_CFLAGS): Likewise.
14555 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
14556 (pkgdata_MODULES): Add `xfs.mod'.
14557 (xfs_mod_SOURCES): New variable.
14558 (xfs_mod_CFLAGS): Likewise.
14560 * util/grub-emu.c (main): Call `grub_xfs_init' and
14563 * include/grub/fs.h (grub_xfs_init): New prototype.
14564 (grub_xfs_fini): Likewise.
14567 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
14569 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
14570 color modes, allow greater than 16 colors to be configured as
14573 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
14575 * normal/completion.c (complete_arguments): Add the qualifier
14576 const into OPTIONS.
14578 From Omniflux <omniflux+lists@omniflux.com>:
14579 * include/grub/terminfo.h: New file.
14580 * include/grub/tparm.h: Likewise.
14581 * include/grub/i386/pc/serial.h: Likewise.
14582 * term/terminfo.c: Likewise.
14583 * term/tparm.c: Likewise.
14584 * term/i386/pc/serial.c: Likewise.
14585 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
14587 (terminfo_mod_SOURCES): New variable.
14588 (terminfo_mod_CFLAGS): Likewise.
14589 (serial_mod_SOURCES): Likewise.
14590 (serial_mod_CFLAGS): Likewise.
14592 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
14594 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
14595 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
14596 and kern/powerpc/ieee1275/cmain.c, respectively.
14598 * boot/powerpc/ieee1275/crt0.S: Moved to ...
14599 * kern/powerpc/ieee1275/crt0.S: ... here.
14601 * boot/powerpc/ieee1275/cmain.c: Moved to ...
14602 * kern/powerpc/ieee1275/cmain.c: ... here.
14604 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
14605 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
14606 instead of boot/powerpc/ieee1275/crt0.S and
14607 boot/powerpc/ieee1275/cmain.c, respectively.
14609 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
14610 sectors. It was not used anyway.
14612 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
14614 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
14615 `unused parameter' warning.
14617 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
14619 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
14621 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
14624 2005-08-28 Marco Gerards <metgerards@student.han.nl>
14626 * include/grub/normal.h (enum grub_completion_type): Added
14627 `GRUB_COMPLETION_TYPE_ARGUMENT'.
14629 * normal/cmdline.c (print_completion): Handle
14630 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
14631 * normal/menu_entry.c (store_completion): Likewise.
14633 * normal/completion.c (complete_arguments): New function.
14634 (grub_normal_do_completion): Call `complete_arguments' when the
14635 current words start with a dash.
14637 2005-08-27 Marco Gerards <metgerards@student.han.nl>
14639 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
14640 `gzio.mod' instead of `io.mod').
14642 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
14644 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
14645 (DISTDIRS): Added io and video.
14646 Rewrite the search routine to make an output consistently.
14648 * DISTLIST: Added conf/sparc64-ieee1275.mk,
14649 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
14650 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
14651 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
14652 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
14653 util/powerpc/ieee1275/misc.c.
14655 * include/grub/gzio.h: New file.
14656 * io/gzio.c: Likewise.
14658 * kern/file.c (grub_file_close): Call grub_device_close only if
14659 FILE->DEVICE is not NULL.
14661 * include/grub/mm.h [!NULL] (NULL): New macro.
14663 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
14665 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
14666 (pkgdata_MODULES): Added gzio.mod.
14667 (gzio_mod_SOURCES): New variable.
14668 (gzio_mod_CFLAGS): Likewise.
14670 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
14671 (pkgdata_MODULES): Added gzio.mod.
14672 (gzio_mod_SOURCES): New variable.
14673 (gzio_mod_CFLAGS): Likewise.
14675 * commands/cat.c: Include grub/gzio.h.
14676 (grub_cmd_cat): Use grub_gzfile_open instead of
14679 * commands/cmp.c: Include grub/gzio.h.
14680 (grub_cmd_cmp): Use grub_gzfile_open instead of
14683 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
14684 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
14686 (grub_rescue_cmd_module): Likewise.
14688 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
14690 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
14691 kern/sparc64/ieee1275/init.c because it contains _start.
14692 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
14694 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
14696 * configure.ac: Add support for sparc64 host with ieee1275
14698 * configure: Generated from configure.ac.
14699 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
14701 (grub_ofdisk_read): Likewise.
14702 (grub_ofdisk_open): Use %p to print pointer values, and cast the
14703 pointers as (void *) to remove a warning.
14704 (grub_ofdisk_close): Likewise.
14705 (grub_ofdisk_read): Likewise.
14706 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
14707 returns, so make it return void to remove a warning.
14708 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
14709 Corresponding prototype change.
14710 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
14711 values, and cast the pointers as (void *) to remove a warning.
14712 (grub_mm_dump): Likewise.
14713 * conf/sparc64-ieee1275.mk: New file.
14714 * conf/sparc64-ieee1275.rmk: Likewise.
14715 * include/grub/sparc64/setjmp.h: Likewise.
14716 * include/grub/sparc64/types.h: Likewise.
14717 * include/grub/sparc64/ieee1275/console.h: Likewise.
14718 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
14719 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
14720 * include/grub/sparc64/ieee1275/time.h: Likewise.
14721 * kern/sparc64/cache.c: Likewise.
14722 * kern/sparc64/dl.c: Likewise.
14723 * kern/sparc64/ieee1275/init.c: Likewise.
14724 * kern/sparc64/ieee1275/openfw.c: Likewise.
14726 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
14728 * util/console.c (grub_ncurses_putchar): If C is greater than
14729 0x7f, set C to a question mark.
14730 (grub_ncurses_getcharwidth): New function.
14731 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
14734 * normal/menu.c (print_entry): Made aware of Unicode. First,
14735 convert TITLE to UCS-4, and predict the cursor position by
14738 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
14740 * kern/misc.c (grub_utf16_to_utf8): Likewise.
14742 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
14744 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
14745 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
14748 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
14749 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
14750 grub_strcpy and grub_strlen. Take it into account that a space
14751 character is inserted as a delimiter.
14753 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
14755 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
14756 invalid magic in the error.
14758 * commands/search.c: New file.
14760 * util/grub-emu.c (main): Call grub_search_init and
14763 * kern/rescue.c (grub_rescue_print_disks): Removed.
14764 (grub_rescue_print_devices): New function.
14765 (grub_rescue_cmd_ls): Use grub_device_iterate with
14766 grub_rescue_print_devices instead of grub_disk_dev_iterate with
14767 grub_rescue_print_disks.
14769 * kern/partition.c (grub_partition_iterate): Return the result of
14770 PARTMAP->ITERATE instead of GRUB_ERRNO.
14772 * kern/device.c: Include grub/partition.h.
14773 (grub_device_iterate): New function.
14775 * include/grub/partition.h (grub_partition_iterate): Return int
14776 instead of grub_err_t.
14778 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
14780 [GRUB_UTIL] (grub_search_fini): Likewise.
14782 * include/grub/device.h (grub_device_iterate): New prototype.
14784 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
14786 (pkgdata_MODULES): Added search.mod.
14787 (search_mod_SOURCES): New variable.
14788 (search_mod_CFLAGS): Likewise.
14790 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
14791 (pkgdata_MODULES): Added search.mod.
14792 (search_mod_SOURCES): New variable.
14793 (search_mod_CFLAGS): Likewise.
14795 * commands/ls.c (grub_ls_list_disks): Renamed to ...
14796 (grub_ls_list_devices): ... this, and use grub_device_iterate.
14797 All callers changed.
14799 * DISTLIST: Added commands/search.c.
14801 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
14803 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
14805 (grub_getcharwidth): New function.
14807 * kern/misc.c (grub_utf8_to_ucs4): New function.
14809 * include/grub/term.h (struct grub_term): Added a new member
14811 (grub_getcharwidth): New prototype.
14813 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
14815 * term/i386/pc/console.c (map_char): New function. Segregated from
14816 grub_console_putchar.
14817 (grub_console_putchar): Use map_char.
14818 (grub_console_getcharwidth): New function.
14819 (grub_console_term): Specified grub_console_getcharwidth as
14822 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
14823 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
14825 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
14827 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
14828 on grub_strtoul completely.
14829 (write_char): Declare local variables in the beginning of the
14831 (grub_vesafb_getcharwidth): New function.
14832 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
14835 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
14837 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
14838 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
14839 commands/i386/pc/vbetest.c.
14841 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
14842 call grub_vbe_get_controller_info again, because the returned
14843 information is volatile.
14844 (grub_vbe_set_video_mode): Mostly rewritten.
14845 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
14846 grub_vbe_status_t correctly.
14847 (grub_vbe_get_video_mode_info): Likewise.
14848 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
14849 several if statements.
14851 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
14852 * commands/i386/pc/vbeinfo.c: ... this.
14854 * commands/i386/pc/vbe_test.c: Renamed to ...
14855 * commands/i386/pc/vbetest.c: ... this.
14857 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
14859 (grub_cmd_vbeinfo): ... this. Save video modes before
14860 iterating. Skip a video mode, if it is not available, not enough
14861 information is given or it is monochrome. Show the memory
14862 model. Leave the interpretation of MODEVAR to grub_strtoul
14864 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
14865 (GRUB_MOD_FINI): Likewise.
14867 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
14868 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
14869 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
14870 duplicated grub_env_get. Leave the interpretation of MODEVAR to
14871 grub_strtoul completely.
14872 (real2pm): Removed.
14873 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
14874 (GRUB_MOD_FINI): Likewise.
14876 * normal/misc.c: Include grub/mm.h.
14878 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
14879 vbe_list_modes with vbetest.mod and vbeinfo.mod.
14880 (vbe_list_modes_mod_SOURCES): Removed.
14881 (vbe_list_modes_mod_CFLAGS): Likewise.
14882 (vbe_test_mod_SOURCES): Likewise.
14883 (vbe_test_mod_CFLAGS): Likewise.
14884 (vbeinfo_mod_SOURCES): New variable.
14885 (vbeinfo_mod_CFLAGS): Likewise.
14886 (vbetest_mod_SOURCES): Likewise.
14887 (vbetest_mod_CFLAGS): Likewise.
14889 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
14891 * normal/misc.c: New file.
14893 * DISTLIST: Added normal/misc.c.
14895 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
14896 DISK to HOOK. Call HOOK with DISK.
14897 * partmap/apple.c (apple_partition_map_iterate): Likewise.
14898 * partmap/pc.c (pc_partition_map_iterate): Likewise.
14899 * partmap/sun.c (sun_partition_map_iterate): Likewise.
14901 * normal/menu_entry.c (struct screen): Added a new member
14902 "completion_shown".
14903 (completion_buffer): New global variable.
14904 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
14905 (store_completion): New function.
14906 (complete): Likewise.
14907 (clear_completions): Likewise.
14908 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
14909 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
14910 a tab, call complete.
14912 * normal/completion.c (disk_dev): Removed.
14913 (print_simple_completion): Likewise.
14914 (print_partition_completion): Likewise.
14915 (print_func): New global variable.
14916 (add_completion): Do not take the arguments WHAT or PRINT any
14917 longer. Added a new argument TYPE. Instead of printing directly,
14918 call PRINT_FUNC if not NULL.
14919 All callers changed.
14920 (complete_device): Use a local variable DEV instead of
14921 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
14922 (grub_normal_do_completion): Take a new argument HOOK. Do not
14923 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
14924 empty string, return NULL instead.
14925 All callers changed.
14927 * normal/cmdline.c (print_completion): New function.
14929 * kern/partition.c (grub_partition_iterate): Add an argument DISK
14931 All callers changed.
14933 * kern/disk.c (grub_print_partinfo): Removed.
14935 * include/grub/partition.h (struct grub_partition_map): Add a new
14936 argument DISK into HOOK of ITERATE.
14937 (grub_partition_iterate): Add a new argument DISK to HOOK.
14939 * include/grub/normal.h (enum grub_completion_type): New enum.
14940 (grub_completion_type_t): New type.
14941 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
14942 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
14943 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
14944 (GRUB_COMPLETION_TYPE_FILE): Likewise.
14945 (grub_normal_do_completion): Added a new argument HOOK.
14946 (grub_normal_print_device_info): New prototype.
14948 * include/grub/disk.h (grub_print_partinfo): Removed.
14950 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
14951 (normal_mod_SOURCES): Likewise.
14952 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14953 (normal_mod_SOURCES): Likewise.
14955 * commands/ls.c (grub_ls_list_disks): Use
14956 grub_normal_print_device_info instead of grub_print_partinfo. Free
14958 (grub_ls_list_files): Use grub_normal_print_device_info instead of
14959 duplicating the code.
14961 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
14963 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
14964 follow GCS more precisely.
14965 * commands/i386/pc/vbe_test.c: Likewise.
14966 * include/grub/i386/pc/vbe.h: Likewise.
14967 * term/i386/pc/vesafb.c: Likewise.
14968 * video/i386/pc/vbe.c: Likewise.
14970 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
14972 * DISTLIST: Added term/i386/pc/vesafb.c
14973 DISTLIST: Added video/i386/pc/vbe.c
14974 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
14975 DISTLIST: Added commands/i386/pc/vbe_test.c.
14976 * commands/i386/pc/vbe_list_modes.c: New file.
14977 * commands/i386/pc/vbe_test.c: Likewise.
14978 * term/i386/pc/vesafb.c: Likewise.
14979 * video/i386/pc/vbe.c: Likewise.
14980 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
14981 (grub_vbe_probe) Added prototype.
14982 (grub_vbe_set_video_mode) Likewise.
14983 (grub_vbe_get_video_mode) Likewise.
14984 (grub_vbe_get_video_mode_info) Likewise.
14985 (grub_vbe_set_pixel_rgb) Likewise.
14986 (grub_vbe_set_pixel_index) Likewise.
14987 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
14988 (pkgdata_MODULES): Added vesafb.mod.
14989 (pkgdata_MODULES): Added vbe_list_modes.mod.
14990 (pkgdata_MODULES): Added vbe_test.mod.
14991 (vbe_mod_SOURCES): Added.
14992 (vbe_mod_CFLAGS): Likewise.
14993 (vesafb_mod_SOURCES): Likewise.
14994 (vesafb_mod_CFLAGS): Likewise.
14995 (vbe_list_modes_mod_SOURCES): Likewise.
14996 (vbe_list_modes_mod_CFLAGS): Likewise.
14997 (vbe_test_mod_SOURCES): Likewise.
14998 (vbe_test_mod_CFLAGS): Likewise.
15000 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
15002 * normal/command.c (grub_command_execute): If INTERACTIVE is
15003 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
15004 CMDLINE. Disable the pager if INTERACTIVE is true.
15005 All callers are changed.
15007 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
15008 before reading a config file.
15009 * normal/main.c (read_config_file): Even if a command is not
15010 found, register it if it is within an entry.
15012 * util/grub-emu.c: Include sys/types.h and unistd.h.
15013 (options): Added --hold.
15014 (struct arguments): Added a new member "hold".
15015 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
15017 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
15018 cleared by a debugger, if it is not zero.
15020 * include/grub/normal.h (grub_command_execute): Add an argument
15023 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
15025 * DISTLIST: Added include/grub/i386/pc/vbe.h.
15027 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
15029 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
15030 program with another one, because the old one didn't detect a bug
15031 in gcc-3.4. Always use regparm 2, because the new test is still
15032 not enough for gcc-4.0. Someone must investigate a simple test
15033 case which detects a bug in gcc-4.0.
15035 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
15037 * DISTLIST: Added normal/completion.c.
15039 * normal/completion.c: New file.
15041 * term/i386/pc/console.c (grub_console_getwh): New function.
15042 (grub_console_term): Assign grub_console_getwh to getwh.
15044 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
15045 function is defined in normal/completion.c as
15046 grub_normal_do_completion.
15047 (grub_cmdline_get): Use grub_normal_do_completion instead of
15050 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
15051 returns non-zero, otherwise return 0.
15052 (grub_partition_iterate): First, probe the partition map. Then,
15053 call ITERATE only for this partition map.
15055 * kern/misc.c (grub_strncmp): Rewritten.
15057 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
15058 returns non-zero. Otherwise return 0.
15060 * include/grub/partition.h (grub_partition_map_iterate): Return
15061 int instead of void.
15063 * include/grub/normal.h (grub_normal_do_completion): New prototype.
15065 * include/grub/misc.h (grub_strncmp): Change the type of N to
15068 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
15071 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
15072 unsigned explicitly before comparing it with I.
15074 * kern/main.c (grub_env_write_root): Add the attribute unused into
15077 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
15078 normal/completion.c.
15079 (normal_mod_SOURCES): Likewise.
15080 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15081 (normal_mod_SOURCES): Likewise.
15083 * normal/command.c (grub_iterate_commands): If ITERATE returns
15084 non-zero, return one immediately.
15086 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
15088 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
15089 * kern/i386/pc/startup.S: Updated Global Descriptor table's
15091 (grub_vbe_get_controller_info): New function.
15092 (grub_vbe_get_mode_info): Likewise.
15093 (grub_vbe_set_mode): Likewise.
15094 (grub_vbe_get_mode): Likewise.
15095 (grub_vbe_set_memory_window): Likewise.
15096 (grub_vbe_get_memory_window): Likewise.
15097 (grub_vbe_set_scanline_length): Likewise.
15098 (grub_vbe_get_scanline_length): Likewise.
15099 (grub_vbe_set_display_start): Likewise.
15100 (grub_vbe_get_display_start): Likewise.
15101 (grub_vbe_set_palette_data): Likewise.
15102 * include/grub/i386/pc/vbe.h: New file.
15104 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
15106 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
15107 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
15108 * DISTLIST: Likewise.
15109 * kern/ieee1275/of.c: Moved to ...
15110 * kern/ieee1275/ieee1275.c: ... here.
15112 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
15114 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
15115 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
15116 Pass 0 as `end' parameter to grub_strtoul().
15118 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
15120 * include/grub/powerpc/ieee1275/console.h: Do not include
15121 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
15123 (grub_console_cur_color): Remove i386-specific prototype.
15124 (grub_console_real_putchar): Likewise.
15125 (grub_console_checkkey): Likewise.
15126 (grub_console_getkey): Likewise.
15127 (grub_console_getxy): Likewise.
15128 (grub_console_gotoxy): Likewise.
15129 (grub_console_cls): Likewise.
15130 (grub_console_setcursor): Likewise.
15131 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
15132 Include <grub/machine/console.h>.
15133 * term/ieee1275/ofconsole.c: Likewise.
15135 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
15137 * Makefile.in (LIBLZO): New variable.
15139 * configure.ac: Check for LZO version 2.
15141 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
15142 lzo/lzo1x.h instead of lzo1x.h.
15144 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
15147 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
15148 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
15150 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
15151 copying the data from PARTITION to P.
15153 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
15155 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
15156 negative, unload the module.
15158 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
15159 map is "pc_partition_map" but not "pc".
15160 (usage): Fix the description. The options are --boot-image and
15161 --core-image but not --boot-file or --core-file.
15162 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
15163 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
15166 * util/i386/pc/grub-install.in: Do not specify --boot-file or
15167 --core-file. Specify INSTALL_DEVICE as an argument.
15169 * util/console.c: Include config.h.
15170 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
15171 [HAVE_NCURSES_H]: Include ncurses.h.
15172 [HAVE_CURSES_H]: Include curses.h.
15173 [!A_NORMAL] (A_NORMAL): Defined as zero.
15174 [!A_STANDOUT] (A_STANDOUT): Likewise.
15176 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
15178 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
15180 * configure.ac: Check for curses libraries and headers.
15182 * Makefile.in (LIBCURSES): New variable.
15184 * genmk.rb (Script::rule): Set the executable bits.
15186 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
15187 name of the PC partition map is "pc_partition_map" but not "pc".
15189 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
15191 * util/i386/pc/grub-install.in (grub_probefs): New variable.
15192 (modules): Likewise.
15193 (usage): Added descriptions for --modules and --grub-probefs.
15194 Handle --modules and --grub-probefs. Save the arguments in MODULES
15195 and GRUB_PROBEFS, respectively.
15196 Auto-detect a filesystem module against GRUBDIR. If the result is
15197 empty and modules are not specified explicitly, abort the
15198 installation. Add the result to MODULES.
15200 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
15201 disk/powerpc/ieee1275/ofdisk.c,
15202 include/grub/powerpc/ieee1275/init.h and
15203 term/powerpc/ieee1275/ofconsole.c.
15204 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
15205 term/ieee1275/ofconsole.c.
15207 * include/grub/powerpc/ieee1275/console.h: Resurrected.
15209 * COPYING: Upgraded to the latest version. Only the address of the
15210 FSF office has changed.
15212 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
15214 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
15215 kern/ieee1275.c with kern/ieee1275/of.c.
15217 * kern/ieee1275.c: Moved to ...
15218 * kern/ieee1275/of.c: ... here.
15220 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
15222 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
15225 * config.guess: Updated to the latest version from gnulib.
15226 * config.sub: Likewise.
15227 * install.sh: Likewise.
15228 * mkinstalldirs: Likewise.
15230 * include/grub/console.h: Removed. This file is arch-specific. Do
15231 not put this in include/grub.
15233 * include/grub/i386/pc/console.h: Resurrected.
15235 * util/console.c: Include grub/machine/console.h instead of
15237 * util/grub-emu.c: Likewise.
15239 2005-08-04 Marco Gerards <metgerards@student.han.nl>
15241 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
15244 From Vincent Pelletier <subdino2004@yahoo.fr>
15245 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
15246 Redefined to use grub_getwh.
15247 (grub_term): New member named getwh.
15248 (grub_getwh): New prototype.
15249 * kern/term.c (grub_getwh): New function.
15250 * term/i386/pc/console.c (grub_console_getwh): New function.
15251 (grub_console_term): New member `getwh'.
15252 * term/i386/pc/vga.c (grub_vga_getwh): New function.
15253 (grub_vga_term): New member `getwh'.
15254 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
15256 (grub_ofconsole_getw): New function.
15257 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
15258 (grub_ofconsole_term): New field named getwh and new initial
15261 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
15263 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
15264 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
15265 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
15266 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
15267 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
15268 of <grub/machine/ieee1275.h>.
15269 * commands/ieee1275/reboot.c: Likewise.
15270 * boot/powerpc/ieee1275/ieee1275.c: Move ...
15271 * kern/ieee1275.c: ... to here. All users updated. Change all
15272 parameter structs to use new type `grub_ieee1275_cell_t'.
15273 * term/powerpc/ieee1275/ofconsole.c: Move ...
15274 * term/ieee1275/ofconsole.c: ... to here. All users updated.
15275 * disk/powerpc/ieee1275/ofdisk.c: Move ...
15276 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
15277 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
15279 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
15280 Remove unused prototypes. All users updated.
15281 * include/grub/powerpc/ieee1275/console.h: Removed.
15282 * include/grub/powerpc/ieee1275/ieee1275.h: Define
15283 `grub_ieee1275_cell_t'.
15284 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
15285 Cast comparisons with -1 to the correct type.
15286 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
15287 type to match `grub_ieee1275_entry_fn'.
15289 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
15291 * DISTLIST: Added util/i386/pc/grub-probefs.c.
15293 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
15294 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
15296 (grub_probefs_SOURCES): New variable.
15298 * util/i386/pc/grub-probefs.c: New file.
15300 * util/i386/pc/grub-setup.c (main): Call
15301 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
15302 grub_hfs_init and grub_jfs_init to initialize the system. Call
15303 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
15304 grub_pc_partition_map_fini to finish the system.
15306 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
15308 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
15310 (grub_multiboot_load_elf32): Likewise.
15311 (grub_multiboot_is_elf64): Likewise.
15312 (grub_multiboot_load_elf64): Likewise.
15313 (grub_multiboot_load_elf): Likewise.
15314 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
15315 an ELF32 or ELF64 file.
15316 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
15318 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
15319 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
15320 NULL before calling FS->LABEL.
15321 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
15322 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
15323 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
15324 before calling FS->LABEL.
15326 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
15328 * util/i386/pc/grub-install.in (datadir): New variable.
15330 (pkgdatadir): New variable.
15331 (pkglibdir): Removed.
15333 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
15335 * DISTLIST: Added util/i386/pc/grub-install.in.
15337 * util/i386/pc/grub-install.in: New file.
15339 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
15340 (grub_install_SOURCES): Likewise.
15342 * genmk.rb: Added support for scripts.
15343 (Script): New class.
15344 (scripts): New variable.
15346 * Makefile.in (install-local): Install sbin_SCRIPTS by
15348 (uninstall): Remove sbin_SCRIPTS.
15350 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
15351 device, try to get a GRUB device by
15352 grub_util_biosdisk_get_grub_dev.
15355 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
15356 description for --device-map.
15358 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
15360 Change the semantics of variable hooks. They now return strings
15361 instead of error values.
15363 * util/i386/pc/grub-setup.c: Include grub/env.h.
15364 (setup): Use grub_device_set_root instead of grub_env_set.
15366 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
15367 grub_env_get instead of grub_device_set_root and
15368 grub_device_get_root, respectively.
15370 * kern/main.c (grub_env_write_root): New function.
15371 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
15372 grub_env_set instead of grub_device_set_root.
15374 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
15376 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
15377 rather than calling ENV->WRITE_HOOK afterwards.
15378 (grub_env_get): Return the result of ENV->READ_HOOK rather than
15379 passing a pointer of a pointer.
15380 (grub_register_variable_hook): Change the types of "read_hook" and
15381 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
15383 Allocate the default empty string on the heap, because this string
15384 may be freed later.
15386 * kern/device.c: Include grub/env.h.
15387 (grub_device_set_root): Removed.
15388 (grub_device_get_root): Likewise.
15389 (grub_device_open): Use grub_env_get instead of
15390 grub_device_get_root.
15392 * include/grub/env.h (grub_env_read_hook_t): New type.
15393 (grub_env_write_hook_t): Likewise.
15394 (grub_env_var): Change the types of "read_hook" and "write_hook"
15395 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
15396 (grub_register_variable_hook): Likewise.
15398 * include/grub/device.h (grub_device_set_root): Removed.
15399 (grub_device_set_root): Likewise.
15401 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
15402 make sure that DIRNAME terminates with '/', so that
15403 grub_fat_find_dir will fail if PATH is not a directory.
15405 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
15407 Use the qualifier auto for print_files and print_files_long.
15408 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
15410 Put a newline only if there is no error.
15411 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
15414 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
15416 * kern/partition.c (grub_partition_probe): Initialize PART to
15417 NULL. Otherwise, when no partition map is registered, this returns
15420 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
15422 * partmap/apple.c (apple_partition_map_iterate): Check if POS
15423 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
15426 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
15428 * commands/ls.c (grub_ls_list_disks): Print the filesystem
15429 information on each device, if it does not have partitions. Print
15430 "Device" instead of "Disk", because this function is not specific
15433 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
15434 static to ensure that it is put on the memory rather than a
15437 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
15439 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
15440 (grub_cat_init): Likewise.
15441 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
15442 (options): Likewise.
15443 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
15444 (grub_configfile_init): Likewise.
15445 * font/manager.c (GRUB_MOD_INIT): Likewise.
15446 * commands/help.c (GRUB_MOD_INIT): Likewise.
15447 (grub_help_init): Likewise.
15448 * normal/command.c (grub_command_init): Likewise.
15449 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
15450 * disk/loopback.c (grub_loop_init): Likewise.
15451 (GRUB_MOD_INIT): Likewise.
15452 * commands/ls.c (grub_ls_init): Likewise.
15453 (GRUB_MOD_INIT): Likewise.
15454 (options): Likewise.
15455 * commands/boot.c (grub_boot_init): Likewise.
15456 (GRUB_MOD_INIT): Likewise.
15457 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
15458 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
15459 (GRUB_MOD_INIT): Likewise.
15460 * commands/cmp.c (grub_cmp_init): Likewise.
15461 (GRUB_MOD_INIT): Likewise.
15463 * normal/arg.c: Use <> instead of "" to include header files.
15464 (SHORT_ARG_HELP): New macro.
15465 (SHORT_ARG_USAGE): Likewise.
15466 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
15467 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
15469 (find_short): Check if C is 'h' or 'u' explicitly.
15470 (grub_arg_show_help): Use space characters instead of tabs. Treat
15471 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
15472 are shown with --help and --usage only if they are not used for
15473 the command itself.
15474 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
15477 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
15478 const into "longarg". Change the type of "shortarg" to int.
15480 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
15482 * boot/i386/pc/boot.S (boot_drive_check): New label.
15484 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
15487 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
15488 which do not pass a boot drive correctly. Copied from GRUB Legacy.
15490 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
15492 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
15493 When turning off Gate A20, skip the check and return immediately,
15494 because this is not fatal usually.
15496 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
15498 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
15499 be 0x7C00 instead of 0x8000.
15501 * boot/i386/pc/pxeboot.S: Rewritten.
15503 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
15505 (gate_a20_check_state): Read a byte from 0x108000. Invert the
15508 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
15510 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
15511 robustness. This routine now supports a BIOS call and System
15512 Control Port A to modify the gate A20.
15514 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
15515 Increased to 0x440.
15517 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
15519 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
15520 device path and resulting ihandle.
15521 (grub_ofdisk_close): dprintf the ihandle being closed.
15522 (grub_ofdisk_read): dprintf function parameters.
15523 * kern/mm.c (grub_mm_init_region): Likewise.
15524 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
15525 (grub_linux_boot): dprintf the Linux entry point, initrd address and
15526 size, and boot arguments.
15527 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
15528 before loading into memory.
15529 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
15530 before loading into memory.
15532 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
15534 * kern/mm.c: Added much documentation.
15535 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
15536 8, set to 5 instead of 8.
15538 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
15540 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
15542 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
15543 (grub_mkdevicemap_SOURCES): New variable.
15545 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
15546 lib/device.c of GRUB Legacy.
15548 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
15550 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
15551 instead of PATH is NULL.
15553 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
15555 * commands/cmp.c (BUFFER_SIZE): New macro.
15556 (grub_cmd_cmp): Close the right file at the right time. Compare
15557 only data just read. Don't report files of different size as
15558 identical. Dynamically allocate buffers. Move variable
15559 declarations at the beginning of function.
15561 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
15563 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
15566 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
15568 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
15569 when backspace is pressed at beginning of line.
15571 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
15573 * DISTLIST: Added genfslist.sh.
15575 * normal/main.c (fs_module_list): New variable.
15576 (autoload_fs_module): New function.
15577 (read_fs_list): Likewise.
15578 (grub_normal_execute): Call read_fs_list.
15580 * kern/fs.c (grub_fs_autoload_hook): New variable.
15581 (grub_fs_probe): Added support for auto-loading.
15583 * include/grub/normal.h (struct grub_fs_module_list): New struct.
15584 (grub_fs_module_list_t): New type.
15586 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
15587 (grub_fs_autoload_hook): New prototype.
15589 * genfslist.sh: New file.
15591 * genmk.rb: Added a rule to generate a filesystem list.
15593 2005-06-30 Marco Gerards <metgerards@student.han.nl>
15595 * configure.ac: Fix the test for cross-compiling.
15597 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
15598 define GRUB_UTIL anymore.
15600 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
15601 so this function works on other systems than just big endian.
15602 (load_modules): Likewise.
15603 (add_segments): Likewise.
15605 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
15607 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
15608 contains `l' modifier, get a long from va_arg().
15610 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
15612 * kern/mm.c (grub_free): If the next free block which is being
15613 merged is the first free block, set the first block to the block
15615 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
15617 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
15619 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
15620 `grub_ieee1275_chosen'.
15622 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
15624 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
15625 (grub_ieee1275_chosen): New variable.
15626 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
15628 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
15629 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
15630 Rename first argument to `phandle' for consistency.
15631 (grub_ieee1275_get_property_length): Likewise.
15632 (grub_ieee1275_next_property): Likewise. Change type of first argument
15633 to grub_ieee1275_phandle_t.
15634 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
15635 Move export next to declaration.
15636 (grub_ieee1275_chosen): New variable.
15637 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
15638 Correct cosmetic typo.
15639 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
15640 `grub_ieee1275_chosen'.
15641 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
15642 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
15643 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
15644 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
15645 `grub_ieee1275_chosen'.
15647 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
15649 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
15651 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
15652 /chosen/bootargs as "variable=value" pairs.
15654 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
15656 * include/grub/misc.h (grub_dprintf): New macro.
15657 (grub_real_dprintf): New prototype.
15658 (grub_strword): Likewise.
15659 (grub_iswordseparator): Likewise.
15660 * kern/misc.c (grub_real_dprintf): New function.
15661 (grub_strword): Likewise.
15662 (grub_iswordseparator): Likewise.
15664 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
15666 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
15667 (roundup): Remove macro.
15668 (grub_ieee1275_flags): Make static.
15669 (grub_ieee1275_realmode): Remove.
15670 (grub_ieee1275_test_flag): New function.
15671 (grub_ieee1275_set_flag): Likewise.
15672 (find_options): Rename to `grub_ieee1275_find_options'; update
15673 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
15674 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
15675 (cmain): New prototype.
15676 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
15677 `grub_ieee1275_flags' directly.
15678 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
15679 machine/biosdisk.h.
15680 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
15681 Don't include grub/machine/init.h.
15682 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
15683 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
15685 (grub_ieee1275_realmode): Likewise.
15686 (grub_ieee1275_flag): New enum.
15687 (grub_ieee1275_test_flag): New prototype.
15688 (grub_ieee1275_set_flag): New prototype.
15689 * include/grub/powerpc/ieee1275/init.h: Remove file.
15690 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
15691 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
15692 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
15693 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
15695 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
15696 `grub_ieee1275_test_flag'.
15697 (grub_ieee1275_encode_devname): Likewise.
15699 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
15701 * include/grub/powerpc/ieee1275/ieee1275.h
15702 (grub_ieee1275_encode_devname): New prototype.
15703 (grub_ieee1275_get_filename): Likewise.
15704 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
15706 (grub_set_prefix): Likewise.
15707 (grub_machine_init): Call grub_set_prefix.
15708 * kern/powerpc/ieee1275/openfw.c: Fix typos.
15709 (grub_parse_type): New enum.
15710 (grub_ieee1275_get_devargs): New function.
15711 (grub_ieee1275_get_devname): Likewise.
15712 (grub_ieee1275_parse_args): Likewise.
15713 (grub_ieee1275_get_filename): Likewise.
15714 (grub_ieee1275_encode_devname): Likewise.
15716 2005-03-30 Marco Gerards <metgerards@student.han.nl>
15718 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
15719 `grub_loader_unset'.
15721 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
15723 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
15724 instead of grub_ieee1275_interpret.
15725 (grub_halt_init): New function.
15726 (grub_halt_fini): Likewise.
15727 (GRUB_MOD_INIT): Correct message grammar.
15728 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
15729 instead of grub_ieee1275_interpret.
15730 (grub_reboot_init): New function.
15731 (grub_reboot_fini): Likewise.
15732 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
15733 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
15734 util/i386/pc/misc.c with commands/ieee1275/halt.c,
15735 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
15736 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
15738 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
15740 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
15742 (grub_halt): Likewise.
15743 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
15744 (cmain): Remove __attribute__((unused)).
15745 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
15746 (grub_heap_len): Likewise.
15747 (grub_machine_fini): New function.
15748 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
15749 (grub_halt): Likewise.
15750 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
15752 * util/powerpc/ieee1275/misc.c: New file.
15754 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
15756 * DISTLIST: New file.
15757 * gendistlist.sh: Likewise.
15759 * Makefile.in (COMMON_DISTFILES): Removed.
15760 (BOOT_DISTFILES): Likewise.
15761 (CONF_DISTFILES): Likewise.
15762 (DISK_DISTFILES): Likewise.
15763 (FS_DISTFILES): Likewise.
15764 (INCLUDE_DISTFILES): Likewise.
15765 (KERN_DISTFILES): Likewise.
15766 (LOADER_DISTFILES): Likewise.
15767 (TERM_DISTFILES): Likewise.
15768 (UTIL_DISTFILES): Likewise.
15769 (DISTFILES): Likewise.
15770 (uninstall): Uninstall files in $(pkgdata_DATA).
15771 (DISTLIST): New target.
15772 (distdir): Use the contents of the file DISTLIST to get a list of
15775 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
15777 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
15778 descriptor. This is ported from GRUB Legacy.
15780 * gencmdlist.sh: Added an extra semicolon to make it work with
15781 old sed versions. Reported by Robert Bihlmeyer
15782 <robbe@orcus.priv.at>.
15784 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
15786 Automatic loading of commands is supported.
15788 * normal/main.c (read_command_list): New function.
15789 (grub_normal_execute): Call read_command_list.
15791 * normal/command.c (grub_register_command): Return zero or CMD.
15792 Allocate CMD->NAME from the heap.
15793 Initialize CMD->MODULE_NAME to zero.
15794 Find the same name as well. If the same command is found and it is
15795 a dummy command, overwrite members. If it is not a dummy command,
15797 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
15798 (grub_command_find): If a dummy command is found, load a module
15799 and retry to find a command only once.
15801 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
15802 make sure that each command is loaded.
15804 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
15806 (struct grub_command): Remove const from the member `name'.
15807 Add a new member `module_name'.
15808 (grub_register_command): Return grub_command_t.
15810 * commands/help.c (grub_cmd_help): Call grub_command_find to make
15811 sure that each command is loaded.
15813 * genmk.rb (PModule::rule): Specify a module name without the
15814 suffix ".mod" to gencmdlist.sh.
15816 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
15818 * gencmdlist.sh: New file.
15820 * genmk.rb (PModule::rule): Generate a rule for a command list.
15822 Generate command.lst from $(COMMANDFILES).
15824 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
15825 (DATA): Added $(pkgdata_DATA).
15826 (install-local): Install files in $(pkgdata_DATA).
15828 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
15830 * term/i386/pc/vga.c (debug_command): Removed.
15831 (GRUB_MOD_INIT): Do not register the command "debug".
15833 From Hollis Blanchard:
15834 * commands/configfile.c: New file.
15835 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
15836 commands/configfile.c.
15837 (pkgdata_MODULES): Added configfile.mod.
15838 (configfile_mod_SOURCES): New variable.
15839 (configfile_mod_CFLAGS): Likewise.
15840 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
15841 commands/configfile.c.
15842 (pkgdata_MODULES): Added configfile.mod.
15843 (configfile_mod_SOURCES): New variable.
15844 (configfile_mod_CFLAGS): Likewise.
15845 * util/grub-emu.c (main): Call grub_configfile_init and
15846 grub_configfile_fini.
15847 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
15849 [GRUB_UTIL] (grub_configfile_fini): Likewise.
15851 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
15853 * normal/arg.c (grub_arg_show_help): Do not show the bug report
15856 * commands/help.c (grub_cmd_help): Do not print newlines after
15857 the last command in print_command_help.
15859 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
15861 * commands/default.h: New file.
15862 * commands/timeout.h: Likewise.
15863 * normal/context.c: Likewise.
15865 * util/misc.c: Do not include sys/times.h.
15866 Include sys/time.h and grub/machine/time.h.
15867 (grub_get_rtc): Rewritten with gettimeofday.
15869 * util/grub-emu.c (main): Call grub_default_init and
15870 grub_timeout_init before grub_normal_init, and call
15871 grub_timeout_fini and grub_default_fini after grub_main.
15873 * util/console.c (grub_ncurses_checkkey): Return the read
15876 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
15879 * normal/main.c (read_config_file): Push MENU. If this fails,
15880 print an error and wait for a user input.
15881 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
15882 If a menu is empty or an error occurs, pop MENU.
15883 (grub_normal_execute): Pop and free MENU after grub_menu_run
15886 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
15888 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
15890 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
15892 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
15894 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
15897 * include/grub/normal.h (struct grub_menu_list): New struct.
15898 (grub_menu_list_t): New type.
15899 (struct grub_context): New struct.
15900 (grub_context_t): New type.
15901 (grub_register_command): Got rid of EXPORT_FUNC.
15902 (grub_unregister_command): Likewise.
15903 (grub_context_get): New prototype.
15904 (grub_context_get_current_menu): Likewise.
15905 (grub_context_push_menu): Likewise.
15906 (grub_context_pop_menu): Likewise.
15907 [GRUB_UTIL] (grub_default_init): Likewise.
15908 [GRUB_UTIL] (grub_default_fini): Likewise.
15909 [GRUB_UTIL] (grub_timeout_init): Likewise.
15910 [GRUB_UTIL] (grub_timeout_fini): Likewise.
15912 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
15913 commands/timeout.c and normal/context.c.
15914 (pkgdata_MODULES): Added default.mod and timeout.mod.
15915 (normal_mod_SOURCES): Added normal/context.c.
15916 (default_mod_SOURCES): New variable.
15917 (default_mod_CFLAGS): Likewise.
15918 (timeout_mod_SOURCES): Likewise.
15919 (timeout_mod_CFLAGS): Likewise.
15920 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
15922 (pkgdata_MODULES): Added default.mod and timeout.mod.
15923 (normal_mod_SOURCES): Added normal/context.c.
15924 (default_mod_SOURCES): New variable.
15925 (default_mod_CFLAGS): Likewise.
15926 (timeout_mod_SOURCES): Likewise.
15927 (timeout_mod_CFLAGS): Likewise.
15929 * Makefile.in (all-local): Added $(MKFILES).
15931 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
15933 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
15934 (grub_emu_SOURCES): Likewise.
15935 (pkgdata_MODULES): Add `sun.mod'.
15936 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
15937 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
15939 (pkgdata_MODULES): Add `sun.mod'.
15940 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
15941 * include/grub/partition.h (grub_sun_partition_map_init): New
15943 (grub_sun_partition_map_fini): Likewise.
15944 * partmap/sun.c: New file.
15945 * util/grub-emu.c (main): Initialize and de-initialize the sun
15946 partitionmap support.
15948 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
15950 This implements an Emacs-like menu entry editor.
15952 * normal/menu_entry.c: New file.
15954 * util/console.c (grub_ncurses_putchar): Translate some Unicode
15955 characters to ASCII.
15956 (saved_char): New variable.
15957 (grub_ncurses_checkkey): Rewritten completely.
15958 (grub_ncurses_getkey): Likewise.
15959 (grub_ncurses_init): Call raw instead of cbreak.
15961 * normal/menu.c (print_entry): Do not put a space.
15962 (init_page): Renamed to ...
15963 (grub_menu_init_page): ... this. All callers changed.
15964 (edit_menu_entry): Removed.
15965 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
15967 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
15969 * kern/misc.c (grub_vprintf): Call grub_refresh.
15971 * normal/menu.c (DISP_LEFT): Renamed to ...
15972 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
15973 * normal/menu.c (DISP_UP): Renamed to ...
15974 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
15975 * normal/menu.c (DISP_RIGHT): Renamed to ...
15976 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
15977 * normal/menu.c (DISP_DOWN): Renamed to ...
15978 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
15979 * normal/menu.c (DISP_HLINE): Renamed to ...
15980 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
15981 * normal/menu.c (DISP_VLINE): Renamed to ...
15982 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
15983 * normal/menu.c (DISP_UL): Renamed to ...
15984 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
15985 * normal/menu.c (DISP_UR): Renamed to ...
15986 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
15987 * normal/menu.c (DISP_LL): Renamed to ...
15988 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
15989 * normal/menu.c (DISP_LR): Renamed to ...
15990 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
15991 * normal/menu.c (TERM_WIDTH): Renamed to ...
15992 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
15993 * normal/menu.c (TERM_HEIGHT): Renamed to ...
15994 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
15995 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
15996 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
15997 * normal/menu.c (TERM_MARGIN): Renamed to ...
15998 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
15999 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
16000 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
16001 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
16002 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
16003 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
16004 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
16005 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
16006 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
16007 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
16008 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
16009 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
16010 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
16011 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
16012 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
16013 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
16014 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
16015 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
16016 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
16017 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
16018 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
16019 All callers changed.
16021 * include/grub/normal.h: New prototype.
16023 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
16024 normal/menu_entry.c.
16025 (normal_mod_SOURCES): Likewise.
16026 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16027 (normal_mod_SOURCES): Likewise.
16029 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
16031 * include/grub/normal.h (grub_halt_init): New prototype.
16032 (grub_halt_fini): Likewise.
16033 (grub_reboot_init): Likewise.
16034 (grub_reboot_fini): Likewise.
16036 * util/grub-emu.c: Include signal.h.
16037 (main_env): New global variable.
16038 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
16040 (grub_machine_fini): New function.
16041 (main): Call grub_halt_init and grub_reboot_init before
16042 grub_main, and grub_reboot_fini and grub_halt_fini after it.
16043 Call setjmp with MAIN_ENV to go back afterwards.
16044 Call grub_machine_fini right before return.
16046 * include/grub/util/misc.h: Include setjmp.h.
16047 (main_env): New prototype.
16049 * include/grub/kernel.h (grub_machine_fini): New prototype.
16050 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
16051 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
16053 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
16054 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
16055 * term/i386/pc/console.c (grub_console_fini): Likewise.
16057 * util/i386/pc/misc.c: New file.
16059 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
16060 util/i386/pc/misc.c, commands/i386/pc/halt.c and
16061 commands/i386/pc/reboot.c.
16063 2005-02-14 Guillem Jover <guillem@hadrons.org>
16065 * include/grub/dl.h (grub_dl_check_header): New prototype.
16066 (grub_arch_dl_check_header): Change return type to grub_err_t,
16067 remove size parameter and export function. Update all callers.
16068 * kern/dl.c (grub_dl_check_header): New function.
16069 (grub_dl_load_core): Use `grub_dl_check_header' instead of
16070 `grub_arch_dl_check_header'. Check ELF type. Check if sections
16071 are inside the core.
16072 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
16073 independent ELF header checks.
16074 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
16075 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
16076 `grub_dl_check_header' instead of explicit checks. Check for the
16078 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
16079 `grub_dl_check_header' instead of explicit checks. Remove arch
16080 specific ELF header checks.
16082 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
16085 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
16087 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
16088 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
16090 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
16092 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
16093 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
16094 (part_map_iterate): Clear `grub_errno' and return 0 if
16095 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
16096 * partmap/amiga.c (amiga_partition_map_iterate): Return
16097 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
16098 * partmap/apple.c (apple_partition_map_iterate): Likewise.
16100 2005-02-01 Guillem Jover <guillem@hadrons.org>
16102 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
16105 2005-01-31 Marco Gerards <metgerards@student.han.nl>
16107 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
16109 (grub_rescue_cmd_linux): New prototype.
16110 (grub_rescue_cmd_initrd): Likewise.
16111 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
16113 (grub_linux_release_mem): Release the memory for the initrd.
16114 (grub_load_linux): Renamed from this...
16115 (grub_rescue_cmd_linux): ...To this. Changed all callers.
16116 Changed `entry' not to be static. Loop over memory regions to
16117 find another one when the default fails.
16118 (grub_rescue_cmd_initrd): New function.
16119 (grub_linux_init): Remove function.
16120 (grub_linux_fini): Likewise.
16121 (GRUB_MOD_INIT): Register `initrd'.
16122 (GRUB_MOD_FINI): Unregister `initrd'.
16123 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
16125 (grub_linux_normal_fini): Likewise.
16126 (GRUB_MOD_INIT): Register `initrd'.
16127 (GRUB_MOD_FINI): Unregister `initrd'.
16129 2005-01-31 Marco Gerards <metgerards@student.han.nl>
16131 * commands/help.c: New file.
16132 * normal/arg.c (show_help): Renamed to...
16133 (grub_arg_show_help): ... this.
16134 * commands/i386/pc/halt.c: New file.
16135 * commands/i386/pc/reboot.c: Likewise.
16136 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
16137 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
16138 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
16139 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
16141 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16143 (pkgdata_MODULES): Add `help.mod'.
16144 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
16145 * grub/i386/pc/init.h (grub_reboot): New prototype.
16146 (grub_halt): Likewise.
16147 * include/grub/normal.h (grub_arg_show_help): New prototype.
16148 (grub_help_init): Likewise.
16149 (grub_help_fini): Likewise.
16150 * util/grub-emu.c (main): Initialize and deinitialize the help
16153 * normal/cmdline.c (grub_cmdline_get): Doc fix.
16155 * normal/command.c (grub_command_init): Fixed the description of
16156 the `set' and `unset' commands.
16158 2005-01-31 Marco Gerards <metgerards@student.han.nl>
16160 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
16162 * commands/ieee1275/halt.c: New file.
16163 * commands/ieee1275/reboot.c: Likewise.
16164 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
16165 `__attribute__ ((unused))'. Some GCS related fixed.
16166 (grub_suspend_init) [GRUB_UTIL]: Function removed.
16167 (grub_suspend_fini): Likewise.
16168 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
16170 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
16171 (halt_mod_CFLAGS): New variables.
16172 * include/grub/powerpc/ieee1275/ieee1275.h
16173 (grub_ieee1275_interpret): New prototype.
16175 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
16177 * include/grub/misc.h (memmove): New prototype.
16178 (memcpy): Likewise.
16180 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
16182 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
16183 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
16185 2005-01-22 Marco Gerards <metgerards@student.han.nl>
16187 * kern/misc.c (grub_strndup): Function rewritten.
16189 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
16191 * normal/menu.c (TERM_WIDTH): Macro redefined.
16192 (TERM_TOP_BORDER_Y): Likewise.
16193 (draw_border): Replaced while-loop by a for-loop. Make the number
16194 of lines consistent with the number of lines displayed in
16195 print_entries. Added a margin below the rectangle.
16196 (print_entry): Make the entry fit in the rectangle.
16197 (print_entries): Display the scroll arrows next to the right
16200 2005-01-21 Marco Gerards <metgerards@student.han.nl>
16202 * fs/minix.c (grub_minix_find_file): Reserve more space for
16203 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
16204 `grub_strncpy' to copy `path' into it.
16206 2005-01-21 Marco Gerards <metgerards@student.han.nl>
16208 Add the loopback device, a device via which files can be accessed
16211 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
16212 (pkgdata_MODULES): Add loopback.mod.
16213 (loopback_mod_SOURCES): New variable.
16214 (loopback_mod_CFLAGS): Likewise.
16215 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16217 (pkgdata_MODULES): Add loopback.mod.
16218 (loopback_mod_SOURCES): New variable.
16219 (loopback_mod_CFLAGS): Likewise.
16220 * disk/loopback.c: new file.
16221 * include/grub/normal.h (grub_loop_init): New prototype.
16222 (grub_loop_fini): New prototype.
16223 * util/grub-emu.c (main): Initialize and de-initialize loopback
16225 * include/grub/disk.h (grub_disk_dev_id): Add
16226 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
16228 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
16230 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
16232 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
16233 (suspend_mod_SOURCES): New variable.
16234 (suspend_mod_CFLAGS): Likewise.
16235 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
16237 * commands/ieee1275/suspend.c: New file.
16239 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16241 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
16242 ((unused))' to `__attribute__ ((used))'.
16243 (GRUB_MOD_FINI): Likewise.
16244 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
16245 * genmk.rb (PModule): Assign space to common symbols when linking
16248 2005-01-20 Marco Gerards <metgerards@student.han.nl>
16250 * include/grub/mm.h (grub_mm_init_region): Change the type of the
16251 `unsigned' arguments to `grub_size_t'.
16252 (grub_malloc): Likewise.
16253 (grub_realloc): Likewise.
16254 (grub_memalign): Likewise.
16255 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
16256 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
16257 * util/misc.c (grub_malloc): Likewise.
16258 (grub_realloc): Likewise.
16259 * kern/mm.c (get_header_from_pointer): Change the casts to
16260 `unsigned' into a cast to `grub_size_t'.
16262 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
16263 point to `currnode' when `currnode' is changed.
16265 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
16266 Schottelius <nico-linux@schottelius.org>.
16268 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
16270 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
16271 (note_path): Remove variable.
16272 (GRUB_IEEE1275_NOTE_NAME): New macro.
16273 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
16274 (grub_ieee1275_note_hdr): New structure.
16275 (grub_ieee1275_note_desc): Likewise.
16276 (grub_ieee1275_note): Likewise.
16277 (load_note): Remove `dir' argument. All callers updated. Remove
16278 `note_img' and `path'. Do not load a file from `note_path'.
16279 Initialize a struct grub_ieee1275_note and write that to `out'.
16280 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
16282 2005-01-05 Marco Gerards <metgerards@student.han.nl>
16284 * util/misc.c (grub_util_read_image): Revert last change. It
16285 called `grub_util_read_at', which seeks from the beginning of the
16288 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
16290 * TODO: Add note about endianness in grub-mkimage.
16291 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
16293 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
16294 (grub_mkimage_SOURCES): New target.
16295 * include/grub/kernel.h (grub_start_addr): Remove variable.
16296 (grub_end_addr): Likewise.
16297 (grub_total_module_size): Likewise.
16298 (grub_kernel_image_size): Likewise.
16299 (GRUB_MODULE_MAGIC): New constant.
16300 (grub_module_info): New structure.
16301 (grub_arch_modules_addr): New prototype.
16302 (grub_get_end_addr): Remove prototype.
16303 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
16304 * include/grub/powerpc/ieee1275/kernel.h: New file.
16305 * include/grub/util/misc.h (grub_util_get_fp_size): New
16307 (grub_util_read_at): Likewise.
16308 (grub_util_write_image_at): Likewise.
16309 * kern/main.c (grub_get_end_addr): Remove function.
16310 (grub_load_modules): Call grub_arch_modules_addr instead of using
16311 grub_end_addr. Look for a grub_module_info struct in memory. Use
16312 the grub_module_info fields instead of calling grub_get_end_addr
16313 as loop conditions. Move grub_add_unused_region code here.
16314 (grub_add_unused_region): Remove function.
16315 * kern/i386/pc/init.c: Include grub/cache.h.
16316 (grub_machine_init): Remove call to grub_get_end_addr. Remove
16317 one call to add_mem_region.
16318 (grub_arch_modules_addr): New function.
16319 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
16320 (grub_total_module_size): Likewise.
16321 Include grub/machine/kernel.h.
16322 (grub_arch_modules_addr): New function.
16323 * util/grub-emu.c (grub_end_addr): Remove variable.
16324 (grub_total_module_size): Likewise.
16325 (grub_arch_modules_addr): New function.
16326 * util/misc.c: Include unistd.h.
16327 (grub_util_get_fp_size): New function.
16328 (grub_util_read_at): Likewise.
16329 (grub_util_write_image_at): Likewise.
16330 (grub_util_read_image): Call grub_util_read_at.
16331 (grub_util_write_image): Call grub_util_write_image_at.
16332 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
16333 additional memory in kernel_img for a struct grub_module_info.
16334 Fill in that grub_module_info.
16335 * util/powerpc/ieee1275/grub-mkimage.c: New file.
16337 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
16339 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
16341 * include/grub/powerpc/ieee1275/ieee1275.h
16342 (grub_ieee1275_milliseconds): New prototype.
16343 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
16345 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
16346 grub_ieee1275_milliseconds.
16348 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
16350 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
16352 (find_options): New function.
16353 (cmain): Call find_options.
16354 * include/grub/powerpc/ieee1275/ieee1275.h
16355 (grub_ieee1275_realmode): New extern variable.
16356 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
16357 grub_map if grub_ieee1275_realmode is false.
16359 2004-12-29 Marco Gerards <metgerards@student.han.nl>
16361 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
16362 lines are inserted and make it work like readline. Reported by
16363 Vincent Pelletier <subdino2004@yahoo.fr>.
16365 2004-12-28 Marco Gerards <metgerards@student.han.nl>
16367 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
16369 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
16370 `kern/powerpc/cache.S'.
16372 2004-12-27 Marco Gerards <metgerards@student.han.nl>
16374 * genmk.rb: Handle the `Program' class in the main loop. Written
16375 by Johan Rydberg <jrydberg@gnu.org>.
16376 (Program): New class.
16377 (programs): New variable.
16378 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
16379 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
16380 instead of "grub/kernel.h". Include <grub/machine/init.h>.
16381 (help_arch): Function removed.
16382 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
16383 `powerpc/libgcc.h' and `loader.h'.
16384 (pkgdata_PROGRAMS): New variable.
16385 (sbin_UTILITIES): Variable removed.
16386 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
16387 (grubof_SOURCES): Variable re-defined so it only includes the
16388 core functionality.
16389 (grubof_CFLAGS): Remove `-DGRUBOF'.
16390 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
16391 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
16392 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
16393 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
16394 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
16395 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
16396 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
16397 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
16398 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
16399 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
16400 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16401 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
16402 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
16403 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
16404 (pc_mod_CFLAGS): New variables.
16405 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
16406 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
16407 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
16408 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
16410 * include/grub/i386/pc/init.h (grub_os_area_addr)
16411 (rub_os_area_size): ... to here.
16412 * include/grub/powerpc/ieee1275/ieee1275.h
16413 (grub_ieee1275_entry_fn): Export symbol.
16414 * include/grub/powerpc/ieee1275/init.h: New file.
16415 * include/grub/powerpc/libgcc.h: Likewise.
16416 * include/grub/cache.h: Likewise.
16417 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
16418 <hollis@penguinppc.org>.
16419 * kern/dl.c: Include <grub/cache.h>.
16420 (grub_dl_flush_cache): New function.
16421 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
16423 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
16424 (grub_console_init): Removed prototypes.
16425 (grub_machine_init): Don't initialize the modules anymore.
16426 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
16428 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
16429 Macro undef removed.
16430 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
16431 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
16432 relocation `R_PPC_REL32'. Return an error when the relocation is
16434 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
16435 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
16436 * util/misc.c (grub_arch_sync_caches): Likewise.
16438 2004-12-19 Marco Gerards <metgerards@student.han.nl>
16440 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
16441 `symlist.c', add `grubof_symlist.c'.
16442 (symlist.c): Variable removed.
16443 (grubof_HEADERS): Variable added.
16444 (grubof_symlist.c): New target.
16445 (kernel_syms.lst): Use `grubof_HEADERS' instead of
16446 `kernel_img_HEADERS'.
16447 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
16448 * kern/powerpc/dl.c: New file.
16449 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
16451 (grub_arch_dl_relocate_symbols): Likewise.
16452 (grub_register_exported_symbols): Likewise.
16454 2004-12-13 Marco Gerards <metgerards@student.han.nl>
16456 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
16457 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
16458 to fail instead. Reported by Vincent Pelletier
16459 <subdino2004@yahoo.fr>.
16461 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
16462 it is not allocated. Reported by Vincent Pelletier
16463 <subdino2004@yahoo.fr>.
16465 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
16466 output so the output looks better.
16468 2004-12-04 Marco Gerards <metgerards@student.han.nl>
16470 Modulize the partition map support and add support for the amiga
16473 * commands/ls.c: Include <grub/partition.h> instead of
16474 <grub/machine/partition.h>.
16475 * kern/disk.c: Likewise.
16476 * kern/rescue.c: Likewise.
16477 * loader/i386/pc/chainloader.c: Likewise.
16478 * normal/cmdline.c: Likewise.
16479 * kern/powerpc/ieee1275/init.c: Likewise.
16480 (grub_machine_init): Call `grub_pc_partition_map_init',
16481 `grub_amiga_partition_map_init' and
16482 `grub_apple_partition_map_init'.
16483 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
16484 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
16485 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
16486 `partition.h' and `pc_partition.h'.
16487 (grub_setup_SOURCES): Remove
16488 `disk/i386/pc/partition.c'. Add `kern/partition.c',
16489 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
16490 (grub_emu_SOURCES): Likewise.
16491 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
16492 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
16493 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
16494 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
16495 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
16496 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
16497 (grubof_SOURCES): Likewise.
16498 * disk/i386/pc/partition.c: File removed.
16499 * disk/powerpc/ieee1275/partition.c: Likewise.
16500 * include/grub/powerpc/ieee1275/partition.h: Likewise.
16501 * include/grub/i386/pc/partition.h: Likewise.
16502 * kern/partition.c: New file.
16503 * partmap/amiga.c: Likewise.
16504 * partmap/apple.c: Likewise.
16505 * partmap/pc.c: Likewise.
16506 * include/grub/partition.h: Likewise..
16507 * include/grub/pc_partition.h: Likewise.
16508 * util/grub-emu.c: Include <grub/partition.h> instead of
16509 <grub/machine/partition.h>.
16510 (main): Call `grub_pc_partition_map_init',
16511 `grub_amiga_partition_map_init' and
16512 `grub_apple_partition_map_init' and deinitialize afterwards.
16513 * util/i386/pc/biosdisk.c: Include `#include
16514 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
16515 `<grub/machine/partition.h>'.
16516 * util/i386/pc/grub-setup.c: Likewise.
16517 * util/i386/pc/biosdisk.c: Likewise.
16518 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
16519 partition information in case of a PC partition.
16520 * util/i386/pc/grub-setup.c: Include `#include
16521 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
16522 `<grub/machine/partition.h>'.
16523 (setup): Only access the PC specific partition information in case
16526 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
16528 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
16529 (grub_longjmp): Likewise.
16530 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
16532 * normal/powerpc/setjmp.S: New file.
16533 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
16534 `normal/powerpc/setjmp.S'.
16535 (grubof_CFLAGS): Add `-DGRUBOF'.
16536 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
16537 [GRUB_UTIL && !GRUBOF].
16539 2004-11-16 Marco Gerards <metgerards@student.han.nl>
16541 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
16542 property named `name'. Correctly handle the error returned by
16543 `grub_ieee1275_finddevice' if a device can not be opened.
16545 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
16547 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
16548 `actual' for negativity.
16549 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
16552 2004-11-01 Marco Gerards <metgerards@student.han.nl>
16554 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
16555 (PAGE_OFFSET): New macro.
16556 (CRTC_ADDR_PORT): Likewise.
16557 (CRTC_DATA_PORT): Likewise.
16558 (START_ADDR_HIGH_REGISTER): Likewise.
16559 (START_ADDR_LOW_REGISTER): Likewise.
16560 (GRAPHICS_ADDR_PORT): Likewise.
16561 (GRAPHICS_DATA_PORT): Likewise.
16562 (READ_MAP_REGISTER): Likewise.
16563 (INPUT_STATUS1_REGISTER): Likewise.
16564 (INPUT_STATUS1_VERTR_BIT): Likewise.
16565 (page): New variable.
16566 (wait_vretrace): New function.
16567 (set_read_map): Likewise.
16568 (set_start_address): Likewise.
16569 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
16571 (check_vga_mem): Take the page into account.
16572 (write_char): Likewise.
16573 (write_cursor): Likewise.
16574 (scroll_up): Likewise. Copy the page to the page that is not
16575 shown and switch between both pages.
16576 (grub_vga_putchar): Fix off by one error.
16577 (grub_vga_cls): Wait for the vertical retrace. Take the page into
16580 2004-11-01 Marco Gerards <metgerards@student.han.nl>
16582 Add support for iso9660 (including rockridge).
16584 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
16585 (iso9660_mod_SOURCES): New variable.
16586 (iso9660_mod_CFLAGS): Likewise.
16587 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
16588 * include/grub/fs.h (grub_iso9660_init): New prototype.
16589 * util/grub-emu.c (main): Call `grub_iso9660_init'.
16590 * fs/iso9660.c: New file.
16592 * include/grub/misc.h (grub_strncat): New prototype.
16593 * kern/misc.c (grub_strncat): New function.
16595 * fs/hfs.c (grub_hfs_mount): Translate the error
16596 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
16597 * fs/jfs.c (grub_jfs_mount): Likewise.
16598 * fs/ufs.c (grub_ufs_mount): Likewise.
16600 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
16602 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
16603 which initialized BAT registers.
16604 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
16605 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
16607 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
16608 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
16610 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
16611 (grub_mapclaim): Likewise.
16612 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
16613 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
16616 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
16618 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
16619 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
16620 -ffreestanding and -msoft-float.
16622 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
16624 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
16625 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
16626 set in grub_ieee1275_flags.
16628 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
16630 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
16632 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
16633 grub_console_init first.
16634 Change the memory range used for grub_ieee1275_claim and
16635 grub_mm_init_region.
16636 Print an error message if the claim fails.
16637 Include <grub/misc.h>.
16639 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
16641 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
16642 Call grub_children_iterate for device nodes of type `scsi',
16644 (grub_ofdisk_open): Remove manual device alias resolution.
16645 Fix memory leak when device cannot be opened.
16646 * include/grub/powerpc/ieee1275/ieee1275.h
16647 (grub_children_iterate): New prototype.
16648 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
16650 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
16651 Return -1 if args.size was -1.
16653 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
16655 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
16656 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
16657 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
16658 Open Firmware's memory for it; claim memory from _start to _end.
16659 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
16660 (_end): New extern.
16661 (_start): Zero BSS from __bss_start to _end.
16662 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
16664 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
16666 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
16668 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
16669 -1 if args.base was -1.
16671 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
16673 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
16674 escape sequence instead of a literal ^L. Also call
16675 grub_ofconsole_gotoxy.
16677 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
16679 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
16680 void * arguments to grub_addr_t. All callers updated. Also make
16681 the `result' argument optional.
16682 (grub_ieee1275_release): change void * arguments to grub_addr_t.
16683 All callers updated.
16685 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
16687 * commands/ls.c (grub_ls_list_files): Use the string following the
16688 initial ')', if present, as the filesystem path.
16689 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
16691 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
16693 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
16695 Make the source code of the menu interface more readable.
16697 * normal/menu.c: Include grub/mm.h.
16698 (TERM_WIDTH): New macro.
16699 (TERM_HEIGHT): Likewise.
16700 (TERM_INFO_HEIGHT): Likewise.
16701 (TERM_MARGIN): Likewise.
16702 (TERM_SCROLL_WIDTH): Likewise.
16703 (TERM_TOP_BORDER_Y): Likewise.
16704 (TERM_LEFT_BORDER_X): Likewise.
16705 (TERM_BORDER_WIDTH): Likewise.
16706 (TERM_MESSAGE_HEIGHT): Likewise.
16707 (TERM_BORDER_HEIGHT): Likewise.
16708 (TERM_NUM_ENTRIES): Likewise.
16709 (TERM_FIRST_ENTRY_Y): Likewise.
16710 (TERM_ENTRY_WIDTH): Likewise.
16711 (TERM_CURSOR_X): Likewise.
16712 (draw_border): Use macros instead of magic numbers.
16713 (print_entry): Likewise.
16714 (print_entries): Likewise.
16715 (run_menu): Likewise. Also, handle the key 'e'.
16716 (run_menu_entry): Ignore empty command lines.
16717 (print_message): Added a new argument EDIT. If EDIT is true,
16718 print a different message.
16719 (init_page): Likewise.
16720 (edit_menu_entry): New function. Not implemented yet.
16722 2004-09-17 Marco Gerards <metgerards@student.han.nl>
16724 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
16725 can be loaded from normal mode.
16727 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
16729 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
16730 (multiboot_mod_CFLAGS): New variables.
16731 * loader/i386/pc/linux_normal.c: New file.
16732 * loader/i386/pc/multiboot_normal.c: Likewise.
16734 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
16735 attribute `unused'.
16737 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
16738 `fdiro' to read the mode information from instead of `diro'.
16740 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
16741 looking up a symlink.
16743 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
16745 * normal/command.c (grub_command_execute): Don't parse the
16746 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
16747 flags of the command.
16749 * normal/menu.c (grub_menu_run): Fix typo.
16751 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
16753 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
16755 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
16756 `y + 1' instead of `y - 1'.
16758 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
16760 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
16762 From Hollis Blanchard <hollis@penguinppc.org>:
16763 * kern/misc.c (memmove): New alias for grub_memmove.
16764 (memcmp): New alias for grub_memcmp.
16765 (memset): New alias for grub_memset.
16766 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
16767 Change "int handle" to "grub_ieee1275_phandle_t handle".
16768 * include/grub/powerpc/ieee1275/ieee1275.h
16769 (grub_ieee1275_get_property): Likewise.
16771 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
16773 Added normal mode command `chainloader' as module chain.mod, which
16774 depends on normal.mod and _chain.mod.
16776 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
16777 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
16778 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
16780 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
16781 but arguments parsing moved to ...
16782 (grub_chainloader_cmd): ... here. New function.
16783 * include/grub/i386/pc/chainloader.h: New file.
16784 * loader/i386/pc/chainloader_normal.c: Likewise.
16786 2004-09-11 Marco Gerards <metgerards@student.han.nl>
16788 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
16789 (grub_mkimage_LDFLAGS): Likewise.
16790 (grub_emu_SOURCES): Likewise.
16791 (kernel_img_HEADERS): Added fshelp.h.
16792 * fs/ext2.c: Include <grub/fshelp.h>.
16793 (FILETYPE_REG): New macro.
16794 (FILETYPE_INO_REG): Likewise.
16795 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
16797 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
16799 (grub_fshelp_node): New struct.
16800 (grub_ext2_data): Added member `diropen'. Changed member `inode'
16802 (grub_ext2_get_file_block): Removed function.
16803 (grub_ext2_read_block): New function.
16804 (grub_ext2_read_file): Replaced parameter `data' by `node'.
16805 This function was written.
16806 (grub_ext2_mount): Read the root inode. Create a diropen struct.
16807 (grub_ext2_find_file): Removed function.
16808 (grub_ext2_read_symlink): New function.
16809 (grub_ext2_iterate_dir): Likewise.
16810 (grub_ext2_open): Rewritten.
16811 (grub_ext2_dir): Rewritten.
16812 * include/grub/fshelp.h: New file.
16813 * fs/fshelp.c: Likewise.
16815 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
16817 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
16818 (print_message): Add a missing newline.
16819 (run_menu): Added timeout support.
16820 (run_menu_entry): New local function.
16821 (grub_menu_run): Added support for booting.
16823 * kern/loader.c (grub_loader_is_loaded): New function.
16825 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
16826 (grub_get_rtc): Exported.
16828 * include/grub/i386/pc/time.h: Include grub/symbol.h.
16829 (grub_get_rtc): Exported.
16831 * include/grub/normal.h (struct grub_command_list): Remove
16832 constant from the member `command'.
16834 * include/grub/loader.h (grub_loader_is_loaded): Declared.
16836 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
16838 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
16840 2004-08-28 Marco Gerards <metgerards@student.han.nl>
16842 Add support for the JFS filesystem.
16844 * fs/jfs.c: New file.
16845 * include/grub/fs.h (grub_jfs_init): New prototype.
16846 (grub_jfs_fini): New prototype.
16847 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
16848 (grub_emu_SOURCES): Likewise.
16849 (pkgdata_MODULES): Add jfs.mod.
16850 (jfs_mod_SOURCES): New variable.
16851 (jfs_mod_CFLAGS): Likewise.
16852 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
16853 (grubof_SOURCES): Likewise.
16854 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
16856 * fs/fat.c (grub_fat_find_dir): Convert the filename little
16857 endian to the host endian.
16858 (grub_fat_utf16_to_utf8): Move function from there...
16859 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
16860 the endianness of the source string anymore.
16861 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
16863 2004-08-24 Marco Gerards <metgerards@student.han.nl>
16865 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
16866 (grub_boot_fini) [GRUB_UTIL]: Likewise.
16867 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
16868 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
16870 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
16871 (grub_hfs_iterate_dir): Make the function static. Add prototypes
16872 for `node_found' and `it_dir'.
16873 (grub_hfs_dir): Add prototype for `dir_hook'.
16875 * fs/minix.c (grub_minix_get_file_block): Add prototype for
16876 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
16877 and `indir32' to silence a gcc warning.
16879 * include/grub/fs.h (grub_hfs_init): New prototype.
16880 (grub_hfs_fini): Likewise.
16883 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
16885 Each disk device has its own id now. This is useful to make use
16886 of multiple disk devices.
16888 * include/grub/disk.h (grub_disk_dev_id): New enum.
16889 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
16890 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
16892 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
16893 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
16895 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
16896 GRUB_DISK_DEVICE_OFDISK_ID as an id.
16898 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
16899 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
16901 * include/grub/disk.h (struct grub_disk_dev): Added a new member
16902 "id" which is used by the cache manager.
16904 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
16907 2004-08-18 Marco Gerards <metgerards@student.han.nl>
16909 * fs/hfs.c: New file.
16910 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
16911 (grub_emu_SOURCES): Likewise.
16912 (pkgdata_MODULES): Add hfs.mod.
16913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
16914 (grubof_SOURCES): Likewise.
16915 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
16917 * include/grub/misc.h (grub_strncasecmp): Add prototype.
16918 * kern/misc.c (grub_strncasecmp): Add function.
16920 2004-08-14 Marco Gerards <metgerards@student.han.nl>
16922 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
16925 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
16926 (grub_ext2_dir): In case the directory entry type is unknown, read
16929 2004-08-02 Peter Bruin <pjbruin@dds.nl>
16931 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
16932 grub_load_linux instead of grub_rescue_cmd_linux as second
16933 argument of grub_rescue_register_command.
16935 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
16937 2004-07-27 Marco Gerards <metgerards@student.han.nl>
16939 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
16941 * commands/boot.c: Remove the check for `GRUB_UTIL'.
16942 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
16943 `loader/powerpc/ieee1275/linux.c',
16944 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
16945 * include/grub/powerpc/ieee1275/ieee1275.h
16946 (grub_ieee1275_release): New prototype.
16947 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
16948 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
16949 normal, boot, linux and linux_normal.
16950 * loader/powerpc/ieee1275/linux.c: New file.
16951 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
16953 2004-07-12 Marco Gerards <metgerards@student.han.nl>
16955 * normal/arg.c (grub_arg_parse): Correct error handling after
16956 reallocating the argumentlist (check if `argl' is not null instead
16957 of checking if `args' is not null).
16958 * kern/mm.c (grub_realloc): Return the same pointer when using the
16959 same region, instead of returning the header address.
16961 2004-07-11 Marco Gerards <metgerards@student.han.nl>
16963 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
16964 one block instead of two when looking for the initial partition.
16965 (grub_partition_probe): Initialize the local variable `p' with 0.
16966 Use base 10 for the grub_strtoul call.
16967 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
16968 need for one local variable.
16969 (grub_strtoul): Don't add the new value to `num', instead of that
16972 2004-07-11 Marco Gerards <metgerards@student.han.nl>
16974 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
16975 (pxeboot_img_SOURCES): New variable.
16976 (pxeboot_img_ASFLAGS): Likewise.
16977 (pxeboot_img_LDFLAGS): Likewise.
16978 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
16979 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
16980 <lode_leroy@hotmail.com>.
16982 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
16984 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
16985 there was no input.
16987 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
16989 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
16990 the history buffer logic.
16992 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
16994 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
16995 (FILETYPE_INO_SYMLINK): New macros.
16996 (grub_ext2_find_file): Check if the node is a directory using the
16997 inode stat information instead of using the filetype in the
16998 dirent. Exclude the first character of an absolute symlink.
16999 (grub_ext2_dir): Mask out the filetype part of the mode member of
17002 2004-05-24 Marco Gerards <metgerards@student.han.nl>
17004 Add support for UFS version 1 and 2. Add support for the minix
17005 filesystem version 1 and 2, both the variants with 14 and 30 long
17008 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
17010 (grub_emu_SOURCES): Likewise.
17011 (pkgdata_MODULES): Add ufs.mod and minix.mod.
17012 (ufs_mod_SOURCES): New variable.
17013 (ufs_mod_CFLAGS): Likewise.
17014 (minix_mod_SOURCES): Likewise.
17015 (minix_mod_CFLAGS): Likewise.
17016 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
17018 (grubof_SOURCES): Likewise.
17019 * fs/ufs.c: New file.
17020 * fs/minix.c: New file.
17021 * include/grub/fs.h (grub_ufs_init): New prototype.
17022 (grub_ufs_fini): Likewise.
17023 (grub_minix_init): Likewise.
17024 (grub_minix_fini): Likewise.
17025 * util/grub-emu.c (main): Initialize and deinitialize UFS and
17028 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
17030 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
17031 commands/ls.c, commands/terminal.c, commands/boot.c,
17032 commands/cmp.c and commands/cat.c.
17033 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
17035 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
17038 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
17040 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
17041 and grub_, respectively. Because the conversion is trivial and
17042 mechanical, I omit the details here. Please refer to the CVS
17043 if you need more information.
17045 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
17047 * include/pupa: Renamed to ...
17048 * include/grub: ... this.
17049 * util/i386/pc/pupa-mkimage.c: Renamed to ...
17050 * util/i386/pc/grub-mkimage.c: ... this.
17051 * util/i386/pc/pupa-setup.c: Renamed to ...
17052 * util/i386/pc/grub-setup.c: ... this.
17053 * util/pupa-emu.c: Renamed to ...
17054 * util/grub-emu.c: ... this.
17056 2004-03-29 Marco Gerards <metgerards@student.han.nl>
17058 Add support for the newworld apple macintosh (PPC). This has been
17059 tested on the powerbook 2000 only. It only adds support for
17060 generic ieee1275 functions, console and disk support. This should
17061 be easy to port to other architectures with support for Open
17064 * configure.ac: Accept the powerpc as host_cpu. In the case of
17065 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
17066 specific tests are only executed while building for the i386.
17067 Inverse test for crosscompile.
17068 * genmk.rb (Utility): Allow assembler files.
17069 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
17070 * conf/powerpc-ieee1275.rmk: New file.
17071 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
17072 * disk/powerpc/ieee1275/partition.c: Likewise.
17073 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
17074 * include/pupa/powerpc/ieee1275/console.h: Likewise.
17075 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
17076 * include/pupa/powerpc/ieee1275/time.h: Likewise.
17077 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
17078 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
17079 * include/pupa/powerpc/ieee1275/loader.h
17080 * include/pupa/powerpc/setjmp.h: Likewise.
17081 * include/pupa/powerpc/types.h: Likewise.
17082 * kern/powerpc/ieee1275/init.c: Likewise.
17083 * kern/powerpc/ieee1275/openfw.c: Likewise.
17084 * term/powerpc/ieee1275/ofconsole.c: Likewise.
17086 These files were written by Johan Rydberg
17087 (jrydberg@night.trouble.net) and I only modified them slightly.
17089 * boot/powerpc/ieee1275/cmain.c: New file.
17090 * boot/powerpc/ieee1275/crt0.S: Likewise.
17091 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
17092 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
17094 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
17096 * Makefile.in: Update copyright.
17097 * genmodsrc.sh: Likewise.
17098 * gensymlist.sh: Likewise.
17099 * term/i386/pc/vga.c: Indent correctly.
17101 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
17102 bugreporting address.
17103 * util/i386/pc/pupa-setup.c (usage): Likewise,
17104 (main): Call pupa_ext2_init and pupa_ext2_fini.
17106 * fs/fat.c (log2): Renamed to ...
17107 (fat_log2): ... this.
17108 All callers changed.
17109 * kern/misc.c (memcpy): Alias to pupa_memmove.
17110 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
17112 * util/console.c (pupa_ncurses_fini): Return 0.
17114 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
17115 Move fail label here.
17116 [__GNU__]: Don't warn when using stat.
17117 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
17118 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
17119 long int. Use strtol instead of strtoul.
17121 2004-03-14 Marco Gerards <metgerards@student.han.nl>
17123 * commands/boot.c: New file.
17124 * commands/cat.c: Likewise.
17125 * commands/cmp.c: Likewise.
17126 * commands/ls.c: Likewise.
17127 * commands/terminal.c: Likewise.
17128 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
17129 (pupa_register_command): Changed interface to match the new
17131 (pupa_command_execute): Changed (almost rewritten) so it uses
17132 pupa_split_command. Added support for setting variables using the
17134 (rescue_command): Changed to work with the new argument parser.
17135 (terminal_command): Moved from here to commands/terminal.c.
17136 (set_command): New function.
17137 (unset_command): New function.
17138 (insmod_command): New function.
17139 (rmmod_command): New function.
17140 (lsmod_command): New function.
17141 (pupa_command_init): Don't initialize the command terminal
17142 anymore. Initialize the commands set, unset, insmod, rmmod and
17144 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
17145 (kernel_img_HEADERS): Add arg.h and env.h.
17146 (pupa_mkimage_LDFLAGS): Add kern/env.c.
17147 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
17148 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
17150 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
17152 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
17153 (boot_mod_SOURCES): New variable.
17154 (terminal_mod_SOURCES): Likewise.
17155 (ls_mod_SOURCES): Likewise.
17156 (cmp_mod_SOURCES): Likewise.
17157 (cat_mod_SOURCES): Likewise.
17159 * normal/arg.c: New file.
17160 * kern/env.c: Likewise.
17161 * include/pupa/arg.h: Likewise.
17162 * include/pupa/env.h: Likewise.
17163 * font/manager.c (font_command): Changed to match argument parsing
17165 (PUPA_MOD_INIT): Likewise.
17166 * hello/hello.c (pupa_cmd_hello): Likewise.
17167 (PUPA_MOD_INIT): Likewise.
17168 * include/pupa/disk.h: Include <pupa/device.h>.
17169 (pupa_print_partinfo): New prototype.
17170 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
17171 (pupa_dl_get_prefix): Likewise.
17172 * include/pupa/misc.h: Include <pupa/err.h>.
17173 (pupa_isgraph): New prototype.
17174 (pupa_isdigit): Likewise.
17175 (pupa_split_cmdline): Likewise.
17176 * include/pupa/normal.h: Include <pupa/arg.h>.
17177 (pupa_command): Changed the prototype of the member `func' to
17178 match the argument parsing interface. Added member `options'.
17179 (pupa_register_command): Updated to match function.
17180 (pupa_arg_parse): New prototype.
17181 (pupa_hello_init) [PUPA_UTIL]: New prototype.
17182 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
17183 (pupa_ls_init) [PUPA_UTIL]: Likewise.
17184 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
17185 (pupa_cat_init) [PUPA_UTIL]: Likewise.
17186 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
17187 (pupa_boot_init) [PUPA_UTIL]: Likewise.
17188 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
17189 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
17190 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
17191 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
17192 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
17193 * kern/disk.c: Include <pupa/file.h>.
17194 (pupa_print_partinfo): New function.
17195 * kern/dl.c: Include <pupa/env.h>.
17196 (pupa_dl_dir): Variable removed.
17197 (pupa_dl_load): Use the environment variable `prefix' instead of
17198 the variable pupa_dl_dir.
17199 (pupa_dl_set_prefix): Function removed.
17200 (pupa_dl_get_prefix): Likewise.
17201 * kern/i386/pc/init.c: Include <pupa/env.h>.
17202 (pupa_machine_init): Use the environment variable `prefix' instead of
17203 using pupa_dl_set_prefix to set the prefix.
17204 * kern/main.c: Include <pupa/env.h>.
17205 (pupa_set_root_dev): Use the environment variable `prefix' instead of
17206 using pupa_dl_get_prefix to get the prefix.
17207 * kern/misc.c: Include <pupa/env.h>.
17208 (pupa_isdigit): New function.
17209 (pupa_isgraph): Likewise.
17210 (pupa_ftoa): Likewise.
17211 (pupa_vsprintf): Added support for printing values of the type
17212 `double'. Make it possible to format variable output when using
17213 formatting like `%1.2%f'.
17214 (pupa_split_cmdline): New function.
17215 * kern/rescue.c: Include <pupa/env.h>.
17216 (next_word): Removed function.
17217 (pupa_rescue_cmd_prefix): Likewise.
17218 (pupa_rescue_cmd_set): New function.
17219 (pupa_rescue_cmd_unset): New function.
17220 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
17221 split the command line instead of splitting it here. Added
17222 support for setting variables using the syntax `foo=bar'. Don't
17223 initialize the prefix command anymore. Initialized the set and
17225 * normal/cmdline.c: Include <pupa/env.h>.
17226 (pupa_tab_complete): Added prototypes for print_simple_completion,
17227 print_partition_completion, add_completion, iterate_commands,
17228 iterate_dev, iterate_part and iterate_dir. Moved code to print
17229 partition information from here to kern/disk.c.
17230 (pupa_cmdline_run): Don't check if the function exists anymore.
17231 * normal/main.c: Include <pupa/env.h>.
17232 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
17233 instead of using pupa_dl_get_prefix to get the prefix.
17234 * term/i386/pc/vga.c: Include <pupa/arg.h>.
17235 (check_vga_mem): Cast pointers to `void *' to silence a gcc
17237 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
17238 (pupa_vga_setcolor): Declare unused variables with `__attribute__
17239 ((unused))' to silence a gcc warning.
17240 (pupa_vga_setcolor): Likewise.
17241 (debug_command): Changed to match argument parsing
17243 * util/pupa-emu.c: Include <pupa/env.h>.
17244 (options): Added 0's for unused fields to silence a gcc warning.
17246 (main): Use the environment variable `prefix' instead of using
17247 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
17248 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
17251 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
17252 * util/misc.c: Include <malloc.h>.
17253 (pupa_malloc): Rewritten so errors are correctly reported.
17254 (pupa_realloc): Likewise.
17255 (pupa_memalign): Likewise.
17256 (pupa_mm_init_region): Declare unused variables with
17257 `__attribute__ ((unused))' to silence a gcc warning.
17258 * normal/i386/setjmp.S: Remove tab at the end of the file to
17259 silence a gcc warning.
17260 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
17261 variables with `__attribute__ ((unused))' to silence a gcc
17263 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
17264 local variable i unsigned to silence a gcc warning.
17266 * kern/term.c: Include <pupa/misc.h>.
17267 (pupa_more_lines): New variable.
17268 (pupa_more): Likewise.
17269 (pupa_putcode): When the pager is active pause at the end of every
17271 (pupa_set_more): New function.
17272 * include/pupa/term.h (pupa_set_more): New prototype.
17275 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
17277 Now this project is GRUB 2 rather than PUPA. The location of
17278 the CVS repository was moved to GRUB's.
17280 * configure.ac: Use bug-grub as the reporting address.
17281 Use GRUB instead of PUPA.
17282 Change the version number to 1.90.
17284 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
17286 * genkernsyms.sh: Updated copyright information.
17287 * genmk.rb: Likewise.
17288 * genmodsrc.sh: Likewise.
17289 * gensymlist.sh: Likewise.
17290 * boot/i386/pc/boot.S: Likewise.
17291 * boot/i386/pc/diskboot.S: Likewise.
17292 * disk/i386/pc/biosdisk.c: Likewise.
17293 * disk/i386/pc/partition.c: Likewise.
17294 * font/manager.c: Likewise.
17295 * fs/ext2.c: Likewise.
17296 * fs/fat.c: Likewise.
17297 * include/pupa/boot.h: Likewise.
17298 * include/pupa/device.h: Likewise.
17299 * include/pupa/disk.h: Likewise.
17300 * include/pupa/dl.h: Likewise.
17301 * include/pupa/elf.h: Likewise.
17302 * include/pupa/err.h: Likewise.
17303 * include/pupa/file.h: Likewise.
17304 * include/pupa/font.h: Likewise.
17305 * include/pupa/fs.h: Likewise.
17306 * include/pupa/kernel.h: Likewise.
17307 * include/pupa/loader.h: Likewise.
17308 * include/pupa/misc.h: Likewise.
17309 * include/pupa/mm.h: Likewise.
17310 * include/pupa/net.h: Likewise.
17311 * include/pupa/normal.h: Likewise.
17312 * include/pupa/rescue.h: Likewise.
17313 * include/pupa/setjmp.h: Likewise.
17314 * include/pupa/symbol.h: Likewise.
17315 * include/pupa/term.h: Likewise.
17316 * include/pupa/types.h: Likewise.
17317 * include/pupa/i386/setjmp.h: Likewise.
17318 * include/pupa/i386/types.h: Likewise.
17319 * include/pupa/i386/pc/biosdisk.h: Likewise.
17320 * include/pupa/i386/pc/boot.h: Likewise.
17321 * include/pupa/i386/pc/console.h: Likewise.
17322 * include/pupa/i386/pc/init.h: Likewise.
17323 * include/pupa/i386/pc/kernel.h: Likewise.
17324 * include/pupa/i386/pc/linux.h: Likewise.
17325 * include/pupa/i386/pc/loader.h: Likewise.
17326 * include/pupa/i386/pc/memory.h: Likewise.
17327 * include/pupa/i386/pc/multiboot.h: Likewise.
17328 * include/pupa/i386/pc/partition.h: Likewise.
17329 * include/pupa/i386/pc/time.h: Likewise.
17330 * include/pupa/i386/pc/vga.h: Likewise.
17331 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
17332 * include/pupa/util/getroot.h: Likewise.
17333 * include/pupa/util/misc.h: Likewise.
17334 * include/pupa/util/resolve.h: Likewise.
17335 * kern/device.c: Likewise.
17336 * kern/disk.c: Likewise.
17337 * kern/dl.c: Likewise.
17338 * kern/err.c: Likewise.
17339 * kern/file.c: Likewise.
17340 * kern/fs.c: Likewise.
17341 * kern/loader.c: Likewise.
17342 * kern/main.c: Likewise.
17343 * kern/misc.c: Likewise.
17344 * kern/mm.c: Likewise.
17345 * kern/rescue.c: Likewise.
17346 * kern/term.c: Likewise.
17347 * kern/i386/dl.c: Likewise.
17348 * kern/i386/pc/init.c: Likewise.
17349 * kern/i386/pc/lzo1x.S: Likewise.
17350 * kern/i386/pc/startup.S: Likewise.
17351 * loader/i386/pc/chainloader.c: Likewise.
17352 * loader/i386/pc/linux.c: Likewise.
17353 * loader/i386/pc/multiboot.c: Likewise.
17354 * normal/cmdline.c: Likewise.
17355 * normal/command.c: Likewise.
17356 * normal/main.c: Likewise.
17357 * normal/menu.c: Likewise.
17358 * normal/i386/setjmp.S: Likewise.
17359 * term/i386/pc/console.c: Likewise.
17360 * term/i386/pc/vga.c: Likewise.
17361 * util/console.c: Likewise.
17362 * util/genmoddep.c: Likewise.
17363 * util/misc.c: Likewise.
17364 * util/pupa-emu.c: Likewise.
17365 * util/resolve.c: Likewise.
17366 * util/unifont2pff.rb: Likewise.
17367 * util/i386/pc/biosdisk.c: Likewise.
17368 * util/i386/pc/getroot.c: Likewise.
17369 * util/i386/pc/pupa-mkimage.c: Likewise.
17370 * util/i386/pc/pupa-setup.c: Likewise.
17372 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
17374 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
17375 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
17376 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
17377 reading and reset it after reading.
17378 (pupa_ext2_close): Return PUPA_ERR_NONE.
17380 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
17382 (struct linux_kernel_header): Add kernel_version and
17384 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
17385 pupa_file_read succeeds.
17386 (pupa_rescue_cmd_initrd): Implement.
17388 2003-12-03 Marco Gerards <metgerards@student.han.nl>
17390 * fs/ext2.c (pupa_ext2_label): New function.
17391 (pupa_ext2_fs): Added label.
17392 * fs/fat.c (pupa_fat_label): New function.
17393 (pupa_fat_fs): Added label.
17394 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
17396 * kern/misc.c (pupa_strndup): New function.
17397 * include/pupa/misc.h (pupa_strndup): New prototype.
17399 * include/pupa/normal.h: Include <pupa/err.h>.
17400 (pupa_set_history): New prototype.
17401 (pupa_iterate_commands): New prototype.
17402 * normal/cmdline.c: Include <pupa/machine/partition.h>,
17403 <pupa/disk.h>, <pupa/file.h>.
17404 (hist_size): New variable.
17405 (hist_lines): Likewise.
17406 (hist_end): Likewise.
17407 (hist_used): Likewise.
17408 (pupa_set_history): New function.
17409 (pupa_history_get): Likewise.
17410 (pupa_history_add): Likewise.
17411 (pupa_history_replace): Likewise.
17412 (pupa_tab_complete): Likewise.
17413 (pupa_cmdline_run): Added tab completion and history buffer. Tab
17414 completion shows partitionnames while completing partitions, this
17415 feature was suggested by Jeff Bailey.
17416 * normal/command.c (pupa_iterate_commands): New function.
17417 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
17418 (pupa_normal_init): Initialize history buffer.
17419 (PUPA_MOD_INIT): Likewise.
17420 (pupa_normal_fini): Free the history buffer.
17421 (PUPA_MOD_FINI): Likewise.
17423 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
17426 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
17427 * configure.ac [i386]: Check for regparam bug.
17428 (NESTED_FUNC_ATTR) [! i386]: Defined.
17430 2003-11-17 Marco Gerards <metgerards@student.han.nl>
17432 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
17433 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
17434 (pupa_emu_SOURCES): New variable.
17435 (pupa_emu_LDFLAGS): Likewise.
17436 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
17437 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
17438 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
17439 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
17440 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
17441 (pupa_jmp_buf): New typedef.
17442 (pupa_setjmp) [PUPA_UTIL]: New macro.
17443 (pupa_longjmp) [PUPA_UTIL]: Likewise.
17444 * include/pupa/term.h (struct pupa_term): New member `refresh'.
17445 (pupa_refresh): New prototype.
17446 * include/pupa/util/getroot.h: New file.
17447 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
17449 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
17450 (pupa_rescue_cmd_cat): Likewise.
17451 (pupa_rescue_cmd_ls): Likewise.
17452 (pupa_rescue_cmd_testload): Likewise.
17453 (pupa_rescue_cmd_lsmod): Likewise.
17454 * normal/cmdline.c (pupa_cmdline_get): Likewise.
17455 * normal/menu.c (run_menu): Likewise.
17456 * kern/term.c (pupa_cls): Likewise.
17457 (pupa_refresh): New function.
17458 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
17459 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
17460 * util/console.c: New file.
17462 * util/i386/pc/getroot.c: New file.
17463 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
17464 (pupa_putchar): New function.
17465 (pupa_refresh): Likewise.
17466 (xgetcwd): Function moved to ...
17467 (strip_extra_slashes): Likewise.
17468 (get_prefix): Likewise.
17469 * util/i386/pc/getroot.c: ... here.
17470 (find_root_device): Function moved and renamed to...
17471 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
17472 Changed all callers.
17473 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
17475 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
17476 Changed all callers.
17477 * util/misc.c (pupa_memalign): New function.
17478 (pupa_mm_init_region): Likewise.
17479 (pupa_register_exported_symbols): Likewise.
17480 (pupa_putchar): Function removed.
17481 * util/pupa-emu.c: New file.
17483 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
17485 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
17486 (_multiboot_mod_SOURCES): New variable.
17487 (_multiboot_mod_CFLAGS): Likewise.
17488 * loader/i386/pc/multiboot.c: New file.
17489 * include/pupa/i386/pc/multiboot.h: Likewise.
17490 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
17491 (pupa_multiboot_real_boot): New function.
17492 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
17493 (pupa_multiboot_real_boot): New prototype.
17494 (pupa_rescue_cmd_multiboot): Likewise
17495 (pupa_rescue_cmd_module): Likewise.
17497 * kern/loader.c (pupa_loader_set): Continue when
17498 pupa_loader_unload_func() fails.
17499 (pupa_loader_unset): New function.
17500 * include/pupa/loader.h (pupa_loader_unset): New prototype.
17502 * kern/misc.c (pupa_stpcpy): New function.
17503 * include/pupa/misc.h (pupa_stpcpy): New prototype.
17505 2003-11-12 Marco Gerards <metgerards@student.han.nl>
17507 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
17508 for available extensions.
17510 * include/pupa/i386/pc/time.h: New file.
17511 * kern/disk.c: Include <pupa/machine/time.h>.
17512 (PUPA_CACHE_TIMEOUT): New macro.
17513 (pupa_last_time): New variable.
17514 (pupa_disk_open): Flush the cache when there was a timeout.
17515 (pupa_disk_close): Reset the timer.
17516 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
17518 * util/misc.c: Include <sys/times.h>
17519 (pupa_get_rtc): New function.
17521 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
17523 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
17525 (pupa_ext2_get_file_block): Use blocks member.
17527 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
17528 first block. Return -1 instead of pupa_errno on error.
17530 2003-10-27 Marco Gerards <metgerards@student.han.nl>
17532 * README: In the pupa-mkimage example use _chain instead of chain
17533 and ext2 instead of fat.
17534 * TODO: Replace ext2fs with jfs as an example. Add an item for
17535 adding journal playback for ext2fs.
17536 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
17537 (pkgdata_MODULES): Added ext2.mod.
17538 (ext2_mod_SOURCES): New variable.
17539 (ext2_mod_CFLAGS): Likewise.
17540 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
17541 * include/pupa/misc.h (pupa_strncpy): New prototype.
17542 (pupa_strcat): Likewise.
17543 (pupa_strncmp): Likewise.
17544 * kern/misc.c (pupa_strcat): Enable function.
17545 (pupa_strncpy): New function.
17546 (pupa_strncmp): Likewise.
17547 * fs/ext2.c: New file.
17549 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
17550 when the read failed before retrying.
17551 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
17552 (_FILE_OFFSET_BITS): Likewise.
17553 * configure.ac: Added AC_SYS_LARGEFILE.
17555 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
17557 * genmk.rb (PModule#rule): Make sure to get only symbol names
17558 from the output of nm.
17559 Reported by Robert Millan <zeratul2@wanadoo.es>.
17561 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
17563 I forgot to check in these changes for a long time. This adds
17564 incomplete support for VGA console, and this is still very
17565 buggy. Also, a lot of consideration is required for I18N,
17566 UNICODE, and VGA font issues. Therefore, assume that this is
17567 such that "better than nothing".
17569 * font/manager.c: New file.
17570 * include/pupa/font.h: Likewise.
17571 * include/pupa/i386/pc/vga.h: Likewise.
17572 * term/i386/pc/vga.c: Likewise.
17573 * util/unifont2pff.rb: Likewise.
17575 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
17576 (pkgdata_MODULES): Added vga.mod and font.mod.
17577 (vga_mod_SOURCES): New variables.
17578 (vga_mod_CFLAGS): Likewise.
17579 (font_mod_SOURCES): Likewise.
17580 (font_mod_CFLAGS): Likewise.
17582 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
17584 * include/pupa/term.h: Include pupa/err.h.
17585 (struct pupa_term): Added init and fini.
17586 Changed the argument of putchar to pupa_uint32_t.
17588 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
17589 (pupa_console_real_putchar): New prototype.
17590 (pupa_console_putchar): Removed.
17591 (pupa_console_checkkey): Exported.
17592 (pupa_console_getkey): Likewise.
17594 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
17597 * kern/term.c (pupa_term_set_current): Rewritten.
17598 (pupa_putchar): Likewise.
17599 (pupa_putcode): New function.
17601 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
17602 (pupa_console_real_putchar): ... this.
17603 (pupa_vga_set_mode): New function.
17604 (pupa_vga_get_font): Likewise.
17606 * normal/command.c: Include pupa/term.h.
17607 (terminal_command): New function.
17608 (pupa_command_init): Register the command "terminal".
17610 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
17611 (DISP_UP): Likewise.
17612 (DISP_RIGHT): Likewise.
17613 (DISP_DOWN): Likewise.
17614 (DISP_HLINE): Likewise.
17615 (DISP_VLINE): Likewise.
17616 (DISP_UL): Likewise.
17617 (DISP_UR): Likewise.
17618 (DISP_LL): Likewise.
17619 (DISP_LR): Likewise.
17621 * term/i386/pc/console.c (pupa_console_putchar): New function.
17623 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
17625 * util/resolve.c (pupa_util_resolve_dependencies): BUG
17626 FIX. Reverse the path_list.
17628 * include/pupa/normal.h: Export pupa_register_command and
17629 pupa_unregister_command.
17631 * hello/hello.c (pupa_cmd_hello): New module.
17632 * conf/i386-pc.rmk: Added hello.mod.
17634 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
17636 * kern/i386/pc/lzo1x.S: New file.
17638 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
17639 (compress_kernel): New variable.
17640 (generate_image): Heavily modified to support compressing a
17641 large part of the core image.
17643 * util/misc.c (pupa_util_read_image): Fix a file descriptor
17645 (pupa_util_load_image): New function.
17647 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
17648 (pupa_compressed_size): New variable.
17649 (codestart): Enable Gate A20 here.
17650 Decompress the compressed part of the core image.
17651 Rearrange the code to put functions and variables which are
17652 required for initialization in the non-compressed part.
17655 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
17658 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
17660 * include/pupa/i386/pc/kernel.h
17661 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
17662 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
17663 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
17664 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
17665 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
17667 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
17669 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
17670 (Utility#rule): Likewise.
17672 * configure.ac: Check if LZO is available.
17674 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
17676 * include/pupa/normal.h: New file.
17677 * include/pupa/setjmp.h: Likewise.
17678 * include/pupa/i386/setjmp.h: Likewise.
17679 * normal/cmdline.c: Likewise.
17680 * normal/command.c: Likewise.
17681 * normal/main.c: Likewise.
17682 * normal/menu.c: Likewise.
17683 * normal/i386/setjmp.S: Likewise.
17685 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
17686 (pupa_rescue_cmd_initrd): Likewise.
17688 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
17691 * kern/i386/pc/startup.S (translation_table): New variable.
17692 (translate_keycode): New function.
17693 (pupa_console_getkey): Call translate_keycode.
17695 * kern/rescue.c (attempt_normal_mode): New function.
17696 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
17697 it failed, print a message.
17699 * kern/mm.c (pupa_real_malloc): Print more information when a
17700 free magic is broken.
17701 (pupa_free): If the first free header is not free actually, set
17704 * kern/main.c (pupa_load_normal_mode): Just load the module
17706 (pupa_main): Don't print the message
17707 "Entering into rescue mode..." here.
17709 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
17711 (pupa_rescue_cmd_initrd): Likewise.
17712 (pupa_rescue_cmd_initrd): Likewise.
17714 * include/pupa/symbol.h (FUNCTION): Specify the type.
17715 (VARIABLE): Likewise.
17717 * include/pupa/err.h (pupa_err_t): Added
17718 PUPA_ERR_UNKNOWN_COMMAND.
17720 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
17721 (pupa_dl_get_prefix): Likewise.
17723 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
17724 Added _chain.mod and _linux.mod instead of chain.mod and
17726 (chain_mod_SOURCES): Renamed to ...
17727 (_chain_mod_SOURCES): ... this.
17728 (chain_mod_CFLAGS): Renamed to ...
17729 (_chain_mod_CFLAGS): ... this.
17730 (linux_mod_SOURCES): Renamed to ...
17731 (_linux_mod_SOURCES): ... this.
17732 (linux_mod_CFLAGS): Renamed to ...
17733 (_linux_mod_CFLAGS): ... this.
17734 (normal_mod_SOURCES): New variable.
17735 (normal_mod_CFLAGS): Likewise.
17736 (normal_mod_ASFLAGS): Likewise.
17738 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
17740 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
17743 * kern/dl.c (pupa_dl_ref): Refer depending modules
17745 (pupa_dl_unref): Unrefer depending modules recursively.
17746 Don't call pupa_dl_unload implicitly, because PUPA can crash if
17747 a module is unloaded before one depending on that module is
17749 (pupa_dl_unload): Unload depending modules explicitly,
17752 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
17754 * include/pupa/i386/pc/linux.h: New file.
17755 * loader/i386/pc/linux.c: Likewise.
17757 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
17759 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
17760 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
17761 of PUPA_CHAINLOADER_BOOT_SECTOR.
17763 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
17764 (pupa_linux_prot_size): New variable.
17765 (pupa_linux_tmp_addr): Likewise.
17766 (pupa_linux_real_addr): Likewise.
17767 (pupa_linux_boot_zimage): New function.
17768 (pupa_linux_boot_bzimage): Likewise.
17770 * kern/i386/pc/init.c (struct mem_region): New structure.
17771 (MAX_REGIONS): New macro.
17772 (mem_regions): New variable.
17773 (num_regions): Likewise.
17774 (pupa_os_area_addr): Likewise.
17775 (pupa_os_area_size): Likewise.
17776 (pupa_lower_mem): Likewise.
17777 (pupa_upper_mem): Likewise.
17778 (add_mem_region): New function.
17779 (compact_mem_regions): Likewise.
17780 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
17781 the size of the conventional memory and that of so-called upper
17782 memory (before the first memory hole).
17783 Instead of adding each found region to free memory, use
17784 add_mem_region and add them after removing overlaps.
17785 Also, add only 1/4 of the upper memory to free memory. The rest
17786 is used for loading OS images. Maybe this is ad hoc, but this
17787 makes it much easier to relocate OS images when booting.
17789 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
17790 (pupa_enter_rescue_mode): Don't register initrd and module.
17792 * kern/mm.c: Include pupa/dl.h.
17794 * kern/main.c: Include pupa/file.h and pupa/device.h.
17796 * kern/loader.c (pupa_loader_load_module_func): Removed.
17797 (pupa_loader_load_module): Likewise.
17799 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
17802 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
17803 (pupa_linux_tmp_addr): Likewise.
17804 (pupa_linux_real_addr): Likewise.
17805 (pupa_linux_boot_zimage): Likewise.
17806 (pupa_linux_boot_bzimage): Likewise.
17808 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
17809 (pupa_upper_mem): Likewise.
17810 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
17811 module is too dangerous.
17813 * include/pupa/loader.h (pupa_os_area_addr): Declared.
17814 (pupa_os_area_size): Likewise.
17815 (pupa_loader_set): Remove the first argument. Loader doesn't
17816 manage modules or initrd any longer.
17817 (pupa_loader_load_module): Removed.
17819 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
17820 (linux_mod_SOURCES): New variable.
17821 (linux_mod_CFLAGS): Likewise.
17823 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
17825 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
17826 the length of a blocklist correctly.
17828 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
17829 Use ioctl only if the OS file is a block device.
17830 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
17831 not very useful for normal files.
17833 * kern/main.c (pupa_set_root_dev): New function.
17834 (pupa_load_normal_mode): Likewise.
17835 (pupa_main): Call those above.
17837 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
17840 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
17842 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
17844 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
17845 (setup): Configure the installed partition information and the
17848 * loader/i386/pc/chainloader.c (my_mod): New variable.
17849 (pupa_chainloader_unload): New function.
17850 (pupa_rescue_cmd_chainloader): Refer itself.
17851 (PUPA_MOD_INIT): Save its own module in MY_MOD.
17853 * kern/i386/pc/startup.S (install_partition): Removed.
17854 (version_string): Likewise.
17855 (config_file): Likewise.
17856 (pupa_install_dos_part): New variable.
17857 (pupa_install_bsd_part): Likewise.
17858 (pupa_prefix): Likewise.
17859 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
17861 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
17863 (make_install_device): New function.
17864 (pupa_machine_init): Set the dl prefix.
17866 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
17867 (buf): Renamed to ...
17868 (linebuf): ... this.
17869 (pupa_rescue_cmd_prefix): New function.
17870 (pupa_rescue_cmd_insmod): Likewise.
17871 (pupa_rescue_cmd_rmmod): Likewise.
17872 (pupa_rescue_cmd_lsmod): Likewise.
17873 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
17876 * kern/mm.c (pupa_memalign): If failed even after invalidating
17877 disk caches, unload unneeded modules and retry.
17879 * kern/misc.c (pupa_memmove): New function.
17880 (pupa_memcpy): Removed.
17881 (pupa_strcpy): New function.
17882 (pupa_itoa): Made static.
17884 * kern/dl.c (pupa_dl_iterate): New function.
17885 (pupa_dl_ref): Likewise.
17886 (pupa_dl_unref): Likewise.
17887 (pupa_dl_unload): Return if succeeded or not.
17888 (pupa_dl_unload_unneeded): New function.
17889 (pupa_dl_unload_all): Likewise.
17890 (pupa_dl_init): Renamed to ...
17891 (pupa_dl_set_prefix): ... this.
17892 (pupa_dl_get_prefix): New function.
17894 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
17895 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
17896 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
17897 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
17898 (pupa_install_dos_part): Declared.
17899 (pupa_install_bsd_part): Likewise.
17900 (pupa_prefix): Likewise.
17901 (pupa_boot_drive): Likewise.
17903 * include/pupa/types.h: Fix a typo.
17905 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
17907 (pupa_memmove): Declared.
17908 (pupa_strcpy): Likewise.
17910 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
17911 pupa_mod_init takes one argument, its own module.
17912 (pupa_dl_unload_unneeded): Declared.
17913 (pupa_dl_unload_all): Likewise.
17914 (pupa_dl_ref): Likewise.
17915 (pupa_dl_unref): Likewise.
17916 (pupa_dl_iterate): Likewise.
17917 (pupa_dl_init): Renamed to ...
17918 (pupa_dl_set_prefix): ... this.
17919 (pupa_dl_get_prefix): Declared.
17921 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
17922 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
17924 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
17925 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
17927 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
17928 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
17930 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
17932 * util/i386/pc/pupa-setup.c (setup): Define the internal
17933 function find_first_partition_start at the top level, because GCC
17934 3.0.x cannot compile internal functions in deeper scopes
17936 (find_root_device): Use lstat instead of stat.
17937 Don't follow symbolic links.
17938 Fix the path-constructing code.
17940 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
17941 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
17942 by a BLKGETSIZE ioctl first, because block devices don't fill
17943 the member st_mode of the structure stat on Linux.
17944 [__linux__] (linux_find_partition): Use a temporary buffer
17945 REAL_DEV for the working space. Copy it to DEV before returning.
17946 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
17947 buffer cache consistent.
17948 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
17949 strncmp. The previous value was merely wrong.
17950 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
17952 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
17953 FAT size is 12. The previous value was merely wrong.
17955 * kern/main.c (pupa_main): Don't split the starting message from
17958 * kern/term.c (pupa_putchar): Put CR after LF instead of before
17959 LF, because BIOS goes crazy about character attributes in this
17962 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
17964 * include/i386/pc/util/biosdisk.h: New file.
17965 * util/i386/pc/biosdisk.c: Likewise.
17966 * util/i386/pc/pupa-setup.c: Likewise.
17968 * Makefile.in (INCLUDE_DISTFILES): Added
17969 include/pupa/i386/pc/util/biosdisk.h.
17970 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
17971 directory util/i386/pc.
17972 (install-local): Added a rule for sbin_UTILITIES.
17973 (uninstall): Likewise.
17975 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
17977 * util/misc.c (xrealloc): New function.
17978 (pupa_malloc): Likewise.
17979 (pupa_free): Likewise.
17980 (pupa_realloc): Likewise.
17981 (pupa_stop): Likewise.
17982 (pupa_putchar): Likewise.
17984 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
17986 * include/pupa/util/misc.h (xrealloc): Declared.
17988 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
17990 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
17991 (PUPA_BOOT_MACHINE_BPB_END): ... this.
17993 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
17994 [PUPA_UTIL] (pupa_fat_fini): Likewise.
17996 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
17997 way should be implemented.
17998 [PUPA_UTIL] (pupa_fat_fini): Likewise.
18000 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
18001 the size of NAME for safety.
18002 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
18005 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
18006 (pupa_setup_SOURCES): Likewise.
18008 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
18010 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
18012 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
18013 bunch of pushl's from pusha, because this destroys the return
18016 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
18018 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
18019 This means that any missing prototypes could be fatal. Also, you
18020 must take care when writing assembly code. See the comments at
18021 the beginning of startup.S, for more details.
18023 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
18024 compilation mechanism.
18025 (pupa_chainloader_real_boot): Likewise.
18026 (pupa_biosdisk_rw_int13_extensions): Likewise.
18027 (pupa_biosdisk_rw_standard): Likewise.
18028 (pupa_biosdisk_check_int13_extensions): Likewise.
18029 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
18030 (pupa_biosdisk_get_diskinfo_standard): Likewise.
18031 (pupa_get_memsize): Likewise.
18032 (pupa_get_mmap_entry): Likewise.
18033 (pupa_console_putchar): Likewise.
18034 (pupa_console_setcursor): Likewise.
18035 (pupa_getrtsecs): Use pushl instead of push.
18037 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
18038 memory instead of the stack for a mmap entry, because some
18039 BIOSes may ignore the maximum size and overflow.
18041 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
18043 * genmk.rb (PModule#rule): Compile automatically generated
18044 sources with module-specific CFLAGS as well as other sources.
18046 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
18048 * configure.ac: Check ld.
18049 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
18050 respectively, before checking endianness and sizes.
18052 * Makefile.in (LD): New variable.
18054 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
18056 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
18058 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
18060 * Changelog: New file.